Moving maps

Hello!


Quick question to a problem I am having. I am trying to take a map a friend made from inside a new project and import it into my main project. We are trying to do this so he can make me some maps in his spare time.


The map would basicly use the default tiles and have no events so it's just basicly just the tilesets that would be displayed.


we tried copying the map file from his project, renaming it, and pasting it inside the data file of the main project to and then opening the project to see if the map was in there however it was not....


Are we doing something wrong or is this something that's not possible currently? sorry if this is a common mistake.
Is there a map with that name already in the directory before you copy it over? If not, the editor cannot recognize the map, as it has no way to know it even exists. For that reason, the best way to do it is this:


Open up both projects. Yours, and the one your friend has the map in.


Click on the map your friend made, select copy.


Go to your project, click and select paste.


It will now paste over the new map.


If you cannot open two projects at once in MV, there is one other way, but it's a tad more risky. For that reason, I say


***Caution: BACK UP your project before doing this!!!!****


Create a map in the editor. Give it the default properties. Note the map id number.


Close out of your project.


Rename your friend's map to have the same ID number as the new map you made. Map names are Mapxxx.json, so if your new map was ID 052, name the file Map052.json. ***Important: You must include the leading 0***


Copy the map your friend made into your project's directory. It should ask you if you wish to overwrite the file, say yes.


Now you should be able to access the new map. If not, you overwrote a different map, which is why you back up the project first.


(I am not responsible if you accidentally delete something using these steps. Hence the heavy encouragement to back up the project first).
It's actually a lot more simple than you'd think... which I found out when I first tried moving a map from one project to another. You just need to copy/paste it from one project to the other.


Make sure that the tileset the map is using exists in both databases. It's easiest if they have the same index number, but if they don't, just open map properties and change the tileset to the correct one in that project. Also, make sure that any other graphics used on that map (like sprites for events) exist in the right folder of the destination project. Same with sounds, videos, etc. If you call a common event in one of the events, make sure to have the same common event in the database of the intended project.


1. Open the project with the map you intend to copy.


2. Select the map and copy it.


3. Open the project you're working on.


4. Select the project name in the map area of the editor.


5. Paste the map. 


6. Success!
So basicly your tricking the program into thinking it's saving mapxxx when its being overwritten by mapyyy with the same name. Is this no other way to do this? Seems to me trying to do collaborative work would be nearly snuffed by this. Like one person doing maps then another person goes in to event the maps while another works in the data base. almost feels like they don't want but one person working at a time. 


i have no trouble uploading art and sprites and tile sets but this seems to be the limit of working with others. i could see this process causing major set backs and having to redo maps in the long run. so it might just be easier to make them myself.


Anyone else have any suggestions?
Pretty much. The reason is there is another file which tells the editor which map ids actually exist, and unless you can edit that somehow, the map id has to exist first in the project before you can add another file. Otherwise, it doesn't think the map exists, as it sees that map as outside the range of valid id's, and doesn't load it.


Still, try to copy/paste it first. Usually that works, though I had to have two projects open before it would work for me (when I could only open 1 at a time it would clear my copied data out when I closed the first project, so I couldn't do what wintrybarnes suggested).
Quick question relating to this topic, cuz i've been thinking on it. How are the sample maps loaded in? those don't have a map id before you load them in do they? Is there any way to take the map in question from project x and insert it into project y as a sample map? I will try this and upload my results with an edit, but so far i can't find the sample maps in a folder.
I don't know how they are loaded, sorry. They might be hard coded into the editor, in which case it would be impossible (without breaking the EULA) to add to those. But, if you find a way to add to them, post it here, as I'd be interested to see that.


Incidentally, even if it does work, you still have to create a new map to use the sample map, which does assign an ID then, so either way you either are creating a new map. But it might get around the ID number issue of the file name.

Original thread: https://forums.rpgmakerweb.com/threads/moving-maps.55950/