Autosave replays

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

PorschefanRoel
sunday driver
sunday driver
Posts: 52
Joined: 19 Feb 2009 19:07
Owned TM-games: TMUF

Re: Autosave replays

Post by PorschefanRoel » 20 Jun 2009 20:40

if I do /admin call AutoSaveReplays true, a message pops up with:

Method results for:
AutoSaveReplays = 1

if I do /admin call AutoSaveReplays = 1 I get the message:
Method error for AutoSaveReplays: [-501] Value of type STRING supplied where type BOOL was expected.

And if I do /admin call AutoSaveReplays 1 I get the message:
Method error for AutoSvaeReplays: [-501] Value of INT supplied where type BOOL was expected.

What am I doing wrong now again?

Xymph
Pit Crew
Pit Crew
Posts: 5706
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: Autosave replays

Post by Xymph » 20 Jun 2009 21:32

PorschefanRoel wrote:if I do /admin call AutoSaveReplays true, a message pops up with:

Method results for:
AutoSaveReplays = 1
[...]
What am I doing wrong now again?
Nothing, true is the correct boolean value. The above result 1 equals success, so the method was executed. Replay saving should be on until the server is restarted. To make it permanent, follow Lambda suggestion.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

PorschefanRoel
sunday driver
sunday driver
Posts: 52
Joined: 19 Feb 2009 19:07
Owned TM-games: TMUF

Re: Autosave replays

Post by PorschefanRoel » 20 Jun 2009 21:38

Ok, thx, where does the server save the replays, very usefull to know :P

EDIT: well forget it, already found it.

Thx all for the very usefull information.

See you again on my next problem :D

PorschefanRoel
sunday driver
sunday driver
Posts: 52
Joined: 19 Feb 2009 19:07
Owned TM-games: TMUF

Re: Autosave replays

Post by PorschefanRoel » 20 Jun 2009 21:45

The problem isn't fixed completely yet.

I want it to save every single replay that gets finished on the server, not only the best one.

Is there anyway to do that?

PorschefanRoel
sunday driver
sunday driver
Posts: 52
Joined: 19 Feb 2009 19:07
Owned TM-games: TMUF

Re: Autosave replays

Post by PorschefanRoel » 23 Jun 2009 15:07

Nobody who has an idea?

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: Autosave replays

Post by w1lla » 23 Jun 2009 16:34

Code: Select all

102 AutoSaveReplays(boolean) boolean boolean Enable the autosaving of all replays (vizualisable replays with all players, but not validable) on the server. Only available to SuperAdmin. 

103 AutoSaveValidationReplays(boolean) boolean boolean Enable the autosaving on the server of validation replays, every time a player makes a new time. Only available to SuperAdmin. 

104 IsAutoSaveReplaysEnabled()  boolean Returns if autosaving of all replays is enabled on the server. 

105 IsAutoSaveValidationReplaysEnabled()  boolean Returns if autosaving of validation replays is enabled on the server. 

106 SaveCurrentReplay(string) string boolean Saves the current replay (vizualisable replays with all players, but not validable). pass a filename, or '' for an automatic filename. Only available to Admin. 

107 SaveBestGhostsReplay(string, string) string, string boolean Saves a replay with the ghost of all the players' best race. First parameter is the login of the player (or '' for all players), Second parameter is the filename, or '' for an automatic filename. Only available to Admin. 

108 GetValidationReplay(string) string base64 Returns a replay containing the data needed to validate the current best time of the player. 
 


Try to see what suits you best....

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

afisse
cyclist
cyclist
Posts: 48
Joined: 13 Jun 2009 11:54
Owned TM-games: TMUF

Re: Autosave replays

Post by afisse » 27 Jun 2009 15:36

Hi all

How to save with an automatic filename?
i tried
/admin call SaveCurrentReplay "
(2 simple quote, works but the filename is ")
/admin call SaveCurrentReplay ''
/admin call SaveCurrentReplay('')
/admin call SaveCurrentReplay(")
doesn't work
Thx all
Galaad, le chevalier au coeur pur

PorschefanRoel
sunday driver
sunday driver
Posts: 52
Joined: 19 Feb 2009 19:07
Owned TM-games: TMUF

Re: Autosave replays

Post by PorschefanRoel » 27 Jun 2009 19:04

w1lla wrote:

Code: Select all

102 AutoSaveReplays(boolean) boolean boolean Enable the autosaving of all replays (vizualisable replays with all players, but not validable) on the server. Only available to SuperAdmin. 

103 AutoSaveValidationReplays(boolean) boolean boolean Enable the autosaving on the server of validation replays, every time a player makes a new time. Only available to SuperAdmin. 

104 IsAutoSaveReplaysEnabled()  boolean Returns if autosaving of all replays is enabled on the server. 

105 IsAutoSaveValidationReplaysEnabled()  boolean Returns if autosaving of validation replays is enabled on the server. 

106 SaveCurrentReplay(string) string boolean Saves the current replay (vizualisable replays with all players, but not validable). pass a filename, or '' for an automatic filename. Only available to Admin. 

107 SaveBestGhostsReplay(string, string) string, string boolean Saves a replay with the ghost of all the players' best race. First parameter is the login of the player (or '' for all players), Second parameter is the filename, or '' for an automatic filename. Only available to Admin. 

108 GetValidationReplay(string) string base64 Returns a replay containing the data needed to validate the current best time of the player. 
 


Try to see what suits you best....
Till now the /admin call AutoSaveValidationReplays the best, only it only saves when the time gets improved, but he also ahs to save when he doesn't get improved, is that possible?

weerwolf1
smooth traffic navigator
smooth traffic navigator
Posts: 236
Joined: 08 May 2008 09:25
Owned TM-games: All but original
Location: The Netherlands

Re: Autosave replays

Post by weerwolf1 » 01 Jul 2009 08:19

I would suggest you let the server save it all, and permanent by setting this in the dedicated.cfg
1 replay file per track including all the ghosts of the
players at that time.
LYNX°°°° - Maniaplanet Gaming Community!
news | clan | community | & more
°°°°

User avatar
lgrfbs-sweden
smooth traffic navigator
smooth traffic navigator
Posts: 200
Joined: 15 Apr 2007 15:48
Owned TM-games: TMN
Location: Sweden
Contact:

Re: Autosave replays

Post by lgrfbs-sweden » 15 Jul 2009 22:55

Then I read this thread can I not find if all advice is for TMN or TMNF server, so what server will it work on?
Admin On:Image
My server:lgrfbs server / XASECO plugins
Image

weerwolf1
smooth traffic navigator
smooth traffic navigator
Posts: 236
Joined: 08 May 2008 09:25
Owned TM-games: All but original
Location: The Netherlands

Re: Autosave replays

Post by weerwolf1 » 16 Jul 2009 23:15

lgrfbs-sweden wrote:Then I read this thread can I not find if all advice is for TMN or TMNF server, so what server will it work on?
Both actually.
You will need united to watch untited replays ;)
LYNX°°°° - Maniaplanet Gaming Community!
news | clan | community | & more
°°°°

User avatar
lgrfbs-sweden
smooth traffic navigator
smooth traffic navigator
Posts: 200
Joined: 15 Apr 2007 15:48
Owned TM-games: TMN
Location: Sweden
Contact:

Re: Autosave replays

Post by lgrfbs-sweden » 15 Aug 2009 23:48

Code: Select all

/admin call AutoSaveReplays true
/admin call AutoSaveReplays 1
This is the feedback from server:
Method error for AutoSaveReplays [-506] Method 'AutoSaveReplays' not defined
Ware shall I defined this or do I somthing wrong?

The server is at TMN, the server bin is from May 30 2006 if it helps.
Admin On:Image
My server:lgrfbs server / XASECO plugins
Image

Xymph
Pit Crew
Pit Crew
Posts: 5706
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: Autosave replays

Post by Xymph » 16 Aug 2009 10:07

lgrfbs-sweden wrote:This is the feedback from server:
Method error for AutoSaveReplays [-506] Method 'AutoSaveReplays' not defined
Ware shall I defined this or do I somthing wrong?

The server is at TMN, the server bin is from May 30 2006 if it helps.
Yeah, duh. That old server doesn't have much replay support, apart from GetValidationReplay, as per ListMethodsNations.html in XAseco's DOCS directory. AutoSaveReplays is for TMF. Check my Methods site for all differences between TMN and TMF.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

User avatar
lgrfbs-sweden
smooth traffic navigator
smooth traffic navigator
Posts: 200
Joined: 15 Apr 2007 15:48
Owned TM-games: TMN
Location: Sweden
Contact:

Re: Autosave replays

Post by lgrfbs-sweden » 16 Aug 2009 15:24

Thanks GOD, whats up with "Yeah, duh." all can not sit on the answer, so I ask.
I are glad you even answer on my question, have look at the site and you miss a comparison: TMNF<->TMF or are I seting me up for a new "Yeah, duh." ?

I try the command after weerwolf1 answer indicate that it could work, but now I know my server is to old.
Admin On:Image
My server:lgrfbs server / XASECO plugins
Image

Xymph
Pit Crew
Pit Crew
Posts: 5706
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: Autosave replays

Post by Xymph » 16 Aug 2009 15:59

lgrfbs-sweden wrote:have look at the site and you miss a comparison: TMNF<->TMF or are I seting me up for a new "Yeah, duh." ?
Yeah, because TMF == TMNF & TMUF, there's no difference in methods between them. And the duh is because you've been around long enough to know there are big differences between classic TMN and TMF. :P
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

Post Reply