Map Screenshot

You were right! All it took was adding in one light to use $game_map instead of Game_Map.new.setup(map_id) and it worked wonderfully!

Spoiler
RfpbWqR.png
Look at that procedural generated goodness! 

Thank you so much for creating what I think is the only way to be able to look at the entirety of one of my randomly generated maps!

(And shameless plug, the link is in my signature for those who want to try out my random dungeons)
Hime, when I try to download this script from your site it won't load the script, it asks me to save redirect.php instead.. So something is weird with the url.
I just gave it a shot, the script loaded fine on the site. Make sure you're just clicking the link and not doing right click and save as.
I just found this - it's a godsend for taking screens of whole maps with events visible. However, there is one serious issue: some events get moved when the screenshot is taken. I skimmed this thread and saw reference to basically this issue way back on page 2 (this post: http://forums.rpgmakerweb.com/index.php?/topic/2894-map-screenshot/?p=194522). There, Mister Big T mentions a door being misaligned in the map screenshot.

This is exactly what's been happening to me. Big events with $ in the filename are not in the correct place in the screenshots that get saved (this is true using either "mapshots" by pressing F7, or "screenshots" by pressing F6). It seems to only affect, specifically, certain characters that are both large in size and have the $ in their name. I opened a fresh, unaltered VX Ace project, changing absolutely nothing other than pasting this script in, and made a little dinky map to test on. The problem is present there, so it seems like it must be something IN this script. Screenshots demonstrating the problem follow.

First is a screen taken simply using Windows PrintScreen of the game window while it's running. You can see the position that all of the events are supposed to have.

z7fCktl.png


Then, the map screenshot that results from pressing F7. You can clearly see how the chimera and demon, both of which are large $ characters, are way out of place. However, the boat, scarecrow, and both doors are all exactly where they should be. The big door is interesting, because it's large and has a $ so it would seem to fit the criteria, yet it's fine. It also has a ! in the name, is this somehow saving it?

zPpIlkr.png
This is a late update but large sprites are drawn correctly now.
any way to have this take a screenshot using the lighting effects on the map?
You would need to modify it to include whatever layers/sprites/bitmaps are used by the lighting effects script.
Hello Tsukihime!   I love this script.  I've been using it in my Ace Project.  However, I have a request.  Can this be modified to work for VX?  I've tried a number of times to do it myself and I can't seem to get it to work.  It throws a syntax error at line 826 as a new copy.  Works fine for Ace.  I assume that means that it's something in the Ruby language upgrade from RGSS2 to RGSS3.
Hello. I'm writing to you 10 years later because I'm having a problem with the script.
It's not the script itself, because it's really good. But it's reaching its limits with the size of the maps.

I'll explain my problem: I'm making what are called "Maps Guides" for an RPG Maker VX Ace, and everything works fine with the script, but I've reached a point where some maps are 200x200, and I can't take screenshots of these areas because of this insane size.

Does anyone here have any solutions or recommendations for me?
I've already installed the 4GB patch, if you're planning on recommending me.
Hello. I'm writing to you 10 years later because I'm having a problem with the script.
It's not the script itself, because it's really good. But it's reaching its limits with the size of the maps.

I'll explain my problem: I'm making what are called "Maps Guides" for an RPG Maker VX Ace, and everything works fine with the script, but I've reached a point where some maps are 200x200, and I can't take screenshots of these areas because of this insane size.

Does anyone here have any solutions or recommendations for me?
I've already installed the 4GB patch, if you're planning on recommending me.
This one seems to work on 200x200
Hello, I noticed a small issue with the mapshot script, it did mess a bit the events by displaying them above tiles with priority 2 (star passability), here is a fix that can be put below Hime's script:

Ruby:
#==============================================================================
# Hime Map Screenshot events fix
#------------------------------------------------------------------------------
# Author: Timtrack
# date: 26/11/2025
# Requires: Map Screenshot by Hime
#==============================================================================
# Description: events, players and vehicles were drawn above some tiles before,
# leading to weird map screenshots, now they should be drawn as expected:
# an event with priority 0 or 1 (below or above player) will be drawn below
# tiles with star priority (2), events with prioity 2 will be drawn above.
#==============================================================================
# Installation: put it below the required script
#==============================================================================
# Term of use: free for any project, credit is not necessary
#==============================================================================

$imported = {} if $imported.nil?
$imported["TIM-TH_MapSaver-event-fix"] = true

#============================================================================
# Map_Saver
#============================================================================
class Map_Saver
  #--------------------------------------------------------------------------
  # alias method: draw_layer -> layer 2 (tiles B...E) is now drawn above
  # events with priority 0 and 1.
  #--------------------------------------------------------------------------
  alias tim_draw_layer draw_layer
  def draw_layer(layer)
    return tim_draw_layer(layer) if layer != 2
    #for tiles B...E, deal with under/same/above priority types to handle
    #events too
    0.upto(2) do |i|
      draw_layer2_priority(i)
      draw_layer2_sprites(i)
    end
  end
 
 
  #--------------------------------------------------------------------------
  # new method: tile_priority -> return 0 if under player, 1 if same and 2
  # if above player
  #--------------------------------------------------------------------------
  def tile_priority(tile_id)
    bit = 0x0f #got from airship
    flag = tileset.flags[tile_id]
    return 2 if flag & 0x10 != 0
    return 0 if flag & bit == 0
    return 1
  end
 
  #--------------------------------------------------------------------------
  # new method: draw_layer2_priority
  #--------------------------------------------------------------------------
  def draw_layer2_priority(priority_type)
    for x in @start_x ... @end_x
      for y in @start_y ... @end_y
        _x, _y = x*@tilesize, y*@tilesize
        tile_id = @map.data[x, y, 2]
        next if tile_id == 0 || tile_priority(tile_id) != priority_type
        get_bitmap(tile_id)
        draw_tile(x, y, @tile, @tile_rect)
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # new method: draw_layer2_sprites -> draw characters based on correct layer
  #--------------------------------------------------------------------------
  def draw_layer2_sprites(priority_type)
    case priority_type
    when 1
      draw_vehicles if @draw_vehicles
      draw_player if @draw_player
      draw_followers if @draw_followers
      draw_events_priority(0)
      draw_events_priority(1)
    when 2
      draw_events_priority(2)
    end
  end
 
  #--------------------------------------------------------------------------
  # new method: draw_events_priority (priority_type is 0,1,2 for o x *)
  #--------------------------------------------------------------------------
  def draw_events_priority(priority_type)
    layer_events = @map.events.values.select do |event|
      event.pages[0].priority_type == priority_type
    end
    #same code as draw_events:
    layer_events.each do |event|
      canDraw = event.pages[0].list.any? do |cmd|
        cmd.code == 108 && cmd.parameters[0] =~ /<screenshot:\s*tile\s*>/i
      end
      next unless @draw_events || canDraw
      id = event.pages[0].graphic.tile_id
      char_name = event.pages[0].graphic.character_name
      if id > 0
        normal_tile(id)
        draw_tile(event.x, event.y, @tilemap, @src_rect)
      elsif char_name != ""
        set_character_bitmap(event.pages[0].graphic, event.x, event.y)
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # overwrite method: draw_sprites, sprites are handled by layers
  #--------------------------------------------------------------------------
  def draw_sprites; end
end #Map_Saver

Original thread: https://forums.rpgmakerweb.com/threads/map-screenshot.2894/