Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tiletool: Switch str to bytes.#111

Open
videlanicolas wants to merge 1 commit into
dciabrin:masterdciabrin/ngdevkit:masterfrom
videlanicolas:mastervidelanicolas/ngdevkit:masterCopy head branch name to clipboard
Open

Tiletool: Switch str to bytes.#111
videlanicolas wants to merge 1 commit into
dciabrin:masterdciabrin/ngdevkit:masterfrom
videlanicolas:mastervidelanicolas/ngdevkit:masterCopy head branch name to clipboard

Conversation

@videlanicolas

Copy link
Copy Markdown

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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.