I'm aware there's an infinite loop going on somewhere but I don't know what could be causing it. I am unsure if this is a plugin issue question or a question suited to those who know more about the workings of TPB. Sorry if this is in the wrong spot.
What happens?
What I'm after:
Advice on why the error is happening only in TPB, how to fix it. If I have to use another plugin or modify the one below that's fine.
What am I trying to do in game?
Here's the plugin
The plugin isn't perfect because it doesn't remove the "back" button that sits right center on the screen.
Ideally I want to rip the whole Fight/Escape menu out (as well as a few other sub menus) but if that code is just a longer more complicated version of the above that causes the game to crash I'm back to where I am now.
I found this thread which seems to have a similar issue even if what they're trying to do is different, so I'm not sure if the problem I'm having is some code trying to reference itself.
forums.rpgmakerweb.com
What happens?
- With no other controllable Actors present, whether alone or with up to the other three Actors using autobattle, manually selecting actions ei choosing Attack or Guard or a skill will immediately crash the game with the "Maximum call stack size exceeded" error.
- If there is more than one controllable Actor to pass onto (which won't happen in the game anyway), the game sometimes does not immediately crash and the player will be able to select an action for the Actor to perform and pass control to the next Actor and sometimes the player can make an action and pass control to the next Actor with an imminent crash.
- Simply waiting around and manually performing no actions does not trigger the error, even when another actor is set to autobattle.
- Opening the submenus to access skills (which the player won't be able to do anyway).
What I'm after:
Advice on why the error is happening only in TPB, how to fix it. If I have to use another plugin or modify the one below that's fine.
What am I trying to do in game?
- Remove any trace of the Fight/Escape option on battle start and throughout battle.
- In the game being made battles should not give players the option immediately flee, if allowed at all.
- If a battle is triggered the assumption is the player wants the battle to happen, asking if they want to fight is redundant.
- When using TPB, Troops and auto battle actors attack through the Fight/Escape menu and the extra step the player is currently forced to choose from before picking an option themselves wrecks the flow of the gameplay loop, feels clunky and annoying.
- Because turns start while the Fight/Escape menu is open and there's no selection made it seems the Fight/Escape menu doesn't lock all the battle participants out from doing anything which confuses me as to why attempting to remove it is causing a crash if Troops and autobattlers ignore it.
- There is only one controllable Actor and any other Actors present would be controlled using Autobattle (+ any scripts to modify their "behaviour", "battle options", "AI").
- I currently have a skill the enemies within the Troop use to call a Common Event to make Actor 1 "skip" their turn by teaching them a skill and forcing them to use it (Actor still performs the "step forward and use skill" motion unfortunately, a different thread for that issue sometime). I want them to skip turn as a skill because after using it the TPB bar immediately starts to refill, which is preferable to only giving them a State such as Paralysis which adds the Cannot Move restriction, emptying but also freezing the APB bar for way too long. The take away here is forced actions do not cause the game to crash.
Here's the plugin
The plugin isn't perfect because it doesn't remove the "back" button that sits right center on the screen.
Ideally I want to rip the whole Fight/Escape menu out (as well as a few other sub menus) but if that code is just a longer more complicated version of the above that causes the game to crash I'm back to where I am now.
I found this thread which seems to have a similar issue even if what they're trying to do is different, so I'm not sure if the problem I'm having is some code trying to reference itself.
MV - "Maximum call stack size exceeded"
hello. I got a problom. I made two plugin for test. first plugin is var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand; Game_Interpreter.prototype.pluginCommand = function(command, args) { _Game_Interpreter_pluginCommand.call(this, command, args); if(command ==...
forums.rpgmakerweb.com