- 1
- Posts
- 3
- Years
- Seen Apr 19, 2022
I've read through the docs and I've followed a few tutorials, but I keep getting these problems.
When the battle initiates, the game crashes. The crash window is too long to fit on my screen. Here is the log from the txt:
Here are the pages for the event that crashed and the event that works. Both have another blank page triggered by self-switch A like all the sample battles have.
I do not understand why this one battle works but the others do not. The event structure is the same as far as I can tell since I literally just copy/pasted it and changed the trainer name and class.
"TESTMAN, Jim" is most definitely a trainer in trainers.txt and the class TESTMAN is in trainertypes.txt, so I don't think that could be causing any problems.
Please help, I am losing my mind. I clearly do not understand how trainer battles work in this and I would really appreciate some help clearing it up.
When the battle initiates, the game crashes. The crash window is too long to fit on my screen. Here is the log from the txt:
Spoiler:
[2022-03-31 18:30:34 +0100]
[Pokémon Essentials version 19.1]
[Generation 8 Project v1.1.2]
[EBDX v1.2.6]
Exception: RuntimeError
Message: Script error in event 3 (coords 12,9), map 76 (Straw House):
Exception: ArgumentError
Message: wrong number of arguments (given 1, expected 2..7)
***Full script:
pbTrainerBattle(:TESTMAN)
Backtrace:
231:Overworld_BattleStarting:461:in `pbTrainerBattle'
(eval):1:in `execute_script'
033:Interpreter:140:in `eval'
033:Interpreter:140:in `execute_script'
034:Interpreter_Commands:352:in `command_111'
034:Interpreter_Commands:29:in `execute_command'
033:Interpreter:130:in `block in update'
033:Interpreter:87:in `loop'
033:Interpreter:87:in `update'
032:Scene_Map:157:in `block in update'
Backtrace:
033:Interpreter:192:in `rescue in execute_script'
033:Interpreter:138:in `execute_script'
034:Interpreter_Commands:352:in `command_111'
034:Interpreter_Commands:29:in `execute_command'
033:Interpreter:130:in `block in update'
033:Interpreter:87:in `loop'
033:Interpreter:87:in `update'
032:Scene_Map:157:in `block in update'
032:Scene_Map:155:in `loop'
032:Scene_Map:155:in `update'
[Pokémon Essentials version 19.1]
[Generation 8 Project v1.1.2]
[EBDX v1.2.6]
Exception: RuntimeError
Message: Script error in event 3 (coords 12,9), map 76 (Straw House):
Exception: ArgumentError
Message: wrong number of arguments (given 1, expected 2..7)
***Full script:
pbTrainerBattle(:TESTMAN)
Backtrace:
231:Overworld_BattleStarting:461:in `pbTrainerBattle'
(eval):1:in `execute_script'
033:Interpreter:140:in `eval'
033:Interpreter:140:in `execute_script'
034:Interpreter_Commands:352:in `command_111'
034:Interpreter_Commands:29:in `execute_command'
033:Interpreter:130:in `block in update'
033:Interpreter:87:in `loop'
033:Interpreter:87:in `update'
032:Scene_Map:157:in `block in update'
Backtrace:
033:Interpreter:192:in `rescue in execute_script'
033:Interpreter:138:in `execute_script'
034:Interpreter_Commands:352:in `command_111'
034:Interpreter_Commands:29:in `execute_command'
033:Interpreter:130:in `block in update'
033:Interpreter:87:in `loop'
033:Interpreter:87:in `update'
032:Scene_Map:157:in `block in update'
032:Scene_Map:155:in `loop'
032:Scene_Map:155:in `update'
Here are the pages for the event that crashed and the event that works. Both have another blank page triggered by self-switch A like all the sample battles have.
I do not understand why this one battle works but the others do not. The event structure is the same as far as I can tell since I literally just copy/pasted it and changed the trainer name and class.
"TESTMAN, Jim" is most definitely a trainer in trainers.txt and the class TESTMAN is in trainertypes.txt, so I don't think that could be causing any problems.
Please help, I am losing my mind. I clearly do not understand how trainer battles work in this and I would really appreciate some help clearing it up.