Page 1 of 1

game crash on launching

Posted: 03 Jan 2010, 17:18
by Scytale
Hi

I've read all the faqs I could find and did several searches on this forum to no avail. In the springlobby I choose a map, a mod, a bot in singleplayer and the game crash when I try to launch it.

I have Ubuntu 9.10.
I installed the engine 0.80.5 from the synaptic package manager.

Here is the content of the unitsynclog:

----------------------------------------------
LogOutput initialized.
Spring 0.80.5.0
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).
unitsync: loaded, 0.80.5.0
Using read-write data directory: /home/hugues/.spring/
Using read-only data directory: /usr/share/games/spring/
Scanning: /usr/share/games/spring/maps
Scanning: /usr/share/games/spring/base
Scanning: /usr/share/games/spring/mods
Scanning: /usr/share/games/spring/packages
Scanning: /home/hugues/.spring/maps
Scanning: /home/hugues/.spring/base
Scanning: /home/hugues/.spring/mods
Scanning: /home/hugues/.spring/packages
unitsync: initialized, 0.80.5.0
unitsync: hosting
unitsync: archive checksum: /home/hugues/.spring/maps/DesertCliffsV1.sd7
unitsync: archive checksum: /home/hugues/.spring/maps/RandomMap.sd7
unitsync: archive checksum: BA704.sd7
unitsync: initfindvfs: Saves/*.ssf
unitsync: findfilesvfs: 0
unitsync: initfindvfs: demos/*.sdf
unitsync: findfilesvfs: 0
unitsync: initfindvfs: demos/*.sdf
unitsync: findfilesvfs: 0
unitsync: initfindvfs: Saves/*.ssf
unitsync: findfilesvfs: 0
unitsync: adding archive: /home/hugues/.spring/mods/BA704.sd7
unitsync: adding archive: /usr/share/games/spring/base/springcontent.sdz
unitsync: adding archive: /usr/share/games/spring/base/spring/bitmaps.sdz
unitsync: parseOption: key startmetal exists already
unitsync: parseOption: key startenergy exists already
unitsync: initfindvfs: Saves/*.ssf
unitsync: findfilesvfs: 0
unitsync: initfindvfs: demos/*.sdf
unitsync: findfilesvfs: 0
unitsync: deinitialized

-----------------------------------------------

Please help, any pointers, more appropriated place to ask for help, anything. I so want to play this game and it baffles me that it was easier to run Civilization 4 with wine. Help a noob for the redemption of your souls!

Re: game crash on launching

Posted: 04 Jan 2010, 13:12
by hoijui
unitsynclog would probably contian usefull info if you have problems in the lobby (though only ofr certain things). if the game crashes, we need infolog.txt. please attach it as a file to your post, or use pastebin(.com).

Re: game crash on launching

Posted: 04 Jan 2010, 13:49
by koshi
update from here: https://launchpad.net/~spring/+archive/ppa
iirc the revision in karmic repos has a known crash bug

Re: game crash on launching

Posted: 04 Jan 2010, 15:44
by Scytale
I installed using the link given by Koshi and the game started. But I got another error a few seconds after the the loading finished: Segmentation fault (SIGSEGV)

I attached the infolog.txt to this post.

Thank you very much for your help good sirs.

Edit: Maybe it's pertinent to add that I previously installed the lobby from the source files, didn't found how to uninstall it and simply installed again via synaptic (the lobby wasn't showing as installed in synaptic). As for the engine I uninstalled it before installing again.

Re: game crash on launching

Posted: 04 Jan 2010, 19:23
by hoijui
the infolog says its from spring 0.80.5.1. the propper version for karmic, containing the fix, would have to be 0.80.5.2, so somehow you are are not running the correct version.

Re: game crash on launching

Posted: 04 Jan 2010, 20:18
by koshi
no one has updated the ppa with 0.80.5.2

Re: game crash on launching

Posted: 04 Jan 2010, 21:38
by Scytale
I added the key and the repository is 0.80.5.1

I tried to build the engine from the source but I only got up to this point:

cmake .

-- Building Spring for 32bit environment
-- Found OpenAL: /usr/lib/libopenal.so
-- Found Freetype: -lfreetype -lz
-- Found AI Wrapper: CUtils (sources only wrapper)
-- Found AI Wrapper: Cpp-AIWrapper
-- Found AI Wrapper: LegacyCpp-AIWrapper
-- Found AI Wrapper: LegacyCpp-Creg-AIWrapper
-- Found AI Interface: C-AIInterface 0.1
warning: No Java includes found!
warning: Java AI Interface will not be built!
-- Found Skirmish AI: KAIK 0.13
-- Found Skirmish AI: NullLegacyCppAI 0.1
-- Found Skirmish AI: NullAI 0.1
warning: NullJavaAI Skirmish AI will not be built!
-- Found Skirmish AI: CppTestAI 0.1
-- Found Skirmish AI: AAI 0.9
-- Found Skirmish AI: RAI 0.601
warning: NullOOJavaAI Skirmish AI will not be built!
-- Found Freetype: -lfreetype -lz
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
X11_Xcursor_LIB (ADVANCED)
linked by target "spring" in directory /home/hugues/Downloads/spring/spring_0.80.5.2/rts

-----------------------------------
I'll try again tomorrow. From what I understand I'm still missing Java-SDK but when I search for this in synaptic the relevant results are gcj-jdk and gcj-4.4-jdk and they are already installed. Building from source seems like the only option.

Re: game crash on launching

Posted: 04 Jan 2010, 21:51
by koshi
apt-get build-dep spring-engine

Re: game crash on launching

Posted: 04 Jan 2010, 22:37
by hoijui
what koshi said, and for java, you could set the JAVA_HOME env var to your JDK dir, eg in your ~/.profile file, add a line like this in the end:
export JAVA_HOME=/home/user/Programs/jdk1.6
then execute:
. ~/.profile
.. guess you know how it works.

Re: game crash on launching

Posted: 05 Jan 2010, 16:56
by Scytale
Shazam!

After getting all the dependencies I was able to build it properly and I'm able to run a game. It's only a matter of tweaking the performance now and finding which AI script is compatible (most of them make an insta-win, up to now I found that the RAI works fine).

Thank you very much for your help.

Re: game crash on launching

Posted: 05 Jan 2010, 22:11
by hoijui
technically, the ais like RAI are not scripts but.. who cares ;-)
RAI, KAIK and AAI should all work fine out of the box with BA704, KAIK beeing the thoughtest of the three.