Script cache line 106 rgsserror occurred failed to create bitmap что делать
A script cache issue:?
CWells
Storyteller/Artist
I was testing battles and with one enemy, I got this suddenly:
Script ‘Cache’ line 106: RGSSError occurred.
Failed to create bitmap.
Earlier this morning I had a crash on my computer right when it was saving the project! So I had to restore a previous version. Lost only 4 days of work. I wonder if this has something to do with it?
Global Moderators
Go into your Cache script, and add the following immediately before line 106:
Andar
Veteran
However, in my experience those crashes aren’t caused by Ace (or better said, not by ace alone), but either by other programs trying to mess with ace during operations or by data failures due to hardware problems (not neccessarily defective components, could also be overheating, too low power from power supply, high-voltage-peak from external devices or such things)
If your computer crashes often (more than once per month) you should start looking for the cause of those crashes.
CWells
Storyteller/Artist
Global Moderators
Doesn’t mean it’s okay. Just means whatever file it was trying to load at that particular time was not requested this time around. Which makes me more inclined to think it’s an animation.
Maybe you, or that enemy, didn’t use the same item/weapon/skill that was used previously, so the same animation wasn’t called. Keep repeating the battle, trying to get it to use all skills that could possibly have been used earlier.
CWells
Storyteller/Artist
Doesn’t mean it’s okay. Just means whatever file it was trying to load at that particular time was not requested this time around. Which makes me more inclined to think it’s an animation.
Maybe you, or that enemy, didn’t use the same item/weapon/skill that was used previously, so the same animation wasn’t called. Keep repeating the battle, trying to get it to use all skills that could possibly have been used earlier.
There has only been four skills and I never changed them either before the crash or after:
Attack,Guard, Wave, Ice.
I went to check the animations as well and they were all properly assigned. And in battle, the enemy cast all skills with no issue.
Script ‘Cache’ line 106: RGSS Error (Failed Bitmap)
MissSheep
Warper
Hello, so i’ll go straight to the point. My game (pocket mirror) is having the following error: Script ‘Cache’ line 106:RGSS Error (failed to create bitmap)
So i’m guessing that i’m getting this error because my game doesn’t keep my save files.. it’s like i save the game then close it but the save file has dissapeared so when i go to a specific area i get the error i mentioned before. So my question is: Does anybody know what i have to do? I tried re-downloading the game but still didn’t work. Please help me.. i’m not good with these stuff so i don’t know..
Heirukichi
Veteran
Did you place you game in «C:\Program Files\Whatever» or «C:\Program Files (x86)\Whatever»? If you did, you have to run the program with administrator privileges or the OS does not allow you to write in one of those folders.
I am not sure if that error is caused by this, but this might be the reason preventing your game from saving properly.
That said, the error you get means that the engine cannot load an image. It might be because the file is corrupted, because it has a wrong extension, because it was an image taken in-game and not successfully saved, there are various reasons for it. I am afraid you have to investigate more.
EDIT:
Check if you have two files with the same name, but different extension, with one of them being from the RTP. That might be causing the error.
TheoAllen
Self-proclaimed jack of all trades
The extension doesn’t matter. The fact that you load an image in the script, specify the string without the file extension at all and still work, yeah it doesn’t matter. It is likely the file is corrupted, or simply can not load, or too big to load.
MissSheep
Warper
Did you place you game in «C:\Program Files\Whatever» or «C:\Program Files (x86)\Whatever»? If you did, you have to run the program with administrator privileges or the OS does not allow you to write in one of those folders.
I am not sure if that error is caused by this, but this might be the reason preventing your game from saving properly.
That said, the error you get means that the engine cannot load an image. It might be because the file is corrupted, because it has a wrong extension, because it was an image taken in-game and not successfully saved, there are various reasons for it. I am afraid you have to investigate more.
EDIT:
Check if you have two files with the same name, but different extension. That might be causing the error as well.
Oh, well i don’t know how to place my program there.. and i’m guessing that it definetly isn’t there.
The extension doesn’t matter. The fact that you load an image in the script, specify the string without the file extension at all and still work, yeah it doesn’t matter. It is likely the file is corrupted, or simply can not load, or too big to load.
This also doesn’t matter. RGSS engine prioritizes a certain extension to load when it has the same name. And simply ignore another one.
TheoAllen
Self-proclaimed jack of all trades
Heirukichi
Veteran
@TheoAllen what you said is only partially true. It is true that the engine prioritizes a certain file extension and it is also true that it does not see files with a wring extension, but it is also equally true that there are exceptions.
The reason behind that is that the engine gives higher priority to files within the local folder rather than files in the RTP folder. That priority applies before the extension priority itself. No ifs and buts here, if you do not believe it, you can test it on your own; if you have a file with the wrong extension that has the same name of a file in the RTP folder you still get that error.
The result is this one:
Attachments
Wavelength
MSD Strong
@MissSheep, please avoid double posting, as it is against the forum rules. You can use the «Edit» function on your posts to add additional information you’ve forgotten or respond to multiple people. You can review our forum rules here. Thank you.
I will go ahead and merge your three posts together for you this time.
In the future, if you need to quote multiple people, you can use the Multi-Quote function by hitting the «+ Quote» tag on individual posts, and then clicking the «Insert Quotes» button that appears near the text box where you’re typing your post.
If you accidentally post and you are having trouble getting the quotes into the Edited post, I recommend doing what you would need to to make the multi-quote post (as above), except instead of posting it, just copy the whole thing (tags and all), and then click «Edit» on your original post and replace what’s there by pasting the text you copied.
You didn’t do anything bad; just be more careful because it’s disruptive to have multiple consecutive posts by the same person in short succession.
gstv87
Veteran
that error is caused by a bitmap being created with the wrong size, or missing path.
being that you mention save files, my guess, is that’s a faulty character sprite.
go into the code, and add this chunk
TheoAllen
Self-proclaimed jack of all trades
@Heirukichi That’s fair, however, sorry to disappoint you, but I’d like to add but and ifs. You mentioned RTP, but I was assuming that there is no RTP involved. Besides, you didn’t even mention RTP in your previous post. And you said «two files with the same name but the different extension» might be confusing when you didn’t add RTP in the context. Although, I appreciate the information.
And it appears to only happen if it clashed with RTP, in a normal circumstance where the filename is different than the RTP one. I tried with this.
And from the editor itself, it’s alright (disclaimer: I didn’t test it in an actual game, but I assume it will work anyway)
Heirukichi
Veteran
Hiding errors by using something similar to «rescue» (in this case loading an empty file is a way to hide the error) is hardly a good practice. It is much better to take time to understand what is causing the error rather than «eliminating» it with a quick and not definitive fix. If the engine is not loading an image and you load an empty image instead, sooner or later you will see nothing when you should see an image instead.
Yes, you are right, I didn’t mention the RTP in the first post and I can see how it can be misleading. I will change it promptly in order not to mislead potential users with the same problem in the future. Anyway, as I said, besides that exception, everything else works as you said and the engine prioritizes files with the right extension. Not only does it show them correctly in the engine, it also works in-game (and I am 100% sure of that because I tested it).
EDIT
@TheoAllen I modified the first post, thank you for pointing that out.
I am not disappointed at all. It is not like you negated the existence of the exception I mentioned (it does exist, and negating its existence would just be plain wrong, that is what I meant with «no ifs and buts»).
I only mentioned that exception because you said that the extension does not matter, which is not true in that situation and it is the main reason why I said that it might cause errors. As I said in my previous post, besides that exception, what you said is true.
Also, why would pointing out the missing RTP part in my first post disappoint me? It was the truth, adding it only makes things easier to understand and leaves less room for personal interpretation of my post, while not having it can be misleading. I deem what you said quite useful.
Only a petty person who would take it on a personal level could be disappointed because of that, and I do not consider myself one. After all, posting on this forum is a way to help other people, taking it on a personal level only means that one is trying to show off and does not want other people to prove him or her wrong. That would mean being here for the wrong reason.
TheoAllen
Self-proclaimed jack of all trades
gstv87
Veteran
you can replicate the hole, by gauging the size of the drill bit.
you can’t *get* to the hole, if the way *to* it collapses every time you walk it.
leave the problem, prevent the program from crashing due to an unhandled exception, get to the exception, measure it, and *make* the handler.
the next time you run it, it’ll consider the exception, and handle it.
TheoAllen
Self-proclaimed jack of all trades
Heirukichi
Veteran
@gstv87 I completely agree with Theo here. On top of it, what is the point of hiding an error by changing the script when you can simply edit the script in a way that it marks the error? Both are very short edits, but the latter is much smarter, and that is the reason why it is considered a bad practice to hide errors. It is much better to have your program crash with a meaningful error message rather than having it continue its execution but hiding the mistake. In this case, Theo’s script still has a rescue method, but it displays a message with the expected path that is generating the error.
Another very important reason, that is usually underrated, is that the same error might appear later in a different situation. Once you edit the script to hide it, any other error with the same nature is going to be hidden as well. The first time the error appears you know where it happened because the game crashed, the second time you might completely miss it and think that the graphics not being shown (as in this example) might be caused by something else. Nobody ensures you that you will remember that you changed the script to hide that kind of error, especially if the same situation happens after three or four months.
This is something that people usually underestimate, but in computer science it is a very common thing. Not being able to remember what you wrote and having to check the documentation is a common thing. That is the main reason behind the existence of software documentation, even when the code is only used by employees of a single company and not made available to the public. Why is that so? Because even those very same employees who wrote it originally might forget how it works internally after a long time has passed.
MissSheep
Warper
that error is caused by a bitmap being created with the wrong size, or missing path.
being that you mention save files, my guess, is that’s a faulty character sprite.
go into the code, and add this chunk
So if i do this will it tell me what error it is next time? And plus in the game will i be able to play at that area that had the crush?
@gstv87 I completely agree with Theo here. On top of it, what is the point of hiding an error by changing the script when you can simply edit the script in a way that it marks the error? Both are very short edits, but the latter is much smarter, and that is the reason why it is considered a bad practice to hide errors. It is much better to have your program crash with a meaningful error message rather than having it continue its execution but hiding the mistake. In this case, Theo’s script still has a rescue method, but it displays a message with the expected path that is generating the error.
Another very important reason, that is usually underrated, is that the same error might appear later in a different situation. Once you edit the script to hide it, any other error with the same nature is going to be hidden as well. The first time the error appears you know where it happened because the game crashed, the second time you might completely miss it and think that the graphics not being shown (as in this example) might be caused by something else. Nobody ensures you that you will remember that you changed the script to hide that kind of error, especially if the same situation happens after three or four months.
This is something that people usually underestimate, but in computer science it is a very common thing. Not being able to remember what you wrote and having to check the documentation is a common thing. That is the main reason behind the existence of software documentation, even when the code is only used by employees of a single company and not made available to the public. Why is that so? Because even those very same employees who wrote it originally might forget how it works internally after a long time has passed.
Error : Failed to Create Bitmap
ClockworkFate
Warper
«Script ‘Window Message’ line 102: RGSSError occurred
Failed to Create Bitmap»
Okay, so the past few times I have loaded up my game in development, I have received this error. This, for my, is confusing because I do not know what is causing it. It just. appeared.
Now, first, before anyone asks, yes, I am tampering (seriously tampering) with the script of the game.
My issue is that the error is completely unrelated to anything I have done scripting wise.
From preliminary googling, I have discovered other people have had this issue as well and it has to do with corrupted images or game files. But which file specifically is corrupted? I can’t freaking figure it out. Help please? (Oh I have replaced and re-employed the defaults for the window, so it can’t be that)
Help is much appreciated! 😀
mjshi
Jack of Most Trades
Try to think back about what you’ve recently tampered with. Create a new project, then use diffchecker.com to see what things you’d changed.
I doubt it’s a corrupt image issue, more likely, it’s due to you erasing a variable that contained an image name, or moved an image, or just erased a definition somewhere. I’m not too sure the cause, but it would be more helpful to be able to see what changes you’ve made, since many, many, things can cause that error.
Rgss Error Failed To Create Bitmap
We have collected for you the most relevant information on Rgss Error Failed To Create Bitmap, as well as possible solutions to this problem. Take a look at the links provided and find the solution that works. Other people have encountered Rgss Error Failed To Create Bitmap before you, so use the ready-made solutions.
- https://forums.rpgmakerweb.com/index.php?threads/script-cache-line-106-rgsserror-occurred-failed-to-create-bitmap.40152/
- Jan 31, 2017 · In my case though, now whenever I go into a room, the error «Script ‘Cache’ line 106: RGSSError occurred. failed to create bitmap» appears.
- https://www.rpgmakercentral.com/topic/31701-script-cache-line-106-rgsserror-occurred-failed-to-create-bitmap/
- Apr 28, 2015 · Status Updates; Home ; Game Development ; Editor Support and Discussion ; Script ‘Cache’ line 106: RGSSError occurred. Failed to create bitmap.
- https://www.techyv.com/questions/rgss-error-occurred-when-tried-navigate-map/
- First of all, your problem might be because of the failure to create bitmap. If you see the RTP, please try to delete it. This is because RTP will stop your program when in use.
Error: Not enough memory to create requested bitmap
- https://support.esri.com/en/technical-article/000012915
- Nov 04, 2020 · Error Message The following error is returned when exporting a map as a JPEG, PNG, or TIFF file. Error: Not enough memory to create the requested bitmap.
- https://stackoverflow.com/questions/53051101/when-trying-to-create-a-bitmap-tkinter-tclerror-bitmap-pyimage2-not-defined
- ImageTk.BitmapImage actually return an image, not a bitmap, but it can be used to change the colors. So intead of: bitmap = ImageTk.BitmapImage(small_im) bitmap_id = canvas.create_bitmap(3,3,background=», foreground=’gray’, bitmap=bitmap, anchor=NW) I …
Rgss Error Failed To Create Bitmap Fixes & Solutions
We are confident that the above descriptions of Rgss Error Failed To Create Bitmap and how to fix it will be useful to you. If you have another solution to Rgss Error Failed To Create Bitmap or some notes on the existing ways to solve it, then please drop us an email.
Script Cache line 106: RGSSError occurred.
TheoAllen
Self-proclaimed jack of all trades
mlogan
Global Moderators
I can’t open games made by other developers on the same engine and I was stupid. I was mad at the time because I spent 10+ hours on the project and they just moved the post without giving any help and it made me mad.
Edit: I just checked and I can’t upload any other game I made on the same engine.
I didn’t give you help because I did not know the solution to problem. If I had I would have. We mods are volunteers in our own time, not paid employees and not people who know the answer to every question. Don’t take your anger over your problem out on me or anyone else here, it is not acceptable behavior.
Also don’t double post when you know you shouldn’t be doing it. Just hit edit on your last post; you clearly know how to do that.
And finally, have some patience. People here are very generous with their time and willing to help, but it make take some time for the person/people who know best how to help you to be online, see your post and respond. Everyone feels their problem is the most urgent, but it takes time, so you may have to wait.