-
-
Notifications
You must be signed in to change notification settings - Fork 129
Open
Description
I'm getting the following error messages every time a RandomPlayer uses the moves Reflect Type or Heart Swap (or when Metronome lands on one of those two moves) and the blattle will stall at the beginning of the following turn.
I'm doing RandomPlayer vs RandomPlayer in Gen 9 custom games.
Any idea what is going on?
D:\Download\poke-env\PokeFormated.py:44: DeprecationWarning: There is no current event loop
asyncio.get_event_loop().run_until_complete(main())
2025-02-27 16:18:15,040 - RandomPlayer 1 - ERROR - Unhandled exception raised while handling message:
>battle-gen9customgame-7670
|
|t:|1740669495
|move|p1a: Tentacruel|Reflect Type|p2a: Ponyta
|-start|p1a: Tentacruel|typechange|[from] move: Reflect Type|[of] p2a: Ponyta
|move|p2a: Ponyta|Tackle|p1a: Tentacruel
|-damage|p1a: Tentacruel|311/348
|
|upkeep
|-start|p1a: Tentacruel|typechange|Fire|[silent]
|turn|2
Traceback (most recent call last):
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\ps_client\ps_client.py", line 136, in _handle_message
await self._handle_battle_message(split_messages) # type: ignore
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\player\player.py", line 370, in _handle_battle_message
battle.parse_message(split_message)
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\environment\abstract_battle.py", line 622, in parse_message
pokemon.start_effect(effect, details=event[4]) # type: ignore
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\environment\pokemon.py", line 406, in start_effect
self._temporary_types.append(PokemonType.from_name(type_))
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\environment\pokemon_type.py", line 83, in from_name
return PokemonType[name.upper()]
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\enum.py", line 440, in __getitem__
return cls._member_map_[name]
KeyError: '[FROM] MOVE: REFLECT TYPE'
2025-02-27 16:18:15,042 - RandomPlayer 2 - ERROR - Unhandled exception raised while handling message:
>battle-gen9customgame-7670
|
|t:|1740669495
|move|p1a: Tentacruel|Reflect Type|p2a: Ponyta
|-start|p1a: Tentacruel|typechange|[from] move: Reflect Type|[of] p2a: Ponyta
|move|p2a: Ponyta|Tackle|p1a: Tentacruel
|-damage|p1a: Tentacruel|311/348
|
|upkeep
|-start|p1a: Tentacruel|typechange|Fire|[silent]
|turn|2
Traceback (most recent call last):
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\ps_client\ps_client.py", line 136, in _handle_message
await self._handle_battle_message(split_messages) # type: ignore
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\player\player.py", line 370, in _handle_battle_message
battle.parse_message(split_message)
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\environment\abstract_battle.py", line 622, in parse_message
pokemon.start_effect(effect, details=event[4]) # type: ignore
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\environment\pokemon.py", line 406, in start_effect
self._temporary_types.append(PokemonType.from_name(type_))
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\environment\pokemon_type.py", line 83, in from_name
return PokemonType[name.upper()]
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\enum.py", line 440, in __getitem__
return cls._member_map_[name]
KeyError: '[FROM] MOVE: REFLECT TYPE'
D:\Download\poke-env\PokeFormated.py:46: DeprecationWarning: There is no current event loop
asyncio.get_event_loop().run_until_complete(main())
2025-02-27 18:37:47,583 - RandomPlayer 1 - ERROR - Unhandled exception raised while handling message:
>battle-gen9customgame-26086
|
|t:|1740677867
|move|p2a: Palkia|Hydro Pump|p1a: Manaphy
|-resisted|p1a: Manaphy
|-damage|p1a: Manaphy|298/388
|move|p1a: Manaphy|Heart Swap|p2a: Palkia
|-swapboost|p1a: Manaphy|p2a: Palkia|[from] move: Heart Swap
|
|upkeep
|turn|2
Traceback (most recent call last):
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\ps_client\ps_client.py", line 136, in _handle_message
await self._handle_battle_message(split_messages) # type: ignore
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\player\player.py", line 370, in _handle_battle_message
battle.parse_message(split_message)
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\environment\abstract_battle.py", line 786, in parse_message
target_mon.boosts[stat],
KeyError: '[from] move: Heart Swap'
2025-02-27 18:37:47,584 - RandomPlayer 2 - ERROR - Unhandled exception raised while handling message:
>battle-gen9customgame-26086
|
|t:|1740677867
|move|p2a: Palkia|Hydro Pump|p1a: Manaphy
|-resisted|p1a: Manaphy
|-damage|p1a: Manaphy|298/388
|move|p1a: Manaphy|Heart Swap|p2a: Palkia
|-swapboost|p1a: Manaphy|p2a: Palkia|[from] move: Heart Swap
|
|upkeep
|turn|2
Traceback (most recent call last):
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\ps_client\ps_client.py", line 136, in _handle_message
await self._handle_battle_message(split_messages) # type: ignore
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\player\player.py", line 370, in _handle_battle_message
battle.parse_message(split_message)
File "C:\Users\lordz\AppData\Local\Programs\Python\Python310\lib\site-packages\poke_env\environment\abstract_battle.py", line 786, in parse_message
target_mon.boosts[stat],
KeyError: '[from] move: Heart Swap'
Metadata
Metadata
Assignees
Labels
No labels