Opened 17 years ago
Closed 16 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)
Change History (8)
by , 17 years ago
Attachment: | graphics.jpg added |
---|
comment:1 by , 17 years ago
by , 17 years ago
comment:2 by , 17 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 , 17 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 , 16 years ago
Cc: | added |
---|
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.