From 3a0175a6b3978411c87ab24467f1bfb42ac0005a Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Sun, 7 Jul 2024 23:31:02 -0400 Subject: [PATCH] fix that set --- pokemonred_puffer/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index f1a3b4c..9491555 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -639,7 +639,7 @@ def step(self, action): state = io.BytesIO() self.pyboy.save_state(state) state.seek(0) - info["state"] = {hash(required_events): state.read()} + info["state"] = {hash("".join(required_events)): state.read()} info["required_events_count"] = len(required_events) info["env_id"] = self.env_id info = info | self.agent_stats(action)