spring + springlobby -> no mods work

hi,

i’m having difficulties with SpringLobby. it’s able to connect to a server, but is unable to detect any mods. it doesn’t matter if i download them through springlobby or copy them myself to $HOME/.spring/mods .

anyone know what i could do?

Hello brian_j,

We’re missing a lot of information.
Can you tell us which version of openSUSE you have?
And which version of Spring/SpringLobby?

I tried it out myself and the directory

$HOME/.spring/mods/<MOD>

works for me.
You can also try to put the mod in:

/usr/share/games/spring/mods

And can you give us the output of springlobby.
Just run this command in the terminal:

springlobby

Best of luck!:wink:

versions are all the latest from the suse repo just like the Suse 11.2 i’m running.

here is an strace of springlobby, apparently it’s reading the mods and maps: (see 3+4. line, strange paths)

stat("/home/xxx/.spring/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/home/xxx/.spring/", W_OK) = 0
stat("/usr//usr/share/games/spring/", 0x7fff535813a0) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/spring/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
chdir("/home/xxx/.spring/")       = 0
write(6, "Using read-write data directory:"..., 58) = 58
write(1, "Using read-write data directory:"..., 58) = 58
write(6, "Using read-only  data directory:"..., 52) = 52
write(1, "Using read-only  data directory:"..., 52) = 52
open("/home/xxx/.spring/ArchiveCacheV7.lua", O_RDONLY) = -1 ENOENT (No such file or directory)
write(6, "ERROR in /home/xxx/.spring"..., 117) = 117
write(1, "ERROR in /home/xxx/.spring"..., 117) = 117
open("/usr/lib64/spring/maps/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/spring/base/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/spring/mods/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/spring/packages/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/xxx/.spring/maps/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 10
getdents64(10, /* 3 entries */, 32768)  = 88
stat("/home/xxx/.spring/maps/Altair_Crossing.sd7", {st_mode=S_IFREG|0644, st_size=2749009, ...}) = 0
getdents64(10, /* 0 entries */, 32768)  = 0
close(10)                               = 0
open("/home/xxx/.spring/base/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 10
getdents64(10, /* 2 entries */, 32768)  = 48
getdents64(10, /* 0 entries */, 32768)  = 0
close(10)                               = 0
open("/home/xxx/.spring/mods/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 10
getdents64(10, /* 4 entries */, 32768)  = 128
stat("/home/xxx/.spring/mods/BA712.sd7", {st_mode=S_IFREG|0644, st_size=16689507, ...}) = 0
stat("/home/xxx/.spring/mods/BAChickens210(BA712).sd7", {st_mode=S_IFREG|0644, st_size=4018822, ...}) = 0
getdents64(10, /* 0 entries */, 32768)  = 0
close(10)                               = 0
open("/home/xxx/.spring/packages/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 10
getdents64(10, /* 2 entries */, 32768)  = 48
getdents64(10, /* 0 entries */, 32768)  = 0
close(10)                               = 0
access("/home/xxx/.spring/", R_OK) = 0

still they are not showing in the battlelist nor the singleplayer tab.

running springlobby in a terminal shows some errors:


(springlobby:22743): Gtk-CRITICAL **: gtk_window_move: assertion `GTK_IS_WINDOW (window)' failed

(springlobby:22743): Gtk-CRITICAL **: gtk_window_resize: assertion `GTK_IS_WINDOW (window)' failed

(springlobby:22743): Gtk-CRITICAL **: gtk_window_unmaximize: assertion `GTK_IS_WINDOW (window)' failed
LogOutput initialized.
Spring 0.81.2.0
Build date/time: Feb 23 2010 17:07:12
Available log subsystems: ArchiveScanner, VFS-detail, VFS, unitsync
Enabled log subsystems: unitsync
Enable or disable log subsystems using the LogSubsystems configuration key
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
Using read-write data directory: /home/sebastian/.spring/
Using read-only  data directory: /usr/lib64/spring/
ERROR in /home/sebastian/.spring/ArchiveCacheV7.lua: could not open file: /home/sebastian/.spring/ArchiveCacheV7.lua
unitsync: error: Init: could not find 'gamedata/parse_tdf.lua' code
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.
unitsync: error: GetMapCount: Unitsync not initialized. Call Init first.
unitsync: error: GetPrimaryModCount: Unitsync not initialized. Call Init first.
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.
unitsync: error: InitFindVFS: Unitsync not initialized. Call Init first.
unitsync: error: FindFilesVFS: Unitsync not initialized. Call Init first.
unitsync: error: InitFindVFS: Unitsync not initialized. Call Init first.
unitsync: error: FindFilesVFS: Unitsync not initialized. Call Init first.
AL lib: pulseaudio.c:255: new tlength (16308) is not a multiple of minreq (4096)!
unitsync: error: InitFindVFS: Unitsync not initialized. Call Init first.
unitsync: error: FindFilesVFS: Unitsync not initialized. Call Init first.
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.
unitsync: error: GetSkirmishAICount: Unitsync not initialized. Call Init first.
unitsync: error: GetSkirmishAICount: Unitsync not initialized. Call Init first.

Hello brian_j,

I think the problem is that springlobby is looking in the wrong directory.

Using read-only  data directory: /usr/lib64/spring/

This must be:

/usr/share/games/spring/

Assuming that you can see the main window of springlobby, try changing the data directory in the preference window.
Edit->Preferences->Spring->Change Datadir path

Good luck!:wink:

that did it! thx!!

Hi there,

I am having the same problem on openSUSE 11.3 freshly installed.
Here’s my unitsync.log

LogOutput initialized.
Spring 0.81.2.1
Build date/time: Jul 26 2010 13:28:25
Available log subsystems: VFS-detail, VFS, ArchiveScanner, unitsync
Enabled log subsystems: unitsync
Enable or disable log subsystems using the LogSubsystems configuration key
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
Using read-write data directory: /home/user/.spring/
Using read-only  data directory: /usr/lib/spring/
ERROR in /home/user/.spring/ArchiveCacheV7.lua: could not open file: /home/user/.spring/ArchiveCacheV7.lua
unitsync: error: Init: could not find 'gamedata/parse_tdf.lua' code
unitsync: error: GetWritableDataDirectory: Unitsync not initialized. Call Init first.

I attempted the same fix above but it did not work.
Thanks for your help

I solved, partially, the problem by adding the repository:

Index of /repositories/home:/accAgon/openSUSE_11.3

and downloading spring-content.
Maps and mods are now shown.
The second error remains:


Content error: could not find 'gamedata/parse_tdf.lua' code

Hello savedario,

Sorry for the late response.

I don’t have spring installed on a openSUSE 11.3 computer at the moment so I can’t test it.
You could try to rename your ~/.spring/ folder and try it again.

Also make sure you’ve got both spring and springLobby from the same repository.

I’ll see if I can recreate the error.

Best of luck!:wink: