Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Datura

#1
Releases / Re: [1.0] SimpleSidearms (1.3.1)
December 25, 2018, 12:58:40 PM
Quote from: Canute on December 25, 2018, 11:59:15 AM
Could you maybe explain how you did that ?
Since you said it happen with hugslib and SimpleSidearms only too, you prolly can reproduce it.

Sure, here goes:

- Pawn is equipped with a bolt action rifle (main weapon) & knife and/or revolver (sidearm).
- Pawn gets downed, dropping their weapons.
- Once healed, pawn goes to get their weapons back, after I allowed them back.
- The instant they take their main weapon in their inventory, the aforementioned exception gets thrown.

The game doesn't crash, the sidearm switching still works perfectly afterwards, it's just irritating to have to close the debug log each time it happens.

No error when the pawn gets their sidearm(s) back, only happens with the main weapon.
Happens no matter which main weapon / sidearm(s) are equipped.
Number of sidearms doesn't matter (tested with 0, 1 and 2).

Here's my HugsLib log: https://git.io/fhUhH

Hope this helps :)
#2
Releases / Re: [1.0] SimpleSidearms (1.3.1)
December 25, 2018, 10:21:09 AM
Amazing concept, works (almost) flawlessly  ;D

I, however, encounter a small issue. More annoying than anything...

Whenever a pawn tries to reacquire their main weapon after having been downed, a NullReferenceException gets thrown as soon as they put it in their inventory :

Exception in Verse.AI.ThinkNode_Priority TryIssueJobPackage: System.NullReferenceException: Object reference not set to an instance of an object
  at SimpleSidearms.utilities.WeaponAssingment.SetPrimary (Verse.Pawn pawn, Verse.Thing toSwapTo, Boolean intentionalEquip, Boolean fromInventory, Boolean dropCurrent, Boolean intentionalDrop) [0x00000] in <filename unknown>:0
  at SimpleSidearms.utilities.WeaponAssingment.reequipPrimaryIfNeededAndAvailable (Verse.Pawn pawn, SimpleSidearms.rimworld.GoldfishModule pawnMemory) [0x00000] in <filename unknown>:0
  at SimpleSidearms.rimworld.JobGiver_RetrieveWeapon.TryGiveJobStatic (Verse.Pawn pawn, Boolean inCombat) [0x00000] in <filename unknown>:0
  at SimpleSidearms.rimworld.JobGiver_RetrieveWeapon.TryGiveJob (Verse.Pawn pawn) [0x00000] in <filename unknown>:0
  at Verse.AI.ThinkNode_JobGiver.TryIssueJobPackage (Verse.Pawn pawn, JobIssueParams jobParams) [0x00000] in <filename unknown>:0
  at Verse.AI.ThinkNode_SubtreesByTag.TryIssueJobPackage (Verse.Pawn pawn, JobIssueParams jobParams) [0x00000] in <filename unknown>:0
  at Verse.AI.ThinkNode_Priority.TryIssueJobPackage (Verse.Pawn pawn, JobIssueParams jobParams) [0x00000] in <filename unknown>:0
Verse.Log:Error(String, Boolean)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.Pawn_JobTracker:DetermineNextJob(ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:EndCurrentJob(JobCondition, Boolean)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Tick()
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()


Using the latest version of the mod on RimWorld 1.0.2096. It happens even with only HugsLib and SimpleSidearms.