[1.3.3066] Unable to Prioritize Actions

Started by Lestinator, July 20, 2021, 04:56:08 PM

Previous topic - Next topic

Lestinator

1. After creating a custom ideology and loading into a game with it for the first time
2. I was unable to equip anything with any colonist (they were not incapable of violence, the tooltip that usually shows up when they are didn't even appear.) and I was also unable to prioritize any work orders. Right click was working in general, if I clicked it when i wasn't hovering over anything it brought up the normal build menu, but colonists were unable to prioritize actions. I tried making a custom ideology again, and the same bug appeared where I was unable to prioritize any actions. When I select an ideology that the game has generated for another faction for my colony, this bug does not appear.
3. I expect to be able to prioritize actions with colonists or if i cannot to get the normal tooltip telling me why i can't.
4. Create a custom ideology (the one I specifically made had Animal personhood, Individualism, Transhumanism and Proselytizer but I switched things up a bit the second time and the bug still happened) and then try to prioritize an action by using right click.

I do not have any mods installed

Edit:When I used the debug mode and attempted to right click with a colonist on an item, it reported this error:

Root level exception in OnGUI(): System.InvalidOperationException: Sequence contains no matching element
  at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
  at RimWorld.RitualBehaviorWorker_Speech.CanStartRitualNow (Verse.TargetInfo target, RimWorld.Precept_Ritual ritual, Verse.Pawn selectedPawn, System.Collections.Generic.Dictionary`2[TKey,TValue] forcedForRole) [0x0000b] in <69bb6e66186e424eb26bbf02d65f9e35>:0
  at Verse.Thing+<GetFloatMenuOptions>d__144.MoveNext () [0x0015e] in <69bb6e66186e424eb26bbf02d65f9e35>:0
  at Verse.ThingWithComps+<GetFloatMenuOptions>d__40.MoveNext () [0x00078] in <69bb6e66186e424eb26bbf02d65f9e35>:0
  at RimWorld.FloatMenuMakerMap.AddHumanlikeOrders (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts) [0x042f2] in <69bb6e66186e424eb26bbf02d65f9e35>:0
  at RimWorld.FloatMenuMakerMap.ChoicesAtFor (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Boolean suppressAutoTakeableGoto) [0x000a5] in <69bb6e66186e424eb26bbf02d65f9e35>:0
  at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn pawn) [0x000a1] in <69bb6e66186e424eb26bbf02d65f9e35>:0
  at RimWorld.Selector.HandleMapClicks () [0x000a9] in <69bb6e66186e424eb26bbf02d65f9e35>:0
  at RimWorld.Selector.SelectorOnGUI () [0x00000] in <69bb6e66186e424eb26bbf02d65f9e35>:0
  at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <69bb6e66186e424eb26bbf02d65f9e35>:0
  at RimWorld.UIRoot_Play.UIRootOnGUI () [0x000dd] in <69bb6e66186e424eb26bbf02d65f9e35>:0
  at Verse.Root.OnGUI () [0x0003d] in <69bb6e66186e424eb26bbf02d65f9e35>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)

humulustom

I have the same problem, with or without mods. I did some testing, and can always reproduce this using these steps:
1. Create a new game and on ideology menu create custom ideology
2. Select Transhumanism, Loyalty, Humanism (not sure if relevant)
3. Remove the moral guide role
4. Select anything on next screens

It seems that the bug is not reproduced if nothing is changed for ideology, or when using auto-generated ones

Result is the same exception about null result of predicate being raised. I've uploaded my save game file: https://drive.google.com/file/d/1XuU5K29WL6Qt3C4akDtWxNzykQBJ98o9/view?usp=sharing

limeth

Same issue here, error from the log, generated while right-clicking an item:

Root level exception in OnGUI(): System.InvalidOperationException: Sequence contains no matching element
  at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
  at RimWorld.RitualBehaviorWorker_Speech.CanStartRitualNow (Verse.TargetInfo target, RimWorld.Precept_Ritual ritual, Verse.Pawn selectedPawn, System.Collections.Generic.Dictionary`2[TKey,TValue] forcedForRole) [0x0000b] in <b0e0d76a3b644a4ea0070c1c82671e8d>:0
  at Verse.Thing+<GetFloatMenuOptions>d__144.MoveNext () [0x0015e] in <b0e0d76a3b644a4ea0070c1c82671e8d>:0
  at Verse.ThingWithComps+<GetFloatMenuOptions>d__40.MoveNext () [0x00078] in <b0e0d76a3b644a4ea0070c1c82671e8d>:0
  at RimWorld.FloatMenuMakerMap.AddHumanlikeOrders (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts) [0x042f2] in <b0e0d76a3b644a4ea0070c1c82671e8d>:0
  at RimWorld.FloatMenuMakerMap.ChoicesAtFor (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Boolean suppressAutoTakeableGoto) [0x000a5] in <b0e0d76a3b644a4ea0070c1c82671e8d>:0
  at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn pawn) [0x000a1] in <b0e0d76a3b644a4ea0070c1c82671e8d>:0
  at RimWorld.Selector.HandleMapClicks () [0x000a9] in <b0e0d76a3b644a4ea0070c1c82671e8d>:0
  at RimWorld.Selector.SelectorOnGUI () [0x00000] in <b0e0d76a3b644a4ea0070c1c82671e8d>:0
  at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <b0e0d76a3b644a4ea0070c1c82671e8d>:0
  at RimWorld.UIRoot_Play.UIRootOnGUI () [0x000dd] in <b0e0d76a3b644a4ea0070c1c82671e8d>:0
  at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)

Kirrax

#3
For me the right click stops working after I assign "Moral guide" role to a colonist. When I remove this role, right click is working fine again. Ideology was not custom, just something auto-generated on the existing save made before Ideology.

Traceback:
Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.RitualRoleConvertee.AppliesToPawn (Verse.Pawn p, System.String& reason, RimWorld.LordJob_Ritual ritual, RimWorld.RitualRoleAssignments assignments, RimWorld.Precept_Ritual precept) [0x0006b] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at RimWorld.RitualBehaviorWorker+<>c__DisplayClass5_0.<CanStartRitualNow>b__1 (Verse.Pawn p) [0x00000] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at System.Linq.Enumerable.Count[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0002e] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
  at RimWorld.RitualBehaviorWorker.CanStartRitualNow (Verse.TargetInfo target, RimWorld.Precept_Ritual ritual, Verse.Pawn selectedPawn, System.Collections.Generic.Dictionary`2[TKey,TValue] forcedForRole) [0x00203] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at RimWorld.RitualBehaviorWorker_Conversion.CanStartRitualNow (Verse.TargetInfo target, RimWorld.Precept_Ritual ritual, Verse.Pawn selectedPawn, System.Collections.Generic.Dictionary`2[TKey,TValue] forcedForRole) [0x000c8] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at Verse.Thing+<GetFloatMenuOptions>d__144.MoveNext () [0x0015e] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at Verse.ThingWithComps+<GetFloatMenuOptions>d__40.MoveNext () [0x00078] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at RimWorld.FloatMenuMakerMap.AddHumanlikeOrders (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1[T] opts) [0x042f2] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at RimWorld.FloatMenuMakerMap.ChoicesAtFor (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Boolean suppressAutoTakeableGoto) [0x000a5] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn pawn) [0x000a1] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at RimWorld.Selector.HandleMapClicks () [0x000a9] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at RimWorld.Selector.SelectorOnGUI () [0x00000] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at RimWorld.UIRoot_Play.UIRootOnGUI () [0x000dd] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at Verse.Root.OnGUI () [0x0003d] in <7aa4c659ec6748c0a59a122ff5db3745>:0 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

adamsorkin

I'm seeing similar difficulty; right click only works to select "Rest until healed" option on medical beds; otherwise generates an error:

Root level exception in OnGUI(): System.InvalidOperationException: Sequence contains no matching element
  at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
  at RimWorld.RitualBehaviorWorker_Conversion.CanStartRitualNow (Verse.TargetInfo target, RimWorld.Precept_Ritual ritual, Verse.Pawn selectedPawn, System.Collections.Generic.Dictionary`2[TKey,TValue] forcedForRole) [0x0000b] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at Verse.Thing+<GetFloatMenuOptions>d__144.MoveNext () [0x0015e] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at Verse.ThingWithComps+<GetFloatMenuOptions>d__40.MoveNext () [0x00078] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.AddHumanlikeOrders_Patch4(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>)
  at RimWorld.FloatMenuMakerMap.ChoicesAtFor (UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Boolean suppressAutoTakeableGoto) [0x000a5] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn pawn) [0x000a1] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at (wrapper dynamic-method) RimWorld.Selector.RimWorld.Selector.HandleMapClicks_Patch1(RimWorld.Selector)
  at RimWorld.Selector.SelectorOnGUI () [0x00000] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at RimWorld.UIRoot_Play.UIRootOnGUI () [0x000dd] in <7aa4c659ec6748c0a59a122ff5db3745>:0
  at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)

Canute

Why noone ever post a full logfile ? :-(
It is more interesting what happen before that error show up.

and "AddHumanlikeOrders_Patch4" is a good indicator that you use mods, then it is highly a mod issue and nothing for here.

B!Rd

Hey Ludeon,

I recently started a game with "Rimworld" and "Rimworld Royalty". When "Rimworld Ideology" came out, i bought it and added it to the savegame.
I was able to play the save until i got another animal to my livestock (via taming or event).

Then i wasn't able to prioritize specific tasks (task builder to build floors, cook to cook, eating food, ...). When i rightclicked on the specific thing, the context menu won't open for any pawn.

I expected to have the context menu opened.

Attached you find the specific log ("Rimworld_Log.txt") from the loaded game "Das Ozeanvolk bug", the savefiles.zip with the gamefile "Das Ozeanvolk bug" and the gamefile "Das Ozeanvolk bugfree".

Since the savefiles are too big:
https://www.mediafire.com/file/4rhhxw6q1peffit/savefiles.rar/file

I was able to reproduce the error and i am certainly sure, that the trigger is the added animal to the livestock. I have pawns with three different believes and a guest with a fourth.

Thanks for looking into this bug, it's preventing me from playing the save properly (i can't even take prisoners anymore :'().

B!Rd

#7
Hey there, i was able to reproduce the error:

the error occured, when i got a new animal to my livestock (tamed, birth, event doesnt matter).

See my logfile attached.

here's a link to my save:
https://www.mediafire.com/file/65vrojdc74e1ei8/gamesaves.zip/file

It contains the save before the error occured and after.
to reproduce the error, just speed things up. an animal will give birth or get tamed eventually.

My pawns and guest do have different ideologies generated after loading a savefile with (Rimworld, Rimworld Royalty)
Ideology got added, no mods used.
I'm playing on the latest version (1.3.3067)

If you need anything else, let me know.

Moderator note:
This was an early bug caused by removing the leader role from the ideo.  It has been resolved.

B!Rd

I found the topic
https://ludeon.com/forums/index.php?topic=54568.0

which is the same issue. It is still unsolved, i'll close this topic anyway, since the other thread contains more information.