Game_Player line 235 is this (note - only 1 argument):
BattleManager.setup(troop_id)BattleManager.setup is defined with the following parameters:
Code:
def self.setup(troop_id, can_escape = true, can_lose = false)
Note, 3 arguments, but the last 2 have defaults, so are optional.
What has probably happened is that one of your added scripts modifies the battle system and overwrites or aliases BattleManager's setup method. BUT it hasn't made those last 2 arguments optional (ie - it hasn't provided default values).
Do a global search (control + shift + f) through your scripts for this:
def self.setup(troop_idMake sure Match Case and Whole Word are both unchecked.
You will
probably find one that looks something like this, in one of the new scripts you've added:
def self.setup(troop_id, can_escape, can_lose)If you do, it's a simple matter of changing it to look like the original, so can_escape and can_lose have default values.
----------------------------------
Edit (after you posted): just looked at that script, and it seems to have the arguments correct. Search as I said above and see if another script overwrites/aliases that method.
The easy fix, if you can't find any issues, is to
change line 235 in Game_Player to this:
BattleManager.setup(troop_id, true, false)to force it to pass those parameters.
You may also find you get an error or crash when you attempt a test battle. If you do, and you don't find the culprit with the above instructions, you can also change THAT call to force the parameters to be passed. That's in the DataManager script, line 112, which you can change to this:
Code:
BattleManager.setup($data_system.test_troop_id, true, false)