Flex2 icon indicating copy to clipboard operation
Flex2 copied to clipboard

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

Open 101Corp opened this issue 1 year ago • 9 comments

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?

101Corp avatar May 18 '24 02:05 101Corp

can you try:

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

kirjavascript avatar May 18 '24 11:05 kirjavascript

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

101Corp avatar May 18 '24 12:05 101Corp

Maybe this change will help: image

101Corp avatar May 18 '24 17:05 101Corp

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

kirjavascript avatar May 18 '24 19:05 kirjavascript

I did. Still no change

101Corp avatar May 18 '24 20:05 101Corp

what if you just clear the field entirely?

kirjavascript avatar May 18 '24 22:05 kirjavascript

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

kirjavascript avatar May 18 '24 22:05 kirjavascript

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.

101Corp avatar May 18 '24 22:05 101Corp

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

kirjavascript avatar May 19 '24 00:05 kirjavascript