Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiletool: Switch str to bytes. #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

videlanicolas
Copy link

When padding a sprite with 0x00, tiletool.py is erroring out with:

Traceback (most recent call last):
  File "/workspaces/ngdevkit/tools/./tiletool.py", line 379, in <module>
    main()
  File "/workspaces/ngdevkit/tools/./tiletool.py", line 375, in main
    conv.create()
  File "/workspaces/ngdevkit/tools/./tiletool.py", line 151, in create
    self.close_rom()
  File "/workspaces/ngdevkit/tools/./tiletool.py", line 245, in close_rom
    self.fd1.write('\0'*padding)
TypeError: a bytes-like object is required, not 'str'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant