voult2 / BetterPawnControl

A RimWorld mod that allows bulk assignment of animals to zones and colonists to outfits (or drugs) in one single action
MIT License
20 stars 21 forks source link

BPC Breaking Littluna Summoning #32

Closed XXDarrienX closed 2 years ago

XXDarrienX commented 2 years ago

The littluna race mod where the pawns can summon a creature appears to be completely broken when using BPC, when I turned only BPC on and Littluna it will give an exception error and the pawn will continue to wander around. Without BPC it works fine. Tested with my main modlist bar BPC and summoning works

Error while generating pawn. Rethrowing. Exception: System.DivideByZeroException: Attempted to divide by zero. at HAR_LL_M_CompAAA.CompTick () [0x00010] in <9326fc1e329445b28e73f0e380174f92>:0 at Verse.ThingWithComps.Tick () [0x00024] in <67a96f30fb0c46d8add7af7c8e89dc45>:0 at Verse.Pawn.Tick () [0x00024] in <67a96f30fb0c46d8add7af7c8e89dc45>:0 at BetterPawnControl.Faction_Notify_PawnJoined.Postfix (Verse.Pawn p) [0x00003] in <8127354e70fa4ce59dda8b4cd6dd3890>:0 at (wrapper dynamic-method) RimWorld.Faction.RimWorld.Faction.Notify_PawnJoined_Patch1(RimWorld.Faction,Verse.Pawn) at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.TryGenerateNewPawnInternal_Patch0(Verse.PawnGenerationRequest&,string&,bool,bool) at Verse.PawnGenerator.GenerateNewPawnInternal (Verse.PawnGenerationRequest& request) [0x00094] in <67a96f30fb0c46d8add7af7c8e89dc45>:0 at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00183] in <67a96f30fb0c46d8add7af7c8e89dc45>:0 at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawn_Patch1(Verse.PawnGenerationRequest) UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) (wrapper dynamic-method) Verse.PawnGenerator:Verse.PawnGenerator.GeneratePawn_Patch1 (Verse.PawnGenerationRequest) Verse.PawnGenerator:GeneratePawn (Verse.PawnKindDef,RimWorld.Faction) CompSummonSlave.CSS_CompSummonSLave:PreSummonSlaves (System.Collections.Generic.List1<CompSummonSlave.SummonData>&,int,System.Collections.Generic.List1,Verse.ThingDef) CompSummonSlave.CSS_CompSummonSLave:b__13_1 () Verse.Command_Action:ProcessInput (UnityEngine.Event) Verse.GizmoGridDrawer:DrawGizmoGrid (System.Collections.Generic.IEnumerable1<Verse.Gizmo>,single,Verse.Gizmo&,System.Func2<Verse.Gizmo, bool>,System.Func2<Verse.Gizmo, bool>,System.Func2<Verse.Gizmo, bool>) RimWorld.InspectGizmoGrid:DrawInspectGizmoGridFor (System.Collections.Generic.IEnumerable`1,Verse.Gizmo&) RimWorld.MainTabWindow_Inspect:DrawInspectGizmos () RimWorld.InspectPaneUtility:ExtraOnGUI (RimWorld.IInspectPane) RimWorld.MainTabWindow_Inspect:ExtraOnGUI () Verse.WindowStack:WindowStackOnGUI () RimWorld.UIRoot_Play:UIRootOnGUI () (wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)

voult2 commented 2 years ago

Hopefully v2.3.5 should resolve this crash. If you could check that would be great!

XXDarrienX commented 2 years ago

Oh it doesn't crash it just gives an error

XXDarrienX commented 2 years ago

Yes it is working now