Hey everyone, I'm still sorta VX Ace but i'm getting closed to finishing my game. In January I've noticed an issue about line 106: but when I replay the level again, nothing is wrong. But it will occur again and again throughout the game. I have Falcao pearl battle system and it never gave me any issues whatsoever. I've been playtesting and working on it since 2019 It only began happening recently. I'm really worried and do not want to mess up anything.
I've tried the P path technique with the console turned on but the error occurs so randomly that i have no idea whether a file is corrupted misspelled or deleted? I'm really nervous and I really don't know how to fix this issue 🙁
If anyone knows how to fix this and help me step by step you would be the MVP of my entire life.
Is there something that will specifically tell me exactly which file is having the issues?
there are several different possibilities, especially as you didn't give the full error message.
as a general fix you should try to install one of the backtracers to get a full error trace of the message - follow the "how to use a script" tutorial in my signature to the bughunting section if you have no link to a backtracer script.
that said, there is a similar error that can happen not on loading the bitmap but if the data object for the bitmap is deleted before the cache handles it. this would account for the randomness as that is mostly when timing errors interfere.
Here's what I have so far. I took a screenshot of the console debug screen and I went through the script to check. After I looked at the script, some of the words mentioned in the debug screen were not in the script in a few cases.
I'll put what my script says in contrast
Some lines I duplicated just to prevent any confusion because it's written twice on the debug.
Cache 106: @cache[path] = Bitmap.new(path) unless include?(path)
Cache 106: @cache[path] = Bitmap.new(path) unless include?(path)
Cache 91: normal_bitmap(folder_name + filename)
Cache 39: load_bitmap("Graphics/Characters/", filename)
Sprite Character 87: self.bitmap = Cache.character(@character_name)
Pearl Sprites 93: falcaopearl_battler_bitmap
Sprite Character 60: set_character_bitmap
Pearl Sprites 148: falcao_fantastic_bit
Sprite Character 36: update_bitmap
Pearl Antilag 97: falcaopearl_antilag_update
Sprite Character 21: update
Pearl Sprites 775: @animeabs_sprites.push(Sprite_Character.new(@viewport1, anime))
Pearl Sprites 775: @animeabs_sprites.push(Sprite_Character.new(@viewport1, anime))
Pearl Sprites 773: $game_player.anime_action.each do |anime|
Pearl Sprites 773: $game_player.anime_action.each do |anime|
Pearl Sprites 664: update_absanime_sprites
Pearl Sprites 643: update_pearl_abs_main_sprites
Pearl Life bars 138: falcaopearl_lifebars_update
Pearl Item Pop Up 96: falcaopearl_itempop_update
Scene Map 65: @spriteset.update
Scene Base 14: update until scene_changing?
Scene Manager 23: @scene.main while @scene
Main 10: SceneManager.run
I'm sure it's something simple I'm overlooking. Is the debug telling me to replace each line with what is written or is it something else that I can do to help fix the issue?
I apologize I'm still sorta new with this. The thing is I've never had this issue for the years I've been working on this until now which is weird to me. The the lines mentioned, I never tweaked any of them except the pearl health bar, and item pop up all i did was change the design of it and change the sound the game makes when coins are dropped and maybe some terminology but it always worked smooth. (Or maybe I thought it ran smooth and was wrong the entire time) Because for the 3 years I've worked on the game, I recently just changed what I had mentioned before so that could be the culprit?
In 2019 I downloaded the vx ace software and put the falcao pearl battle script in there (Everything ran smoothly)
2020: finished all the characters and levels (Everything still ran smoothly)
2021: Created sound effects and the music and incorporated them into the game (I finished the music and putting them all in in late 2021.)
2022: The year I saw the "Script 'Cache' line 106: RGSSError occured. failed to create bitmap"
Today I spent the day backtracking and looking through everything I tweaked and everything was okay with the terminology. To be honest I never really messed around too much with the script out of fear of messing things up. Something tells me either the RTP is messed up, a graphics file is corrupted, or maybe it's the music format? I have the music Format in "Mp3" and the sound effects are in "Mp3" as well. I'm not too sure if any of what I mentioned adds to equation of the problem. Some parallaxes I've created are pretty big too but the problem really came after I added the music.
(I'm trying to list everything I've done in case if there's something I may not know that I did wrong I deeply apologize once again.)
Another Idea I have is starting a new project and copying the script over into the game I'm working on even if it starts everything back to normal and have a fresh slate again. Think that might fix the bug?
What would you recommend? What would be the right direction?
[Edit]
Today I went through my third level and noticed that there are a TON of parallel processes going on so I turned them all into action since they are just in motion and that's where I see the load bitmap issue when I'm in those rooms. Hopefully that's helped. I'm not sure. I read in your bugging signature that parallel processes are a form of a bug so I decided to get rid of any unnecessary parallel processes. I'm hoping this helps the problem.
Not trying to double post because I know it's against the rules on this page but I really could use the help if you (Or anyone) have time. I know you have a lot of people to respond to and I just don't want to be forgotten on this end if that makes sense.
I have the actors graphics the same tab of the actors but I believe you are right. Sometimes the actors will flicker after a fight when they would jump back to following formation. Could something be wrong with that? I did delete a lot of unnecessary files. I may have deleted something that I may still have running in the game itself in maybe more too that I have forgotten.
Btw how would I be able to tell if a file is corrupted or damaged? I opened up every file on my graphics folder on my editor and none said they were corrupted (I had a corrupt computer when I tried years ago and my editor would never open bad or corrupted but i'm still uneasy if there's something I'm missing.)
I Apologize for posting late, I was working OT at work yesterday and didn't get home til late 🙁(( I will try your suggestion for every tab including actor as well today. I'll let you know how everything goes. Thanks so much. I'll be right back