Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> 


———
Before you ask! Read! ;)

You must have 30+ Posts to create a topic here!

Thanks for reading!
———

> Map screenshot VXA
Tsukihime
post Apr 27 2012, 02:29 PM
Post #1


Level 25
Group Icon

Group: Revolutionary
Posts: 560
Type: None
RM Skill: Undisclosed
Rev Points: 25




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
-region coloring
-...

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


__________________________
My Scripts
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
Tsukihime
post Apr 28 2012, 02:00 AM
Post #2


Level 25
Group Icon

Group: Revolutionary
Posts: 560
Type: None
RM Skill: Undisclosed
Rev Points: 25




Now to re-factor the code.



This post has been edited by Tsukihime: Apr 28 2012, 10:13 AM


__________________________
My Scripts
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- Tsukihime   Map screenshot VXA   Apr 27 2012, 02:29 PM
- - Tsukihime   Some research on how the tilesets are parsed. If a...   Apr 27 2012, 08:27 PM
- - Tsukihime   Now to re-factor the code.   Apr 28 2012, 02:00 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd May 2013 - 07:35 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker