OrionFive / Hospitality

Orion's "Hospitality" and more
https://www.patreon.com/orionmods
GNU General Public License v3.0
91 stars 52 forks source link

(Not an error report)Hospitality: Visual Exceptions popup #705

Closed feeddanoob closed 2 years ago

feeddanoob commented 2 years ago

Describe the bug Started the game on 1.4 and visual exceptions caught a few exceptions that the debug log ignores on a min build.

To Reproduce Load up Harmony, Visual Exceptions, Core+DLC, Hugs, and Hospitality. Visual Exception pops out with an exception.

Console log HugsLib

Error stacktrace The error has extra information that is not included in the log. Please select it in the console and copy the whole error message.

Exception in Verse.DefInjectionPackage.AddDataFromFile: System.ArgumentException: An item with the same key has already been added. Key: CharmGuestAttempt.logRulesInitiator.rulesStrings
  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Verse.DefInjectionPackage.TryAddFullListInjection (RimWorld.IO.VirtualFile file, System.String key, System.Collections.Generic.List`1[T] translation, System.Collections.Generic.List`1[T] comments) [0x00051] in <2a35adf0a6b2491888068e783d046a45>:0 
  at Verse.DefInjectionPackage.AddDataFromFile (RimWorld.IO.VirtualFile file, System.Boolean& xmlParseError, System.String preloadedFileContents) [0x001f9] in <2a35adf0a6b2491888068e783d046a45>:0 
     - transpiler net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)

Exception in Verse.DefInjectionPackage.AddDataFromFile: System.Xml.XmlException: The 'SwipeFood.reportString' start tag on line 12 position 3 does not match the end tag of 'Swipe.reportString'. Line 12, position 54.
  at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in <0f9699188f0c414ea6fb5557f5c16d15>:0 
  at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String[] args) [0x00029] in <0f9699188f0c414ea6fb5557f5c16d15>:0 
  at System.Xml.XmlTextReaderImpl.ThrowTagMismatch (System.Xml.XmlTextReaderImpl+NodeData startTag) [0x00086] in <0f9699188f0c414ea6fb5557f5c16d15>:0 
  at System.Xml.XmlTextReaderImpl.ParseEndElement () [0x00085] in <0f9699188f0c414ea6fb5557f5c16d15>:0 
  at System.Xml.XmlTextReaderImpl.ParseElementContent () [0x00149] in <0f9699188f0c414ea6fb5557f5c16d15>:0 
  at System.Xml.XmlTextReaderImpl.Read () [0x00085] in <0f9699188f0c414ea6fb5557f5c16d15>:0 
  at System.Xml.Linq.XContainer.ReadContentFrom (System.Xml.XmlReader r, System.Xml.Linq.LoadOptions o) [0x00349] in <a9ef27d60e3144519c0741b6584ba229>:0 
  at System.Xml.Linq.XDocument.Load (System.Xml.XmlReader reader, System.Xml.Linq.LoadOptions options) [0x00080] in <a9ef27d60e3144519c0741b6584ba229>:0 
  at System.Xml.Linq.XDocument.Load (System.IO.TextReader textReader, System.Xml.Linq.LoadOptions options) [0x0000f] in <a9ef27d60e3144519c0741b6584ba229>:0 
  at RimWorld.IO.VirtualFileInfoExt.LoadAsXDocument (System.String fileContents) [0x00007] in <2a35adf0a6b2491888068e783d046a45>:0 
  at Verse.DefInjectionPackage.AddDataFromFile (RimWorld.IO.VirtualFile file, System.Boolean& xmlParseError, System.String preloadedFileContents) [0x00003] in <2a35adf0a6b2491888068e783d046a45>:0 
     - transpiler net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)

Screenshots

screenshot1

Fixing bugs takes a lot of time. Please consider becoming a patron to support development.

OrionFive commented 2 years ago

Good catch. It's fixed now.

feeddanoob commented 2 years ago

Thank you!