OHR tilemap exporting tool

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

User avatar
RMSephy
Metal Slime
Posts: 356
Joined: Mon Dec 21, 2009 5:56 pm

OHR tilemap exporting tool

Post by RMSephy »

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
Last edited by RMSephy on Thu Nov 20, 2014 6:21 am, edited 1 time in total.
User avatar
BMR
Metal King Slime
Posts: 3310
Joined: Mon Feb 27, 2012 2:46 pm
Location: The Philippines
Contact:

Post by BMR »

That is really, really spiffy. Makes my life a lot easier putting maps together for referencing stuff. Thanks!
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
User avatar
Foxley
Metal Slime
Posts: 832
Joined: Sat Nov 09, 2013 5:54 pm

Post by Foxley »

Hey, that is neat! I could see this being useful for making strategy guide/FAQ maps for a more complex and lengthy game.
User avatar
Bob the Hamster
Lord of the Slimes
Posts: 7660
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

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)
User avatar
RMSephy
Metal Slime
Posts: 356
Joined: Mon Dec 21, 2009 5:56 pm

Post by RMSephy »

Bob 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)
Of course! I uploaded the source at https://github.com/Spencer-Zhang/ohr-cartographer
User avatar
Bob the Hamster
Lord of the Slimes
Posts: 7660
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

Sweet. The ruby source runs perfectly on linux.

<img src="https://i.imgur.com/Q8Yxkbf.png">
User avatar
Spoonweaver
Liquid Metal King Slime
Posts: 6467
Joined: Mon Dec 08, 2008 7:07 am
Contact:

Post by Spoonweaver »

Fantastic!

Image
User avatar
Feenicks
Metal Slime
Posts: 697
Joined: Tue Aug 10, 2010 9:23 pm
Location: ON THE AIR IN THE AIR
Contact:

Post by Feenicks »

Well there goes the need for my hotohr feature request.
Image
User avatar
Pepsi Ranger
Liquid Metal Slime
Posts: 1457
Joined: Thu Nov 22, 2007 6:25 am
Location: South Florida

Post by Pepsi Ranger »

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.
Place Obligatory Signature Here
User avatar
RMSephy
Metal Slime
Posts: 356
Joined: Mon Dec 21, 2009 5:56 pm

Post by RMSephy »

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.
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?
Last edited by RMSephy on Fri Nov 21, 2014 12:38 am, edited 1 time in total.
User avatar
Pepsi Ranger
Liquid Metal Slime
Posts: 1457
Joined: Thu Nov 22, 2007 6:25 am
Location: South Florida

Post by Pepsi Ranger »

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.
Attachments
mapper error.png
mapper error.png (13.25 KiB) Viewed 5035 times
Place Obligatory Signature Here
User avatar
RMSephy
Metal Slime
Posts: 356
Joined: Mon Dec 21, 2009 5:56 pm

Post by RMSephy »

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
User avatar
RMZ
King Slime
Posts: 1697
Joined: Tue Oct 16, 2007 12:39 am
Contact:

Post by RMZ »

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!
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

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.
Last edited by TMC on Sat Nov 22, 2014 5:23 am, edited 1 time in total.
User avatar
Pepsi Ranger
Liquid Metal Slime
Posts: 1457
Joined: Thu Nov 22, 2007 6:25 am
Location: South Florida

Post by Pepsi Ranger »

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?
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.

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
mapper error 2.png (9.33 KiB) Viewed 4983 times
Place Obligatory Signature Here
Post Reply