Exporting a whole map as bmp?

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
marionline
Metal Slime
Posts: 673
Joined: Sat Feb 26, 2011 9:23 pm

Exporting a whole map as bmp?

Post by marionline »

Question:Is it possible to export a whole map as one bmp-file?
I'd like to see the whole map (20x20 pixels for each tile).

And by the way, what is the .tilemap file that can be exported from the editor?
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

Yes, you can! RMSephy wrote a tool that can do that:
https://github.com/Spencer-Zhang/ohr-cartographer
(Select "Clone or Download" at the top right and then "Download ZIP")
Here is the thread about it: http://www.slimesalad.com/forum/viewtopic.php?t=6373

Oops, I thought that I mentioned this on the F1 help page, but it turns out I only mentioned it in whatsnew.txt

A .tilemap file is the OHR's format for the tilemaps of a map. You can use it to copy a map between different .rpg files. But it ONLY includes the tile layers, it does not include tilesets, NPCs, walls, zones, map settings, or anything else. In future it will be replaced with a better format that does include those things.
Last edited by TMC on Sun Nov 20, 2016 2:21 pm, edited 1 time in total.
User avatar
kylekrack
Liquid Metal Slime
Posts: 1243
Joined: Mon Jun 16, 2014 8:58 am
Location: USA
Contact:

Post by kylekrack »

I'm incompetent. Is there any easy way to get this to run on OS X? I don't have the time to reinstall and play around with Wine right now, so I figured I'd ask in case there was a simple way of doing it.
My pronouns are they/them
Ps. I love my wife
User avatar
marionline
Metal Slime
Posts: 673
Joined: Sat Feb 26, 2011 9:23 pm

Post by marionline »

@TMC:
Thanks for your answer. :)
From the thread I take it, it can be run under Linux.

But I am not familliar with Ruby ....
I tried:
<quote>ruby main.rb </quote>

And that's the error I got:
<quote>
ruby main.rb
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- oily_png (LoadError)
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /media/<user>/<usb>/Finish_Game/tools/ohr-cartographer-master/lib/map.rb:1:in `<top (required)>'
from main.rb:2:in `require_relative'
from main.rb:2:in `<main>'
</quote>

Do I have to do something else first before running 'ruby main.rb'?
Or is it because I'm trying to run it from USB-drive?
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

You're both in luck. The program is written in Ruby and OSX and all decent GNU/Linux distros include Ruby by default. (Depending on which OSX, looks like you might not have rubygems, though, I don't know.)
I realised that the program requires a copy of the 'unlump' tool, which we don't actually provide a copy of for OSX anywhere, so I added copies for linux and mac to ohr-cartographer myself (I'll also change the OHR's nightly build script). You will need to get the program from my github repo; RMSephy has disappeared without accepting my pull requests.
I put the instructions here: http://rpg.hamsterrepublic.com/ohrrpgce ... rtographer
Last edited by TMC on Mon Nov 21, 2016 2:22 pm, edited 1 time in total.
User avatar
RMSephy
Metal Slime
Posts: 356
Joined: Mon Dec 21, 2009 5:56 pm

Post by RMSephy »

Yeah, sorry about that. I had gotten a new github account for work and haven't logged into my old account for a long time. I'll merge in TMC's pull request
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

Ah, good.

Just curious, why do you squash together all commits in a pull request?
User avatar
RMSephy
Metal Slime
Posts: 356
Joined: Mon Dec 21, 2009 5:56 pm

Post by RMSephy »

Force of habit, really.

Honestly though, in pull requests I tend to make tons of trivial commits for fixing typos and small bugs, and squash-merge lets me hide all that in the commit history.
Post Reply