RimWorld

RimWorld

Typhon
Lekoda 11 Nov, 2022 @ 9:43am
Typhons cant die nor be deleted.
System.NullReferenceException: Object reference not set to an instance of an object
at SimpleSidearms.rimworld.Gizmo_Brainscope.GizmoOnGUI_old (UnityEngine.Vector2 topLeft, System.Single maxWidth) [0x001b0] in <4c478e45dc2a41cd9468f960f739a9a9>:0
at SimpleSidearms.rimworld.Gizmo_Brainscope.GizmoOnGUI (UnityEngine.Vector2 topLeft, System.Single maxWidth, Verse.GizmoRenderParms parms) [0x00001] in <4c478e45dc2a41cd9468f960f739a9a9>:0
at (wrapper dynamic-method) Verse.GizmoGridDrawer.Verse.GizmoGridDrawer.DrawGizmoGrid_Patch1(System.Collections.Generic.IEnumerable`1<Verse.Gizmo>,single,Verse.Gizmo&,System.Func`2<Verse.Gizmo, bool>,System.Func`2<Verse.Gizmo, bool>,System.Func`2<Verse.Gizmo, bool>)
at (wrapper dynamic-method) RimWorld.InspectGizmoGrid.RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0(System.Collections.Generic.IEnumerable`1<object>,Verse.Gizmo&) currentSelectable: null
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch5 (string)
Verse.Log:ErrorOnce (string,int)
(wrapper dynamic-method) RimWorld.InspectGizmoGrid:RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0 (System.Collections.Generic.IEnumerable`1<object>,Verse.Gizmo&)
RimWorld.MainTabWindow_Inspect:DrawInspectGizmos ()
RimWorld.InspectPaneUtility:ExtraOnGUI (RimWorld.IInspectPane)
RimWorld.MainTabWindow_Inspect:ExtraOnGUI ()
Verse.WindowStack:WindowStackOnGUI ()
(wrapper dynamic-method) RimWorld.UIRoot_Play:RimWorld.UIRoot_Play.UIRootOnGUI_Patch3 (RimWorld.UIRoot_Play)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)


That is the error that comes up when i try to delete a typhon
< >
Showing 1-9 of 9 comments
Caaz  [developer] 2 Dec, 2022 @ 12:32pm 
I must've missed this but it looks like custom side arms incompatibility? Funky. I can look into it.
hamed91211173 10 Dec, 2022 @ 3:29am 
thanks for the mod have the same problem with Mimics that happen after leaving them for some time in early infestations this problem not happened destroy them early (has simple sidearm and typhon from start of game)
Caaz  [developer] 12 Dec, 2022 @ 4:26pm 
Given that this exception appears to happen from Simple Sidearms, I'd wager this is something they have to solve. I'm not doing anything specific with gizmos or destroying for Mimics.

It's an odd one. Looks like it's caused in this class https://github.com/PeteTimesSix/SimpleSidearms/blob/7b0af21751ca9e9d179cd4f1f6671642ec02aa0e/Source/rimworld/Gizmo_Brainscope.cs

But it's not my code. Looks like it may have to do with jobs, and maybe it's bugged because of how mimics switch around pawnkinds and such.

I have half an idea to refactor a lot about how Mimics work, and it may fix all these issues, but when I get down to that, it's... a huge change.
Caaz  [developer] 12 Dec, 2022 @ 4:27pm 
I worded that terribly, what I mean is the error is in simple sidearms, so the fix would have to be in simple sidearms. Buuuuuut I don't know if it's worth bringing it up over there, because I plan on switching around how mimics work, and I think their unconventional behavior is what's causing it.
Lekoda 15 Dec, 2022 @ 7:07am 
Okay I dropped Simple Side Arms for good.. I need me my mimics
Isotope 436 20 Jan, 2023 @ 8:09pm 
i believe i have found the cause it would appear to happen when you load a game after a mimic has turned into a random object they seem to default back into a un-mimic'ed state and when you kill them in this half mimiced half not state they enter this cylce of being unable to die i dunno how or why simple side arms is causing this but this is what caused the error in my game
Isotope 436 20 Jan, 2023 @ 8:11pm 
if the mod dev is willing i recommend making a fix or check to reload a mimics mimic-ed state after a game is loaded to prevent the bug from happen (if this truely is the cause and not some weird occurrence) sadly though simple side arms is just way to valueable to warrant the exsistance of the funky boys :<
Isotope 436 20 Jan, 2023 @ 8:12pm 
also if it helps the mimic was in the form of ancient barb wire (which i believe is a VE-ancients word item)
Caaz  [developer] 3 Feb, 2023 @ 1:37am 
Ah that does help but the live branch is currently out of development and micing is going to work differently anyway. thank you though!

Part of the reason I wanted to do the whole rework is because of how weird mimicing works, but it was my first mod and the first feature I focused on so I'mma give myself some credit for making it functional in the first place lol

Hopefully I can relax enough this weekend to work more on the next release but aaaaaah I've been hella busy with work
< >
Showing 1-9 of 9 comments
Per page: 1530 50