Failed to create bitmap RMXP

Hello, I hope this is the right place for my question. My English is not very good. My language is German but I hope I can express myself in a meaningful way.

Now to my problem. I don't use any additional scripts.


( script 'sprite_Picture' line 40: RGSSError occurred. failed to create bitmap )


Every time I play through my game, from start to finish, I get this right before the end.

There are similar cases on the forum but that couldn't help me

If I only play the part, there is no error message.

And it only happens when I play the compess version.

When I start a test game, it works fine.

If I save in-game and then reload, it doesn't happen either.

I hope someone can help me. Thank you for reading.
Well, it was a long time since I worked with RMXP, but did you select something like "only include used images" and/or "encrypt" when exporting your game?
With Compress there is only one possibility to choose something.

'' Create Encrypted Archive ''

No matter what I do. Sooner or later, it happens.

I work a lot with pictures. But none is particularly large or has a double name.
How big is your game?
It's bigger than 128 mb and I've already tried your RPG Maker Encrypter. : p
The same result always in a different place. It looks as if the image cache is filling up and at some point just emergency shutdown.
When I set a temporary teleport to the places where it happened. It goes on normally. It only happens when I play the game in one go.
In that case you can try clearing the cache sometimes during the game. You should be able to do it with this code in a script call.
Ruby:
RPG::Cache.clear

If you open Task Manager (Ctrl+Shift+Escape) you can look at the memory consumption.
Be aware that depending on what scripts you have added other caches may exist.
That sounds like a potential solution. I have no experience with scripts or Ruby. How do I call this up?
That sounds like a potential solution. I have no experience with scripts or Ruby. How do I call this up?
Inside the scripts call box. When the event is activated, the call will be executed.
Use this command at strategic points in your game. Like for example after many images/animations are loaded.
IjmmLAh.png
ok wow, thank you both. I will try it.
Thx RPG::Cache.clear

That saved me

Original thread: https://forums.rpgmakerweb.com/threads/failed-to-create-bitmap-rmxp.139609/