New account registration is temporarily disabled.

[RMVX] COPYING & PASTING/TRANSFERRING MAP AREAS

Posts

Pages: 1
Hi all,

I need to duplicate all assigned maps areas onto a new map. Clearly recreating all areas (some 400+) is a huge and painful undertaking. Does anyone know a neat little trick to copy/duplicate/etc all my areas on to the new map without having to painstakingly recreate them myself one by one?

Thanks
SunflowerGames
The most beautiful user on RMN!
13323

Can't you just right click the map on the map list on the left side and copy it and then paste it as a new map?

Or you can use shift-click to copy it, but you can only really do smaller sections with this.
Wait, you're trying to create on huge, mega-map of all the other maps in your game. (WHY?!)

Nope, looks like you're just gonna have to do the hard-time buddy! ^.^;
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
This was an incredibly useful and fundamental mapping tool that I cannot believe they deleted from RPG Maker VX and Ace. Boycott VXA!

You can right click and drag to copy a pretty large rectangle of tiles though, I think. Just not infinitely large like you could in 2K/2K3/XP.
Wait... You can just copy/paste from map to map quite easily still. They just took out the Copy/Paste commands.

Hold Shift, right-mouse at the top of the area you want then still holding both shift and mouse button, drag over the area until you reach the opposite edge. Then go to the map you want to place it and still holding shift, tee up the rectangle how you want it and left-click. Easy.
Max McGee
with sorrow down past the fence
9159
I think the OP might actually mean map "AREAS" (you know, the things where random encounters go) as opposed to just chunks of tiles.
author=Max McGee
I think the OP might actually mean map "AREAS" (you know, the things where random encounters go) as opposed to just chunks of tiles.


Yes indeed! Thank you! Hahaha.
Ah... welp! >.<;
You can use regions to 'paint' them on the map but yeah, there's no way to actually copy/paste them from one map to another.
Do it in the scripting backend!


My quick and dirty hack suggestion would be to go to the Game_Player script and at line 205 look at:
def in_area?(area)
    return false if area == nil
    return false if $game_map.map_id != area.map_id
    return false if @x < area.rect.x
    return false if @y < area.rect.y
    return false if @x >= area.rect.x + area.rect.width
    return false if @y >= area.rect.y + area.rect.height
    return true
  end


This checks if the player is in a current area. The check that sees if the map the player is in matches the map ID of the area is this bit:
return false if $game_map.map_id != area.map_id

If you want to make an area of one map apply to another you could change this line. So for example if you want the maps from MapID#1 to be applied to MapID#2 (the map ID is given if you right click on a map and go to properties) you can change the line to say:
return false if $game_map.map_id != area.map_id or ($game_map.map_id == 2 and area.map_id == 1)

This will change the check so that if the player is on Map#2 the script will let all areas that belong to Map#1 apply. Hack accordingly to meet your needs.


This assumes that you want a perfect duplicate though. I've never tried editing the data files via the script backend before and I'm not sure if there's a means of changing and saving the area file in a way the game and editor are fine with.
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
You can't really change and save an area file. You can change the way the game interprets it though.

For example, I have a nice script that lets any event be a perfect copy of an event from another map, inheriting the original event's name, properties, pages, conditions and graphics. It's for RPG Maker XP though, and someone else made it for me in any case, so while I'm sure it's possible to make a similar script for VX regions, I'm not going to be much help in making it.
Pages: 1