View Single Post
Seren Seren's Avatar

JCF Member

Joined: Feb 2010

Posts: 866

Seren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to all

Aug 3, 2015, 05:38 AM
Seren is offline
Reply With Quote
szmol96's picture triggered the following Python error, resulting in producing an invalid j2a file:
Code:
Traceback (most recent call last):
  File "j2a-import.py", line 164, in <module>
    main()
  File "j2a-import.py", line 108, in main
    data3 += chr(len(pixelstodraw) + 0x80)
ValueError: chr() arg not in range(256)
It can be reliably reproduced with use of a 128x2 picture filled with any non-0 palette entries.
The error can be walked around by appending columns of index 0 pixels on each side of the picture (presumably one side would suffice but I didn't want to check which one it has to be).
__________________

I am an official JJ2+ programmer and this has been an official JJ2+ statement.