RimWorld

RimWorld

Slave Rebellions Improved
Hate me  [developer] Sep 14, 2021 @ 5:53am
Bug Reports
Please provide detailed description of any bugs related to this mod. Always provide hugslib log if possible. And make sure to read guide from fluffy before posting.
https://steamcommunity.com/sharedfiles/filedetails/?id=725234314
< >
Showing 1-2 of 2 comments
ubergarm May 10, 2024 @ 9:45am 
Possibly 1.5 breaks due to missing RimWorld.RestUtility.WakeUp() function missing?

Likely code to fix

[HarmonyPatch ("StartSlaveRebellion")]
...
Prefix()
...
for (int num3 = 0; num3 < ___rebellingSlaves.Count; num3++) {
if (!RestUtility.Awake (___rebellingSlaves [num3])) {
RestUtility.WakeUp (___rebellingSlaves [num3]);
}


Debug log throws this error when a rebellion attempts to start:


Exception ticking MyPawnName (at (160, 0, 143)): System.MissingMethodException: void RimWorld.RestUtility.WakeUp(Verse.Pawn)
[Ref D724C8D3]
at RimWorld.SlaveRebellionUtility.StartSlaveRebellion (Verse.Pawn initiator, System.String& letterText, System.String& letterLabel, Verse.LetterDef& letterDef, Verse.LookTargets& lookTargets, System.Boolean forceAggressive) [0x00047] in <3d931901449c4087b86953a6d5c84d50>:0
- PREFIX SlaveRebellionsImproved.patch: Boolean SlaveRebellionsImproved.HarmonyMain+StartSlaveRebellionPatch:Prefix(Boolean& __result, List`1 ___rebellingSlaves, List`1 ___allPossibleRebellingSlaves, Pawn initiator, String& letterText, String& letterLabel, LetterDef& letterDef, LookTargets& lookTargets, Boolean forceAggressive)
at RimWorld.SlaveRebellionUtility.StartSlaveRebellion (Verse.Pawn initiator, System.Boolean forceAggressive) [0x00000] in <3d931901449c4087b86953a6d5c84d50>:0
at RimWorld.Pawn_GuestTracker.GuestTrackerTick () [0x000cd] in <3d931901449c4087b86953a6d5c84d50>:0
at Verse.Pawn.Tick () [0x005f3] in <3d931901449c4087b86953a6d5c84d50>:0
- PREFIX multiplayer: Void Multiplayer.Client.ThingMethodPatches:Prefix(Thing __instance, Nullable`1& __state)
- FINALIZER multiplayer: Void Multiplayer.Client.ThingMethodPatches:Finalizer(Thing __instance, Nullable`1 __state)
at Verse.TickList.Tick () [0x0015c] in <3d931901449c4087b86953a6d5c84d50>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.TickList:Tick ()
Multiplayer.Client.AsyncTimeComp:Tick ()
Multiplayer.Client.TickPatch:TickTickable (Multiplayer.Client.ITickable)
Multiplayer.Client.TickPatch:DoTick (bool&)
Multiplayer.Client.TickPatch:DoUpdate (bool&)
Multiplayer.Client.TickPatch:Prefix ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.TickManagerUpdate_Patch2 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()
ubergarm May 10, 2024 @ 9:51am 
Looking at the latest Krafs RimWorld reference DLLs, seems like the WakeUp method changed slighting and added a bool starNewJob which should default to true...

public static void WakeUp (Pawn p, bool startNewJob = true);

Maybe just add a "True" to the WakeUp call? Not 100% sure this is the fix, or if there are other issues after this.
Last edited by ubergarm; May 10, 2024 @ 9:56am
< >
Showing 1-2 of 2 comments
Per page: 1530 50