Tut: Automatically save matchsettings/tracklist (XASECO)

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

Moderators: Xymph, TM-Patrol

Post Reply
User avatar
lille79
Pit Crew
Pit Crew
Posts: 881
Joined: 09 Dec 2007 15:04
Owned TM-games: TMN, TMNF, TMUF
Location: Norway
Contact:

Tut: Automatically save matchsettings/tracklist (XASECO)

Post by lille79 » 09 Oct 2010 17:01

This is a tutorial for those who want their current match-settings/tracklist to be saved, so that when they start their server they get the same maps and settings as when they last used it. (Beware that it will only save the match-settings when you go from one map to the next, so if you add a map and shut down the server before doing a track change, your last changes won't be saved)

First things first, so let's start at the beginning. When running a TMF-server, there are two files that are important when you start it. The two files are:
- A dedicated configuration file, placed in the folder \GameData\Config\ - often named dedicated_cfg.txt
- A match settings file, normally placed in the \Tracks\MatchSettings\ - let's call it auto_matchsetting.txt in this tutorial

A typical startup-script will then look something like this:

Code: Select all

TrackmaniaServer.exe /dedicated_cfg=dedicated_cfg.txt /game_settings=MatchSettings/auto_matchsetting.txt
The idea now is to make XASECO automatically save your current matchsettings to the MatchSettings-file you use in your startup-script.
When running XASECO, there is a feature that saves the MatchSettings-file everytime you go from one track to the next. To get this working we must edit one file in your XASECO-folder:
- \includes\rasp.settings.php

Find line 62, where it says:

Code: Select all

$autosave_matchsettings = '';  // e.g. 'autosave.txt'
...and change it to:

Code: Select all

$autosave_matchsettings = 'auto_matchsetting.txt';
In addition, make this change so that you can use the command: /admin writetracklist
In the XASECO-folder, in the config.xml-file, find line that says <default_tracklist>tracklist.txt</default_tracklist>, and change it to:

Code: Select all

<default_tracklist>auto_matchsetting.txt</default_tracklist>
Save your config.xml-file and rasp.settings.php-file, and restart your server (if you've changed any filenames) and restart XASECO.

And that's all you have to do.

If anyone can see errors or have tips to making this better, please let me know :D :thumbsup:
/lille79
Old man of the Norwegian Trackmania team Super Sheep Racing
To visit my homepage/blog, and download the usbTMFserver, this is the place to go.

jouko100
speedy pilot
speedy pilot
Posts: 375
Joined: 10 Mar 2007 09:33
Location: finland

Re: Tut: Automatically save matchsettings/tracklist (XASECO)

Post by jouko100 » 09 Oct 2010 18:31

removed
Last edited by jouko100 on 10 Oct 2010 08:07, edited 2 times in total.

User avatar
lille79
Pit Crew
Pit Crew
Posts: 881
Joined: 09 Dec 2007 15:04
Owned TM-games: TMN, TMNF, TMUF
Location: Norway
Contact:

Re: Tut: Automatically save matchsettings/tracklist (XASECO)

Post by lille79 » 09 Oct 2010 19:40

removed
Last edited by lille79 on 10 Oct 2010 13:38, edited 1 time in total.
/lille79
Old man of the Norwegian Trackmania team Super Sheep Racing
To visit my homepage/blog, and download the usbTMFserver, this is the place to go.

User avatar
TheM
Pit Crew
Pit Crew
Posts: 286
Joined: 25 Feb 2009 16:43
Owned TM-games: TMU(F), TMN(F), TM2
Location: Brabant, Netherlands
Contact:

Re: Tut: Automatically save matchsettings/tracklist (XASECO)

Post by TheM » 09 Oct 2010 20:00

jouko100 wrote:something like this .Not tested
Don't know what you want to do with this code . . .
This is about a RASP function in XAseco.

darkrifle
wheelbarrow operator
wheelbarrow operator
Posts: 22
Joined: 06 Oct 2010 15:13
Owned TM-games: TMNF

Re: Tut: Automatically save matchsettings/tracklist (XASECO)

Post by darkrifle » 10 Oct 2010 10:03

Good tut!

User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: Tut: Automatically save matchsettings/tracklist (XASECO)

Post by Knutselmaaster » 11 Oct 2010 21:50

Been doing this for years now, it works perfectly.

ccx
sunday driver
sunday driver
Posts: 56
Joined: 07 Feb 2009 22:41
Owned TM-games: TMUF

Re: Tut: Automatically save matchsettings/tracklist (XASECO)

Post by ccx » 27 Sep 2011 15:09

Thx m8,

but what about this line in 'config.xml' ?

Code: Select all

<default_tracklist>tracklist.txt</default_tracklist>
Does it become obsolete, or be changed as

Code: Select all

<default_tracklist>auto_matchsetting.txt</default_tracklist>
??

And BTW, is there a setting to shuffle the maps automatically when Xaseco starts ? (So without having to manually type '/admin shufflemaps').

Regards,

ccx.

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

Re: Tut: Automatically save matchsettings/tracklist (XASECO)

Post by Xymph » 27 Sep 2011 15:41

ccx wrote:but what about this line in 'config.xml' ?

Code: Select all

<default_tracklist>tracklist.txt</default_tracklist>
Does it become obsolete, or be changed as

Code: Select all

<default_tracklist>auto_matchsetting.txt</default_tracklist>
?
Yep, that should be changed too then.
ccx wrote:And BTW, is there a setting to shuffle the maps automatically when Xaseco starts ? (So without having to manually type '/admin shufflemaps').
No, but it can be done by the dedicated when it (re)starts by setting <filter><random_map_order> to 1.
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