[Edited]
Hey I'm trying to switch my battle systems from Rye CBS 0.6 to Enu SBS Tanketai XP battle system only problem is Enu SBS gives me this error
Script 'Sideview 2' line 3071: ArgumentError occurred.
wrong number of arguments(0 for 4)
It's located in the Sideview 2 part of the core scripts at the section.
#==============================================================================
# ■ Window_PartyCommand
#==============================================================================
class Window_PartyCommand < Window_Selectable
#--------------------------------------------------------------------------
alias initialize_n01 initialize
#--------------------------------------------------------------------------
def initialize
initialize_n01
self.z = 2000
end
end
Here's the Enu SBS Tanketai XP core scripts.
SBS Config (https://www.evernote.com/shard/s108/sh/de3a23e5-eb3e-4e2a-8a20-6ff3db5469aa/ae55479bee20d25ff827b0db8f75eecb)
SBS Config - XP (https://www.evernote.com/shard/s108/sh/4f446f17-b79f-404e-abf5-61281aeece51/dc150978749e1e3402c3b76ad2e86379)
Sidview 1 (https://www.evernote.com/shard/s108/sh/480712c0-f839-4f95-b34c-89372e10484a/389366a1e204e7b45e33f357e913bc0e)
Sideview 2 (https://www.evernote.com/shard/s108/sh/6b0b4f01-586a-4d45-8968-52792148dca4/768c5bc155f8f98446b0be9f33db3997)
I'd really like for this battle system to work. Thank you in advance.
(http://www.mustangworld.com/forums/images/smilies/bump.gif)
(http://www.mustangworld.com/forums/images/smilies/bump.gif)
Well, you're mostly like missing a super there.
If you check the original Window_PartyCommand Script, you'll see that it uses super syntax.
Super is used to fill the necessary arguments of father's class.
If you check Window_Selectable, it will link to Window_Base, and on this last, you will see that there are 4 arguments there. That are the arguments that you're missing to fill.
Now, you can ask(I hope): Why does Window_Base has a super() ?
If you open rmxp helper, and search for Window, you will find a page that has the Window properties.
The class method from Window class is Window.new([viewport]) .
Note that viewport is inside [] so it can be omitted. You only need to use super or super() to omit it :)
Well, I don't really think that I explained it very well... but some time ago I asked what was the use of super, and blizzard taught me :P
Check the topic out:
http://forum.chaos-project.com/index.php/topic,9119.0.html
Credit Blizzard :)
Thank you for explaining that, but when I add in the super or super() I still get the same error.
Is the part that the script editor tells me the problem is at.
Because in that case, you need to specify the window's x, y, width and height.
Instead of using 'super', you need to use super(value_of_x, value_of_y, value_of_width, value_of_height)
Note that you need to specify each of that value on Window_Base child's
Window_Selectable is Window's_Base child, and as your window is child from Window_Selectable, the arguments are passed =)
If you still have any doubts about this, try to read the first lines of standard editor windows.
See you
Ok so I found the Real culprit behind this error. Enu SBS Tanketai XP doesn't play well with SDK. Since I only need SDK for 1 script now thanks to game_guy converting my other SDK reliant scripts so that they no longer require it. I removed the one that did and SDK itself and BAM it works. Thanks for the assistance Apidcloud you did help me learn something about the RGSS.