Linux directory error in newest spring from GIT

Linux directory error in newest spring from GIT

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
jepperc
AI Developer
Posts: 13
Joined: 11 Oct 2009, 19:05

Linux directory error in newest spring from GIT

Post 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
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Linux directory error in newest spring from GIT

Post by hoijui »

... having a look at the code ...

edit:
or better: give us the command you use to compile spring.
jepperc
AI Developer
Posts: 13
Joined: 11 Oct 2009, 19:05

Re: Linux directory error in newest spring from GIT

Post 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?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Linux directory error in newest spring from GIT

Post 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.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Linux directory error in newest spring from GIT

Post 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
jepperc
AI Developer
Posts: 13
Joined: 11 Oct 2009, 19:05

Re: Linux directory error in newest spring from GIT

Post 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?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Linux directory error in newest spring from GIT

Post 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?
jepperc
AI Developer
Posts: 13
Joined: 11 Oct 2009, 19:05

Re: Linux directory error in newest spring from GIT

Post 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.
jepperc
AI Developer
Posts: 13
Joined: 11 Oct 2009, 19:05

Re: Linux directory error in newest spring from GIT

Post 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? :)
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Linux directory error in newest spring from GIT

Post by Auswaschbar »

Works for me. What maps did you tried (never heard of a wuhu map)?
jepperc
AI Developer
Posts: 13
Joined: 11 Oct 2009, 19:05

Re: Linux directory error in newest spring from GIT

Post by jepperc »

it's a homemade map.. also tried adamantine_mountain and tropical. I just dont get it..
Post Reply

Return to “Help & Bugs”