RimWorld

RimWorld

Incident Person Stat
Lanilor 21 Jun, 2018 @ 4:00am
Patch error while starting refugee chase
Hi, I got this error when the game wanted to start a refugee chase. Your harmony patch isn't correctly updated and still uses old code.

System.MissingMethodException: Method not found: 'Verse.GenText.AdjustedFor'.
at IncidentPersonStat.IncidentWorker_RefugeeChased_Patch.Prefix (bool&,RimWorld.IncidentWorker_RefugeeChased&,RimWorld.IncidentParms) <IL 0x000e3, 0x00411>
at (wrapper dynamic-method) RimWorld.IncidentWorker_RefugeeChased.TryExecuteWorker_Patch1 (object,RimWorld.IncidentParms) <IL 0x00015, 0x00098>
at RimWorld.IncidentWorker.TryExecute (RimWorld.IncidentParms) [0x00003] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\Defs\DefTypes\IncidentDef.cs:265
at RimWorld.Storyteller.TryFire (RimWorld.FiringIncident) [0x0003e] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\Game\Storyteller\Storyteller.cs:124
at RimWorld.Storyteller.StorytellerTick () [0x0004d] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\Game\Storyteller\Storyteller.cs:115
at Verse.TickManager.DoSingleTick () [0x00201] in C:\Dev\RimWorld\Assets\Scripts\Verse\Game\Ticking\TickManager.cs:334
< >
Showing 1-5 of 5 comments
Vaniat  [developer] 22 Jun, 2018 @ 4:35am 
It works fine on my game with version 1.0.1942.
So, what is your game version?
Lanilor 22 Jun, 2018 @ 4:47am 
It was the latest 1.0 version back then, not sure which rev it was. I updated half an hour before that.
I took the time to look at your code. It looks like you use a call for GenText.AdjustedFor() with wrong (probably old) arguments. That's in your IncidentWorker_RefugeeChased_Patch.CreateRefugeeText. It should be a text extension method now, so the call would be like text.AdjustedFor(refugee);
Vaniat  [developer] 22 Jun, 2018 @ 4:54am 
Well, Thanks.
I tried to update Harmony just now, I think it would be OK.
Sentient_Worm 30 Jul, 2018 @ 10:27am 
System.NullReferenceException: Object reference not set to an instance of an object
at IncidentPersonStat.IncidentWorker_RefugeeChased_Patch.Prefix (bool&,RimWorld.IncidentWorker_RefugeeChased&,RimWorld.IncidentParms) <IL 0x00115, 0x003ab>
at (wrapper dynamic-method) RimWorld.IncidentWorker_RefugeeChased.TryExecuteWorker_Patch1 (object,RimWorld.IncidentParms) <IL 0x00015, 0x000aa>
at RimWorld.IncidentWorker.TryExecute (RimWorld.IncidentParms) [0x00003] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\Defs\DefTypes\IncidentDef.cs:272
at RimWorld.Storyteller.TryFire (RimWorld.FiringIncident) [0x0002f] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\Game\Storyteller\Storyteller.cs:119
at RimWorld.Storyteller.StorytellerTick () [0x0004d] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\Game\Storyteller\Storyteller.cs:110
at Verse.TickManager.DoSingleTick () [0x00201] in C:\Dev\RimWorld\Assets\Scripts\Verse\Game\Ticking\TickManager.cs:340

Verse.Log:Error(String, Boolean) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Utility\Debug\Log\Log.cs:78)
Verse.TickManager:DoSingleTick() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Game\Ticking\TickManager.cs:341)
Verse.TickManager:TickManagerUpdate() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Game\Ticking\TickManager.cs:267)
Verse.Game:UpdatePlay() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Game\Game.cs:512)
Verse.Root_Play:Update() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\Root\Root_Play.cs:99)


Got this on the latest version
Angrysquirrel 18 Oct, 2022 @ 9:07pm 
I was getting the same error as worm dude. Going to try disabling this mod. I haven't had a wanderer join ever and I've been hitting those errors.
< >
Showing 1-5 of 5 comments
Per page: 1530 50