Has anyone made a plugin or technique to have seamless transitions from one map to another? I was thinking about buying Casper's [CGMZ] Preloader plugin. I'm uncertain whether additional modifications would be needed. The basic idea is the assets are loaded about 5 steps before the map change to make it look like a smooth transition. It would be nice if it would go straight through, but a classic Legend of Zelda transition would work too.
Pre-loading for an open world
RPG Maker MZ Supporta preloader alone is NOT enough - because you would still need to delete the old map before the new one could even start loading. The engine can only hold one map in memory at a time.
second, you would need to transfer when you're half a screen away from the map end at minimum.
That would be nine steps away, not five.
That said, yes people have written scripts for seamless map transitions for older makers and there should be something like that for MZ as well - I just don't know of any because I haven't used MZ yet.
second, you would need to transfer when you're half a screen away from the map end at minimum.
That would be nine steps away, not five.
That said, yes people have written scripts for seamless map transitions for older makers and there should be something like that for MZ as well - I just don't know of any because I haven't used MZ yet.
Not preloading , but this will give a fade-in and fade-out effect between maps.
plugin-mz.fungamemake.com
Keke シームレス風場所移動 - Keke_SeamlessLikeTransfar.js - #ツクプラMZ
plugin-mz.fungamemake.com
it's not a question of steps, but of instances of transfers of kilobytes.
you may load 1 step before with an insane processor, and find out you have exceedingly more data to load than refreshes left, and it'll still lag.
or you may preload the literal entirety of the game in memory one time, regardless of processor speed, and transfer at any point without lag.
it's all about MATH.
it can only hold one [map logical object] in memory.
the [map logical object] can be 999 tiles in size and fit the whole world complete with NPCs, and no preloading would be necessary.
from where it stems, that you can either make the whole game in one map, or build the logical map from various individual [map physical files] stitched together, provided you have enough memory to hold it
it's all bytes and indexes... it should be of no consequence to the engine where they come from.
I really don't see the point in having two maps in memory just to do the transfer. For a zelda-like transition, it should be enough to have (a snapshot of) the current one stored as a bmp until the transfer is finished?
If I calculate the asset data size to the minimum system requirements then determine the amount of steps to the pre-load. When the players reach the loading zone, it starts a pre-load. Upon reaching the map exit, it would screenshot the last frame, blur the image, and then load the next map. I might be able to use progressive loading like this. If I pre-load near the edge, it could slow performance. I might need a mechanic like a safe house from Left 4 Dead before the load. This is going to be really hard.
Andar's telling me that someone else did it helped a lot. I had found C47_SeamlessMap v1.0.6. I could load on 9 tiles and use fog of war on the edge to maintain immersion. Chaucer also has the scene stabilizer. Using these seems a lot easier.
If neither work, I remember looking at WebAssembly (WASM). I could use the WebAssembly Garbage Collection (WasmGC). But that is a large detour.
If you were me, how would you do it?
The screen goes black and the player transitions to another place. It works well for going from village or castle to the world map, but from court room to dungeon area then it lacks a smooth transition to me. Chrono Trigger somewhat did it in a similar scene.
what if the player rides the line but never crosses it, and then goes back to the other side?
you dump what you've loaded and load something completely different? twice the work load.
no... that's stupid.
nobody in their right mind would do that.
the loading must happen when it's needed.
the key is defining *when* it's needed.
in normal conditions, when you switch maps, you're committed... you stepped on the transfer event, you switch, whatever is behind you is unloaded and you're left with the current map.
usually, that happens on a doorway... if you just don't step on it, nothing happens.
in an open world, if you load the whole thing in advance, then it's needed one time and never again.
or, you load by sections, defined by render distance.
here, you don't have render distance, you have physical separation of files.
so, where do you put the balance point? you make the section size blow to infinity and load only one time? or you make the section size approach zero and load at every individual step?
my approach was (because, I already coded it!) to design the world like a tree.
a common set of assets to start from, and then individual switches depending on branching zones.
what's common to everything? terrain and floors... when entering a city, load rooftops, sidewalks, arches, etc... when entering a house, keep the walls, unload roofs, load decorations, furniture, etc.
that's set theory, and it's a design approach, not a coding approach.
the one limitation you have to mind, is that you only have one object to manage all that, which is the logical $map... and, the memory space it may take to hold all that.
what goes into it, comes from the physical file MAPXXXX.ext, which defines what to load.
and the more physical memory you have, the more data you can load.
from there: can you break that link and establish what to load from somewhere else?
if you can, then suddenly you don't need the file.
it is theoretically possible, to put together a large open map from the collection of individual files and hold it whole in memory.
it's a massive construct, but it's possible.
L4D uses a BSP format, which is also individual set pieces.
when you reach a safehouse, it's a transfer between physical files.
the whole thing is the same technique across engines and time periods because *it works*.
it may probably be *the* solution to the problem, under these conditions: that you're only ever using one playing area, one *set* or scene, and only what's in it is important.
if you move from it, you have to switch physical frames of reference.
Never mind, I'll figure it out myself.
Personally, I have my maps extended a bit beyond what the player would normally be able to access, such as beyond trees or walls. The paths the player can go down have a standard transfer function placed at the preferred point, but the fade-out is set to "none".
This will take the player to the next location without taking the player away from the game. Assuming you have the maps sized correctly and the location transfers coordinated, you can mimic the way an open-world functions.
It's not seamless, though. There is a slight loading delay, and any events in one map that are not in the other will appear or disappear (doors, enemies, etc.) because it's a different map. While you can't make RPG Maker load more than one map at a time, you can definitely still mess with the basic functions of it. Even modern, large-scale, open-world games still have to load things in chunks.
This will take the player to the next location without taking the player away from the game. Assuming you have the maps sized correctly and the location transfers coordinated, you can mimic the way an open-world functions.
It's not seamless, though. There is a slight loading delay, and any events in one map that are not in the other will appear or disappear (doors, enemies, etc.) because it's a different map. While you can't make RPG Maker load more than one map at a time, you can definitely still mess with the basic functions of it. Even modern, large-scale, open-world games still have to load things in chunks.
This doesn’t make loading two maps into memory somehow necessary. I think you’re making this overly complex on yourself. That’s just how I’d approach it but if you know what you’re doing, go for I’d say.
Original thread: https://forums.rpgmakerweb.com/threads/pre-loading-for-an-open-world.179833/