Closed dkuku closed 4 years ago
I can't reproduce the issue, but this would seem to occur when subtracting a uint8 value from another uint8 value that is smaller, i.e., a - b
where b > a
. A simple workaround is to wrap the uint8 operands with python int types, but i'm not sure how this would affect the output of the environment. Can you inject the suspected fix into your codefile and see if it resolves?
(self.ram[0x86] - self.ram[0x071c]) % 256
would become
np.uint8(int(self.ram[0x86]) - int(self.ram[0x071c])) % 256
the _left_x_position
parameter is never called in the logic of the current version of nes-py, so i'm not sure how you're coming about this error. I've added the suggested fix for if anyone uses the value in subclasses or through indirect access to the environment.
Describe the bug
I created a new venv and my training crashes straight away on the default script:
A clear and concise description of what the bug is.
Reproduction Script
gym_super_mario_bros -e SuperMarioBros-v0 -m random