Boriel Basic Forum
zx0 compression corruption on decompressing (solved) - Printable Version

+- Boriel Basic Forum (https://forum.boriel.com)
+-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11)
+---- Forum: Bug Reports (https://forum.boriel.com/forumdisplay.php?fid=15)
+---- Thread: zx0 compression corruption on decompressing (solved) (/showthread.php?tid=1445)



zx0 compression corruption on decompressing (solved) - RandomiserUsr - 2021-09-29

Since zxbc.py 1.15.3-beta9 the following is causing screen corruption

dzx0Standard(@Pic1, 16384)

Pic1:
asm
incbin "pic1.scr.zx0"
end asm

The same thing happens for text uncompressing.

See attachments for all of the files.

The same code works fine on 1.15.2 stable

Thanks

.zip   zx0picbug.zip (Size: 2.75 KB / Downloads: 911)


RE: zx0 compression corruption on decompressing - boriel - 2021-09-29

(2021-09-29, 07:50 PM)RandomiserUsr Wrote: Since zxbc.py 1.15.3-beta9 the following is causing screen corruption

dzx0Standard(@Pic1, 16384)

Pic1:
asm
incbin "pic1.scr.zx0"
end asm

The same thing happens for text uncompressing.

See attachments for all of the files.

The same code works fine on 1.15.2 stable

Thanks

The compressor was updated in 1.15.3.
Can you re-compress pic1.scr using the new compressor version, please?
The compressor is here: https://github.com/einar-saukas/ZX0/tree/main/win


RE: zx0 compression corruption on decompressing - einar - 2021-09-29

(2021-09-29, 09:56 PM)boriel Wrote: The compressor was updated in 1.15.3.
Can you re-compress pic1.scr using the new compressor version, please?
The compressor is here: https://github.com/einar-saukas/ZX0/tree/main/win

Exactly.

Your file was compressed with the old version of ZX0. But ZXBC now uses a new ZX0 format that's a little faster.

If you download latest ZX0 executables and compress your screen again, it should work just fine.


PS: My apologies for the inconvenience!


RE: zx0 compression corruption on decompressing - RandomiserUsr - 2021-10-09

Thanks all - this fixed it :-)