MoarMaps - You can never have too many maps

Zeriab's MoarMaps
With RPG Maker MZ the map limit was bumped up to 2000 maps.
Clearly a limit only a select few developers can managed to stay within.

1598466880878.png

Us true map makers need MOAR MAPS!

This plugin allows you to have subfolders with additional maps and then transfer between them. There is virtually no limit to the number of maps.

Technically you can manage each of the subfolders in a separate project.
Here is an example where I want a church subfolder. I have created a separate RMMZ project for it.
multiple projects.png


Copy the MapInfos.json and the MapXXX.json files to the subfolder.
subfolder.png


In your main project you can transfer to these new maps with a plugin command.
transfer.png


Copy the plugin to your helper project and there is a command you can use to transfer back to the main project.
transfer back.png


Code
To access the plugin you can either download the attached files or copy the code from pastebin.



What to do when you want over 9000 maps?
Once you reach these numbers you start to notice that the maps actually take up a lot of harddrive space.
To help with this I have created a helper plugin that will compress all the maps in the subfolders. You can then configure your MoarMaps plugin to read from the compressed maps.

Please note: The maps of main project will not be compressed.

To access the helper plugin you can either download the attached files or copy the code from pastebin.





P.s. feel free to use any part of my code as you please. I didn't make this plugin because I thought there was an actual need.
*hugs*
- Zeriab
Finally, a way to use subfolders. Couldn't do it in ace ☹️
moar is always good!
Nice plugin 🙂
woaaahhh there Zeriab you can't provide such POWER to the Mortal kind we will provoke the Mapocalypse!
Time to make a Map RPG.

Yes, traverse all 500k maps only to find out there was no point.
Its a time to create truly epic RPG! :rheh:
Well, Im not a mapper but I'd like to break MZ limit and use this..
Finally, your plugins are miracle. So people cannot just say MZ has limited maps. You are indirectly helping the moderators with this one.
Finally, your plugins are miracle. So people cannot just say MZ has limited maps. You are indirectly helping the moderators with this one.

But can it make 1500x1500...
Just link as many 256x256 maps with 2000 events as you want with this plugin. There is a way to make it look like a map has 1500 (or more) tiles across, make the neighboring maps match the edges of the map you start with.

Over 9000 256x256 maps with 2000 events each, that sounds like a lot already 😀
But can it make 1500x1500...
how will my vision of my first open world mega mmorpg skyrimscape be complete without a fully scaled 1:1 map of the entire planet work now?
Hehe, I am glad you all like this plugin.

In the helper plugin I use a lot of synchronous file system calls. They work well in this case because you will see the loading spinner going until the processing is complete. For other preprocessing needs, which follow the same style as mine, they work well. Take for example this piece of code that did not make it into the final plugin:
JavaScript:
        disablePlugin() {
            // Load
            const oldPlugins = this.fs.readFileSync(this.pluginsConfig, 'utf8');

            // Generate new text
            const before = '"Zeriab_MoarMapsHelper","status":true';
            const after = '"Zeriab_MoarMapsHelper","status":false';
            const newPlugins = oldPlugins.replace(before, after);

            // Backup copy (old backup is overwritten)
            this.fs.copyFileSync(this.pluginsConfig, 'js/plugins.js.backup');

            // Save updated data
            this.fs.writeFileSync(this.pluginsConfig, newPlugins, 'utf8');
        }
This does work as expected. Problem is that you need to close the editor without saving and open it again to see the change. If you don't close the editor but keep working in it then any saves will set the status of the script back to ON. So I chose not include this method.
You can also use this method for loading JSON objects. Just need to parse the json where I generate the new text and do your changes.

Please do not use the synchronous file system commands in plugins that should run during the actual game. Here you definitely should go with an asynchronous approach. If you want to load data files check out DataManager.loadDataFile. If you want to save and load data you create during a game then check out StorageManager.saveZip and StorageManager.loadZip. They are all located in rmmz_managers.js.

Sorry nio, but I believe devs should have the ability to shoot themselves in their own foot off if they so desire.
As for bigger maps. That is true. This plugin along cannot truly free the map makers. Only once we have a plugin for stitching maps together will we truly be free! (I don't plan on making such a plugin)

*hugs*
wait is the default 2000 not 999?

2000 wow I shouldn't need a plugin for more maps
MZ raised the limit from 999 to 2000
MZ raised the limit from 999 to 2000
How come then when it displays the map number it only uses three digits (Example: Map001). You are telling me that you can pass the three digit limit.
How come then when it displays the map number it only uses three digits (Example: Map001). You are telling me that you can pass the three digit limit.
You've made three posts in the thread about it...why haven't you just opened your project and tried to make a new map to test? 🤣

Or if you just Googled it, you'd find several threads about it with screenshots and such. But if you're not close to what you thought was the limit, why be considering a plugin for it in the first place?
the information is rather li
You've made three posts in the thread about it...why haven't you just opened your project and tried to make a new map to test? 🤣

Or if you just Googled it, you'd find several threads about it with screenshots and such. But if you're not close to what you thought was the limit, why be considering a plugin for it in the first place?
information is rather limited and other places use 999 maps
RMMZ uses padZero to add the leading zeros when figuring out the filename:
const filename = "Map%1.json".format(mapId.padZero(3));

You can test out how it works with the DevTools during Test play
"Map%1.json".format("1".padZero(3)); //<- "Map001.json"
"Map%1.json".format("12".padZero(3)); //<- "Map012.json"
"Map%1.json".format("123".padZero(3)); //<- "Map123.json"
"Map%1.json".format("1234".padZero(3)); //<- "Map1234.json"
"Map%1.json".format("9001".padZero(3)); //<- "Map9001.json"

It handles mapIds that are above 999 just fine.
There's no real limit when you play the game. The map limit is an editor limit
Can confirm RPG Maker MZ has over 999 maps probably the 2000 is accurate
How can I tell if the plugin worked or not. I moved all map files and put them into a subfolder under 'data' folder called Compressed 1. How can I tell if the moar maps work. Is it to see if I can have 2001 or more maps. Thought I could do it in 2000 but im not sure.

Original thread: https://forums.rpgmakerweb.com/threads/moarmaps-you-can-never-have-too-many-maps.126163/