Author Topic: Linux: Unable to load menu17.png, but it is there...  (Read 408 times)

chsh

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
Linux: Unable to load menu17.png, but it is there...
« on: March 30, 2004, 09:12:14 am »
Version is 0.2.010.
The message I\'m getting is:
Quote
crystalspace.maploader.parse.image: Could not load image \'/planeshift/art/backdrop/menu17.png\'. Unknown format!
Couldn\'t create Resource \'menu17.png\'
Failed to initialize window \'menu\'.
Couldn\'t activate/create dialog \'menu\'
PreloadModels: Preloading complete

At first glance my suspicion is the path is the problem, since there is no /planeshift directory, as I have the dist in /home/chsh/games/planeshift. I grepped the sources and looked around, but the only mention of the menu load is in a call to CreatePixmap on \"menu17.png\", so the path is obviously prepended by the app elsewhere.

The result of this is the menu never gets drawn. The game boots the splash screen with the \"Planeshift\" in the upper right, then just sits there.

Any ideas on how I can fix this?
It might also make more sense to dump the app out with an error if the main menu can\'t be drawn, wouldn\'t it?
Chris Shepherd
\"Something unknown is doing we don\'t know what.\"
- Sir Arthur Eddington on the Uncertainty Principle

Androgos

  • Guest
(No subject)
« Reply #1 on: March 30, 2004, 06:15:13 pm »
The Crystal Space framework uses something called VFS which stands for
Virutal File System

/planeshift is a mounted path to your PS dir.

Maybe you didn\'t compile the libpng or something to crystal space?

chsh

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
(No subject)
« Reply #2 on: March 30, 2004, 07:44:57 pm »
Well, I followed the build instructions in the readme verbatim, and there were no build errors, and I *DO* have libpng there (1.2.5) on my LD_LIBRARY_PATH.
Chris Shepherd
\"Something unknown is doing we don\'t know what.\"
- Sir Arthur Eddington on the Uncertainty Principle