Bitmap error

Every so often I will bump into a bitmap error whenever I fight one of the evented monsters

I am using a Yanfly script in which starts up random battles.

The error itself

Spoiler
[IMG]http://i43.photobucket.com/albums/e378/PhotoPhantasizer/Error_zps7b65125c.png[/IMG]
Heres where the error occurs, on the script error call.

Spoiler
[IMG]http://i43.photobucket.com/albums/e378/PhotoPhantasizer/BitmapError_zps4c5b016e.png[/IMG]
Event

Spoiler
[IMG]http://i43.photobucket.com/albums/e378/PhotoPhantasizer/Event_zps663509c4.png[/IMG]
What does the error message says?
If that is the line that's causing the error, it means it's trying to load an image that you have removed, or that is corrupt.

Go into your script editor, insert a line ABOVE 106, and enter the following:

p path

Then turn on the console (Game menu > Show Console) and play. When the game crashes, check the console. The last file in the list is the one it was trying to load.

And yes, if you have a script error, please show the ENTIRE error - script name, line number, and exact error message. There is at least one script that seems to often cause bitmap errors, and it's nothing to do with that line.
I added the error message.
And did you do the other stuff I suggested? You shouldn't need anymore help from us - doing what I said above should tell you EXACTLY which file it has the issue with, and you can then look to see if it exists or has been deleted, or if you need to change the event or whatever is trying to use it, to use something else instead.
Well as a side note, I added what you suggested. Thankfully it works... or so it seems. The version I was having trouble with is a compressed and encrypted version.

I probably should have noted that before. I will compress and encrypt this modified version, hopefully there won't be anymore problems. I might be missing something within the compressed version. Although another note to add is that this occurred after several encounters... it ran fine several times before.
The script change wasn't to fix the problem.  It was simply to help you identify what file was causing the crash.

If you put in the script and it hasn't crashed again since, it simply means it hasn't tried to load that file.  The problem is NOT fixed.  And I doubt it has anything to do with the game being compressed and encrypted - unless one of the graphics files was damaged in the process.

I would suggest it's probably an animation that it's unable to find, and the reason you're only getting the crash "randomly" is because you're either not fighting the same enemy, or that enemy isn't using the skill that contains the problem animation.  Or YOU aren't using the skill that contains the problem animation.

I say animation because it sounds like the crash is happening mid-battle, when you're likely to get them playing as a result of skills being used.

So you COULD go through ALL the animations and attempt to play them in the animation tab and see if you get issues anywhere, or you can just keep trying battles with that script mod and checking the console if the game crashes.  WHEN you get the crash and see what file it's failing to load, then you can fix the file and remove that line from the script again 🙂
Well you can tell that I don't know anything when it comes to scripting, stuff scares me to even tinker with the coding! I checked the file that wasn't compressed, it works fine... so there isn't a problem anymore. I battled the enemies several times just to ensure that it worked. Appreciate the help Shaz 😉 .
Okay. I'M not convinced that you fixed the problem, if you did nothing more than add that line of code. I expect we will talk about this again 😉


But if you're happy, I'm happy.


Make sure you remove that line again - you don't really want it in when you release your game.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/bitmap-error.24377/