kirjavascript / Flex2

sega megadrive sprite editor
MIT License
57 stars 4 forks source link

"Can only save art at offset 0" when offset is set to 0 #76

Open 101Corp opened 4 months ago

101Corp commented 4 months ago

# Screenshot 2024-05-17 063145 Self explanatory. I can't save any of my sprite work and it's getting annoying. Is this a bug or just user error?

kirjavascript commented 4 months ago

can you try:

focus on the field ctrl+a to select all backspace to delete type 0 try again

101Corp commented 4 months ago

After doing that in Mappings on Sprite 1, the outcome has not changed. Also, backspace did not delete anything.

101Corp commented 4 months ago

Maybe this change will help: image

kirjavascript commented 4 months ago

can you try using delete to delete instead.

I will fix the bug - the workaround for now is to clear the field and add 0 back in

101Corp commented 4 months ago

I did. Still no change

kirjavascript commented 4 months ago

what if you just clear the field entirely?

kirjavascript commented 4 months ago

you could also try editing the JSON file and making sure it says "offset": 0 for the object, before loading flex2

101Corp commented 4 months ago

what if you just clear the field entirely?

That worked. Forgot to mention, lol The code checks if it exists, not if it is 0. 0 is a non null value, so it throws the error.

kirjavascript commented 4 months ago

I'll make it work whatever is there in the next version