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

Autosave replays

Post by PorschefanRoel » 18 Jun 2009 10:35

Is it possible to let a server autosave all replays of the players.

Would be very usefull to create an xK Project.

Thx in advantage,
PorschefanRoel

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

Re: Autosave replays

Post by Xymph » 18 Jun 2009 13:13

PorschefanRoel wrote:Is it possible to let a server autosave all replays of the players.
Try the AutoSaveReplays method, which you can call with the /admin call command. Read/search the available documentation in XAseco's /DOCS/ directory before posting please.
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 » 19 Jun 2009 07:47

Xymph wrote:
PorschefanRoel wrote:Is it possible to let a server autosave all replays of the players.
Try the AutoSaveReplays method, which you can call with the /admin call command. Read/search the available documentation in XAseco's /DOCS/ directory before posting please.
If I do that I get the message: You don't have the required admin rights to do that.
while other commands like /admin clb do work.

also I can't find the command /admin call in XAseco/DOCS

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

Re: Autosave replays

Post by Xymph » 19 Jun 2009 08:37

PorschefanRoel wrote:
Xymph wrote:Try the AutoSaveReplays method, which you can call with the /admin call command. Read/search the available documentation in XAseco's /DOCS/ directory before posting please.
If I do that I get the message: You don't have the required admin rights to do that.
Only MasterAdmins can use it. If you didn't configure yourself to be masteradmin of your own server, you're not done configuring yet.
PorschefanRoel wrote:also I can't find the command /admin call in XAseco/DOCS
Then you didn't read/search the v1.02 release notes. :roll:
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 » 19 Jun 2009 15:15

What have I done wrong in the code?:
Image

my account is porschefanroel2

Lambda
happy cruiser
happy cruiser
Posts: 131
Joined: 22 Feb 2009 22:03
Owned TM-games: TMU+F, TM²C

Re: Autosave replays

Post by Lambda » 19 Jun 2009 15:54

There is no MasterAdmins, only Admins and Operators. And you are Admin.
MasterAdmins is in config.xml.

bmandk
smooth traffic navigator
smooth traffic navigator
Posts: 204
Joined: 16 May 2008 20:57
Owned TM-games: TMNF, TMUF

Re: Autosave replays

Post by bmandk » 19 Jun 2009 17:05

That you wrote there is just the titles... Masteradmin should just be MasterAdmin and Admin, admin and user, user... You change your masteradmin in the config.xml

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 13:26

Ok, fixed it.
Everything is how it should be now.
I'm masteradmin.
But what do I have to type after /admin call, if I do /admin call list, I get a whole list of commands, but whichone do I have to use to let the server autosave all the replays of the players?

If I do, /admin call AutoSaveReplays I get the message
Method error forAutoSaveReplays:[-502]Not enough items in array

bmandk
smooth traffic navigator
smooth traffic navigator
Posts: 204
Joined: 16 May 2008 20:57
Owned TM-games: TMNF, TMUF

Re: Autosave replays

Post by bmandk » 20 Jun 2009 16:14

With the command /admin call AutoSaveReplays. And its case sensetive like i spelled it there

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 16:37

I typed it right, still get the message, when I type it different I also get an different error.

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

Re: Autosave replays

Post by Xymph » 20 Jun 2009 16:50

PorschefanRoel wrote:If I do, /admin call AutoSaveReplays I get the message
Method error forAutoSaveReplays:[-502]Not enough items in array
Obviously, you have to supply the parameter as specified in the methods list, in this case a boolean.
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 17:12

Xymph wrote:
PorschefanRoel wrote:If I do, /admin call AutoSaveReplays I get the message
Method error forAutoSaveReplays:[-502]Not enough items in array
Obviously, you have to supply the parameter as specified in the methods list, in this case a boolean.
Don't exactly know what you mean, but I can find this commant in the ListMethodsForever.html file, this is wat i saw in it:

<li><b>AutoSaveReplays</b><br/>
boolean AutoSaveReplays(boolean)<br/>

What do I have to do with it?

Lambda
happy cruiser
happy cruiser
Posts: 131
Joined: 22 Feb 2009 22:03
Owned TM-games: TMU+F, TM²C

Re: Autosave replays

Post by Lambda » 20 Jun 2009 18:49

In dedicated_cfg.txt

Code: Select all

<autosave_replays>False</autosave_replays>
set to

Code: Select all

<autosave_replays>True</autosave_replays>

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 19:45

Ok, I changed it, but I still get the same error message.

Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

Re: Autosave replays

Post by Assembler Maniac » 20 Jun 2009 20:04

Try
/admin call AutoSaveReplays true OR 1 (not sure which will work)

Post Reply