RimWorld

RimWorld

Let's Trade! [1.4+]
Error messages in 1.4
These are the types of errors I am getting when I load up this mod:

https://gyazo.com/a81ad762b02cf279bc7ca0ed989ae0ec

I would put more of the code for the errors if they weren't so numerous in addition to them being super lengthy. I'm also getting a warning from Rimpy Mod Manager that because this mod has the word "copy" in its package id that it will not sort this mod, I don't know what that's about.

First one:



Could not find type named StockGenerator_Clothes from node <li Class="StockGenerator_Clothes"><maxTechLevelGenerate>Medieval</maxTechLevelGenerate><countRange>10~15</countRange></li>
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch5 (string)
XmlExtensions.CustomXmlLoader:ClassTypeOf<RimWorld.StockGenerator> (System.Xml.XmlNode)
XmlExtensions.CustomXmlLoader:ObjectFromXml<RimWorld.StockGenerator> (System.Xml.XmlNode,bool,System.Xml.XmlNode,string)
XmlExtensions.CustomXmlLoader:ListFromXml<RimWorld.StockGenerator> (System.Xml.XmlNode,System.Xml.XmlNode,string)
XmlExtensions.CustomXmlLoader:ListFromXmlReflection<RimWorld.StockGenerator> (System.Xml.XmlNode,System.Xml.XmlNode,string)
XmlExtensions.CustomXmlLoader:ObjectFromXml<System.Collections.Generic.List`1<RimWorld.StockGenerator>> (System.Xml.XmlNode,bool,System.Xml.XmlNode,string)
XmlExtensions.CustomXmlLoader:ObjectFromXmlReflection<System.Collections.Generic.List`1<RimWorld.StockGenerator>> (System.Xml.XmlNode,bool)
XmlExtensions.CustomXmlLoader:ObjectFromXml<RimWorld.TraderKindDef> (System.Xml.XmlNode,bool,System.Xml.XmlNode,string)
XmlExtensions.CustomXmlLoader:ObjectFromXmlReflection<RimWorld.TraderKindDef> (System.Xml.XmlNode,bool)
Verse.DirectXmlLoader:DefFromNode (System.Xml.XmlNode,Verse.LoadableXmlAsset)
Verse.LoadedModManager:ParseAndProcessXML (System.Xml.XmlDocument,System.Collections.Generic.Dictionary`2<System.Xml.XmlNode, Verse.LoadableXmlAsset>)
Verse.LoadedModManager:LoadAllActiveMods ()
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()




Second one:




Exception loading list element RimWorld.StockGenerator from XML: System.MissingMethodException: Default constructor not found for type RimWorld.StockGenerator
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x0007b] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00020] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Activator.CreateInstance (System.Type type) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at XmlExtensions.CustomXmlLoader.ObjectFromXml[T] (System.Xml.XmlNode xmlRoot, System.Boolean doPostLoad, System.Xml.XmlNode fullRoot, System.String nameOfDef) [0x005ad] in <9844f9a1567b4851a1955d85c7c9ece7>:0
at XmlExtensions.CustomXmlLoader.ListFromXml[T] (System.Xml.XmlNode listRootNode, System.Xml.XmlNode fullRoot, System.String nameOfDef) [0x001a1] in <9844f9a1567b4851a1955d85c7c9ece7>:0
XML:
<stockGenerators><li Class="StockGenerator_SingleDef"><thingDef>Silver</thingDef><countRange>2000~4000</countRange></li><li Class="StockGenerator_Category"><categoryDef>Textiles</categoryDef><excludedThingDefs><li>Leather_Human</li></excludedThingDefs><thingDefCountRange>10~18</thingDefCountRange><countRange>350~750</countRange></li><li Class="StockGenerator_Clothes"><maxTechLevelGenerate>Medieval</maxTechLevelGenerate><countRange>10~15</countRange></li><li Class="StockGenerator_BuyTradeTag"><tag>Art</tag></li><li Class="StockGenerator_BuySingleDef"><thingDef>Gold</thingDef></li><li Class="StockGenerator_Category"><categoryDef>Manufactured</categoryDef></li><li Class="StockGenerator_MultiDef"><thingDefs><li>Chocolate</li></thingDefs></li><li Class="StockGenerator_Tag"><tradeTag>VCE_JunkFood</tradeTag><thingDefCountRange>2~3</thingDefCountRange><countRange>10~30</countRange></li></stockGenerators>
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch5 (string)
XmlExtensions.CustomXmlLoader:ListFromXml<RimWorld.StockGenerator> (System.Xml.XmlNode,System.Xml.XmlNode,string)
XmlExtensions.CustomXmlLoader:ListFromXmlReflection<RimWorld.StockGenerator> (System.Xml.XmlNode,System.Xml.XmlNode,string)
XmlExtensions.CustomXmlLoader:ObjectFromXml<System.Collections.Generic.List`1<RimWorld.StockGenerator>> (System.Xml.XmlNode,bool,System.Xml.XmlNode,string)
XmlExtensions.CustomXmlLoader:ObjectFromXmlReflection<System.Collections.Generic.List`1<RimWorld.StockGenerator>> (System.Xml.XmlNode,bool)
XmlExtensions.CustomXmlLoader:ObjectFromXml<RimWorld.TraderKindDef> (System.Xml.XmlNode,bool,System.Xml.XmlNode,string)
XmlExtensions.CustomXmlLoader:ObjectFromXmlReflection<RimWorld.TraderKindDef> (System.Xml.XmlNode,bool)
Verse.DirectXmlLoader:DefFromNode (System.Xml.XmlNode,Verse.LoadableXmlAsset)
Verse.LoadedModManager:ParseAndProcessXML (System.Xml.XmlDocument,System.Collections.Generic.Dictionary`2<System.Xml.XmlNode, Verse.LoadableXmlAsset>)
Verse.LoadedModManager:LoadAllActiveMods ()
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()
Last edited by p20 hammerpoints; 27 Oct, 2022 @ 4:29pm
< >
Showing 1-13 of 13 comments
mogamepro 27 Oct, 2022 @ 5:10pm 
To add, with just Lets Trade, hugslib, and harmony loaded.
https://gist.github.com/HugsLibRecordKeeper/1607904c7c0279ba3e37430d61b44a91
Moonshine Fox 27 Oct, 2022 @ 5:49pm 
I'll throw in that I'm getting the same message as well. Can't tell if it's affected gameplay or not though.
Lyca 27 Oct, 2022 @ 6:43pm 
Yep have the same error messages.
Blooest 29 Oct, 2022 @ 10:19am 
Looks like how StockGenerators are defined has changed.

The vanilla bulk goods trader has clothing defined using StockGenerator_MarketValue instead of StockGenerator_Clothes.

<li Class="StockGenerator_MarketValue">
<tradeTag>BasicClothing</tradeTag>
<countRange>7~15</countRange>
</li>

It effectively just means that the LT traders won't have clothes to sell. Nothing too terrible.
Robear 29 Oct, 2022 @ 11:09am 
FWIW's it's broken for 1.3, too. Still playing a 1.3 save and when it updated this mod, my save fails to load with it.
1.4 same errors with clothes.
FrozenSnowFox 26 Nov, 2022 @ 1:08pm 
2
I was waiting for zhrocks11 to fix the errors but they don't seem like they'll be coming back for a while. I went through the errors and modified the stockgenerators to match the new vanilla style to fix the errors. I also modified the packageid changing _copy to .local. It stops rimpy throwing errors and you can remain subscribed to this mod without Rimworld throwing errors so you'll know when the mod updates properly.

Here's a copy of the fixed version.
Removed
Last edited by FrozenSnowFox; 5 Apr, 2024 @ 2:10am
Sir Bitar 29 Nov, 2022 @ 3:59pm 
Originally posted by FrozenSnowFox:
I was waiting for zhrocks11 to fix the errors but they don't seem like they'll be coming back for a while. I went through the errors and modified the stockgenerators to match the new vanilla style to fix the errors. I also modified the packageid changing _copy to .local. It stops rimpy throwing errors and you can remain subscribed to this mod without Rimworld throwing errors so you'll know when the mod updates properly.

Here's a copy of the fixed version.
https://www.dropbox.com/s/7zwmpezz3on26b4/Lets%20Trade%201.4%20Error%20Fix.rar?dl=0
Could you upload this to the Workshop please?
FrozenSnowFox 3 Dec, 2022 @ 11:04pm 
Originally posted by Sir Bitar:
Could you upload this to the Workshop please?

Sorry for the late reply I wasn't watching the thread. To answer your question though, no sorry I won't upload it to the workshop. I have no intentions of maintaining this mod, more importantly the author is still around, although somewhat busy at the moment it seems. Providing a simple manual download to fix the current issues is as far as I'm willing to go.
Sir Bitar 10 Dec, 2022 @ 3:27pm 
Originally posted by FrozenSnowFox:
Originally posted by Sir Bitar:
Could you upload this to the Workshop please?

Sorry for the late reply I wasn't watching the thread. To answer your question though, no sorry I won't upload it to the workshop. I have no intentions of maintaining this mod, more importantly the author is still around, although somewhat busy at the moment it seems. Providing a simple manual download to fix the current issues is as far as I'm willing to go.

That's fair. Much appreciated, thank you.
BigRedz 10 Feb, 2023 @ 2:13pm 
I can confirm FSF''s dropbox patch does appear to fix the issues.
BOMBSHELL 22 Mar, 2023 @ 1:29pm 
after installing the FSF patch, all traders would buy everything at 50 cents each, regardless of what the item was. had to uninstall and go back to the error message version

disregard - one of my pawns had a negotiating ability error. worked fine for other pawns
Last edited by BOMBSHELL; 22 Mar, 2023 @ 2:50pm
EnderNyktos 6 Apr, 2024 @ 3:05pm 
I got this error spammed in my screen for hours. It dissapeared after I uninstalled this mod.

Soyuz caught this error. Please don't report this to the RocketMan team unless you're certain RocketMan caused this error. with error System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper dynamic-method) Verse.ThingMaker.Verse.ThingMaker.MakeThing_Patch1(Verse.ThingDef,Verse.ThingDef)
at AdvancedCultivation.AC_CompFermenter.DoTicks (System.Int32 ticks) [0x000d4] in <12a1426948a040e8bcdb310c4d37db17>:0
at AdvancedCultivation.AC_CompFermenter.CompTick () [0x00000] in <12a1426948a040e8bcdb310c4d37db17>:0
at Verse.ThingWithComps.Tick () [0x00024] in <cd7169108ea74757aa50c5b33d275c15>:0
at Verse.ThingOwner.ThingOwnerTick (System.Boolean removeIfDestroyed) [0x00021] in <cd7169108ea74757aa50c5b33d275c15>:0
at Verse.Pawn_InventoryTracker.InventoryTrackerTick () [0x00000] in <cd7169108ea74757aa50c5b33d275c15>:0
at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.Tick_Patch2(Verse.Pawn)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch6 (string)
RocketMan.Logger:Debug (string,System.Exception,string)
Soyuz.Patches.Pawn_Tick_Patch:Finalizer (Verse.Pawn,System.Exception)
(wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch2 (Verse.Pawn)
(wrapper dynamic-method) RimWorld.Planet.WorldPawns:RimWorld.Planet.WorldPawns.WorldPawnsTick_Patch2 (RimWorld.Planet.WorldPawns)
RimWorld.Planet.World:WorldTick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch5 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
< >
Showing 1-13 of 13 comments
Per page: 1530 50