Screen Lady
Glitch Hunter
- 5
- Posts
- 3
- Years
- She/Her
- United States, Tennessee
- Seen May 25, 2023
Okay, first of all: This project was moved from v17 a long time ago, though all of the Battle Frontier scripts are the exact same maps and scripts present in default v19. (which is what I am using.)
I haven't edited the v19 scripts for the tower, factory, ect at all yet. In fact half of it works perfectly fine, the player can go as long as they want if they use their own pokemon.
The main issue is that generating a new premade team, (for reference, existing premade pokemon work fine), will cause the game to instantly close.
Now, I'm not a code expert at all. I'm basically working things together very slowly since I'm the only person working on this, with it being my first experience with any sort of scripting game. So I am quite stumped on what's causing the crash.
My current plugins are Follower EX, v19 hotfixes, the Gen 8 project, and the Always inside Bushes script. Everything else is only attack animations, tilesets, or day/night tones which shouldn't have any reason to be interfering.
Is this just a very obvious issue that is flying over my head, or is it something more complicated?
The crash would be this:
=================
[2022-07-03 17:50:20 -0400]
[Pokémon Essentials version 19.1]
[Generation 8 Project v1.1.2]
[v19.1 Hotfixes 1.0.7]
Exception: RuntimeError
Message: Script error in event 4 (coords 3,3), map 62 (Battle Factory):
Exception: TypeError
Message: Array can't be coerced into Integer
***Full script:
pbBattleChallenge.set(
"factorysingle",
7,
pbBattleFactoryRules(false, false)
)
Backtrace:
333:ChallengeGenerator_Pokemon:12:in `+'
333:ChallengeGenerator_Pokemon:12:in `block in pbBaseStatTotal'
333:ChallengeGenerator_Pokemon:12:in `each'
333:ChallengeGenerator_Pokemon:12:in `pbBaseStatTotal'
333:ChallengeGenerator_Pokemon:17:in `baseStatTotal'
333:ChallengeGenerator_Pokemon:161:in `block (2 levels) in pbRandomPokemonFromRule'
333:ChallengeGenerator_Pokemon:155:in `loop'
333:ChallengeGenerator_Pokemon:155:in `block in pbRandomPokemonFromRule'
333:ChallengeGenerator_Pokemon:150:in `loop'
333:ChallengeGenerator_Pokemon:150:in `pbRandomPokemonFromRule'
Backtrace:
033:Interpreter:192:in `rescue in execute_script'
033:Interpreter:138:in `execute_script'
034:Interpreter_Commands:1030:in `command_355'
034:Interpreter_Commands:116:in `execute_command'
033:Interpreter:130:in `block in update'
033:Interpreter:87:in `loop'
033:Interpreter:87:in `update'
[Following Pokemon EX] Refresh.rb:252:in `update'
032:Scene_Map:157:in `block in update'
032:Scene_Map:155:in `loop'
I haven't edited the v19 scripts for the tower, factory, ect at all yet. In fact half of it works perfectly fine, the player can go as long as they want if they use their own pokemon.
The main issue is that generating a new premade team, (for reference, existing premade pokemon work fine), will cause the game to instantly close.
Now, I'm not a code expert at all. I'm basically working things together very slowly since I'm the only person working on this, with it being my first experience with any sort of scripting game. So I am quite stumped on what's causing the crash.
My current plugins are Follower EX, v19 hotfixes, the Gen 8 project, and the Always inside Bushes script. Everything else is only attack animations, tilesets, or day/night tones which shouldn't have any reason to be interfering.
Is this just a very obvious issue that is flying over my head, or is it something more complicated?
The crash would be this:
=================
[2022-07-03 17:50:20 -0400]
[Pokémon Essentials version 19.1]
[Generation 8 Project v1.1.2]
[v19.1 Hotfixes 1.0.7]
Exception: RuntimeError
Message: Script error in event 4 (coords 3,3), map 62 (Battle Factory):
Exception: TypeError
Message: Array can't be coerced into Integer
***Full script:
pbBattleChallenge.set(
"factorysingle",
7,
pbBattleFactoryRules(false, false)
)
Backtrace:
333:ChallengeGenerator_Pokemon:12:in `+'
333:ChallengeGenerator_Pokemon:12:in `block in pbBaseStatTotal'
333:ChallengeGenerator_Pokemon:12:in `each'
333:ChallengeGenerator_Pokemon:12:in `pbBaseStatTotal'
333:ChallengeGenerator_Pokemon:17:in `baseStatTotal'
333:ChallengeGenerator_Pokemon:161:in `block (2 levels) in pbRandomPokemonFromRule'
333:ChallengeGenerator_Pokemon:155:in `loop'
333:ChallengeGenerator_Pokemon:155:in `block in pbRandomPokemonFromRule'
333:ChallengeGenerator_Pokemon:150:in `loop'
333:ChallengeGenerator_Pokemon:150:in `pbRandomPokemonFromRule'
Backtrace:
033:Interpreter:192:in `rescue in execute_script'
033:Interpreter:138:in `execute_script'
034:Interpreter_Commands:1030:in `command_355'
034:Interpreter_Commands:116:in `execute_command'
033:Interpreter:130:in `block in update'
033:Interpreter:87:in `loop'
033:Interpreter:87:in `update'
[Following Pokemon EX] Refresh.rb:252:in `update'
032:Scene_Map:157:in `block in update'
032:Scene_Map:155:in `loop'