pancelor / aseprite-puzzlescript-export

aseprite script to export tiles as puzzlescript sprites
5 stars 2 forks source link

Export not working correctly #1

Closed undefdev closed 1 year ago

undefdev commented 1 year ago

Hey, nice little tool! Unfortunately exporting doesn't work correctly with the latest version. It either says 0 tiles exported, or 1 tile exported, while in my ase file there are two tiles. Tried slices as well. I used the ARNE16 palette and made a 5x10 image. This is what it looks like:

image

I used the script from 17dd53e instead, which works fine.

pancelor commented 1 year ago

I found the bug when the exporter is in "aseprite grid" mode -- thanks for the bug report! I'm pushing the fix now

what do you mean by "Tried slices as well" -- does the exporter not work in slice mode on this image? It works for me (on my fixed version). could you send me the .ase file, if the update doesn't fix it for you?

undefdev commented 1 year ago

Unfortunately it doesn't fix it and Github doesn't let me upload .ase files. I can also reproduce the error with any 5x10 aseprite file with the default palette:

image image image

Same goes for the other grid types (that's what I meant by slices):

image

If I select active layer only, then it exports 1 tile, but it's incorrect:

image image
❯ cat test.txt
───────┬────────────────────────────────────────────────────────────────────────
       │ File: test.txt
───────┼────────────────────────────────────────────────────────────────────────
   1   │ aseprite4
   2   │ #3f3f74
   3   │ .....
   4   │ .....
   5   │ .....
   6   │ .....
   7   │ .0...
   8   │ 
pancelor commented 1 year ago

oh, I closed this and forgot to check -- did this fix it for you? (thank you for the detailed repro steps btw)