RegisterRegister    Log inLog in    SearchSearch   

Post new topic   Reply to topic
 
View previous topic :: View next topic  
Author Message
Kybber



PostPosted: Wed Jan 21, 2009 7:28 pm    Post subject: BUG: Trackmania Forever in Linux. GC changes " to _ ? Reply with quote

I just experienced that GC failed to start TMF-servers in Linux. The exact same
configs worked in Windows, and I was even able to start servers manually
from the command line using the exact same start command as reported
in the gamecreate.log:

Code:
Wed Jan 21 10:09:18 2009: Launching process: /home/xxx/games/GameCreate-xxx/trackmaniaforever/TrackmaniaServer /nodaemon /internet /game_settings="MatchSettings\Tracks21000.txt" /dedicated_cfg=config21000.cfg from directory /home/xxx/games/GameCreate-xxx/trackmaniaforever


According to the console logs in the Logs-directory, this was the problem:
Code:
[2009/01/21 10:09:18] Match settings file : _MatchSettings\Tracks21000.txt_
[2009/01/21 10:09:18] Loading match settings...
[2009/01/21 10:09:18] ...ERROR: The playlist file does not exist.
...Could not load the match settings
[2009/01/21 10:09:18] Server not started: no Challenges available. Check your matchsettings!

I tried to replicate this error by starting TMF from the commandline with a
non-existing file, and the resulting log did not include the _'s around the file-
name. This led me to believe that GC somehow replaces the "s in the
commandline with _'s. I therefore went ahead and changed the commandline
from the default
Code:
/nodaemon /internet /game_settings="MatchSettings\Tracks%server:port%.txt" /dedicated_cfg=config%server:port%.cfg

to this, which worked nicely:
Code:
/nodaemon /internet /game_settings=MatchSettings\/Tracks%server:port%.txt /dedicated_cfg=config%server:port%.cfg


Can you please look into how GC treats the "-signs on the executed command-
line? Perhaps there is an escape missing somewhere in the code?

This is using the 5.2.4 client.

Edit: A TMF expert has advised me that /internet is a deprecated option
that is no longer necessary.


Last edited by Kybber on Thu Jan 22, 2009 9:20 am; edited 1 time in total
Back to top
View user's profile Send private message
adbot



PostPosted: Thu Mar 31, 2011 3:57 am 

Andrew
Mammoth


PostPosted: Thu Jan 22, 2009 8:20 am    Post subject: Reply with quote

I ran a few tests, and it appears GC Client for linux launches the game with a slightly different argument set when launched from a shell and when launched from the client itself.

Here's a few examples that I tested against:

Quote:

/game_settings="MatchSettings\Tracks21000.txt" /dedicated_cfg=config21000.cfg
GSMC:
Arg: /game_settings="MatchSettings\Tracks21000.txt"
Arg: /dedicated_cfg=config21000.cfg

Shell:
Arg: /game_settings=MatchSettings\Tracks21000.txt
Arg: /dedicated_cfg=config21000.cfg

/game_settings="MatchSettings\T racks21000.txt" /dedicated_cfg=config21000.cfg
GSMC:
Arg: /game_settings="MatchSettings\T
Arg: racks21000.txt"
Arg: /dedicated_cfg=config21000.cfg

Shell:
Arg: /game_settings=MatchSettings\T racks21000.txt
Arg: /dedicated_cfg=config21000.cfg

/game_settings=\"MatchSettings\T racks21000.txt\" /dedicated_cfg=config21000.cfg
GSMC:
Arg: /game_settings=\"MatchSettings\T
Arg: racks21000.txt\"
Arg: /dedicated_cfg=config21000.cfg

Shell:
Arg: /game_settings="MatchSettingsT
Arg: racks21000.txt"
Arg: /dedicated_cfg=config21000.cfg


So you can see the differences quotes appear to make in the command line when launched from the shell vs. client launching the program, I've noted this down as a problem but no ETA.

For now I think you should just use your workaround until this is corrected.
Back to top
View user's profile Send private message
shade



PostPosted: Sat Jan 31, 2009 8:17 am    Post subject: Reply with quote

Didn't I say this ages ago?

gp wrote:
Nevermind, fixed it. I took the "'s out of the launch command, for some reason it was executing these as _'s, and not loading the tracklist


my launch command:

Code:
/nodaemon /internet /game_settings=MatchSettings\Tracks%server:port%.txt /dedicated_cfg=config%server:port%.cfg
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum powered by phpBB © 2001, 2005 phpBB Group
GameCreate Service Terms | Privacy Policy | © Copyright Mammoth Media 2001-2007
GameCreate™ is a trademark of Mammoth Media Pty Ltd. GameCreate® is a registered trademark in Australia.