OHR tilemap exporting tool
Moderators: Bob the Hamster, marionline, SDHawk
OHR tilemap exporting tool
I was bored, so I decided to try writing a program that could read entire tilemaps from OHR games and export them as a big PNG file.
https://dl.dropboxusercontent.com/u/224 ... mapper.rar
Just click and drag an RPG file into mapper.exe, and follow the command line instructions to print out any map from your game. The exported maps will be saved in the /maps folder. Technically you need a password to get into encrypted RPG files, but you can bypass that by copying the playing.tmp folder into the same folder as mapper.exe and renaming it to "rpgname.rpgdir".
As an example, I've printed out a map of the school from Alice is Trapped.
https://dl.dropboxusercontent.com/u/224 ... nsion0.png
https://dl.dropboxusercontent.com/u/224 ... mapper.rar
Just click and drag an RPG file into mapper.exe, and follow the command line instructions to print out any map from your game. The exported maps will be saved in the /maps folder. Technically you need a password to get into encrypted RPG files, but you can bypass that by copying the playing.tmp folder into the same folder as mapper.exe and renaming it to "rpgname.rpgdir".
As an example, I've printed out a map of the school from Alice is Trapped.
https://dl.dropboxusercontent.com/u/224 ... nsion0.png
Last edited by RMSephy on Thu Nov 20, 2014 6:21 am, edited 1 time in total.
- Bob the Hamster
- Lord of the Slimes
- Posts: 7660
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
Of course! I uploaded the source at https://github.com/Spencer-Zhang/ohr-cartographerBob the Hamster wrote:How cool!
Any chance you might be willing to share the source? I would like to try compiling a Linux version of this (I tried mapper.exe in Wine, but it did not work)
- Bob the Hamster
- Lord of the Slimes
- Posts: 7660
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
- Spoonweaver
- Liquid Metal King Slime
- Posts: 6467
- Joined: Mon Dec 08, 2008 7:07 am
- Contact:
- Pepsi Ranger
- Liquid Metal Slime
- Posts: 1457
- Joined: Thu Nov 22, 2007 6:25 am
- Location: South Florida
Sounds like something is up with how the program is interpreting the filename or the path. Just for reference, what is the path to the file? And are there any spaces in any of the directory names?Pepsi Ranger wrote:For some reason it won't work for me. The window disappears almost as quickly as it appears, but a screen capture reveals that it can't find the file I'm dropping into mapper.
Last edited by RMSephy on Fri Nov 21, 2014 12:38 am, edited 1 time in total.
- Pepsi Ranger
- Liquid Metal Slime
- Posts: 1457
- Joined: Thu Nov 22, 2007 6:25 am
- Location: South Florida
Here's a screenshot of what I actually see. Note that this was taken with a split-second screen capture. The window disappears almost as quickly as it appears. It does so whether I run the executable with an RPG file or unlumped folder dropped in, or with nothing at all. If I don't drop anything in, it reports a different message telling me that I need to run it with a game.
Also, I tried running it from the folder I extracted directly to. I also tried running the version packaged in the zip file called "OHR Cartographer" off the source link you posted.
Nothing works. This window keeps popping up.
Also, I tried running it from the folder I extracted directly to. I also tried running the version packaged in the zip file called "OHR Cartographer" off the source link you posted.
Nothing works. This window keeps popping up.
- Attachments
-
- mapper error.png (13.25 KiB) Viewed 5035 times
Place Obligatory Signature Here
I've updated the file a little bit (and made it so that it doesn't close right away). Can you try running it again and tell me what you see?
https://dl.dropboxusercontent.com/u/224 ... mapper.rar
https://dl.dropboxusercontent.com/u/224 ... mapper.rar
Well damn! I guess I have no excuse for not making a strategy guide to my games now. This feature is seriously awesome. Thanks for figuring out how to make this happen!
http://www.redtrianglegames.com
RMZ#4181
RMZ#4181
Awesome work! Saves us some trouble :)
I had a look through the code. Pretty clean.
The problem that Pepsi Ranger has is probably that it doesn't support openning an RPG file which is in a different directory. I found that pretty annoying as well, so I added it.
I also found a bug, the first tile in each animation range was misdrawn.
I wanted to start discussing a new RELOAD-based map and tileset format. Hopefully that's not too much of a disaster. Simple file formats are great for external tools, but requiring a RELOAD implementation seems far better than the alternatives. If you ever care to update it, you could either use reload2xml, or port one of the existing RELOAD implementations written in FreeBasic, Python, and Java.
I had a look through the code. Pretty clean.
The problem that Pepsi Ranger has is probably that it doesn't support openning an RPG file which is in a different directory. I found that pretty annoying as well, so I added it.
I also found a bug, the first tile in each animation range was misdrawn.
I wanted to start discussing a new RELOAD-based map and tileset format. Hopefully that's not too much of a disaster. Simple file formats are great for external tools, but requiring a RELOAD implementation seems far better than the alternatives. If you ever care to update it, you could either use reload2xml, or port one of the existing RELOAD implementations written in FreeBasic, Python, and Java.
Last edited by TMC on Sat Nov 22, 2014 5:23 am, edited 1 time in total.
- Pepsi Ranger
- Liquid Metal Slime
- Posts: 1457
- Joined: Thu Nov 22, 2007 6:25 am
- Location: South Florida
More or less the same thing. The window stays open, so thanks or fixing that, but the error is even more mocking. The screenshot says it all.RMSephy wrote:I've updated the file a little bit (and made it so that it doesn't close right away). Can you try running it again and tell me what you see?
And I downloaded the zip file for OHR Cartographer following TMC's fix, but I don't think his adjustments have been committed yet. My feeling is that I'll have fewer problems with it once they are.
- Attachments
-
- mapper error 2.png (9.33 KiB) Viewed 4983 times
Place Obligatory Signature Here