Page 1 of 1

Linux spring client menu choices doesn't work?!

Posted: 09 Apr 2006, 18:55
by nicke
When i have been building spring from the latest source code tree for the last two weeks i have not been able to
start spring standalone ./spring and and start a map from the menu choices such as (Commanders, Random enemies, etc.) however it works with my aiscripts so all data files are where they should be.

I receive the following message when trying to run a 'Random Enemies" on "SmallDivide" map and usually when i have received these messages something has been wrong with the provided mod och map path.

ERROR: button9.wav
Couldnt open wav file
rts/System/Platform/Linux/OpenALSound.cpp:300 : ALuint COpenALSound::LoadALBuffer(const std::string&)
Info: Fatal Error
file Armor.txt not found


I made a grep in the svn source code tree and found these suspicious paths..? from what i have seen there should be a'/' instead of '\\' ???
------------------------------------------------
rts/Rendering/Env/DynWater.cpp: CBitmap bm("bitmaps\\boatshape.bmp");
rts/Rendering/Env/DynWater.cpp: CBitmap bm2("bitmaps\\hovershape.bmp");

rts/build/scons/filelist.py: source += [os.path.join(env['builddir'], 'rts\\System\\Platform\\Linux\\OpenALSound.cpp')]
rts/build/scons/filelist.py: source += ['rts\\System\\Platform\\Linux\\OpenALSound.cpp']


and i found several instances of:
rts/System/TdfParser.cpp: searchpath += '\\';

/Nicklas

Posted: 09 Apr 2006, 19:08
by jcnossen
Missing armor.txt is the symptom of a missing mod file. You probably have no "xtape.sd7" in your mods directory.
The linux datafiles are out of date...

Posted: 10 Apr 2006, 08:37
by nicke
Yes, that was it :-) I had a XTAPEv5.sd7 so i only symlinked it to xtape.sd7, but seriously..couldn't the error messages be better?

Could someone please take a quick look at the windows path definitons i found and see if they affect the linux client in some way?

Re: Linux spring client menu choices doesn't work?!

Posted: 10 Apr 2006, 08:41
by Tobi
nicke wrote: I made a grep in the svn source code tree and found these suspicious paths..? from what i have seen there should be a'/' instead of '\\' ???
------------------------------------------------
rts/Rendering/Env/DynWater.cpp: CBitmap bm("bitmaps\\boatshape.bmp");
rts/Rendering/Env/DynWater.cpp: CBitmap bm2("bitmaps\\hovershape.bmp");
This one could be a bug in the new dynamic water renderer from SJ. I'll look at it some time if no one else has done that by that time.
rts/build/scons/filelist.py: source += [os.path.join(env['builddir'], 'rts\\System\\Platform\\Linux\\OpenALSound.cpp')]
rts/build/scons/filelist.py: source += ['rts\\System\\Platform\\Linux\\OpenALSound.cpp']
These are normal. On Linux, OpenALSound.cpp is automagically included and this code is there to inlude it on MinGW (windows) too, hence the backslashes.
and i found several instances of:
rts/System/TdfParser.cpp: searchpath += '\\';

/Nicklas
These are normal too, the TdfParser uses backslashes internally to separate sections in the config file.

Posted: 10 Apr 2006, 12:03
by nicke
Ok..tnx =) 1 out of three, path conversions always seems to be a problem in a mixed win/lin environment.