Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [SOLVED]KGC Ext. Equip Scene Error, ArgumentError
Xanster82
post May 23 2011, 05:42 PM
Post #1


Level 2
Group Icon

Group: Member
Posts: 26
Type: Developer
RM Skill: Skilled




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?

This post has been edited by Xanster82: May 23 2011, 07:07 PM
Go to the top of the page
 
+Quote Post
   
Night5h4d3
post May 23 2011, 06:27 PM
Post #2


The past tense
Group Icon

Group: +Gold Member
Posts: 1,199
Type: Scripter
RM Skill: Undisclosed




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


__________________________
Got 30 minutes? Then you've enough time to play this awesome game:

- potentially promising project page
- thanks holder
My growing space of user-bars:

about me:







I made the following!





Go to the top of the page
 
+Quote Post
   
Xanster82
post May 23 2011, 06:54 PM
Post #3


Level 2
Group Icon

Group: Member
Posts: 26
Type: Developer
RM Skill: Skilled




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

This post has been edited by Xanster82: May 23 2011, 07:02 PM
Go to the top of the page
 
+Quote Post
   
Night5h4d3
post May 23 2011, 07:01 PM
Post #4


The past tense
Group Icon

Group: +Gold Member
Posts: 1,199
Type: Scripter
RM Skill: Undisclosed




You accdentally replaced window_Equip make sure you replace window_EquipStatus instead. (and don't forget to return window_Equip)


__________________________
Got 30 minutes? Then you've enough time to play this awesome game:

- potentially promising project page
- thanks holder
My growing space of user-bars:

about me:







I made the following!





Go to the top of the page
 
+Quote Post
   
Xanster82
post May 23 2011, 07:03 PM
Post #5


Level 2
Group Icon

Group: Member
Posts: 26
Type: Developer
RM Skill: Skilled




lol yup I just discovered my mistake several minutes ago.

Again, thank you so much for the help! Much appreciated. biggrin.gif
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th May 2013 - 09:13 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker