erdelf / AlienRaces

Rimworld mod alien race framework
MIT License
103 stars 69 forks source link

Unknown patch error #105

Open Nikiroy78 opened 6 months ago

Nikiroy78 commented 6 months ago

Greetings, I have a problem with this mod: the TPS indicator sank on the map, the following error occurred in the console:

Exception drawing {{pawn_name}}: System.MissingFieldException: Field 'AlienRace.AlienPartGenerator/BodyAddon.defaultOffsets' not found.
  at (wrapper dynamic-method) AlienRace.HarmonyPatches.AlienRace.HarmonyPatches.DrawAddons_Patch1(Verse.PawnRenderFlags,UnityEngine.Vector3,UnityEngine.Vector3,Verse.Pawn,UnityEngine.Quaternion,Verse.Rot4)
  at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnInternal_Patch3(Verse.PawnRenderer,UnityEngine.Vector3,single,bool,Verse.Rot4,Verse.RotDrawMode,Verse.PawnRenderFlags)
  at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnAt_Patch3(Verse.PawnRenderer,UnityEngine.Vector3,System.Nullable`1<Verse.Rot4>,bool)
  at Verse.Pawn_DrawTracker.DrawAt (UnityEngine.Vector3 loc) [0x00000] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.DrawAt_Patch2(Verse.Pawn,UnityEngine.Vector3,bool)
  at Verse.Thing.Draw () [0x00015] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at (wrapper dynamic-method) Verse.ThingWithComps.Verse.ThingWithComps.Draw_Patch1(Verse.ThingWithComps)
  at Verse.DynamicDrawManager.DrawDynamicThings () [0x000d8] in <cd7169108ea74757aa50c5b33d275c15>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
Verse.DynamicDrawManager:DrawDynamicThings ()
(wrapper dynamic-method) Verse.Map:Verse.Map.MapUpdate_Patch1 (Verse.Map)
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()
Aelanna commented 6 months ago

Going to need way more than just a single exception. Do you have a full log you can post? Might also be easier to diagnose this on Discord.

Nikiroy78 commented 6 months ago

OK. I'm going to restart the game now

Nikiroy78 commented 6 months ago

https://pastebin.com/WpQnqq14 Is this it?

Aelanna commented 6 months ago

No, that's not a full log. We'd need a HugsLib or Log Publisher log in order to fully diagnose the issue, since that includes your mod list and startup information.

Nikiroy78 commented 6 months ago

Ok. In Discord, do you suggest that you show what you need and where to get it?

Aelanna commented 6 months ago

You can use Log Publisher to get a full log: https://steamcommunity.com/sharedfiles/filedetails/?id=2873415404

Just install and activate that mod, reproduce the error, and then there should be a button in your error window to upload the log.

Nikiroy78 commented 6 months ago

Ok. I'll do it now

Nikiroy78 commented 6 months ago

https://gist.github.com/HugsLibRecordKeeper/38106eebbbab06780a2ac78e26174573

Aelanna commented 6 months ago

It's almost impossible to tell what might be causing this, but it's highly unlikely that HAR itself is the culprit. You have a ton of duplicate mod errors which might be causing out-of-date versions of mods to be loading instead of the most recent, you have hundreds of startup errors, and dozens of comps on pawns are breaking before you start seeing the HAR errors, which means that HAR probably never got to run any of its initialization. If you want to get to the bottom of this, then I strongly suggest you start from the top of the error log and start fixing them one by one; the HAR errors are most likely collateral damage from your entire startup process being broken.

erdelf commented 6 months ago

Adding to that... Rimworld_Animations is outdated by nearly a year at this point. That's what's causing the error you were asking about specifically.

Nikiroy78 commented 6 months ago

Adding to that... Rimworld_Animations is outdated by nearly a year at this point. That's what's causing the error you were asking about specifically.

Yes, I think my friends and I have already had a lot of fun with this mod, I think it can be deleted)

Nikiroy78 commented 6 months ago

It's almost impossible to tell what might be causing this, but it's highly unlikely that HAR itself is the culprit. You have a ton of duplicate mod errors which might be causing out-of-date versions of mods to be loading instead of the most recent, you have hundreds of startup errors, and dozens of comps on pawns are breaking before you start seeing the HAR errors, which means that HAR probably never got to run any of its initialization. If you want to get to the bottom of this, then I strongly suggest you start from the top of the error log and start fixing them one by one; the HAR errors are most likely collateral damage from your entire startup process being broken.

I judge from the logs, and from the logs there is an error with HAR and a certain patch, so I created this discussion.

Nikiroy78 commented 6 months ago

Yes, it was in Rimworld Animations, after removing which the errors disappeared.


Solution: Uninstall Rimworld Animations

Nikiroy78 commented 6 months ago

Now I tried to add items through the developer console, but in the end the “full thing stack spawn” tab did not open. Error log: https://gist.github.com/HugsLibRecordKeeper/02ecec5ae546797d68634fddea3d2e66

Exception filling window for Verse.Dialog_Debug: System.NullReferenceException: Object reference not set to an instance of an object
  at Verse.DebugThingPlaceHelper.IsDebugSpawnable (Verse.ThingDef def, System.Boolean allowPlayerBuildable) [0x0007e] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at Verse.DebugThingPlaceHelper+<>c__DisplayClass2_0.<TryPlaceOptionsForStackCount>b__0 (Verse.ThingDef def) [0x00000] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at System.Linq.Enumerable+WhereListIterator`1[TSource].MoveNext () [0x00037] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at Verse.DebugThingPlaceHelper.TryPlaceOptionsForStackCount (System.Int32 stackCount, System.Boolean direct) [0x0007c] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at Verse.DebugToolsSpawning.TryPlaceNearFullStack () [0x00000] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at Verse.DebugActionNode.TrySetupChildren () [0x00010] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at Verse.DebugActionNode.Enter (Verse.Dialog_Debug dialog) [0x00000] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at Verse.Dialog_Debug.DoButton (Verse.DebugActionNode node, System.Boolean highlight) [0x00042] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at Verse.Dialog_Debug.DrawNode (Verse.DebugActionNode node, System.Boolean highlight) [0x00017] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at Verse.DebugTabMenu.ListOptions (System.Int32 highlightedIndex) [0x00064] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at Verse.Dialog_Debug.DoWindowContents (UnityEngine.Rect inRect) [0x0020f] in <cd7169108ea74757aa50c5b33d275c15>:0 
  at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001d3] in <cd7169108ea74757aa50c5b33d275c15>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)
Mouse position stack is not empty. There were more calls to BeginScrollView than EndScrollView. Fixing.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
Verse.Widgets:EnsureMousePositionStackEmpty ()
(wrapper dynamic-method) Verse.Root:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Play:Update ()
Aelanna commented 6 months ago

I don't see how this error has anything to do with Humanoid Alien Races, nor are we a resource for general mod list troubleshooting. Try the #troubleshooting channel on the RimWorld Discord if you want help with your mod list, I still see a huge number of errors from your game when starting up, you need to be focusing on getting a clean startup before you can expect the actual game to run in a stable manner.