My terrible map flooding plugin aka learning map formats
BMM_Archive · July 15, 2026
Original Source
- Original title: My terrible map flooding plugin aka learning map formats
- Original author: darkgriffin
- Original date: June 2, 2016
- Source thread: https://forums.rpgmakerweb.com/threads/my-terrible-map-flooding-plugin-aka-learning-map-formats.62858/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Learning Javascript
Summary
I'm a bit sick today, so you'll have to bear with my rambling mind a bit. Anyway, in an effort to try and understand the map structure, I managed to make a plugin that floods an entire map with the tile in 0,0,0 of a map. Yes, it's as useless as that sounds. Even more so because there is no way to skip affecting any maps. So you can't really make much more then "adventures of Ralph in the infinite carpet dimension." I just thought some other coders might like...
Archived First Post
Anyway, in an effort to try and understand the map structure, I managed to make a plugin that floods an entire map with the tile in 0,0,0 of a map.
Yes, it's as useless as that sounds. Even more so because there is no way to skip affecting any maps. So you can't really make much more then "adventures of Ralph in the infinite carpet dimension."
I just thought some other coders might like to see a possible way into the map loading code. This provides a way to modify a copy of the data being fed into the map rendering in game. I've tested and it appears this particular function is only run on map load. It will run once for every time the game loads map data from the database.
I was intending to code a dungeon generator using this method, though that is still a very, very, very distant goal right now.
It seems the map data this time is not a 3 depth array like the manual claims it is. At least, not at this level of access. Instead, it's a single list of tiles for each layer of the map, which can be accessed through a few "magic formulas" to find the numerical data in a certain x,y,z position. It's all very clever till one tries to comprehend how to step all around in it.
My next step I suppose is trying to figure out how deep the data for a single tile is, and how autotiles work. The manual is much less then helpful with how things are structured, I got this far only with a lot of sniffing around using the F8 debugger. But I will keep hammering away.
Any advice for dealing with tile data would be greatly appreciated. I'm mostly stumbling round in the dark poking and breaking things.
View attachment DarkGriffin_Newbie.js
Downloads / Referenced Files
RPG Maker Web attachments are mirrored locally when available. Other external links remain hosted by their original creator or third-party service.
- Local mirror: DarkGriffin_Newbie.js
SHA-256:ac761ef6bcc39d68511a18d40101be361536655b22629c041962f1d429334106
Original attachment URL: https://forums.rpgmakerweb.com/attachments/darkgriffin_newbie-js.39258/
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...