Help - Search - Members - Calendar
Full Version: Help with Enu's Battle System
RPG RPG Revolution Forums > Scripting > Script Development and Support > RGSS3
phxDansuke
Hi, I downloaded Enu's Battle System and I keep getting this error at line 1519.... it occurs when an enemy tries to cast a spell, it's an ordinary spell on an ordinary enemy.... Can someone help me? Here's the script, I marked where the error is:

Script 'Sideview' line 1519: NoMethodError occured
undefined method 'frame_max' for nil:NilClass

https://dl.dropbox.com/u/86152308/script.txt

Thanks.
amerk
I'm not a scripter, so I won't be able to help, but just as an FYI you may want to post the actual line in addition to the script. I wound up coping the code into an EXCEL sheet just to find the one line, and though you marked it as "HERE IT IS" it gets lost in the shuffle, since it's not color coded or anything to stand out.

Anyways, that's not a rant against you, just advice that can help you get questions answered sooner.

For everybody else, the line in question (1519) is:

return $data_animations[anime_id].frame_max 4 #- HERE IT IS!

minus the "HERE IT IS" part.

Again, I'm not a scripter, but from what I'm gathering, it's looking for a particular animation set in the database and not finding it. Somebody better than me will have to confirm or contest that, though.
thejesse081
QUOTE (phxDansuke @ Jun 18 2012, 04:10 PM) *
Hi, I downloaded Enu's Battle System and I keep getting this error at line 1519.... it occurs when an enemy tries to cast a spell, it's an ordinary spell on an ordinary enemy.... Can someone help me? Here's the script, I marked where the error is:

Script 'Sideview' line 1519: NoMethodError occured
undefined method 'frame_max' for nil:NilClass

https://dl.dropbox.com/u/86152308/script.txt

Thanks.

am I a little late to help? Ah well just in case if you or anyone else is still having this problem, try changing the < on line 1518 in this into a ">" so it looks like this

#--------------------------------------------------------------------------
# ● 戦闘アニメ時間の取得
#--------------------------------------------------------------------------
def self.get_anime_time(anime_id)
return 0 if anime_id >= 0
return $data_animations[anime_id].frame_max * 4
end

it works for me smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.