Bug Script 'Game_Interpreter' line 1411: ArgumentError occurred. wrong number of arguments (0 for 4)

Hi, I wanted to ask for help because I have a problem : I wanted to do a test with a script
The script :

class Test_Window < Window_Base
def start
super
create_title
end
def create_title
@title = Window_Help.new
@title.set_text("the text")
end
end

And when I write in an event "SceneManager.call(Test_Windows)"
The game shows me :

Script 'Game_Interpreter' line 1411: ArgumentError occurred.
wrong number of arguments (0 for 4)

Thank you for helping me plz
59.gif


(sorry for the mistakes, I use Google Translate)
Why did you post this again? You had a thread right here
I understand you but, it's just that I was wrong forum, so I resent my post here and I wanted to delete my other post but I did not find how:eswt:. (I renamed it "How to delete my post")
@LuKillerGames There is no need to delete threads. All you have to do is to Report your thread and ask for it to be moved. And this is still the wrong forum. 'Scripts' is where people who have written complete scripts that they want to share with others can post them. You, however, want help with a snippet that you are writing.

Moved to: Learning Ruby and RGSSx
Ok, thank !:awink:
If not, can someone please help me ? :LZYgrin:
On mobile, cant get into detail.
First thing, youre confused with window class and scene. Your code seems like youre writing a scene class but youre inheriting it from, window base?
Second thing, is it a full script?
Its causing an error because you're trying to use the SceneManager call, but is supplying it with a Window instead (since your class inherits from Window_Base as Theo said). You're getting the 0 for 4 error since the window class expects 4 arguments to initialize but SceneManger.call doesnt pass any.

So are you trying to make a Window or a Scene?
Thank you for your help, no it's not a complete script and I'm just trying to make a window with some text but I can not do it
And (because I'm starting) what exactly is the difference between the scene and the window ?
What's odd is that I was inspired by this script :

class Scene_Chifoumi < Scene_Base
# Lancement de la Scene
def start
super
create_title
create_commands
end
# création fenêtre de titre
def create_title
@title = Window_Help.new(1)
@title.set_text("CHI FOU MI!")
end
def create_commands
@window_selection = Window_Chifoumi.new(0,48)
end
end

# Fenêtre séléction du coup
class Window_Chifoumi < Window_Command
end

To make this script (I modified) :

class Scene_Test < Window_Base
# Lancement de la Scene
def start
super
create_title
create_commands
end
# création fenêtre de titre
def create_title
@title = Window_Help.new(1)
@title.set_text("Génial, un kebab GEANT !!! Que voulez-vous faire ?")
end
#Création de la fenêtre du choix
def create_commands
@window_selection = Window_Test.new(0,48)
end
end
#Fenêtre de Séléction du choix
class Window_Test < Window_Command
#Création de la liste de séléction
def make_command_list
add_command("Le manger")
add_command("Le jeter")
add_command("LE TUER !!!")
end
end

But the first works but not the second. Please analyze them

Original thread: https://forums.rpgmakerweb.com/threads/bug-script-game_interpreter-line-1411-argumenterror-occurred-wrong-number-of-arguments-0-for-4.114635/