Ticket #1677 (closed bug: invalid)

Opened 2 years ago

Last modified 13 months ago

Strange behaviour with images and games...

Reported by: kvdman Owned by: axeld
Priority: normal Milestone: R1
Component: - General Version: R1/pre-alpha1
Keywords: Cc: haiku@…
Blocked By: Platform: All
Blocking:

Description

I'm testing Freedroid:

 http://www.haikuware.com/view-details/games/2d/944-freedroid

And Blob Wars:

 http://www.haikuware.com/view-details/games/2d/929-blob-wars

I have Freedroid on a Zeta partition mounted in Haiku, and can play it fine in Haiku from there, but when I copy Freedroid to Haiku, it won't execute. Dragging it into the terminal, it says 'error: no valid graphic-themes found!!', eventhough they are there in /graphics and the game runs fine when running it on the Zeta partition (there were no errors copying the files, and I tried recopying several times with the same results). btw, cool game to run in Haiku!

Secondly, I tried running blob wars. The game window comes up, and it says a required graphics file (gfx/grasslands/day.jpg) wasn't found in the PAK file (then the game won't start); gfx/grasslands/day.jpg is present in the directory though.

I'm wondering, these both seem to be similar issues, in that graphics files aren't being detected.

Screenshot attached.

Attachments

graphics.jpg Download (238.4 KB) - added by kvdman 2 years ago.
nb.jpg Download (40.4 KB) - added by kvdman 2 years ago.

Change History

Changed 2 years ago by kvdman

Changed 2 years ago by kvdman

Another game failing with a graphics error....

Net-Bubble:

 http://www.haikuware.com/view-details/games/miscellaneous/1233-net-bubble

See the attached screenshot for more info.

Changed 2 years ago by kvdman

Changed 21 months ago by mmlr

The errors that you get are simply because the working directory is not correct. If you simply drag an application to the Terminal it won't set the working directory. It will stay for example at "/boot/home". When your app now tries to read "graphics/xy.png" (a relative path, relative to the current working directory) it won't find it because it searches for "/boot/home/graphics/xy.png". When running apps from the Terminal like this you first cd to the directory where the app is located and then run it. When double clicking in Tracker, the working directory is automatically set. In general does this still happen?

Changed 21 months ago by kvdman

Hi Michael,

Thanks for your reply. I've tried both suggestions. I've tried changing to the working directory from the terminal first and then executing, as well as from tracker...

From tracker, the games automatically quit. From tracker, the errors about missing images still persist (in all three games) despite the said images that are missing being present in the directories.

The links to the games above are incorrect, for your reference, they are here:

 http://www.haikuware.com/view-details/games/2d/blob-wars

 http://www.haikuware.com/view-details/games/2d/freedroid

 http://www.haikuware.com/view-details/games/miscellaneous/net-bubble

I have tried two of the games in BeOS, and they seem to work fine, without these errors.

Changed 20 months ago by scottmc

  • cc haiku@… added

Changed 13 months ago by kvdman

Changed 13 months ago by stippi

  • status changed from new to closed
  • resolution set to invalid

Thanks for the feedback!

Note: See TracTickets for help on using tickets.