Ok, so I've been trying to get this figured out for a couple of days now, usually by this point I'll make a decision to scrap one script or the other, however both of these have a major influence on my game right now and I'd like to release a demo in the next few days so I'm trying to get rid of every major error/crash that I can find.
Basically what seems to be happening is that yanfly's jp manager script crashes the game every time I try to use an item with Kread-exes actor inventory script. What I 'think' is happening is that the jp manager is trying to find the jp rate modifier of the character's equipped items and gets confused because under normal circumstances items aren't equippable, therefor no functionality exists for jpr through items, but since it's equipped it is still trying to do so. This isn't important to me as I'm not affecting jp gain rate through equip anyway, but trying to comment it out just leads to more problems. Here is the error:
script 'YEA-Jp manager " line 402 Typeerror occured.
Nil can't be coerced into float.
and the line and surrounding lines of script:
#--------------------------------------------------------------------------
# new method: jpr
#--------------------------------------------------------------------------
def jpr
n = 1.0
if actor?
n *= self.actor.jp_rate
n *= self.class.jp_rate
for equip in equips
next if equip.nil?
n *= equip.jp_rate
end
end
for state in states
next if state.nil?
n *= state.jp_rate
end
return n
end
end # Game_BattlerBase
And links to the scripts:
http://grimoirecastle.wordpress.com/rgss3-scripts/gameplay-scripts/actor-inventory/
http://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/jp-manager/
Any help at all is appreciated, if I haven't described anything satisfactory feel free to demand more info.
Basically what seems to be happening is that yanfly's jp manager script crashes the game every time I try to use an item with Kread-exes actor inventory script. What I 'think' is happening is that the jp manager is trying to find the jp rate modifier of the character's equipped items and gets confused because under normal circumstances items aren't equippable, therefor no functionality exists for jpr through items, but since it's equipped it is still trying to do so. This isn't important to me as I'm not affecting jp gain rate through equip anyway, but trying to comment it out just leads to more problems. Here is the error:
script 'YEA-Jp manager " line 402 Typeerror occured.
Nil can't be coerced into float.
and the line and surrounding lines of script:
#--------------------------------------------------------------------------
# new method: jpr
#--------------------------------------------------------------------------
def jpr
n = 1.0
if actor?
n *= self.actor.jp_rate
n *= self.class.jp_rate
for equip in equips
next if equip.nil?
n *= equip.jp_rate
end
end
for state in states
next if state.nil?
n *= state.jp_rate
end
return n
end
end # Game_BattlerBase
And links to the scripts:
http://grimoirecastle.wordpress.com/rgss3-scripts/gameplay-scripts/actor-inventory/
http://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/jp-manager/
Any help at all is appreciated, if I haven't described anything satisfactory feel free to demand more info.