patters-match / gba-emu-compilation-builders

Python 3 scripts to build emulator + ROM compilations for various emulators for Gameboy Advance. Cross-platform replacements for the original 32bit Windows-only tools.
8 stars 2 forks source link

PocketNes compile error #2

Closed superkahraman closed 1 year ago

superkahraman commented 1 year ago

`python3 pocketnes_compile.py -h

File "C:\Users\mess\Desktop\Emulation Playground\Builder\nes\pocketnes_compile.py", line 131 compilation += cb"\0" * ((256 - ((len(compilation) + EMU_HEADER + NES_HEADER)%256))%256) ^^^^ SyntaxError: invalid syntax`

I'm getting this error. How can I overcome this problem?

patters-match commented 1 year ago

Well spotted. That was a silly typo - cb"\0" should have been b"\0". It was introduced with this commit when I went back over all the scripts folding in some improvements from the newer ones. I've fixed that now. Re-clone the repo for the fix.

superkahraman commented 1 year ago

I updated script and i get following error now.

`> python3 pocketnes_compile.py -h

File "C:\Users\mess\Desktop\Emulation Playground\Builder\nes\pocketnes_compile.py", line 201 raise Exception(f'unsupported filetype for compilation - {romfilename}') ^ IndentationError: expected an indented block after 'else' statement on line 200`

patters-match commented 1 year ago

My apologies. Please try again now.