MZ dont save map as image in the same size.

i didnt buy mz yet bcuz its unavailable 4 linux but ive downloaded the demo to test it
ive clicked to save map as image but the image has a pathetic resolution of 1.536x1.536 instead of 12.288²
the map/image is totally massed up.

the map i tried to save was a 256x256, and im using 48x48 tileset. 256*48=12.288
as it was always the case you'll need a mapshot script (Ace) or plugin (MV/MZ) to get a picture in full size.
the editor mappicture has always been halfsize (and will probably remain so in the next makers) because it was and is intended for other uses.

Improved Image Save Function​

"When saving maps using the built in editor function, they now save pixel perfect, rather than being resized"

why do they put this as a feature then ?
MZ will export the map at the correct size as long as the map is 32 x 32 or smaller. Anything bigger than that will require a plugin. Currently, the only plugin I'm aware of that can do this on MZ is Cyclone Map Editor. In the next week or two, I will probably port Orange Mapshot to MZ, so that people will have a less drastic option.

But just to make sure you're aware, if you're trying to do this for the sake of parallax mapping, you shouldn't be using such a large map size anyway, as the minimum system requirements for your game would be monstrous. When parallax mapping, you're generally going to want to break your map up into reasonably small sectors anyway.
In the next week or two, I will probably port Orange Mapshot to MZ, so that people will have a less drastic option.
Yes please. Be a hero!
@Arthran
how much monstrous would a 256² paralax map be?
with the requirements of MV can i run a game with paralax of 32² ?
  • Intel Core2 Duo or better
  • 4 GB RAM
  • DirectX 9/OpenGL 4.1 capable GPU
  • 2 GB Storage
  • 1280x768 or better Display
how much monstrous would a 256² paralax map be?
the first problem is that a parallax map needs about four thousand times the RAM of a tilebased map.
And that is uncompressed RAM, not compressed storage space because you cannot work on compressed data.

the second problem is that the entire mappicture needs to be loaded in RAM - with a tiled map, only the screen size part of the map plus some overhead needs to be in memory - that is exactly the reason why the tiles exist.

Five years ago, even top of the line computers got laggy on a parallax map beyond 150x150 tile equivalents. Today some computers might be able to handle larger parallax maps, but not with only 4 GB of RAM.
@Andar
how to optimize it ?
ive readed here that using 256 colors only, like old games, can make things better
if a nintendo ds with 4MB RAM can run a 3d pokemon game there must be a way to run a mv/mz 1 in a core2duo + 4gb RAM
ive readed here that using 256 colors only, like old games, can make things better
yes and no. It is not the colors used but the colors reserved that count, and browsergames usually don't switch graphics modes in Windows.

In a tilebased map, each tile is identified by a single number, usually 2 Bytes. And you need to multiply that by the number of layers - for MV that means you need 6 Bytes to describe the entire tile (plus the overhead of the actual tileset storage).

For a picturemap the same space needs 48x48 pixel multiplied by the color storage - usually 24 bit RGB, multiplied by the layers (usually two: ground and above player).
yes, reducing the color space to 256 would use only one instead of three bytes per pixel. But you still need 48x48x2 pixels for the same space as the tile.

so your color reduction (which only works if the windows color mode is reduced to 256 colors) will result in the parallax map needing ony one third of the RAM - which is still a thousand times more RAM than the tilebased map.

And additionally, most older games never have such large maps - they always cut the map in tiny parts with only a few parts loaded at the same time, where a parallax map needs to be completely loaded at the same time.
That is a completely different approach and solution, and it was suggested above to use smaller maps.

if a nintendo ds with 4MB RAM can run a 3d pokemon game there must be a way to run a mv/mz 1 in a core2duo + 4gb RAM
Actually you are completely wrong in your assumptions here.

3D replaces storage with calculations, and only textures would need RAM. Since the DS uses 3D with mostly simple textures or single colors with no textures at all, a dedicated chip for the calculations means that it can work on almost no RAM to create the 3D display.

2D on the other hand is pure texture, which always needs a lot of RAM.

So NO, there is absolutely no way to compare the two parts and your assumption what is possible is simply wrong.
pokemon emerald is only 2D, looks the same as rpg maker and runs in a gameboy advance sp
  • Memory: 32 kilobyte+96 kilobyte VRAM (internal CPU), 256 kilobyte DRAM (external CPU).

while a core2duo+4gb struggles to make a equal game but with a large map, why?
because the game does not use any large maps.

as I already mentioned above, the key is the large map in memory for the entire time.
no handheld ever has anything like a large map in memory, simply because they don't have such a large memory. I think the maximum map sizes for those games are around 20-40 tiles.

they only pretend to be on an single map, but they switch maps instead and delete that map the second it is no longer on screen.
If you cut down your parallax map into parts smaller than 40x40 and use a plugin to switch between maps invisibly, you won't have problems either.
Sorry i forgot my Coffee totally miscalculated, deleted my answer.😅

Iam interested in the Picture Plugin myself.
Yes please. Be a hero!
Iam interested in the Picture Plugin myself.
Here ya go: Orange Mapshot MZ
Just a note... If your maps are large, this will result in huge images.

For example: a map with 150x150 tiles, will be 7200x7200 pixels (when using a 48x48 grid), which is hundreds of MB's. (How many MB's depends on the variety of colors used. More different colors equals more MB's)
@Arthran A hero indeed. Thank you.

@JohnDoeNews What you say is true, but I personally am not using this as a basis for parallax images (which I don't use) but for other things.
i didnt buy mz yet bcuz its unavailable 4 linux but ive downloaded the demo to test it

Sorry that this is off topic, but I just wanted to comment that the RMMZ.exe works really well in WINE. It lags a little but the functionality seems close to flawless.
@JohnDoeNews What you say is true, but I personally am not using this as a basis for parallax images (which I don't use) but for other things.
Oh, I didn't even think of parallax maps, just the images in general. The only thing I can think of where you could use 7k×7k images, is if you want to print them on a large skill.

Anyhow, there is a solution now, so problem solved. 😛 Good luck
pokemon emerald is only 2D, looks the same as rpg maker and runs in a gameboy advance sp
  • Memory: 32 kilobyte+96 kilobyte VRAM (internal CPU), 256 kilobyte DRAM (external CPU).

while a core2duo+4gb struggles to make a equal game but with a large map, why?

Textures require an insane amount of space, and GPUs have limited bandwidth. You want to avoid storing an uncompressed texture in VRAM, so you can afford to store more textures, and waste less time pushing the textures around. This is why texture compression algorithms are a very big deal when it comes to 3D graphics.

They are less important to 2D games, because 2D games generally don't need as many or as high resolution textures as 3D games. This is why RPG Maker games can afford to use PNGs without absolutely murdering their performance. 2D games also use a technique called "tiling", which allows them to create gigantic maps with very little textures.

Let's do the math:
You have a 256x256 tile map. That's 65 536 tiles in total. Each tile is 48x48 pixels in size, for a total of 2304 pixels per tile. In other words, your map has 12 288² = 150 994 944 pixels in total. So far, your math was correct. But we're not done yet.

On a 24 bpp screen, a single pixel requires 3 bytes (1 byte per color channel), so your map requires a total of 452 984 832 bytes, or almost 453 MB. By comparison a single FullHD (1080p) frame would consume a little over 6 MB. Your map is 72.8 times that size.

453 MB may not sound like much, but from my limited research, libpng (the official PNG reference library) has a decompression speed of around 100 MB/s (on a mid-range laptop in 2021), so it'd take 4 seconds to decompress your map. Imagine doing that on every frame, and you can easily see why a Core2Duo struggles with it. It also doesn't help that libpng is not multithreaded, so even a Ryzen 9 5950X (with 16 cores and 32 threads) would struggle with that map.

Even if we use the GBA's 15 bpp color screen (5 bits per color channel), that's still 283 MB of space for a single map. Pokémon Emerald would never run on a GBA if it had to load a map this large, and the Core2Duo would still struggle with it on every frame.

Since we're already here, let's calculate how much RAM the GBA needs to display a single frame.

The GBA has a resolution of 240x160 pixels. That's 38 400 pixels in total. At 15 bpp, that's a total of 72 kB per frame. As a result we can calculate that more than half the GBA's VRAM is dedicated to its frame buffer: 72/(32+96) = 0.5625, leaving 56 kB of VRAM for textures.

With its 16 MHz CPU, the GBA has a roughly 100 times slower clock speed than a mid-range laptop with 1.6 GHz CPU. Let's be generous and say that the GBA is about 1000 times slower. With libpng, the GBA would have a decompression speed of 100 kB/s. That would allow it to decompress a 56 kB texture in 0.56 seconds.

While this is still slow, note that the GBA only supported uncompressed textures (of either 256 or 16 colors per pixel). That means developers could store up to 29 866 pixels of textures in the GBA's VRAM (16 times as many if using only 16 colors). With 16x16 pixel tiles (the GBA could fit 15x10 such tiles on screen), that's a total of 116 unique tiles that fits in the GBA's VRAM.

During my research, I found a map of Pokémon Emerald's Safari Zone. I counted over 50 unique tiles and estimated less than 100, which is well within the GBA's capabilities. If each tile of the Safari Zone's map was unique, the Safari Zone would not fit in the GBA's VRAM either.

And herein lies the problem. When you create a 256x256 tile map for the purpose of parallax mapping, you are essentially creating a map of 256² unique tiles. That would most definitely not fit the GBA's VRAM at all, unless you subdivide that huge map into many smaller submaps.

That way, you could load the next submap as your player approached the edge of the current submap. You'd need to ensure that at least 4 submaps can be loaded at the same time, so the player can approach the corner of a submap without your device going OOM (out of memory). This is how large open world games work. They can't possibly load everything in memory, so they divide the world in chunks and only load the chunks as needed.
Let's do the math:
You have a 256x256 tile map. That's 65 536 tiles in total. Each tile is 48x48 pixels in size, for a total of 2304 pixels per tile. In other words, your map has 12 288² = 150 994 944 pixels in total. So far, your math was correct. But we're not done yet.

The outcome is correct, but the explanation is all over the place. 😛 Maybe you are extremely good with numbers (like me...) or you know your way around a calculator, but I doubt many readers understand much of what is happening from this point on. 😛


pokemon emerald is only 2D, looks the same as rpg maker and runs in a gameboy advance sp
  • Memory: 32 kilobyte+96 kilobyte VRAM (internal CPU), 256 kilobyte DRAM (external CPU).

while a core2duo+4gb struggles to make a equal game but with a large map, why?

The tiles in a GBA game are smaller, there are less colors used and there is less detail in the graphics. Also the screen is way smaller, meaning the engine has to render much less tiles at the same time.

You can see the difference clearly when I put a RPG maker character and a pokemon character next to each other.
1670791546722.png


See? The MV character is waaaaaaaaay bigger than the gameboy character, with more colors and more pixels. The same goes for ALL other graphics in the game. And that is why pokemon runs smooth on a gameboy, while MV or MZ can lag on a much faster PC.

You just can't really compare those two.

Original thread: https://forums.rpgmakerweb.com/threads/mz-dont-save-map-as-image-in-the-same-size.152928/