rojo-rbx / rbx-dom

Roblox DOM and (de)serialization implementation in Rust
MIT License
105 stars 42 forks source link

Failed to deserialize Configuration.AttributesSerialize #395

Closed krakow10 closed 4 months ago

krakow10 commented 4 months ago

I am getting a deserialization error when using rbx_binary and rbx_xml. I have located the problem object and exported some files: configuration.rbxm configuration.rbxmx

This is the exact error message it prints when using rbx_binary v0.7.4:

[quat@quat-desktop history]$ ~/git/asset-tool/target/release/asset-tool --style rox-rojo --no-template true --no-models true --input ../configuration.rbxm --output . decompile
Error: Failed to deserialize Configuration.AttributesSerialize because invalid value type: 21

This is the exact error message it prints when using rbx_xml v0.13.3:

[quat@quat-desktop history]$ ~/git/asset-tool/target/release/asset-tool --style rox-rojo --no-template true --no-models true --input ../configuration.rbxmx --output . decompile
Error: line 16, column 31: Property Configuration.Attributes is expected to be of type Attributes, but it was of type BinaryString When trying to convert, this error occured: Unknown or invalid Attributes

This is how the object appears in studio: image

The values appear to be Enums: image

Dekkonot commented 4 months ago

Howdy! Thanks for the report. We're tracking enum attributes in #383. I suppose we'll move them up in our agenda if they're being found out in the wild now!

Because this is being tracked elsewhere, I'm going to close this in favor of that issue though.