RimWorld

RimWorld

Folia Race (Continued)
Bug Reports
Good evening.

Nothing is so annoying as finding bugs in your garden, eating your plants. If you've encountered this yourself, post your Error Logs here so that OP can analyze your harvest.


-TURTLESHROOM
< >
Showing 1-11 of 11 comments
TurtleShroom 8 Feb, 2023 @ 5:41pm 
Exception drawing Belyea: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 at SelectAdulthood.Pawn_AgeTracker_AdultMinAge.Postfix (Verse.Pawn ___pawn, System.Single& __result) [0x00082] in <7252ce15731f413c824615729c03b179>:0 at (wrapper dynamic-method) Verse.Pawn_AgeTracker.Verse.Pawn_AgeTracker.get_AdultMinAge_Patch1(Verse.Pawn_AgeTracker) at Verse.Pawn_AgeTracker.get_AdultMinAgeTicks () [0x00000] in <617d4a4b3c1842ffb4eb3fd1337f915c>:0 at Verse.Pawn_AgeTracker.get_TicksToAdulthood () [0x00000] in <617d4a4b3c1842ffb4eb3fd1337f915c>:0 at Verse.Pawn_AgeTracker.get_Adult () [0x00000] in <617d4a4b3c1842ffb4eb3fd1337f915c>:0 at CustomCoordinateOffset.HarmonyPatches.AddOffset (UnityEngine.Vector3& drawLoc, Verse.Pawn& ___pawn, System.Nullable`1[T] rotOverride, Verse.PawnRenderer __instance) [0x00096] in <39f3245283004796a4bae917c6455ead>:0 at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnAt_Patch7(Verse.PawnRenderer,UnityEngine.Vector3,System.Nullable`1<Verse.Rot4>,bool) at Verse.Pawn_DrawTracker.DrawAt (UnityEngine.Vector3 loc) [0x00000] in <617d4a4b3c1842ffb4eb3fd1337f915c>:0 at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.DrawAt_Patch1(Verse.Pawn,UnityEngine.Vector3,bool) at Verse.Thing.Draw () [0x00015] in <617d4a4b3c1842ffb4eb3fd1337f915c>:0 at Verse.ThingWithComps.Draw () [0x0000e] in <617d4a4b3c1842ffb4eb3fd1337f915c>:0 at Verse.DynamicDrawManager.DrawDynamicThings () [0x000d8] in <617d4a4b3c1842ffb4eb3fd1337f915c>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string) Verse.DynamicDrawManager:DrawDynamicThings () (wrapper dynamic-method) Verse.Map:Verse.Map.MapUpdate_Patch4 (Verse.Map) (wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch1 (Verse.Game) Verse.Root_Play:Update ()


I get this error whenever a Folia is on the Map. It does not happen to Deathkaps or Potatoids. All Folias appear blank, with no Body, Head, Apparel, or anything else.

This is my Hugs Library Log: https://gist.github.com/5bc3d3f51491d5e5a461eba60d0d2c29 .

This is my Hugs Library Log: https://gist.github.com/5bc3d3f51491d5e5a461eba60d0d2c29 .
Zaljerem  [developer] 8 Feb, 2023 @ 6:02pm 
I can't duplicate your issue. Please try using Humanoid Alien Races - Dev and see if you have any better results.
TurtleShroom 8 Feb, 2023 @ 6:03pm 
Originally posted by Zaljerem:
I can't duplicate your issue. Please try using Humanoid Alien Races - Dev and see if you have any better results.

Thank you for the quick reply. I am rather scared to do that because of the risks an unstable version entails. I'll just deal with it for now.
TurtleShroom 13 May, 2023 @ 2:22pm 
Error rendering pawn portrait: System.NullReferenceException: Object reference not set to an instance of an object at (wrapper dynamic-method) AlienRace.HarmonyPatches.AlienRace.HarmonyPatches.ResolveAllGraphicsPrefix_Patch0(Verse.PawnGraphicSet) at (wrapper dynamic-method) Verse.PawnGraphicSet.Verse.PawnGraphicSet.ResolveAllGraphics_Patch11(Verse.PawnGraphicSet) at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnInternal_Patch4(Verse.PawnRenderer,UnityEngine.Vector3,single,bool,Verse.Rot4,Verse.RotDrawMode,Verse.PawnRenderFlags) at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderCache_Patch1(Verse.PawnRenderer,Verse.Rot4,single,UnityEngine.Vector3,bool,bool,bool,bool,bool,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool) UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (string) (wrapper dynamic-method) Verse.PawnRenderer:Verse.PawnRenderer.RenderCache_Patch1 (Verse.PawnRenderer,Verse.Rot4,single,UnityEngine.Vector3,bool,bool,bool,bool,bool,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool) RimWorld.PawnCacheRenderer:OnPostRender () (wrapper dynamic-method) RimWorld.PawnCacheRenderer:RimWorld.PawnCacheRenderer.RenderPawn_Patch3 (RimWorld.PawnCacheRenderer,Verse.Pawn,UnityEngine.RenderTexture,UnityEngine.Vector3,single,single,Verse.Rot4,bool,bool,bool,bool,bool,UnityEngine.Vector3,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool) RimWorld.PortraitsCache/PortraitParams:RenderPortrait (Verse.Pawn,UnityEngine.RenderTexture) RimWorld.PortraitsCache:Get (Verse.Pawn,UnityEngine.Vector2,Verse.Rot4,UnityEngine.Vector3,single,bool,bool,bool,bool,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool,System.Nullable`1<Verse.PawnHealthState>) (wrapper dynamic-method) RimWorld.ColonistBarColonistDrawer:RimWorld.ColonistBarColonistDrawer.DrawColonist_Patch1 (RimWorld.ColonistBarColonistDrawer,UnityEngine.Rect,Verse.Pawn,Verse.Map,bool,bool) RimWorld.ColonistBar:ColonistBarOnGUI () (wrapper dynamic-method) RimWorld.MapInterface:RimWorld.MapInterface.MapInterfaceOnGUI_BeforeMainTabs_Patch2 (RimWorld.MapInterface) (wrapper dynamic-method) RimWorld.UIRoot_Play:RimWorld.UIRoot_Play.UIRootOnGUI_Patch3 (RimWorld.UIRoot_Play) (wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch2 (Verse.Root) Exception drawing Corpse_Potatoid_Race2136632: System.NullReferenceException: Object reference not set to an instance of an object at (wrapper dynamic-method) AlienRace.HarmonyPatches.AlienRace.HarmonyPatches.ResolveAllGraphicsPrefix_Patch0(Verse.PawnGraphicSet) at (wrapper dynamic-method) Verse.PawnGraphicSet.Verse.PawnGraphicSet.ResolveAllGraphics_Patch11(Verse.PawnGraphicSet) at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnAt_Patch7(Verse.PawnRenderer,UnityEngine.Vector3,System.Nullable`1<Verse.Rot4>,bool) at Verse.Corpse.DrawAt (UnityEngine.Vector3 drawLoc, System.Boolean flip) [0x0000b] in <95de19971c5d40878d8742747904cdcd>:0 at Verse.Thing.Draw () [0x00015] in <95de19971c5d40878d8742747904cdcd>:0 at Verse.ThingWithComps.Draw () [0x0000e] in <95de19971c5d40878d8742747904cdcd>:0 at Verse.DynamicDrawManager.DrawDynamicThings () [0x000d8] in <95de19971c5d40878d8742747904cdcd>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (string) Verse.DynamicDrawManager:DrawDynamicThings () (wrapper dynamic-method) Verse.Map:Verse.Map.MapUpdate_Patch4 (Verse.Map) (wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch2 (Verse.Game) Verse.Root_Play:Update () Exception drawing UMN3-Alpha: System.NullReferenceException: Object reference not set to an instance of an object at (wrapper dynamic-method) AlienRace.HarmonyPatches.AlienRace.HarmonyPatches.ResolveAllGraphicsPrefix_Patch0(Verse.PawnGraphicSet) at (wrapper dynamic-method) Verse.PawnGraphicSet.Verse.PawnGraphicSet.ResolveAllGraphics_Patch11(Verse.PawnGraphicSet) at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnAt_Patch7(Verse.PawnRenderer,UnityEngine.Vector3,System.Nullable`1<Verse.Rot4>,bool) at Verse.Pawn_DrawTracker.DrawAt (UnityEngine.Vector3 loc) [0x00000] in <95de19971c5d40878d8742747904cdcd>:0 at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.DrawAt_Patch1(Verse.Pawn,UnityEngine.Vector3,bool) at Verse.Thing.Draw () [0x00015] in <95de19971c5d40878d8742747904cdcd>:0 at Verse.ThingWithComps.Draw () [0x0000e] in <95de19971c5d40878d8742747904cdcd>:0 at Verse.DynamicDrawManager.DrawDynamicThings () [0x000d8] in <95de19971c5d40878d8742747904cdcd>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (string) Verse.DynamicDrawManager:DrawDynamicThings () (wrapper dynamic-method) Verse.Map:Verse.Map.MapUpdate_Patch4 (Verse.Map) (wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch2 (Verse.Game) Verse.Root_Play:Update ()

Potatoids do not show up in my game. I theorize that the reason they keep failing is because you do not have a Child Texture set for them.

Potatoids and Deathkaps should not have the "Biotech" EP's Life Stages, because they are bred through vats. You need to replace the Life Stages with a single, custom Life Stage that is considered permanently that of an adult. Furthermore, make sure you set all of their Childhood Skills to zero, so that they can perform all tasks right out of the box.
TurtleShroom 17 May, 2023 @ 11:56am 
Exception drawing Rootling-9OM8: System.NullReferenceException: Object reference not set to an instance of an object at (wrapper dynamic-method) AlienRace.HarmonyPatches.AlienRace.HarmonyPatches.ResolveAllGraphicsPrefix_Patch0(Verse.PawnGraphicSet) at (wrapper dynamic-method) Verse.PawnGraphicSet.Verse.PawnGraphicSet.ResolveAllGraphics_Patch11(Verse.PawnGraphicSet) at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnAt_Patch7(Verse.PawnRenderer,UnityEngine.Vector3,System.Nullable`1<Verse.Rot4>,bool) at Verse.Pawn_DrawTracker.DrawAt (UnityEngine.Vector3 loc) [0x00000] in <95de19971c5d40878d8742747904cdcd>:0 at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.DrawAt_Patch1(Verse.Pawn,UnityEngine.Vector3,bool) at Verse.Thing.Draw () [0x00015] in <95de19971c5d40878d8742747904cdcd>:0 at Verse.ThingWithComps.Draw () [0x0000e] in <95de19971c5d40878d8742747904cdcd>:0 at Verse.DynamicDrawManager.DrawDynamicThings () [0x000d8] in <95de19971c5d40878d8742747904cdcd>:0 (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Whatever you changed, it isn't working. My game has completely frozen up and this error has been perpetually spammed since.

Looking in your code, I think I see the problem.

Even though Potatoids are only set to have the Fat Body Type, you still need to add graphics for ALL of the Vanilla rendition's Body Types. This is so that Potatoids spawned in freak incidents, such as, say, the Quarry Mod having you dig up a Potatoid Vessel or the War Bonds Mod dropping the same (which has happened to me before), can load broken Body Types. Right now, all my Potatoids are corrupted, and I think this is the reason why.

Basically, what I mean is that you should add Potatoid Body Types for all types by copying and pasting the Fat Body Type and naming it for Baby, Child, Hulk, Male, Female, Thin, and so on each time.

Then, in the Body Def, under the <fat></fat> statement, add links for each. Keep the Body Types in the Body Types statement as they are. If that fails, remove those but keep them in the Textures.

I tried to use cheat codes to manually set the Potatoids' Body Type to Fat, but that failed as well. Something is simply tearing them up, and I can't figure out what it is.
TurtleShroom 17 May, 2023 @ 11:59am 
I think I found it!! It's a deprecated remnant from V1.3 conflicting with the V1.4 Head Type system!!

It has to do with the <graphicPaths></graphicPaths> statement!

You need to change them to this, as follows:
<graphicPaths> <skinShader>Cutout</skinShader> <body>Things/Potatoid/Body/</body> <head>Things/Potatoid/Head/</head> </graphicPaths>

The stuff you added (e.g. <headtypeGraphics></headtypeGraphics> and its child statements) appear to be leftovers from the Hugs Library Log and Harmony that no longer apply to the latest version of HAR.

Change the Graphic Paths to exactly what I put there and this SHOULD fix the problem.

Please let me know if it does not!
Last edited by TurtleShroom; 17 May, 2023 @ 12:01pm
Zaljerem  [developer] 21 May, 2023 @ 5:52am 
I changed it as you requested, though you're incorrect about it being deprecated. It's listed as 1.4 functionality and I use it (successfully, as far as I know - no one's complained) on other race mods. See here: https://github.com/erdelf/AlienRaces/wiki/RimWorld-1.4-Migration and here: https://github.com/erdelf/AlienRaces/wiki/Extension-Graphics
Zaljerem  [developer] 21 May, 2023 @ 5:54am 
Initially it seemed to be the only way I could get anything to work. It may be unneeded for how I'm doing things now as HAR has updated quite a bit and fixed a bunch of bugs. Any which way, thanks for the report, let me know if it resolves the issue.
LyNX_019 24 Apr, 2024 @ 9:31am 
After the update, when i start new scenario,
all potatoid and deathkap in the pawn creation are less than 5 years old (Mostly 1-3 years old), which count as children
so they are forbid to do anything, make my new campaign become extreme hard

Root level exception in Update(): System.NullReferenceException: Object reference not set to an instance of an object
[Ref 19ABCD49]
at CameraPlus.MarkerCache.UpdateSilhouetteCache (Verse.Pawn pawn) [0x00055] in <eef7e1c02fd84ab1aadbf4c0feb80232>:0
at CameraPlus.MarkerCache.GetTexture (Verse.Pawn pawn) [0x00000] in <eef7e1c02fd84ab1aadbf4c0feb80232>:0
at CameraPlus.MarkerCache.MaterialFor (Verse.Pawn pawn) [0x0006c] in <eef7e1c02fd84ab1aadbf4c0feb80232>:0
at CameraPlus.DotDrawer.DrawDots (Verse.Map map) [0x0009e] in <eef7e1c02fd84ab1aadbf4c0feb80232>:0
at CameraPlus.DynamicDrawManager_DrawDynamicThings_Patch.Postfix () [0x00010] in <eef7e1c02fd84ab1aadbf4c0feb80232>:0
at Verse.DynamicDrawManager.DrawDynamicThings () [0x000fe] in <69945a8ed6c540cf90b578de735e0605>:0
- POSTFIX net.pardeike.rimworld.mod.camera+: Void CameraPlus.DynamicDrawManager_DrawDynamicThings_Patch:Postfix()
at Verse.Map.MapUpdate () [0x000d5] in <69945a8ed6c540cf90b578de735e0605>:0
- PREFIX Dubwise.Rimefeller: Void Rimefeller.Harmony_GridRegen:Prefix(Map __instance)
- PREFIX Dubwise.DubsBadHygiene: Void DubsBadHygiene.Patches.HarmonyPatches_Plumbing:GridRegen_Prefix(Map __instance)
at Verse.Game.UpdatePlay () [0x00066] in <69945a8ed6c540cf90b578de735e0605>:0
- POSTFIX net.pardeike.rimworld.mod.camera+: Void CameraPlus.Game_UpdatePlay_Patch:Postfix()
at Verse.Root_Play.Update () [0x00032] in <69945a8ed6c540cf90b578de735e0605>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Root level exception in Update(): System.NullReferenceException: Object reference not set to an instance of an object
[Ref 19ABCD49] Duplicate stacktrace, see ref for original
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Exception drawing 'Shaggy' at cell (129, 0, 116):
System.NullReferenceException: Object reference not set to an instance of an object
[Ref 934D063] Duplicate stacktrace, see ref for original
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)


One of my starting colonists was a Deathkap. I got these errors multiple times every millisecond.

I believe that the problem is that Deathkaps and Potatoids don't have proper Silhouettes. ALL Pawns must have one assigned, or they won't render.
Zaljerem  [developer] 27 Jan @ 2:28pm 
Thanks, pushed an update.
< >
Showing 1-11 of 11 comments
Per page: 1530 50