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

InvalidOperation when decompiling the defaultproperties of an array of bools #59

Closed
EliotVU opened this issue Jan 13, 2023 · 0 comments
Closed
Assignees
Labels
bug decompiler Issues related to decompilation T3D Text 3D Format (DefaultProperties etc) ue3
Milestone

Comments

@EliotVU
Copy link
Owner

EliotVU commented Jan 13, 2023

Original code:

    BoolArray(0)=true
    BoolArray(1)=false

Decompilation output:

    BoolArray(0)=
/* Exception thrown while deserializing BoolArray
System.InvalidOperationException: Object waarvoor null is toegestaan, moet een waarde hebben.
   bij System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   bij UELib.Core.UDefaultProperty.DeserializeDefaultPropertyValue(PropertyType type, DeserializeFlags& deserializeFlags) */
    BoolArray(1)=
/* Exception thrown while deserializing BoolArray
System.InvalidOperationException: Object waarvoor null is toegestaan, moet een waarde hebben.
   bij System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   bij UELib.Core.UDefaultProperty.DeserializeDefaultPropertyValue(PropertyType type, DeserializeFlags& deserializeFlags) */

Cause: UE1, UE2 do not support an array of bools, but as of UE3 this had been supported, however the decompiler still assumes the UE2 behavior.

@EliotVU EliotVU added bug ue3 decompiler Issues related to decompilation T3D Text 3D Format (DefaultProperties etc) labels Jan 13, 2023
@EliotVU EliotVU added this to the 1.4.0 milestone Jan 13, 2023
@EliotVU EliotVU self-assigned this Jan 13, 2023
@EliotVU EliotVU closed this as completed Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug decompiler Issues related to decompilation T3D Text 3D Format (DefaultProperties etc) ue3
Projects
None yet
Development

No branches or pull requests

1 participant