Page 1 of 1

Linux directory error in newest spring from GIT

Posted: 10 Feb 2010, 13:49
by jepperc
Hi. After downloading and compiling the newest spring (without error), I get an error message when trying to run it..

Code: Select all

Content error: Error: datadir specified with relative path: " /home/d513a/.spring/"
It is obvious that this is because of the space in front of the path, as this is checked in the code in DataDirLocater.cpp (the path should start with a /). I just can't seem to find out why this space is there.
My $HOME is without this space when I echo it in the terminal, and it worked fine before updating. I can see some changes have been made in this area recently, so maybe an error somewhere?

//Jeppe

Re: Linux directory error in newest spring from GIT

Posted: 10 Feb 2010, 14:14
by hoijui
... having a look at the code ...

edit:
or better: give us the command you use to compile spring.

Re: Linux directory error in newest spring from GIT

Posted: 10 Feb 2010, 14:35
by jepperc
hoijui wrote:... having a look at the code ...

edit:
or better: give us the command you use to compile spring.
I just do the following:
cmake .
make
sudo make install

then I run spring with spring script.txt, where script is taken from a springlobby game
in other words, I do nothing special.

Edit:
just saw the following

Code: Select all

using default configuration source "/home/d513a/.springrc"
[CMyMath::Init] CPU SSE mask: 124, flags:
	SSE 1.0:  1,  SSE 2.0:  1
	SSE 3.0:  1, SSSE 3.0:  1
	SSE 4.1:  0,  SSE 4.2:  0
	SSE 4.0A: 0,  SSE 5.0A: 0
	using streflop SSE FP-math mode, CPU supports SSE instructions
OS: Linux
OS: 32bit native mode
Content error: Error: datadir specified with relative path: " /home/d513a/.spring/"
So at first it doesn't have the space?

Re: Linux directory error in newest spring from GIT

Posted: 10 Feb 2010, 14:55
by hoijui
hmm :/ ok
yeah that should work of course.

do you use /usr/local/games/bin/spring (the self compiled one) then? cause i guess you also have /usr/games/bin/spring.

my best bet currently is, that you have it defined yourself somewhere with a path, as the spring internal one:
AddDirs(SubstEnvVars("$HOME/.spring"));
looks non-bugged.
(i should have though on that first actually ;-) )

check your /etc/spring/datadir file if you have one, and in ~/.springrc, look for SpringData.

Re: Linux directory error in newest spring from GIT

Posted: 10 Feb 2010, 14:59
by hoijui
ah yeah, forgot to say:
of you have something in there.. it is better to delete it, instead of setting it to ~/.spring, as this dir is always added automatically anyway

Re: Linux directory error in newest spring from GIT

Posted: 10 Feb 2010, 15:28
by jepperc
Ok, both those existed, and had the correct path. Deleting them removed the error though :)

But I then get a new error (yay) .. it now can't load the map

Code: Select all

Content error: Couldn't load archive 'wuhu.smf' for map 'Wuhu.smf'.
Changing the casing in the script file doesnt help :/
Also double checked the map and mod hash in the script file. Any ideas?

Re: Linux directory error in newest spring from GIT

Posted: 10 Feb 2010, 16:09
by hoijui
i found the bug, fixed with this:
http://github.com/spring/spring/commit/ ... 39333b8acf
thanks! ;-)

about the thing with the map..
i do not know much about that part, but looking at the code, it seems like the archive simply could not be read. is it there? is it the only map that fails? does it work if you open it with zip?

Re: Linux directory error in newest spring from GIT

Posted: 11 Feb 2010, 09:11
by jepperc
3 maps tried, all fails. They are all there :P tried one of them in zip, works fine. Very weird :/ The funny thing is that it works if I just start up spring, and choose a map in there.. but not through springlobby.

Re: Linux directory error in newest spring from GIT

Posted: 11 Feb 2010, 12:51
by jepperc
I just did a complete reinstall (in a virtual machine) of ubuntu and then compiled spring.. still get this error.
I see that Auswaschbar rewrote all of this just 2 days ago, so maybe we should get him to take a look at it? :)

Re: Linux directory error in newest spring from GIT

Posted: 11 Feb 2010, 13:23
by Auswaschbar
Works for me. What maps did you tried (never heard of a wuhu map)?

Re: Linux directory error in newest spring from GIT

Posted: 11 Feb 2010, 13:44
by jepperc
it's a homemade map.. also tried adamantine_mountain and tropical. I just dont get it..