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't get User Data field #30

Open
zhengying opened this issue May 19, 2024 · 3 comments
Open

Can't get User Data field #30

zhengying opened this issue May 19, 2024 · 3 comments
Labels
✅ Status: Closed The status of this issue or pull request is closed.

Comments

@zhengying
Copy link

Description

I have an animation, in a tag, I write some text to the User Data field, but I can't get the data from the tag property.
Screenshot 2024-05-19 at 22 12 48

Steps to Reproduce

Open .Aseprite file write user data to a User Data filed, then use API to read the tag's Userdata filed
we can't read it from Tag's UserData field by API

Expected Behavior

should read the text from User data filed by Tag 's Userdata

Actual Behavior

None

Configuration

No response

Other Information

No response

@AristurtleDev
Copy link
Owner

Apologies @zhengying just now seeing this, looking into it

@AristurtleDev AristurtleDev added ✈ Status: In Progress This issue or pull request is currently being worked on. ✅ Status: Closed The status of this issue or pull request is closed. and removed ✈ Status: In Progress This issue or pull request is currently being worked on. labels May 31, 2024
@AristurtleDev
Copy link
Owner

I just tested this with a test file that is a 32x32 sprite with 2 frames and 1 tag. The tag is setup with the same user data you have in your screen shot

image

Using this file, I am able to get the user data

image

If you are still experiencing this issue, please open a new request and provide a minimal example aseprite file or code that reproduces the issue.

@zhengying
Copy link
Author

It's strange that I still can't retrieve the user data text.

I did some debug found the logic entered a case that filled the user data text, I don't know why this happened.
-- file:AsepriteFileLoader.cs, LoadFile(string fileName, AsepriteBinaryReader reader, bool preMultiplyAlpha...
Screenshot 2024-06-01 at 10 53 40

here is my project, I running it on macOS13.4 with inter-CPU. I am not testing on another platform.

FNADemoProject.zip

@AristurtleDev AristurtleDev reopened this Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Status: Closed The status of this issue or pull request is closed.
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants