Here is a map screenshot script in progress.
The script allows you to create a bitmap that contains an image of some map. You can then do something with the image like maybe showing it on the screen, or you can export it, or other things you can do with a bitmap.
The following base features are planned to be supported
-draw layer 0 (autotiles) Not done
-draw layer 1 (autotiles) Not done
-draw layer 2 (the tiles on top of the autotiles) Done
-draw sprites (events, vehicles, characters) Done
-map scaling (all tiles will be scaled by a constant factor) Done
-drawing arbitrary maps by ID (draw_map(1) would draw the map with map_id = 1) Done
Additional options can be added, all of which interact with tiles
-damage tile highlighting
Uses the png export from the map saver
though I would prefer bmp export since it should be faster.
The script is still very inefficient (loop through every tile multiple times) and not suitable for generating images at run-time if you need previews for whatever reason. Needs to be optimized.Looking for some help with retrieving the correct auto-tile so that I can draw it on the image.
Link to script: http://db.tt/0XSfT2iz
EDIT: ya, I would prefer bmp export. It takes less than 0.05 seconds to process all of the layer 2 tiles on a 39x48 map, but the export takes another 5-6 seconds.
A 100x100 map with nothing on it took only 0.3 seconds to read, but exporting took like a minute.
This post has been edited by Tsukihime: Apr 27 2012, 10:24 PM