zzazzdzz / rgbbin

a linker for RGBDS that creates raw binary files; also a Python library for parsing the RGBDS object file format
MIT License
6 stars 1 forks source link

"byte must be in range(0, 256)" when building glitchland save and maps #2

Open ErdbeerbaerLP opened 5 years ago

ErdbeerbaerLP commented 5 years ago

Whenever i attempt to build the .sav and the serverside maps from glitchland it errors... I changed following in the rgbbin´s objfile.py to get more log output:

                    try:
                        section['data'][patch['offset']] = value - position
                    except ValueError as e:
                        print(" Error! "+str(e))
                        print(" Section: "+str(section))
                        print(" Patch:"+str(patch))

The game is playabe but you will get connection error loops when talking to npcs like the trendsetter. It does not even try to connect to the request server. image

The log: build.py.log I took RGBASM (win64) from here

zzazzdzz commented 5 years ago

It seems to be a bug with the experimental-and-untested support for RGB6 format. I'll look into that once I have some free time. As a temporary workaround you can use an older version of RGBDS; RGB5 format used by v0.3.3 is known to be fully working.

ErdbeerbaerLP commented 5 years ago

just tested it, that prevents the error but it still generates the saves with the bugs