边缘世界 RimWorld

边缘世界 RimWorld

Slave Rebellions Improved
Hate me  [开发者] 2021 年 9 月 14 日 上午 5:53
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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=725234314
< >
正在显示第 1 - 2 条,共 2 条留言
ubergarm 2024 年 5 月 10 日 上午 9:45 
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 2024 年 5 月 10 日 上午 9:51 
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.
最后由 ubergarm 编辑于; 2024 年 5 月 10 日 上午 9:56
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50