project-navigation
Personal tools

Author Topic: I just want to play a game .....  (Read 20634 times)

Offline ferralll

  • Rookie
  • ***
  • Posts: 13
    • View Profile
Re: I just want to play a game .....
« Reply #30 on: October 07, 2010, 10:47:50 pm »
So I think I am reading this right... but the "game.so" loaded... or I assume. it was not the same message as last time.
But it seems to be looking for something in the directories that it says not found at.  Any idea what it is looking for? Could I just move what ever file needs to be there in to that place and get the game to run?

Code: [Select]
2010/10/06 09:34:09 XML Written to buffer (422870 Bytes)
2010/10/06 09:34:09 ------- Loading game.so -------
2010/10/06 09:34:09 not found at '/usr/lib/games/ufoai/base/ufoai'
2010/10/06 09:34:09 not found at '/home/sfarrel2/.ufoai/2.3/base'
2010/10/06 09:34:09 not found at './base'
2010/10/06 09:34:09 not found at '/usr/share/games/ufoai/base'
2010/10/06 09:34:09 ********************
2010/10/06 09:34:09 ERROR: failed to load game library
2010/10/06 09:34:09 ********************
2010/10/06 09:34:09 Shutdown server: Server crashed.
2010/10/06 09:34:36 Wrote config.cfg.
2010/10/06 09:34:36 Shutdown gametype 'Campaign mode'
2010/10/06 09:34:36 Wrote keys.cfg

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: I just want to play a game .....
« Reply #31 on: October 07, 2010, 11:26:48 pm »
and can you check with hands if you have somewhere this game.so?
And do you run the game at the ufoai root?
« Last Edit: October 07, 2010, 11:28:54 pm by bayo »

Offline romanovzky

  • Rookie
  • ***
  • Posts: 23
    • View Profile
Re: I just want to play a game .....
« Reply #32 on: October 08, 2010, 07:47:42 pm »
The playdeb build gives:
Code: [Select]
$ locate game.so
/usr/lib/games/ufoai/base/game.so

which is none of the paths that the game searches.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: I just want to play a game .....
« Reply #33 on: October 08, 2010, 09:58:27 pm »
The playdeb build gives:
Code: [Select]
$ locate game.so
/usr/lib/games/ufoai/base/game.so

which is none of the paths that the game searches.

Code: [Select]
ERROR: failed to load game library

Packaging problem. Playdeb-maintainer's fault.

-geever

Offline romanovzky

  • Rookie
  • ***
  • Posts: 23
    • View Profile
Re: I just want to play a game .....
« Reply #34 on: October 08, 2010, 11:50:21 pm »
When entering a mission:

Code: [Select]
------- Loading game.so -------
 not found at '/usr/lib/games/ufoai/base/ufoai'
 not found at '/home/mcromao/.ufoai/2.3/base'
 not found at './base'
 not found at '/usr/share/games/ufoai/base'
 ********************
 ERROR: failed to load game library
 ********************

When doing $ locate game.so:

Code: [Select]
/usr/lib/games/ufoai/base/game.so

So the game is searching in the wrong folder!

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: I just want to play a game .....
« Reply #35 on: October 09, 2010, 09:07:54 am »
yes the path from the game code is wrong (PKGLIBDIR?)
At worst u can copy the .so on your home "/home/mcromao/.ufoai/2.3/base"
« Last Edit: October 09, 2010, 09:44:42 am by bayo »

Offline romanovzky

  • Rookie
  • ***
  • Posts: 23
    • View Profile
Re: I just want to play a game .....
« Reply #36 on: October 09, 2010, 10:39:05 am »
Well, that workaround is obvious but I haven't thought about it.

It works :P

Thanks!

Offline ferralll

  • Rookie
  • ***
  • Posts: 13
    • View Profile
Re: I just want to play a game .....
« Reply #37 on: October 12, 2010, 02:55:36 am »
yea... you are right.  It is a quick fix if you just copy game.so to one of the files that the log says that it is looking in. 
Now it works great! and I am loving it once again.

Offline dzs

  • Cannon Fodder
  • **
  • Posts: 3
    • View Profile
Re: I just want to play a game .....
« Reply #38 on: July 24, 2011, 05:54:06 pm »
I ran into the same problem with game.so. I installed the game from the debs that are provided by the ufoai sf site (http://sourceforge.net/projects/ufoai/files/UFO_AI%202.x/2.3.1/), so no third party packaging, I guess this is the "official" release. game.so went under /usr/lib/games/ufoai/base/game.so, where it is not looked for by the game.

I saw some comments here with the feeling of "this is a packaging issue of the distributor, buzz off, it's not our fault, solve it with whoever you got it from". Well, OK, I came here to the forums to look for a solution, but probably many people wont do that and give up with "ehh, another crappy software, remove", and will miss this otherwise suberb game. Just because of a silly misconfig. So I suggest you take some care of the packaging of your product, at least in the distributions that you advertise on your download page... That is unless you write this game for your own entertainment and don't care at all how it spreads around the world ;)

Nevertheless, great game, great work, keep up! :)