PLEASE HELP WITH BATTLE ERROR; SCRIPT 'CACHE' LINE 75: TYPE ERROR OCCURRED. CANNOT CONVERT NIL INTO STRING.
Posts
Pages:
1
I keep getting an error when I try to "battle" test or battle enemies in my game.
everything else in my game works well.
Script 'Cache' line 75: Type Error occurred.
cannot convert nil into String.
I thought it may have been a script I was testing so I deleted the script & it didn't fix the issue.
I'm currently using a hud script and a side view battle script they are working perfectly (Have been for 2months) I have battle tested loads while they where in place with no problem.
I thought maybe I accidentally messed up the "Cache" script so I copied & pasted "Cache" from a new game with no result.
Can someone please tell me what the hell is going on!?
I would be happy to send my game to anyone who may have ideas on a fix
everything else in my game works well.
Script 'Cache' line 75: Type Error occurred.
cannot convert nil into String.
I thought it may have been a script I was testing so I deleted the script & it didn't fix the issue.
I'm currently using a hud script and a side view battle script they are working perfectly (Have been for 2months) I have battle tested loads while they where in place with no problem.
I thought maybe I accidentally messed up the "Cache" script so I copied & pasted "Cache" from a new game with no result.
Can someone please tell me what the hell is going on!?
I would be happy to send my game to anyone who may have ideas on a fix
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
Well, what you do if you want to debug a script error is look at line 75 of the Cache script and see what variable it's using on that line that's supposed to be a string. Then you search through your scripts to find where that variable is being set before it's passed to the current method in the Cache script, and figure out under what conditions it would be set to nil instead of being set to a string. And then you make those conditions not happen. However, if you don't know how to code and don't know what a variable or a method is, then these instructions are totally unhelpful!
Without actually seeing the script and/or knowing what scripts you're using, it's impossible for anyone to debug. Not that I really have time to do so anyway, but someone might, if you posted more info.
Regardless, I'm 100% sure that something you changed between the last time it worked and the first time it errored is what's causing the problem.
Without actually seeing the script and/or knowing what scripts you're using, it's impossible for anyone to debug. Not that I really have time to do so anyway, but someone might, if you posted more info.
Regardless, I'm 100% sure that something you changed between the last time it worked and the first time it errored is what's causing the problem.
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
N...no, without knowing what the script is, that error could literally be anything.
Are you saying you know of a common bug in the default Cache script or in a common recode of it and have seen it error on line 75 before? Because if so then your claim has validity. Or just that you've seen type conversion errors before? Because then you're wrong and you don't know anything about how code works.
Are you saying you know of a common bug in the default Cache script or in a common recode of it and have seen it error on line 75 before? Because if so then your claim has validity. Or just that you've seen type conversion errors before? Because then you're wrong and you don't know anything about how code works.
RPGMaker uses Cache to store temporary image files if I remember correctly (so it would load faster), since I did an evented CMS in VX before and the only way to reduce lag is to clear the cache when the menu is closed.
EDIT: Oh hey, this might help:
Also one thing in programming, just because it says the error is in this specific line, doesn't mean that's actually is the source of the problem. Just most of the time =v=;
and he also pm'd me:
EDIT: Oh hey, this might help:
#==============================================================================
# ** Cache
#------------------------------------------------------------------------------
# This module loads each of graphics, creates a Bitmap object, and retains it.
# To speed up load times and conserve memory, this module holds the created
# Bitmap object in the internal hash, allowing the program to return
# preexisting objects when the same bitmap is requested again.
#==============================================================================
Also one thing in programming, just because it says the error is in this specific line, doesn't mean that's actually is the source of the problem. Just most of the time =v=;
and he also pm'd me:
I was going to post this on my topic but I thought I would message you THANKYOU!!!!! I battle tested without my main char in the party and bingo it worked I have no clue on how or why my hero graphic got changed but that was the problem.
cheers ;)
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
Messing up the default Cache script takes some skill. Oh well. Problem solved.
Pages:
1














