边缘世界 RimWorld

边缘世界 RimWorld

Let's Trade! [1.4+]
p20 hammerpoints 2022 年 10 月 27 日 下午 4:28
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 ()
最后由 p20 hammerpoints 编辑于; 2022 年 10 月 27 日 下午 4:29
< >
正在显示第 1 - 13 条,共 13 条留言
mogamepro 2022 年 10 月 27 日 下午 5:10 
To add, with just Lets Trade, hugslib, and harmony loaded.
https://gist.github.com/HugsLibRecordKeeper/1607904c7c0279ba3e37430d61b44a91
Moonshine Fox 2022 年 10 月 27 日 下午 5:49 
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 2022 年 10 月 27 日 下午 6:43 
Yep have the same error messages.
Blooest 2022 年 10 月 29 日 上午 10:19 
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 2022 年 10 月 29 日 上午 11:09 
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.
⊰PoT⊱ Ash Williams 2022 年 11 月 19 日 上午 9:23 
1.4 same errors with clothes.
FrozenSnowFox 2022 年 11 月 26 日 下午 1:08 
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
最后由 FrozenSnowFox 编辑于; 2024 年 4 月 5 日 上午 2:10
Sir Bitar 2022 年 11 月 29 日 下午 3:59 
引用自 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 2022 年 12 月 3 日 下午 11:04 
引用自 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 2022 年 12 月 10 日 下午 3:27 
引用自 FrozenSnowFox
引用自 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 2023 年 2 月 10 日 下午 2:13 
I can confirm FSF''s dropbox patch does appear to fix the issues.
BOMBSHELL 2023 年 3 月 22 日 下午 1:29 
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
最后由 BOMBSHELL 编辑于; 2023 年 3 月 22 日 下午 2:50
EnderNyktos 2024 年 4 月 6 日 下午 3:05 
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 ()
< >
正在显示第 1 - 13 条,共 13 条留言
每页显示数: 1530 50