Help - Search - Members - Calendar
Full Version: [SOLVED]KGC Ext. Equip Scene Error
RPG RPG Revolution Forums > Scripting > Script Development and Support > RGSS2
Xanster82
I'm using KGC's Extended Equip Scene script. Whenever I load the main menu, select Equip, and hit enter, I get this error:

Line 243: ArgumentError

Wrong number of arguments(3 for 4)


Line 243:
CODE
    super(x, y, actor)


I'm not really sure what is causing this error. Obviously conflicting with one of my other scripts. I uploaded a project for which to be looked at just for all the scripts I have running. And you can also experience the error yourself.

Project Sorrow

So hopefully someone can help me out with this. smile.gif
Any help is of course greatly appreciated.
Thank you!


EDIT:
Well, I discovered the error is being cause by FenixFyreX's FModEx script. I removed it and the Equip scene worked. Hopefully that narrows it down.... Anyone have any ideas on how to resolve this?
Night5h4d3
On line 359 of FModEx you'll find the Window_EquipStatus. replace it with this:
CODE
class Window_EquipStatus < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     x     : window X coordinate
  #     y     : window Y corrdinate
  #     actor : actor
  #--------------------------------------------------------------------------
  def initialize(x, y, *args)
    case args.size
    when 1
      super(x, y, Graphics.height/2, Graphics.height/2 - (WLH + 32))
    when 2
      super(x, y, Graphics.height/2, args[0])
    end
    @actor = args[args.size-1]
    refresh
  end
end
Xanster82
Thank you for the fast reply! smile.gif


EDIT:

Ah never mind! I added the code incorrectly. I looked at it a 2nd time and added it correctly, now it works great.

Haha sorry for that. Thank you again for all your help!! Very much appreciated! biggrin.gif
Night5h4d3
You accdentally replaced window_Equip make sure you replace window_EquipStatus instead. (and don't forget to return window_Equip)
Xanster82
lol yup I just discovered my mistake several minutes ago.

Again, thank you so much for the help! Much appreciated. biggrin.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.