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

Small Inconsistency with float & double in Attributes encoding #421

Open
phoriah opened this issue Jun 16, 2024 · 2 comments
Open

Small Inconsistency with float & double in Attributes encoding #421

phoriah opened this issue Jun 16, 2024 · 2 comments

Comments

@phoriah
Copy link
Contributor

phoriah commented Jun 16, 2024

In your documentation it's mentioned that Studio isn't capable of producing float-type attributes. This is mostly true.

This type is accepted by Roblox Studio but will not ever be generated by it.

However, it seems that if you were to add an Attribute using the Studio properties menu:
image
And then save the file as xml (for example), you'd notice that the string encodes as AQAAAAYAAABudW1iZXIFAAAAAA== which, when decoded, show that it has a Type ID of 0x05 and has a size of a float.
Though, if you were to touch the value in any way, it would convert to a 0x06 and use double's format.

I'm not sure if this breaks any of your code but it's an interesting exception and might be worth taking into count.
Correct me if I'm wrong.

@Dekkonot
Copy link
Member

...I'll verify this Monday but if this is actually the case, I'll be confused.

Does this happen for binary files do you know?

@phoriah
Copy link
Contributor Author

phoriah commented Jun 16, 2024

...I'll verify this Monday but if this is actually the case, I'll be confused.

Does this happen for binary files do you know?

Yes, just tested.

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

No branches or pull requests

2 participants