Tachyonite / Pawnmorpher

A mod all about mutation for Rimworld 1.3!
20 stars 20 forks source link

Issues with mutagenic rocket launcher #398

Open Zeracronius opened 2 years ago

Zeracronius commented 2 years ago
  1. Mutagenic buildup after getting hit by a mutagenic rocket launcher sometimes disappears (shot was point blank)
  2. Double mutagenic buildup in medical tab with different levels (one is extreme other is initial) appeared when hit by mutagenic rocket launcher 3 tiles from point blank
lelodu87 commented 2 years ago

Both issues confirmed: 1- The mutagenic buildup indeed sometimes disappear. 2- I also confirm that there are two different levels.

Messages in log:

could not apply mutations to Lips with cause MutagenicBuildup_LargeExplosion and target Dryad_Clawer Exception ticking hediff (MutagenicBuildup_LargeExplosion ticksSinceCreation=1) for pawn Lips. Removing hediff... Exception: System.NullReferenceException: Object reference not set to an instance of an object at Pawnmorph.TfSys.SimpleMechaniteMutagen.TransformImpl (Pawnmorph.TfSys.TransformationRequest request) [0x000a0] in :0 at Pawnmorph.TfSys.Mutagen`1[T].Transform (Pawnmorph.TfSys.TransformationRequest request) [0x00063] in :0 at Pawnmorph.Hediffs.Hediff_MutagenicBase.TryTransformPawn (Verse.PawnKindDef pawnKind, Pawnmorph.TFGender gender, Pawnmorph.Hediffs.Composable.TFMiscSettings tfSettings) [0x000a8] in :0 at Pawnmorph.Hediffs.Hediff_MutagenicBase.CheckAndDoTransformation () [0x00095] in :0 at Pawnmorph.Hediffs.Hediff_MutagenicBase.CheckCurrentStage (Verse.HediffStage oldStage, Verse.HediffStage currentStage, System.Boolean doTf) [0x000c1] in :0 at Pawnmorph.Hediffs.Hediff_MutagenicBase.OnStageChanged (Verse.HediffStage oldStage, Verse.HediffStage newStage) [0x00049] in :0 at Pawnmorph.Hediffs.Hediff_StageChanges.Tick () [0x0002f] in :0 at Pawnmorph.Hediffs.Hediff_MutagenicBase.Tick () [0x00001] in :0 at Verse.Pawn_HealthTracker.HealthTick () [0x00033] in :0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

trying to raycast with very small dir (0.0, 0.0) (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Zeracronius commented 2 years ago

There are 3 different types of defined mutagenic buildup used in different circumstances: Fallout, Guns and Explosions These all appear identical but won't merge together since they are not the same def.

Diakon5 commented 2 years ago

I believe two types of buildup appear due to the slurry filth also giving a different buildup. All the buildups only really differ with their... Speed of being applied(with the storm being a potential outlier), so a change could be msde to the damage workers to define these values instead of the hediffs