Opened 16 years ago

Closed 15 years ago

#1677 closed bug (invalid)

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: Blocking:
Platform: All

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 (2)

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

Download all attachments as: .zip

Change History (8)

by kvdman, 16 years ago

Attachment: graphics.jpg added

comment:1 by kvdman, 16 years ago

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.

by kvdman, 16 years ago

Attachment: nb.jpg added

comment:2 by mmlr, 16 years ago

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?

comment:3 by kvdman, 16 years ago

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.

comment:4 by scottmc, 16 years ago

Cc: haiku@… added

comment:6 by stippi, 15 years ago

Resolution: invalid
Status: newclosed

Thanks for the feedback!

Note: See TracTickets for help on using tickets.