xdanieldzd / Scarlet

Game data conversion/export/import helper libraries - UNMAINTAINED
Other
97 stars 22 forks source link

Eating the end of GNF files. #23

Open ghost opened 5 years ago

ghost commented 5 years ago

https://github.com/xdanieldzd/Scarlet/blob/8c56632eb2968e64b6d6fad14af3758e606a127d/Scarlet.IO.ImageFormats/GNF.cs#L186 PhysicalHeight has to be a multiple of 8 pixels/blocks, because there are always complete tiles in GNF files. imageBinary.PhysicalHeight = (height + 7) / 8) * 8;

Some examples (and results) to test against: noesis_and_scarlet_issues_with_GNF_images.zip