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

omiting VariableSizeString Linked property in LinkableNMSTemplate throws an error instead of re-adding a default value. #612

Open
roie-r opened this issue Jul 26, 2024 · 0 comments
Labels
bug An unexpected and/or unintended program behaviour.

Comments

@roie-r
Copy link

roie-r commented Jul 26, 2024

I noticed a minor oddity with the new LinkableNMSTemplate class (present in TkAttachmentData > Components)
If you omit Linked property, instead of re-adding it with a default value like other string properties elsewhere, the process throws an error... it's different behavior from other properties.

ERR INFO: at libMBIN.NMSTemplate.SerializeValue(BinaryWriter writer, Type fieldType, Object fieldData, NMSAttribute settings, FieldInfo field, List1& additionalData, Int32& addtDataIndex, UInt32 listEnding, Byte paddingByte) at libMBIN.NMSTemplate.AppendToWriter(BinaryWriter writer, List1& additionalData, Int32& addtDataIndex, Type parent, UInt32 listEnding, Byte paddingByte)
at libMBIN.NMSTemplate.SerializeValue(BinaryWriter writer, Type fieldType, Object fieldData, NMSAttribute settings, FieldInfo field, List1& additionalData, Int32& addtDataIndex, UInt32 listEnding, Byte paddingByte) at libMBIN.NMSTemplate.SerializeList(BinaryWriter writer, IList list, Int64 listHeaderPosition, List1& additionalData, Int32 addtDataIndex, UInt32 listEnding, Byte paddingByte, Boolean writingHashMap)
at libMBIN.NMSTemplate.SerializeBytes()
at libMBIN.MBINFile.SetData(NMSTemplate template)
at MBINCompiler.Commands.Convert.ConvertEXML(String inputPath, FileStream fIn, MemoryStream msOut, String fileOut)

@roie-r roie-r added the bug An unexpected and/or unintended program behaviour. label Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected and/or unintended program behaviour.
Projects
None yet
Development

No branches or pull requests

1 participant