project-navigation
Personal tools

Author Topic: Black Screen When Loading UFO Encounter  (Read 4693 times)

WolfRune

  • Guest
Black Screen When Loading UFO Encounter
« on: December 11, 2006, 11:51:50 pm »
First off, I'd like to say that this game is a ton of fun!  I put it on my Windows box because of some problems with the Linux version (more on that in a bit), and I'm very entertained - as good or better than XCom.

Now, to my problem.  I'm running SuSE 10.1, and have version 2.0 RC6 installed.  When I try to land at the first UFO encounter, I get a black screen.  I tried using the Retry function, but it didn't get me anywhere.  So, I opened up the console, and I get the following error:

------loading game.so------
LoadLibrary failed (/home/myuserid//home/myuserid/.ufoai/base/game.so

ERROR: Failed to load library.

I'm no expert in Linux, but it strikes me that the path is a bit wonky.  I'm guessing there's a config file somewhere out there that has my home directory path twice or something.  Any suggestions?

Grifter

  • Guest
Black Screen When Loading UFO Encounter
« Reply #1 on: December 12, 2006, 12:40:05 am »
run the command ldd on the binary, and it will display the libs required, and tell you if it's missing anything

WolfRune

  • Guest
Black Screen When Loading UFO Encounter
« Reply #2 on: December 12, 2006, 05:06:56 pm »
Thanks for the suggestion!  I took a look, and all my libs are up to date.  I also used YAST to double-check, but I figured it should be ok since I had the autocheck dependencies turned on.

Does anyone know which config file would specify where the game.so file should be?  I'm wondering if maybe it is making a sort of double-reference to my home directory by accident.  This is based on the fact that the path that it was looking in starts with /home/myuserid, and then has a double //, then repeats the home directory, followed by the .ufoai directory.

WolfRune

  • Guest
Black Screen When Loading UFO Encounter
« Reply #3 on: December 12, 2006, 08:03:56 pm »
I was doing a bit more searching, and I found a post that seems kind of similar (though it happened at a different stage of the game)

http://ufo.myexp.de/phpBB2/viewtopic.php?t=909&highlight=failed+load+library

It mentions something about recompiling maps.  Any ideas?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Black Screen When Loading UFO Encounter
« Reply #4 on: December 12, 2006, 08:35:02 pm »
do you have a base/game.so in your ufo-ai folder? dimstar created the packages - you should ask him about this issue. he's sometimes around in the irc channel

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Black Screen When Loading UFO Encounter
« Reply #5 on: December 12, 2006, 08:36:19 pm »
the other post is not related to your problem - at least not if that's the only error message you get.

the strange part is the doubled homedir path in your LoadLibrary call

WolfRune

  • Guest
Black Screen When Loading UFO Encounter
« Reply #6 on: December 12, 2006, 09:02:22 pm »
The error I posted is the only one I get.  The game.so file is sitting in /usr/share/games/ufoai/base.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Black Screen When Loading UFO Encounter
« Reply #7 on: December 13, 2006, 08:19:27 am »
could you please upload the complete ufoconsole.log (in your home dir ./ufoai/base) somewhere?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Black Screen When Loading UFO Encounter
« Reply #8 on: December 13, 2006, 10:14:26 am »
there is a small patch available that might fix your problem:
http://mattn.ninex.info/?page=Download

dimstar

  • Guest
Black Screen When Loading UFO Encounter
« Reply #9 on: December 13, 2006, 12:05:17 pm »
Thanks for the patch.

It is applied to the src.rpm and new binaries are just being built in this very moment.

@WolfRune: in case you subscribed to the repository (like explained on the ufoai website) you will be notified by zen-updater / suse-updater about a new version.

WolfRune

  • Guest
Black Screen When Loading UFO Encounter
« Reply #10 on: December 18, 2006, 03:32:44 am »
Thanks everybody!  My delay in responding has been due to being sucked in to the Linux version of the game *LOL*

I'm quite impressed by the speed with which a patch was created for this issue - this game is my first foray in to Linux gaming (besides the odd round of mahjong), and I'm very pleased that its going so well.  Kudos to all the people on the project!