@lucasvinbr Sorry forgot to post, so I just ran it, the mod options ranamed and a new one was created with default options, heres the today's log
9/07/2019 14:21:48 : loading file ModOptions failed! error: System.InvalidOperationException: Erro no documento XML (352, 1). ---> System.Xml.XmlException: Fim de arquivo inesperado. Os seguintes elementos não estão fechados: buyableWeapons, ModOptions. Linha 352, posição 1.
em System.Xml.XmlTextReaderImpl.Throw(Exception e)
em System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
em System.Xml.XmlTextReaderImpl.ParseAttributes()
em System.Xml.XmlTextReaderImpl.ParseElement()
em System.Xml.XmlTextReaderImpl.ParseElementContent()
em System.Xml.XmlReader.ReadEndElement()
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderModOptions.Read5_BuyableWeapon(Boolean isNullable, Boolean checkType)
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderModOptions.Read9_ModOptions(Boolean isNullable, Boolean checkType)
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderModOptions.Read10_ModOptions()
--- Fim do rastreamento de pilha de exceções internas ---
em System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
em System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
em GTA.GangAndTurfMod.PersistenceHandler.LoadFromFile[T](String fileName)
29/07/2019 14:21:48 : failed to save file: ModOptions! Error: System.InvalidOperationException: Erro ao gerar o documento XML. ---> System.InvalidOperationException: Erro de validação de instância: '1198256469' não é um valor válido para GTA.Native.WeaponHash.
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterModOptions.Write3_WeaponHash(WeaponHash v)
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterModOptions.Write5_BuyableWeapon(String n, String ns, BuyableWeapon o, Boolean isNullable, Boolean needType)
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterModOptions.Write9_ModOptions(String n, String ns, ModOptions o, Boolean isNullable, Boolean needType)
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterModOptions.Write10_ModOptions(Object o)
--- Fim do rastreamento de pilha de exceções internas ---
em System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
em System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o, XmlSerializerNamespaces namespaces)
em GTA.GangAndTurfMod.PersistenceHandler.SaveToFile[T](T dataToSave, String fileName, Boolean notifyMsg)
I tried changing the desired values before starting the game, still it gets back to the default one, but only for the max health/ armor and basekillvalues ones.
Everytime I Change the setting <baseNumKillsBeforeWarVictory and <extraKillsPerTurfValue> to lower values, it never Works, instead the values get back to the default ones, is there a way to fix this?
@lucasvinbr Yes,prob its a mod conflict, I will try to figure this out.
@lucasvinbr I do have the lastest ones installed, does that cause the file to reset? I can delete the line of the weapon and test
@lucasvinbr Sorry forgot to post, so I just ran it, the mod options ranamed and a new one was created with default options, heres the today's log
9/07/2019 14:21:48 : loading file ModOptions failed! error: System.InvalidOperationException: Erro no documento XML (352, 1). ---> System.Xml.XmlException: Fim de arquivo inesperado. Os seguintes elementos não estão fechados: buyableWeapons, ModOptions. Linha 352, posição 1.
em System.Xml.XmlTextReaderImpl.Throw(Exception e)
em System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
em System.Xml.XmlTextReaderImpl.ParseAttributes()
em System.Xml.XmlTextReaderImpl.ParseElement()
em System.Xml.XmlTextReaderImpl.ParseElementContent()
em System.Xml.XmlReader.ReadEndElement()
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderModOptions.Read5_BuyableWeapon(Boolean isNullable, Boolean checkType)
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderModOptions.Read9_ModOptions(Boolean isNullable, Boolean checkType)
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderModOptions.Read10_ModOptions()
--- Fim do rastreamento de pilha de exceções internas ---
em System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
em System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
em GTA.GangAndTurfMod.PersistenceHandler.LoadFromFile[T](String fileName)
29/07/2019 14:21:48 : failed to save file: ModOptions! Error: System.InvalidOperationException: Erro ao gerar o documento XML. ---> System.InvalidOperationException: Erro de validação de instância: '1198256469' não é um valor válido para GTA.Native.WeaponHash.
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterModOptions.Write3_WeaponHash(WeaponHash v)
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterModOptions.Write5_BuyableWeapon(String n, String ns, BuyableWeapon o, Boolean isNullable, Boolean needType)
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterModOptions.Write9_ModOptions(String n, String ns, ModOptions o, Boolean isNullable, Boolean needType)
em Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterModOptions.Write10_ModOptions(Object o)
--- Fim do rastreamento de pilha de exceções internas ---
em System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
em System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o, XmlSerializerNamespaces namespaces)
em GTA.GangAndTurfMod.PersistenceHandler.SaveToFile[T](T dataToSave, String fileName, Boolean notifyMsg)
I tried changing the desired values before starting the game, still it gets back to the default one, but only for the max health/ armor and basekillvalues ones.
Also in the new version the gangdata xml folder resets every time I play. maybe my configs are f up?
Everytime I Change the setting <baseNumKillsBeforeWarVictory and <extraKillsPerTurfValue> to lower values, it never Works, instead the values get back to the default ones, is there a way to fix this?