The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Mushu on August 28, 2011, 08:06:54 PM

Title: (vx) Equip Ext+Item Cap error
Post by: Mushu on August 28, 2011, 08:06:54 PM
This is the error I get when both scripts are used..
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi1188.photobucket.com%2Falbums%2Fz415%2FScalinger2%2Ferror-1.png&hash=de8d0f6997e8ba0b1725ff64e13314f85e2700f8)
http://dl.dropbox.com/u/33252047/Project3.zip
Title: Re: (vx) Equip Ext+Item Cap error
Post by: cozziekuns on August 28, 2011, 09:09:36 PM
Replace line 125 with:

unless $scene.is_a?(Scene_Equip) or item.nil?

for a temporary fix, though I have no idea why Equip Extension would be calling a nil item. It's probably a logic error in either Pacman's or KGC's script.
Title: Re: (vx) Equip Ext+Item Cap error
Post by: Mushu on August 28, 2011, 10:02:36 PM
That patch worked, but now I found out KGC_ExtendedEquipScene is being interfered with by the Adv. Description Script and the Oecs Slot System script specifically.
All the adv. description did bad was move part of the menu around and the slots system is freezing the menu.

This is what it looks like
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi1188.photobucket.com%2Falbums%2Fz415%2FScalinger2%2Ferror2x.png&hash=83d5cd0df17b44012b8dd1c00ac1c1fa35f4c1e9)

This is how it's supposed to look(disregarding everything but the spots :P)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi1188.photobucket.com%2Falbums%2Fz415%2FScalinger2%2Ferror3x.png&hash=54fcdd0dbe222cce7b6cd8c502f82e7ce50a668c)
http://dl.dropbox.com/u/33252047/Project3.zip
Title: Re: (vx) Equip Ext+Item Cap error
Post by: pacdiggity on August 29, 2011, 08:52:37 AM
Quote from: cozziekuns on August 28, 2011, 09:09:36 PM
Replace line 125 with:

unless $scene.is_a?(Scene_Equip) or item.nil?

for a temporary fix, though I have no idea why Equip Extension would be calling a nil item. It's probably a logic error in either Pacman's or KGC's script.
I'm quite sure it was my script. I got an error in the gain_item method when the scene was Scene_Equip; for some reason the item wasn't retaining it's RPG class when it swapped, so I cunningly made sure it didn't happen in the equip scene. It didn't occur to me to put a .nil? there, that would've worked much better.
I still don't know why that would return nil, but that's my problem.
Title: Re: (vx) Equip Ext+Item Cap error
Post by: Mushu on August 29, 2011, 04:12:47 PM
Well I'm glad that patch atleast works but with the slot system that might take a ginormous modification xD