KongMD-Steam / QuestionableEthicsEnhanced

The source code of the Questionable Ethics Enhanced mod for RimWorld.
MIT License
12 stars 7 forks source link

Unknown crown type: Undefined #120

Closed Siderivers closed 3 years ago

Siderivers commented 3 years ago

Bug Description The error, 'Unknown crown type: Undefined', will be spammed in the debug log with the creation of a TX android from a cloning vat with VFE – Vikings loaded.

To Reproduce Steps to reproduce the behavior:

  1. Activate Dev Mode
  2. Create a TX android with VFE - Vikings loaded using a cloning vat. Snippet 1 one will appear during creation, but it will not spam.
  3. Select Finish Growing from the cloning vat or wait until it's done.
  4. Snippet 1 will begin to spam until the log hit its max. Snippet 2 will appear below the maximum message reached message and that will be spammed instead after the log is cleared, but only if the android is in view of the game's camera.

Screenshots

Huglibs log: https://gist.github.com/beda2032a8683f69d761872bf1c8fa50

First Error that will first appear and will be spammed when the android is done until the log hit its max. (Snippet 1)

Verse.Log:Error(String, Boolean)
Verse.PawnGraphicSet:get_HairMeshSet()
VFEV.Facepaint.HarmonyPatches_Facepaint:RenderFacepaint(PawnRenderer, Boolean, RotDrawMode, Boolean, Rot4, Vector3, Quaternion, Boolean)
Verse.PawnRenderer:Verse.PawnRenderer.RenderPawnInternal_Patch1(PawnRenderer, Vector3, Single, Boolean, Rot4, Rot4, RotDrawMode, Boolean, Boolean, Boolean)
Verse.PawnRenderer:RenderPortrait()
RimWorld.PortraitRenderer:OnPostRender()
UnityEngine.Camera:Render()
RimWorld.PortraitRenderer:RenderPortrait(Pawn, RenderTexture, Vector3, Single)
QEthics.Building_PawnVatGrower:DrawAt(Vector3, Boolean)
Verse.Thing:Draw()
Verse.ThingWithComps:Draw()
Verse.Building:Draw()
Verse.DynamicDrawManager:DrawDynamicThings()
Verse.Map:MapUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

Second error that will appear and be spammed in its place after the android is done when the log is cleared (Snippet 2)

Verse.Log:Error(String, Boolean)
Verse.PawnGraphicSet:get_HairMeshSet()
VFEV.Facepaint.HarmonyPatches_Facepaint:RenderFacepaint(PawnRenderer, Boolean, RotDrawMode, Boolean, Rot4, Vector3, Quaternion, Boolean)
Verse.PawnRenderer:Verse.PawnRenderer.RenderPawnInternal_Patch1(PawnRenderer, Vector3, Single, Boolean, Rot4, Rot4, RotDrawMode, Boolean, Boolean, Boolean)
Verse.PawnRenderer:RenderPawnInternal(Vector3, Single, Boolean, RotDrawMode, Boolean, Boolean)
Verse.PawnRenderer:Verse.PawnRenderer.RenderPawnAt_Patch1(PawnRenderer, Vector3, RotDrawMode, Boolean, Boolean)
Verse.PawnRenderer:RenderPawnAt(Vector3)
Verse.Pawn_DrawTracker:DrawAt(Vector3)
Verse.Pawn:DrawAt(Vector3, Boolean)
Verse.Thing:Draw()
Verse.ThingWithComps:Draw()
Verse.DynamicDrawManager:DrawDynamicThings()
Verse.Map:MapUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
KongMD-Steam commented 3 years ago

Thanks for your detailed bug report! I fixed this bug in the development branch and it'll be pushed as an update shortly.