Kautenja / nes-py

A Python3 NES emulator and OpenAI Gym interface
MIT License
235 stars 63 forks source link

ValueError: ROM header zero fill bytes are not zero. #86

Closed luorq3 closed 2 years ago

luorq3 commented 2 years ago

I want to load a new rom by nes_py, but it raise this error.

ValueError: ROM header zero fill bytes are not zero.

And I find it's from a few lines code:

 def _zero_fill(self):
        """Return the zero fill bytes at the end of the header."""
        return self.header[11:].sum()

Will there be any side effects if I just modify the source code to bypass this limitation ?

THANKS !

Kautenja commented 2 years ago

This suggests your ROM file is improperly formatted.