spring-gui error message

spring-gui error message

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
shanepardue
Posts: 22
Joined: 14 Jan 2007, 06:39

spring-gui error message

Post by shanepardue »

I'm using the 0.74b1 version of spring and I'm assuming to play spring, I'm needing the spring-gui to know what I'm doing? I may be wrong there, but this is the error message I got when I followed the directions from the sticky on setting up spring-gui

Code: Select all

unitsync: Unitsync assertion failed: tools/unitsync/unitsync.cpp:638: Call InitArchiveScanner before GetPrimaryModCount.
python: tools/unitsync/unitsync.cpp:638: int GetPrimaryModCount(): Assertion `archiveScanner && hpiHandler' failed.
Aborted
I appreciate any help on getting me started. Thank you.
own3d
Posts: 129
Joined: 25 Aug 2006, 16:31

Post by own3d »

try checking out a svn build instead of a tagged release it may have been fixed already.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

spring-gui == really old & unsupportted by this stage.
to work with spring the code for unitsync needs to be redone (due to changes to unitsync) & support for multiple datadirs

There is UnityLobby in svn, has higher requirements i.e gtk-2.10 & pygtk-2.10 will be main stumbling points. But it has lobby chat & soon will have multiplayer
shanepardue
Posts: 22
Joined: 14 Jan 2007, 06:39

Post by shanepardue »

So it's not possible to play spring in linux yet? or better yet multiplayer?
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

Yes it is, see this thread.
shanepardue
Posts: 22
Joined: 14 Jan 2007, 06:39

Post by shanepardue »

I followed that thread and it comes to this part where I'm having a problem...

Code: Select all

mv -f ~/.wine/drive_c/Program\ Files/Spring/unitsync.dll ~/.wine/drive_c/Program\ Files/Spring/UnitSync.dll 
I don't have UnitSync.dll

I followed the rest of the directions, but am not sure if it will work. Which file do I open to get to a lobby?
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

You don't actually need to follow all those instructions to the letter. Let's say you have Spring (the Linux version) installed in /games/Spring/, and the Windows version in /wine/Spring/ (directory names are arbitrary). To get a multiplayer game going, simply do the following:

1) create a symlink from /wine/Spring/maps/ to /games/Spring/maps/ (move the contents of /wine/Spring/maps to /games/Spring/maps first, and then delete /wine/Spring/maps/)

2) create a symlink from /wine/Spring/mods/ to /games/Spring/mods/ (move the contents of /wine/Spring/mods to /games/Spring/mods first, and then delete /wine/Spring/mods/)

3) create a symlink from /games/Spring/script.txt to /wine/Spring/script.txt

4) delete /wine/Spring/spring.exe and create a new symlink from /wine/Spring/spring.exe to /games/Spring/spring


Then just type "wine TASClient.exe" from within /wine/Spring/ and you can use the lobby as you normally would, except that it now launches the native Spring binary so you get the best of both worlds.

(Most people run 0.74b2 BTW, so you may want to upgrade to that.)
shanepardue
Posts: 22
Joined: 14 Jan 2007, 06:39

Post by shanepardue »

3) create a symlink from /games/Spring/script.txt to /wine/Spring/script.txt
I don't have a script.txt in the wine folder. Could I copy and paste the one I have in my linux install?

and I got this problem..I know I'm doing something wrong.

Code: Select all

sudo ln -s /home/shane/spring_0.74b1/game/spring /home/shane/.wine/drive_c/Program Files/Spring/spring.exe
ln: target `Files/Spring/spring.exe' is not a directory
Sorry for the abundance of questions..I appreciate your help!! I can't wait to get this going!
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

About there not being a script.txt in your wine directory: just place a dummy empty file there before creating the link, TASClient will overwrite it when you host or join a game anyway.

Regarding your second problem: ln doesn't like spaces in its arguments, do this instead:

Code: Select all

sudo ln -s /home/shane/spring_0.74b1/game/spring '/home/shane/.wine/drive_c/Program Files/Spring/spring.exe'
HTH.
shanepardue
Posts: 22
Joined: 14 Jan 2007, 06:39

Post by shanepardue »

I think I got it working! When I open TASclient, I am able to host a game and I was able to start a new game natively! I really appreciate your help on getting this setup.

Now, I have two simple questions and I'll leave you alone!!

1) To preserve this setup, I could burn the two folders (wine and native) to a cd and it'd work as long as I preserved the folder names or edited them. Correct?

2) To play a single player game, I'd host a game, lock it and add bots?

Again, you've been of great help!!! Thank you!
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

1) Yep. The only thing you'd have to update if you changed the directory names would be the symlinks.

2) Correct. Note that for singleplayer (or multiplayer involving bots), you have to create symlinks from /wine/Spring/AI/Bot-libs/*.dll to /games/Spring/AI/Bot-libs/*.so as well, since the generated script.txt references the dll's instead of the so's.
shanepardue
Posts: 22
Joined: 14 Jan 2007, 06:39

Post by shanepardue »

Code: Select all

ln -s /home/shane/.wine/drive_c/Program\ Files/Spring/AI/Bot-libs/*.dll /home/shane/spring/source/game/AI/Bot-libs/*.so
ln: target `/home/shane/spring/source/game/AI/Bot-libs/TestGlobalAI.so' is not a directory
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

ln cannot automatically figure out you want your symlinks named the same as their targets except for their extension, just create them individually (which you only have to do for AAI anyway, as it's the only AI that works out of the box).
Nonor
Posts: 19
Joined: 28 Dec 2006, 01:21

Post by Nonor »

Arrrr come on guys ! You are using Linux !

Code: Select all

cd ~/.wine/drive_c/Program\ Files/Spring/AI/Bot-libs/
for i in *.so ; do ln -s "$i" `basename "$i" .so`.dll ; done
shanepardue
Posts: 22
Joined: 14 Jan 2007, 06:39

Post by shanepardue »

Any idea why it says "file access denied" when I try to start the game from within TASclient? I can open spring from the wine symlink or the linux native, but when TASclient tries to access it, I get "file access denied"
Post Reply

Return to “Linux”