Loading bitmap files outside Data folder #193
Labels
No Label
RGSS accuracy
bug
compilation
discussion
documentation
duplicate
enhancement
invalid
performance issue
port request
question
ruby incompatibility
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: MapleShrine/mkxp#193
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, I'm developing a translation system for Rakuen that replaces game images by translated images in a distinct directory (outside Data):
f999882557/mods/translation/languages.rb (L315)
It works on rpg maker engine, but when I try to execute it with mkxp, it doesn't find the file, but states the right path. Is this a mkxp limitation? Any suggestions on a workaround?
I managed to load the external images by moving the mods directory to Data, but it is still an inconsistency between the engines. So I will leave the issue open.
Can you isolate a test case where mkxp doesn't load a Bitmap correctly?
Here it is: https://github.com/JoaoFelipe/mkxp-issue193
In the Override_Bitmap script I have:
It basically overrides the
Graphics/Titles/TitleBG
(that is configured as the game title image) byTitleBG.png
in the project root.The
Game.exe
from rpg maker xp works, but neithermkxp.exe
normkxp.amd64
are able to load the file in the project root.I can reproduce it. It seems to be a bug (since you say it doesn't fail on Game.exe).
For now, just remove
Dir.getwd
:I think this is because PhysFS (or Filesystem object) is not searching in absolute paths.
I haven't tested yet, but this is a strong contender for the issue. @JoaoFelipe Is there a reason you need to prefix the path with the absolute current directory? mkxp always resolves paths to assets (bitmaps, music) relative to the game directory, so it should work even if you're outside the
Data
orGraphics
folder; being outside the game folder however would be a bit problematic.