#Looking for P4G mod to reveal dungeon maps
38 messages · Page 1 of 1 (latest)
This should do the trick, enable the checkbox before entering a dungeon and it should reveal the entire minimap.
Cool thanks, I’ll try
Ok, so i get a weird error when opening the file, but nevertheless, it works! Thank you
So I gotta ask
Would this be possible to make a mod using reverse engineering ghidra instead of relying on cheat engine?
Pretty sure it’s possible, not sure if I’m the one to do it. I’ve done a lot of stupid things with P4G, but haven’t really touched ghidra during my work, I just work in x86_64 and put my changes in via Reloaded-II.
Glad to hear it’s working. I get the same message when loading it, so I might look into that later and correct it. Will send an updated table if I figure it out
okey ill try it soon
Here's the updated cheat table, error was caused because I didn't know that saving my script would also save all the other stuff I had in cheat engine, resulting in a lot of excess being stored with the script. Too used to treating Cheat Engine like a debugger.
Nice, thanks a lot @dusk zodiac
Was it enabled before entering the dungeon?
f
you have to change floors, then it works
I set it up so it sets all the tile flags are set to 1 after the reset called between floors
It was either that or cover it when it tries to update, which occurs several times a frame and just sounds wasteful to me
yup
from 11f to 10f
now on to implementing this in ghidra...
do you happen to know which function address is this?
Yes, give me a moment

btw. is it difficult to add this in another table?
and since it shows treasures, are shadows possible too? Maybe not, because they move?
Two calls, one for pregenerated floors (ones with minibosses) and one for random floors. Both use a function located at 1402DF000, I intercepted the area after the call at 140311620 and 1403115EE respectively to update the values. Another address of note is 1451EC580, which is a pointer to the area of memory dedicated to holding the revealed minimap data (48 bytes, each bit corresponding to a part of the 16x24 dungeon map). That pointer is initialized very early in the game and remains the same for the duration of a session (afaik, all of my testing has been on the last day)
Shouldn't be too hard to add to another table, but I don't use cheat engine for this, so I'm not certain.
Should be possible, not sure how. I imagine the data is stored nearby, but I never bothered because Rise gets a skill that does it for you. Since I'm testing on the last day, I already have that skill and have never needed to figure out the enemy location logic for the minimap.
I see i see
thanks for the info
true that, thanks 🙂
If you ever have any dungeon-related questions in the future, feel free to sling them at me. I have spent more than a little time messing around with this stuff specifically, I might be able to help.