game crash on launching

game crash on launching

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

Moderator: Moderators

Post Reply
Scytale
Posts: 4
Joined: 03 Jan 2010, 17:06

game crash on launching

Post 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!
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: game crash on launching

Post 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).
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: game crash on launching

Post by koshi »

update from here: https://launchpad.net/~spring/+archive/ppa
iirc the revision in karmic repos has a known crash bug
Scytale
Posts: 4
Joined: 03 Jan 2010, 17:06

Re: game crash on launching

Post 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.
Attachments
infolog.txt
(18.71 KiB) Downloaded 117 times
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: game crash on launching

Post 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.
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: game crash on launching

Post by koshi »

no one has updated the ppa with 0.80.5.2
Scytale
Posts: 4
Joined: 03 Jan 2010, 17:06

Re: game crash on launching

Post 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.
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: game crash on launching

Post by koshi »

apt-get build-dep spring-engine
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: game crash on launching

Post 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.
Scytale
Posts: 4
Joined: 03 Jan 2010, 17:06

Re: game crash on launching

Post 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.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: game crash on launching

Post 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.
Post Reply

Return to “Linux”