Page 1 of 1
spring-gui error message
Posted: 14 Jan 2007, 06:44
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.
Posted: 14 Jan 2007, 15:52
by own3d
try checking out a svn build instead of a tagged release it may have been fixed already.
Posted: 14 Jan 2007, 18:32
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
Posted: 14 Jan 2007, 20:43
by shanepardue
So it's not possible to play spring in linux yet? or better yet multiplayer?
Posted: 14 Jan 2007, 21:17
by Kloot
Yes it is, see
this thread.
Posted: 14 Jan 2007, 22:12
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?
Posted: 14 Jan 2007, 22:58
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.)
Posted: 14 Jan 2007, 23:18
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!
Posted: 14 Jan 2007, 23:24
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.
Posted: 15 Jan 2007, 02:01
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!
Posted: 15 Jan 2007, 13:31
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.
Posted: 17 Jan 2007, 00:06
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
Posted: 17 Jan 2007, 12:10
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).
Posted: 18 Jan 2007, 22:14
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
Posted: 21 Jan 2007, 02:56
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"