Script 'Cache' line 106: RGSSError (Failed Bitmap)

I have seen a few of the previous threads who had this issue, but I have no idea about the solution that was given.

The game is unaltered by me, and a quest complete seems to have it crash, I assume because the error is with one of the rewards, or the script calling for the reward.

I read people saying you can check it with p path or something, but I have no idea where I'm meant to be typing it, or where I'm meant to be looking at all.

Please advise.

I've moved this thread to RGSSx Script Support. Thank you.



Scripts alter the game, so you have altered the game by adding a script or script call for reward. Which script are you using? And how do you call it?
It has various reasons to crash. One problem I found iirc the bitmap created is too big. Another reason could be the picture is corrupt. There is no silver bullet on this case. So we need to investigate when it happens, then diagnose it from there.
The game is unaltered by me,
Are you the developer of the game or did you just download it somewhere?
If you are not the developer, then you can't really repair a defective game made by someone else...
a quest complete seems to have it crash

since the included demo doesn't have any sort of quest system, and you've obviously played at least one quest through, that means you're playing a somewhat completed game, by an independent developer.
......the obvious question is, then.... which game is it?
It has various reasons to crash. One problem I found iirc the bitmap created is too big. Another reason could be the picture is corrupt. There is no silver bullet on this case. So we need to investigate when it happens, then diagnose it from there.


My apologies, I must have given the wrong impression. I am not using any scripts. I have not made the game, its just downloaded and played.

I would like advice on diagnosing the problem.
Are you the developer of the game or did you just download it somewhere?
If you are not the developer, then you can't really repair a defective game made by someone else...

I had a similar thought. Perhaps one of the images for the items in the quest reward was corrupted?
If it is someone else's game, you need to report it to them, as only they can fix it. But yes, it does sound like an image file got corrupted, so maybe a redownload in a different directory will help? If not I'd report it to the maker of the game, as they will have to fix it.
does sound like an image file got corrupted
that line lands near the empty_bitmap function, which only outputs a blank Bitmap.
(I couldn't tell for sure, because I added a few lines to Cache, so, line 160 goes a bit off for me)

my guess is that Bitmap, itself, the core function, was modified somehow (it does say RGSS Error)
I would like advice on diagnosing the problem.
Best to report to the dev. Explain on how exactly you trigger the error. Is it when entering map? or when access menu? or anything else? Because they're the only one who knows the root of the game.
In a similar issue, a user named shaz solved the issue, but I was unable to understand his method.

This is the link to that post. anyone have any ideas?

https://forums.rpgmakerweb.com/inde...error-occurred-failed-to-create-bitmap.40152/

https://forums.rpgmakerweb.com/inde...ache-line-106-rgss-error-failed-bitmap.20493/
Shaz's solution requires you to have access to editing the game. Since you're not the dev, I have to ask. Do you have that access?
nope. appreciate all the help. you can close the thread 🙂

Original thread: https://forums.rpgmakerweb.com/threads/script-cache-line-106-rgsserror-failed-bitmap.96159/