Cache line 63 error

i keep getting an error saying this:

'Cache' line 63: NoMethodError occured.

undefined method 'load_bitmap for Cache:Module

someone please help! X(
It sounds like something has been changed in one of your scripts.


Can you go into your scripts (F11), find the Cache script (near the top of the list), scroll down to about line 74, and do a screenshot and post it here?


Also, have you added custom scripts? If so, can you list them all?


Moving to RGSSx Script Support
and when do you get this error?
Don't get this error confused with the common "unable to load bitmap" error that's normally reported for the Cache class. That's what I originally thought it was too, but closer inspection shows that the error is that it can't even FIND the load_bitmap method. It's not a resource that's missing, in this case - the script has actually been altered and that method has been removed or renamed.


Therefore it means the game crashes even before loading the title screen (line 63 is looking at the System folder, so it's likely trying to get the windowskin for the title screen).
When Testing are you loading a continue file or starting a new game?

Sometimes save files will not work when you change or add scripts.
script screenshot.png

It uses a playtime window script (don't remember which one)

uses tankentai side view

uses fomar's ATB

and the moghunter scripts as shown

i'm not sure what went wrong, but after i tried adding some more scripts from Moghunter, it caused that cache problem.

even more so, the error comes up every time i start the testplay now
also, no changes were done to the scripts i added
DarkFrost, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


The script you provided is not the one I requested. Giving me something OTHER than what I asked for is not helping me solve your problem.


Please provide your Cache script, as that's where the issue is.
sorry, about that. this is the cache script with a mark i put right where it has the error:

Cache screenshot.png

i never even made changes to this script, only added more scripts where it says "insert here" on the list. i don't get why it's getting an error like that when the original scripts that came with the program are unchanged
Except I asked you to take a screenshot with line 74 at the top. 😉 I know what's on line 63. I want to see what's lower down.


Or you could just copy the whole lot and paste it in a code block rather than screenprint, just in case I need to look at more things. In fact, that'd probably be the better option.
i got the a text file of it all right here:Cache.txt
Awesome. And, as I suspected, the whole method is missing that it's trying to call. So you - or someone else - did change that RTP script. This would have been done after the last time you test played your game successfully, so if you can figure out the timing, it might trigger your memory.

Add the following before line 83:

Code:
  #--------------------------------------------------------------------------  # * Load Bitmap  #--------------------------------------------------------------------------  def self.load_bitmap(folder_name, filename, hue = 0)    @cache ||= {}    if filename.empty?      empty_bitmap    elsif hue == 0      normal_bitmap(folder_name + filename)    else      hue_changed_bitmap(folder_name + filename, hue)    end  end
It works again! It's letting the game load up instead of instantly crashing now! thanks a lot!
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/cache-line-63-error.18109/