Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
101Corp opened this issue May 18, 2024 · 9 comments
Open

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

101Corp opened this issue May 18, 2024 · 9 comments

Comments

@101Corp
Copy link

101Corp commented May 18, 2024

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
Copy link
Owner

can you try:

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

@101Corp
Copy link
Author

101Corp commented May 18, 2024

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

@101Corp
Copy link
Author

101Corp commented May 18, 2024

Maybe this change will help:
image

@kirjavascript
Copy link
Owner

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
Copy link
Author

101Corp commented May 18, 2024

I did. Still no change

@kirjavascript
Copy link
Owner

what if you just clear the field entirely?

@kirjavascript
Copy link
Owner

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

@101Corp
Copy link
Author

101Corp commented May 18, 2024

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants