specify data directories using absolute paths please

specify data directories using absolute paths please

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

User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

specify data directories using absolute paths please

Post by anterak »

Hello,
I run opensuse linux (x86_64), i install spring with accAgon packages, it run fine but since 3 days, after uptdate to 0.80.5.2, it doesn 't work...
This is what i hahe to launch spring :
> spring
using default configuration source "/home/AnteraK/.springrc"
[CMyMath::Init] CPU SSE mask: 126, flags:
SSE 1.0: 1, SSE 2.0: 1
SSE 3.0: 1, SSSE 3.0: 1
SSE 4.1: 1, 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: 64bit native mode
Content error: specify data directories using absolute paths please
My .springrc is
Fullscreen=1
WindowPosX=32
WindowPosY=32
WindowState=0
XResolution=1024
YResolution=768
SpringData= /home/AnteraK/.spring ; /usr/share/games/spring
Can y help me !
thanks
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: specify data directories using absolute paths please

Post by aegis »

spaces?
User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

Re: specify data directories using absolute paths please

Post by anterak »

nope, i try with only one path, with coma, ' , " , ` ... i doesn't work,

is there someone who can copy his own .springrc ?
User avatar
momfreeek
Posts: 625
Joined: 29 Apr 2008, 16:50

Re: specify data directories using absolute paths please

Post by momfreeek »

Code: Select all

SpringData= /home/AnteraK/.spring ; /usr/share/games/spring
no
SpringData= /home/AnteraK/.spring;/usr/share/games/spring
no
SpringData=/home/AnteraK/.spring;/usr/share/games/spring
yes
?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: specify data directories using absolute paths please

Post by Auswaschbar »

Seperate paths with a colon: ":"
User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

Re: specify data directories using absolute paths please

Post by anterak »

i try with only one path, with 2 paths with :,; ... and it seems springData line is not read by spring . I don't know what happen ! spring will work for months and months until 3 days ago (last update to 80.2.5 it seems)
Is anybody have an idea i will take it .
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: specify data directories using absolute paths please

Post by Auswaschbar »

Checked /etc/spring/datadir file?
User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

Re: specify data directories using absolute paths please

Post by anterak »

no, there is no /etc/spring/datadir files . i m afraid that the opensuse's pakager have make mistake on the last build. can y know how to join AccAgon ?


edit : no, i build my own spring from source, and same mistakes occures.
I dont understand what happen . . ...

[Dave, I m afraid, dave]
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: specify data directories using absolute paths please

Post by hoijui »

create /etc/spring/datadir as a text file, and add only the path to your data dir.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: specify data directories using absolute paths please

Post by Auswaschbar »

hoijui wrote:create /etc/spring/datadir as a text file, and add only the path to your data dir.
Useless
User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

Re: specify data directories using absolute paths please

Post by anterak »

I think it s useless to have a /etc/spring/datadir files. nevertheless, i make it, but, there s always the same errors.

I use another repository to install spring,
i change path, put one only path, download new base, maps, and mods to put into it. i install opensuse 11.2, create a new user, and i ve always the same fail.
I don t understand .
I run opensuse 11.2, 64b . desperate I am !
User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

Re: specify data directories using absolute paths please

Post by anterak »

i even try with 32 bits version !!

i think something is missing in my .spring folder .I have base/ ; ctrlpanel.txt ; LuaUI/ ; maps/ ; PALETTE.PAL ; teamcolors.lua ; cmdcolors.txt ; fonts/ ; luaui.lua ; mods/ ; selectkeys.txt ; uikeys.txt


Is there something missing ?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: specify data directories using absolute paths please

Post by Auswaschbar »

There are 2 possibilities:
1. The package maker made a mistake packagin spring (or there was a bug in a build script), but then it should not work on any opensuse.
2. You have made a mistake when setting the datadir paths which can be in 3 places:
1. .springrc
2. /etc/spring/datadir
3. the SPRING_DATADIR env variable
if you delete all these, it should work.

Where did you get your spring from?
User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

Re: specify data directories using absolute paths please

Post by anterak »

thanks. I will try this 3 ways.
I take spring from accAgon's package. But i think there a mystake : i take it from another package and build spring with same error
...

thanks for the help
User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

Re: specify data directories using absolute paths please

Post by anterak »

SPRING_DATADIR var is null. /etc/spring/datadir is /home/AnteraK/spring, as in ~/.sprinrc ... but it always fail. I don t understand. I will try tomorow with new user .

i really don t understand what happen. I m playing spring since 0.4, i run linux from several years, and i never see such hell, with spring or anything else.


If it will fail too, i move to fedora constantine. :oops:
ruky
Posts: 6
Joined: 12 Dec 2009, 22:35

Re: specify data directories using absolute paths please

Post by ruky »

I have the same problem than you, also with opensuse 11.2 on x64 platform. Did you already solved it ?

I am getting mad also :)
User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

Re: specify data directories using absolute paths please

Post by anterak »

none.
If someone can join AccAgon , it would be helpful i think. I try to change repositories and add some that provides lib used by spring ... I will tell y if it solve probleme.
ruky
Posts: 6
Joined: 12 Dec 2009, 22:35

Re: specify data directories using absolute paths please

Post by ruky »

I have installed the rpm from the http://download.opensuse.org/repositori ... SUSE_11.2/ repository and I have had the same problem.

Also I tried to install the version from packman repository ... idem result :(

My data directory is: /home/roger/jocs/1944/

I have "straced" the spring process:

[...]

readlink("/proc/self/exe", "/usr/games/spring"..., 255) = 17
access("/usr/games/springsettings.cfg", R_OK|W_OK) = -1 ENOENT (No such file or directory)
stat("/home/roger/.springrc-0.80.5", 0x7fff56b3d070) = -1 ENOENT (No such file or directory)
open("/home/roger/.springrc", O_RDONLY) = 3
fcntl(3, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=121, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9d32571000
lseek(3, 0, SEEK_SET) = 0
read(3, "SpringData=/home/roger/jocs/1944"..., 4096) = 121
read(3, "", 4096) = 0
fcntl(3, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
close(3) = 0

[...]

stat("/home/roger/jocs/1944/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/home/roger/jocs/1944/", W_OK) = 0
stat("/usr/games/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/home/roger/.spring/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr//usr/share/games/spring/", 0x7fff76b248f0) = -1 ENOENT (No such file or directory)
futex(0x7facd6af2190, FUTEX_WAKE_PRIVATE, 2147483647) = 0
rt_sigaction(SIGSEGV, NULL, {0x8d0ee0, [SEGV], SA_RESTORER|SA_RESTART, 0x7facd65b3560}, 8) = 0
rt_sigaction(SIGBUS, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGFPE, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
write(1, "Content error: specify data dire"..., 68Content error: specify data directories using absolute paths please) = 68
rt_sigaction(SIGSEGV, NULL, {0x8d0ee0, [SEGV], SA_RESTORER|SA_RESTART, 0x7f9d2edef560}, 8) = 0
rt_sigaction(SIGBUS, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGFPE, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f9d3253e7e0) = 9992
wait4(9992, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 9992
--- SIGCHLD (Child exited) @ 0 (0) ---
exit_group(-1) = ?


So, it looks like that the binary reads the config file without problems, also it can red/write at the data directory, but it still breaks on error.

I have created a symbolic link to /usr//usr/share/games/spring/ bypass the error show ... but I get the same result:

[...]
stat("/home/roger/.spring/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr//usr/share/games/spring/", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
futex(0x7f9d2f32e190, FUTEX_WAKE_PRIVATE, 2147483647) = 0
rt_sigaction(SIGSEGV, NULL, {0x8d0ee0, [SEGV], SA_RESTORER|SA_RESTART, 0x7f9d2edef560}, 8) = 0
rt_sigaction(SIGBUS, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGFPE, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
write(1, "Content error: specify data dire"..., 68Content error: specify data directories using absolute paths please
) = 68
rt_sigaction(SIGSEGV, NULL, {0x8d0ee0, [SEGV], SA_RESTORER|SA_RESTART, 0x7f9d2edef560}, 8) = 0
rt_sigaction(SIGBUS, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGFPE, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f9d3253e7e0) = 9992
wait4(9992, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 9992
--- SIGCHLD (Child exited) @ 0 (0) ---
exit_group(-1) = ?

So thats not the problem :(

TIA.
ruky
Posts: 6
Joined: 12 Dec 2009, 22:35

Re: specify data directories using absolute paths please

Post by ruky »

Opps !!! I have straced the version from packman rather than the version of accAgon.

Anyway the result is very similar, just to clarify:

open("/etc/spring/datadir", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=22, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc01055f000
read(3, "/home/roger/jocs/1944\n", 4096) = 22
read(3, "", 4096) = 0
close(3) = 0
munmap(0x7fc01055f000, 4096) = 0
stat("/home/roger/jocs/1944/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/home/roger/jocs/1944/", W_OK) = 0
stat("/usr/bin/", {st_mode=S_IFDIR|0755, st_size=69632, ...}) = 0
stat("/home/roger/.spring/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/home/roger/jocs/1944/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/games/spring/", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
futex(0x7fc00d31d190, FUTEX_WAKE_PRIVATE, 2147483647) = 0
rt_sigaction(SIGSEGV, NULL, {0x8cc670, [SEGV], SA_RESTORER|SA_RESTART, 0x7fc00cdde560}, 8) = 0
rt_sigaction(SIGBUS, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGFPE, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
write(1, "Content error: specify data dire"..., 68Content error: specify data directories using absolute paths please
) = 68

rt_sigaction(SIGSEGV, NULL, {0x8cc670, [SEGV], SA_RESTORER|SA_RESTART, 0x7fc00cdde560}, 8) = 0
rt_sigaction(SIGBUS, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGFPE, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fc01052d7e0) = 10580
wait4(10580, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 10580
--- SIGCHLD (Child exited) @ 0 (0) ---
exit_group(-1)
User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

Re: specify data directories using absolute paths please

Post by anterak »

hi, i stop felling lonesome :)

are you with opensuse 64b too ?
Post Reply

Return to “Help & Bugs”