StarCitizenWiki / scunpacked

SC Unpacked with some modifications
GNU General Public License v3.0
8 stars 4 forks source link

Unhandled exception when use loader.exe on 3.22.0 data #5

Closed alistair3149 closed 9 months ago

alistair3149 commented 11 months ago

Got the following error when attempting to run the loader through 3.22.0 data.

Unhandled exception. System.InvalidOperationException: scdb.Xml.Entities.EntityClassDefinition cannot be serialized because it does not have a parameterless constructor.
   at System.Xml.Serialization.TypeDesc.CheckSupported()
   at System.Xml.Serialization.TypeScope.GetTypeDesc(Type, MemberInfo, Boolean, Boolean)
   at System.Xml.Serialization.TypeScope.GetTypeDesc(Type, MemberInfo, Boolean)
   at System.Xml.Serialization.ModelScope.GetTypeModel(Type, Boolean)
   at System.Xml.Serialization.ModelScope.GetTypeModel(Type)
   at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(Type, XmlRootAttribute , String )
   at System.Xml.Serialization.XmlSerializer.GenerateXmlTypeMapping(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, String defaultNamespace)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, String defaultNamespace, String location)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type, XmlRootAttribute root)
   at Loader.ClassParser`1.Parse(String)
   at Loader.EntityService.LoadEntity(String)
   at Loader.EntityService.BuildItemDirectory(String)
   at Loader.EntityService.Initialise(Boolean)
   at Loader.Program.Main(String[])
octfx commented 11 months ago

Hmm thats weird, did the console show the file it was trying to process?

alistair3149 commented 11 months ago

No sadly, that's the only message I got

alistair3149 commented 9 months ago

Okay found the file, it is: Data\Libs\Foundry\Records\entities\scitem\aimodule_atc_grimhex.xml