RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RMVXA Falcao's Pearl ABS] Item tool data error

Started by &&&&&&&&&&&&&, July 22, 2013, 10:46:35 PM

0 Members and 1 Guest are viewing this topic.

&&&&&&&&&&&&&

http://falcaorgss.wordpress.com/2012/12/02/falcao-pearl-abs-liquid-v1/

I'm using Falcao's Pearl ABS, and I keep getting this error.



This error appears when I try to swing my weapons. I can usally swing once, but on the second swing I get this error. ~_~

Please somebody, help. ;___;

  def self.user_graphic()      @item.tool_data("User Graphic = ", false)    end

If I knew what "Item tool data" was, then maybe I could figure it out, but everything I throw at it does nothing.
I really don't know what's wrong. :\
&&&&&&&&&&&&&&&&

LoganF

#1
@item is a nil reference; it isn't pointing to an object, which means that #tool_data doesn't exist (because it's not a method that belongs to NilClass).

You'd have to follow the code through and see why @item isn't being set to something valid. Is it possible that there is a conflict with another script you are using? If there are other scripts, you should first try to isolate the script that is causing the issue.

As a small rant: this is why scripters should enforce type checking rather than assuming that the item will be fine. At the very a least, a simple:


unless @item.nil?


often helps avoid these errors just happening and going unhandled.
(Why do I always feel like it's the end of the world and I'm the last man standing?)

&&&&&&&&&&&&&

I think I found it.
I was adding new weapons to the databse and expanded the # of slots.
I text to see if that was it, and it gives me an error when I have less then 74 item slots.
IDK why this is... but there's my problem.

Thank you Logan.
&&&&&&&&&&&&&&&&