Dedicated server for TMF, version 2009-05-04

This is the place where you can find everything related to the dedicated server, control scripts and community tools.

Moderators: Pit Crew, TM-Patrol

xbx
Developer
Developer
Posts: 452
Joined: 12 Aug 2005 14:42
Contact:

Dedicated server for TMF, version 2009-05-04

Post by xbx » 12 May 2009 14:12

Hello!

Dedicated server for TMF, version 2009-05-04
You can download it from
http://files2.trackmaniaforever.com/Tra ... -05-04.zip
or
http://files2.trackmaniaforever.com/Tra ... -05-04.tgz

(both contain the same files, and windows and linux executable.)

Changes:
  • fix SaveBestGhostsReplay() to behave as it should. (that is only saving the players replay when a login is given, and saving all the replays when no login is given)
  • return to previous behaviour when saving a replay with an explicit filename (ie, don't put it in a subdirectory with the server name).
  • update server coppers when a transaction is paid.
  • (!) fixed an issue (introduced in 2008-12-05) with players getting banned in LAN mode at first connection. (the generated unique lan logins are now "name_1.2.3.4_2350" instead of "name/1.2.3.4:2350")
  • fixed the ladder limits that were sometimes being reset to the default values by the master server.
  • On a relay server, trying to xxxToLogin() to a player from the main server will now return an error message (instead of silently failing)
  • (!) GetCurrentChallengeInfo() now returns NbLaps and NbCheckpoints of the track as well, as do the BeginRace()... callbacks (nblaps as defined in the challenge, not as defined by the current server settings)
  • xxxToLogin() methods now accept a comma-separated list of logins as well. ie: ChatSendToLogin("hello", "player1, player2")
  • When a track is added, it is now tested against the next game mode (instead of the current mode) --> it is now possible to switch to laps or stunts mode by using LoadMatchSettings() without restarting the server.
  • Various improvements to GbxRemote.inc.php.
  • rare bug in team mode when a player finish was being ignored by the server but taken into account by the xml-rpc clients.
  • some more coherence check to detect most common cheats.
  • (!) new callbacks: BeginChallenge() and EndChallenge() that are called around the BeginRace() / EndRace() sequence, to simplify code dealing with the warm-up phase.
  • fixed a bug with number of spectators on relay servers.
  • fixed a bug with the tunnel and relay servers.
(!) marks changes that may affect compatibility with some strict xml-rpc scripts.

User avatar
hal|Sascha
Pit Crew
Pit Crew
Posts: 671
Joined: 12 Aug 2005 16:22
Owned TM-games: TMU, TMN, TMS, TMO
Location: Germany Munich
Contact:

Re: Dedicated server for TMF, version 2009-05-04

Post by hal|Sascha » 12 May 2009 14:27

So now the callbacks if server is running with WarmUp is like the following:
A. WarmUp
A.1. BeginChallenge()
A.2. BeginRace()
A.3. EndRace()
B. Race
B.1. BeginRace()
B.2. EndRace()
B.3. EndChallenge()

I may be right, but could you confirm please? :oops:
And is there a length limit for the comma-seperated list of logins? I believe passing hundrets of logins wont work, but it would shrink the xml-rpc call size :)

Nice update anyway, thx :)
CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness

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

Re: Dedicated server for TMF, version 2009-05-04

Post by Xymph » 12 May 2009 14:36

hal|Sascha wrote:So now the callbacks if server is running with WarmUp is like the following:
A. WarmUp
A.1. BeginChallenge()
A.2. BeginRace()
A.3. EndRace()
B. Race
B.1. BeginRace()
B.2. EndRace()
B.3. EndChallenge()

I may be right, but could you confirm please?
That is correct, this change was made on Slig's and my request to be able to better handle things like a jukebox and other events that should only happen at a track switch, even when you're skipping to the next track during warmup for instance.

I recently updated the callbacks monitoring script in the RPC utilities to handle the new ones correctly.
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

xbx
Developer
Developer
Posts: 452
Joined: 12 Aug 2005 14:42
Contact:

Re: Dedicated server for TMF, version 2009-05-04

Post by xbx » 12 May 2009 15:08

hal|Sascha wrote: I may be right, but could you confirm please?
correct, as xymph confirmed.
hal|Sascha wrote: And is there a length limit for the comma-seperated list of logins? I believe passing hundrets of logins wont work, but it would shrink the xml-rpc call size :)
There's no specific hard coded limit, so I guess a hundred could work, if it fits in an xml-rpc message.
but I didn't stress test it that much, so maybe some hidden issue will appear?

Scordo
cyclist
cyclist
Posts: 46
Joined: 01 Feb 2009 00:22
Owned TM-games: TMU

Re: Dedicated server for TMF, version 2009-05-04

Post by Scordo » 12 May 2009 16:35

xbx wrote:
hal|Sascha wrote: I may be right, but could you confirm please?
correct, as xymph confirmed.
hal|Sascha wrote: And is there a length limit for the comma-seperated list of logins? I believe passing hundrets of logins wont work, but it would shrink the xml-rpc call size :)
There's no specific hard coded limit, so I guess a hundred could work, if it fits in an xml-rpc message.
but I didn't stress test it that much, so maybe some hidden issue will appear?
I've already tested this 1 weeks ago with 150 logins (always the same login). It works without problems.
Debuggers don't remove bugs, they only show them in slow motion

>> Help me and contribute to: TMSPS <<

User avatar
gery
pedestrian
pedestrian
Posts: 14
Joined: 30 Dec 2005 19:09
Owned TM-games: all
Manialink(s): gery
Location: france
Contact:

Re: Dedicated server for TMF, version 2009-05-04

Post by gery » 12 May 2009 17:50

I would like to test the version but it crashes directly after "Listening for xml-rpc commands" without a message and don't wait for command

my command line is
TrackmaniaServer.exe /dedicated_cfg=dedicated_gery.txt /game_settings=MatchSettings/gery_tmu.txt /noautoquit

I have just replaced the old TrackmaniaServer.exe by the new one.

here the log:
[2009/05/12 19:40:32] Initializing...
[2009/05/12 19:40:32] Configuration file : dedicated_gery.txt
[2009/05/12 19:40:32] Loading system configuration...
[2009/05/12 19:40:32] ...system configuration loaded
[2009/05/12 19:40:32] Loading cache...
[2009/05/12 19:40:32] ...OK
[2009/05/12 19:40:32] Listening for xml-rpc commands on port 5001.

I have tested differents matchsettings files but same result.
Last edited by gery on 12 May 2009 22:23, edited 3 times in total.

User avatar
jimos94
happy cruiser
happy cruiser
Posts: 122
Joined: 06 Jan 2007 22:52
Owned TM-games: TMUF
Manialink(s): fun
Contact:

Re: Dedicated server for TMF, version 2009-05-04

Post by jimos94 » 12 May 2009 20:49

That's that i wanted to ask. If i replace the .exe file with the new dedicated's one am i done?
http://www.tm-planet.net/ Server hosting, Interviews, Events and more :)

User avatar
blooper
happy cruiser
happy cruiser
Posts: 144
Joined: 11 Oct 2007 23:47
Owned TM-games: TMUF
Location: Minnesota, USA

Re: Dedicated server for TMF, version 2009-05-04

Post by blooper » 12 May 2009 21:19

jimos94 wrote:That's that i wanted to ask. If i replace the .exe file with the new dedicated's one am i done?
Yep, that should do it. Of course, you'll have to shut down your TM server before you replace it and start it back up afterwards.

Shouldn't this be stickied in place of the old topic?

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

Re: Dedicated server for TMF, version 2009-05-04

Post by Xymph » 12 May 2009 22:03

blooper wrote:Shouldn't this be stickied in place of the old topic?
These release posts by xbx were never sticked, but I guess Slig hadn't gotten around to updating the announcement post, so I did that just now.
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
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: Dedicated server for TMF, version 2009-05-04

Post by Slig » 12 May 2009 22:22

Xymph wrote:Slig hadn't gotten around to updating the announcement post, so I did that just now.
thx xymph :thumbsup:

ЭΛ Ğ尺乇ÇØ
sunday driver
sunday driver
Posts: 67
Joined: 22 Mar 2009 05:42
Owned TM-games: faadfad

Re: Dedicated server for TMF, version 2009-05-04

Post by ЭΛ Ğ尺乇ÇØ » 13 May 2009 10:55

It will have new game patch version 2.11.19 to 2.11.21 ?

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

Re: Dedicated server for TMF, version 2009-05-04

Post by Xymph » 13 May 2009 11:07

ЭΛ Ğ尺乇ÇØ wrote:It will have new game patch version 2.11.19 to 2.11.21 ?
There are not going to be client patches for this version.
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

xbx
Developer
Developer
Posts: 452
Joined: 12 Aug 2005 14:42
Contact:

Re: Dedicated server for TMF, version 2009-05-04

Post by xbx » 13 May 2009 15:06

gery wrote:I would like to test the version but it crashes directly after "Listening for xml-rpc commands" without a message and don't wait for command
that's strange...
I could use the crashlog.txt file that should have been created next to the exe.

User avatar
gery
pedestrian
pedestrian
Posts: 14
Joined: 30 Dec 2005 19:09
Owned TM-games: all
Manialink(s): gery
Location: france
Contact:

Re: Dedicated server for TMF, version 2009-05-04

Post by gery » 13 May 2009 17:01

sorry but there is no LogCrash_xxx.txt file in logcrash directory,
I only find a ConsoleLog.xxx.txt in logs directory containing that
[2009/05/13 00:48:03] Initializing...
[2009/05/13 00:48:04] Configuration file : dedicated_gery.txt
[2009/05/13 00:48:04] Loading system configuration...
[2009/05/13 00:48:04] ...system configuration loaded
[2009/05/13 00:48:04] Loading cache...
[2009/05/13 00:48:04] ...OK
[2009/05/13 00:48:04] Listening for xml-rpc commands on port 5001.

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: Dedicated server for TMF, version 2009-05-04

Post by Slig » 13 May 2009 18:29

gery wrote:sorry but there is no LogCrash_xxx.txt file in logcrash directory,
I only find a ConsoleLog.xxx.txt in logs directory containing that
I think that it is not supposed to be in Logs/ but in main dir.

Btw, did you tried with another matchsettings ? with another config file ? (keep both actual in case it would be their fault, so xbx will have a chance to try them). Is it a 32 or 64 bit windows ? What is shown in the console ? Did you tried the exactly same dedicated config on another computer ? Did you tried to empty the cache ?

Post Reply