Post new topic    
Page 1, 2, 3  »
Metal Slime
Send private message
OHR tilemap exporting tool 
 PostThu Nov 20, 2014 6:19 am
Send private message Reply with quote
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/22483930/ohr-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/22483930/screenshots/mansion0.png
Metal King Slime
Send private message
 
 PostThu Nov 20, 2014 9:03 am
Send private message Reply with quote
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
Metal Slime
Send private message
 
 PostThu Nov 20, 2014 3:01 pm
Send private message Reply with quote
Hey, that is neat! I could see this being useful for making strategy guide/FAQ maps for a more complex and lengthy game.
Liquid Metal King Slime
Send private message
 
 PostThu Nov 20, 2014 3:22 pm
Send private message Reply with quote
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)
Metal Slime
Send private message
 
 PostThu Nov 20, 2014 4:39 pm
Send private message Reply with quote
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
Liquid Metal King Slime
Send private message
 
 PostThu Nov 20, 2014 5:13 pm
Send private message Reply with quote
Sweet. The ruby source runs perfectly on linux.

Liquid Metal King Slime
Send private message
 
 PostThu Nov 20, 2014 6:36 pm
Send private message Reply with quote
Fantastic!

Metal Slime
Send private message
 
 PostThu Nov 20, 2014 8:48 pm
Send private message Reply with quote
Well there goes the need for my hotohr feature request.
Liquid Metal Slime
Send private message
 
 PostThu Nov 20, 2014 11:40 pm
Send private message Reply with quote
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
Metal Slime
Send private message
 
 PostFri Nov 21, 2014 12:36 am
Send private message Reply with quote
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?
Liquid Metal Slime
Send private message
 
 PostFri Nov 21, 2014 2:38 am
Send private message Reply with quote
mapper error.png
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.
Place Obligatory Signature Here
Metal Slime
Send private message
 
 PostFri Nov 21, 2014 3:35 am
Send private message Reply with quote
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/22483930/ohr-mapper.rar
Liquid Metal Slime
Send private message
 
 PostFri Nov 21, 2014 3:09 pm
Send private message Reply with quote
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!
Check out Red Triangle Games!
Metal King Slime
Send private message
 
 PostSat Nov 22, 2014 4:53 am
Send private message Reply with quote
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.
Liquid Metal Slime
Send private message
 
 PostSat Nov 22, 2014 8:17 am
Send private message Reply with quote
mapper error 2.png
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.
Place Obligatory Signature Here
Display posts from previous:
Page 1, 2, 3  »