- 428
- Posts
- 5
- Years
- Zekko
- Seen Nov 21, 2023
I download Pokemon Essentials, start a battle, and... I get this error message the second I try fighting the version of Brock that came with the engine version by default. Or any other trainer. Ever.
Here's the code it points to and everything is unchanged from the default.
Let me know when somebody figures out how to make the engine work.
Code:
[Pokémon Essentials version 20.1]
Script error in event 5 (coords 27,4), map 3 (Aaa's house)
Exception: NameError
Message: wrong constant name Battle::Move::
***Full script:
TrainerBattle.start(:LEADER_Brock, "Brock")
Backtrace:
172:Battle_Move:58:in `const_defined?'
172:Battle_Move:58:in `from_pokemon_move'
161:Battler_Initialize:89:in `block in pbInitPokemon'
161:Battler_Initialize:88:in `each'
161:Battler_Initialize:88:in `each_with_index'
161:Battler_Initialize:88:in `pbInitPokemon'
267:ShadowPokemon_Other:196:in `pbInitPokemon'
161:Battler_Initialize:61:in `pbInitialize'
148:Battle_StartAndEnd:117:in `pbCreateBattler'
148:Battle_StartAndEnd:153:in `block (3 levels) in pbSetUpSides'
Here's the code it points to and everything is unchanged from the default.
Code:
# This is the code actually used to generate a Battle::Move object. The
# object generated is a subclass of this one which depends on the move's
# function code.
def self.from_pokemon_move(battle, move)
validate move => Pokemon::Move
code = move.function_code || "None"
if code[/^\d/] # Begins with a digit
class_name = sprintf("Battle::Move::Effect%s", code)
else
class_name = sprintf("Battle::Move::%s", code)
end
if Object.const_defined?(class_name)
return Object.const_get(class_name).new(battle, move)
end
return Battle::Move::Unimplemented.new(battle, move)
end
Code:
[Pokémon Essentials version 20.1]
Exception: NameError
Message: wrong constant name Battle::Move::
Backtrace:
172:Battle_Move:58:in `const_defined?'
172:Battle_Move:58:in `from_pokemon_move'
161:Battler_Initialize:89:in `block in pbInitPokemon'
161:Battler_Initialize:88:in `each'
161:Battler_Initialize:88:in `each_with_index'
161:Battler_Initialize:88:in `pbInitPokemon'
267:ShadowPokemon_Other:196:in `pbInitPokemon'
161:Battler_Initialize:61:in `pbInitialize'
151:Battle_ActionSwitching:277:in `pbReplace'
151:Battle_ActionSwitching:224:in `pbRecallAndReplace'
Let me know when somebody figures out how to make the engine work.
Last edited: