Glain / FFTPatcher

FFTPatcher suite project continuation. Original commit is .483 RC 2
GNU General Public License v3.0
32 stars 9 forks source link

Shishi: Fails to patch png images folder ripped with Shishi #23

Closed invadermonks closed 1 year ago

invadermonks commented 1 year ago

Shishi give the following error trying to patch other images ripped directly from a clean twotl image with Image->Export all images (PNG):

start /wait "Patch" ShishiSpriteEditor.exe -expand -patch "data\bugtest1\shishi_import" "output\fft_1685390729.bin" Error: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

This works fine with png images from exported from TLW, but not with the ones from TLWotL - it may have to do with the number (222 images in TLWotL vs 63 in TLW). Here is the images folder that fails:

bugtest1_shishi_import.zip

Glain commented 1 year ago

@invadermonks There should now be a more descriptive error message with commit c668a9a. However, your input file is strange in numerous ways:

I tried extracting the TLWotL images with Shishi, and these issues did not happen for me.

invadermonks commented 1 year ago

The 222 and 63 were the number of changed images, not the total number of images. I tested this again with the current revision of the code and it works perfectly, not sure how the export messed up before. New error messages are great. Thanks!