[A16] Psychology (2017-5-14)

Started by System.Linq, August 19, 2016, 07:16:38 AM

Previous topic - Next topic

System.Linq

I've been getting reports of an NPE with Hediff_Anxiety's Tick function. Please post your logs if you've encountered this error.

Fafn1r

Quote from: Psychology on December 29, 2016, 04:53:31 PM
I've been getting reports of an NPE with Hediff_Anxiety's Tick function. Please post your logs if you've encountered this error.

System.NullReferenceException: Object reference not set to an instance of an object
  at Psychology.Hediff_Anxiety.Tick () [0x00000] in <filename unknown>:0
  at Verse.Pawn_HealthTracker.HealthTick () [0x00000] in <filename unknown>:0
  at Verse.Pawn.Tick () [0x00000] in <filename unknown>:0
  at RimWorld.Planet.WorldPawns.WorldPawnsTick () [0x00000] in <filename unknown>:0
  at RimWorld.Planet.World.WorldTick () [0x00000] in <filename unknown>:0
  at Verse.TickManager.DoSingleTick () [0x00000] in <filename unknown>:0


Do tell if you need anything else.

Adalah217

#107
Also getting some errors with the Hediff_Anxiety tick. Although, I have a pretty long mod list, including RomanceDiversified, so take from it what you will.


System.NullReferenceException: Object reference not set to an instance of an object
  at Psychology.Hediff_Anxiety.Tick () [0x00000] in <filename unknown>:0
  at Verse.Pawn_HealthTracker.HealthTick () [0x00000] in <filename unknown>:0
  at Verse.Pawn.Tick () [0x00000] in <filename unknown>:0
  at RimWorld.Planet.WorldPawns.WorldPawnsTick () [0x00000] in <filename unknown>:0
  at RimWorld.Planet.World.WorldTick () [0x00000] in <filename unknown>:0
  at Verse.TickManager.DoSingleTick () [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
Verse.TickManager:DoSingleTick()
Verse.Game:<LoadGame>m__72A()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update()
Verse.Root_Play:Update()



I also want to note, I have two maps running, one of which has 0 active pawns (they all died and their dead corpses are rotting around the base) and I also have a kidnapped pawn (the kidnapped pawn may have anxiety, which I believe is throwing the game off).

Other notes:
Game is totally playable. It slows down quite a bit when trying to log this error (due to the constant attempts with the ticks). I'll come back and modify this post if any changes are made or if the problem goes away.
Edit1: The problem only occurs at night. It stops logging the error as soon as the sun rises.
Edi2: Specifically at the first hour after midnight until about the 7th hour of day time.

burandon

Same errors with Hediff_Anxiety ticks. Is there a way to make the error log window disappear?

Adalah217

Quote from: burandon on December 29, 2016, 06:23:21 PM
Same errors with Hediff_Anxiety ticks. Is there a way to make the error log window disappear?

You can turn dev mode off as a short-turn substitute, but besides that, he's currently working on it (see the above comments).

System.Linq

#110
Can you guys tell me if it's happening on old maps only or also new ones with the latest update?

The only cause I can suspect is maybe that it's ticking on pawns that aren't spawned. This error has not come up on my own save so it's difficult to pinpoint. Being able to look through your save games would probably help.

e: Those of you with the problem please download the attached mod version and tell me if it solves it.

[attachment deleted by admin due to age]

Adalah217

#111
Quote from: Psychology on December 29, 2016, 10:52:38 PM
Can you guys tell me if it's happening on old maps only or also new ones with the latest update?

The only cause I can suspect is maybe that it's ticking on pawns that aren't spawned. This error has not come up on my own save so it's difficult to pinpoint. Being able to look through your save games would probably help.

e: Those of you with the problem please download the attached mod version and tell me if it solves it.

Specifically new maps, although I can't tell you if it happens on old maps or not. I have caravanned to a new location, and killed and ate many pawns, so all I have are new maps. There's a bit before the repeating tick log that was posted above, although I can't seem to reproduce it now, mentioning a pawn and their ID (seems to occur on load in).

I'll try your fix now. Thanks for all the hard work!!

Edit: Seems to work! Thanks again!

System.Linq

Updated to 2016-12-30.

New Thoughts
- Imprisonment: They may be willing to join your colony, but pawns you've captured and recruited will be resentful and awkward with the people that imprisoned them, until they get used to their new life.

New Events
- Quarrel: Two pawns friendly towards each other have their relationship damaged by an argument until they make up.
- Homesick: One of your pawns is feeling homesick. They may spread it to other pawns through conversation.
- Cliques: Two pawns who dislike each other separate the colony into cliques of their friends. Members of each clique may come to blows.

Adalah217

Quick question: Does the anxiety health effect ever go away or deteriorate? Is it permanent?

System.Linq

Yes, it deteriorates while it's tended and it's immunizable.

System.Linq

Updated to 2016-12-30 v2. Resolved some errors that prevented taming animals.

deathstar

Quote from: Psychology on December 30, 2016, 04:50:05 PM
Updated to 2016-12-30 v2. Resolved some errors that prevented taming animals.

I love you! I was just now trying to figure out which mod caused this exact problem. Welp, time to get back to playing!

System.Linq

#117
Updated to 2016-12-30 v3. I've decided that the mod generated pawns which skewed unrealistically far towards attraction to the same sex. As a result, the Sexuality Formula™ has been altered to make your pawns less gay. This change will not affect already-generated pawns.

Love

you'll be hearing from tumblr about this

System.Linq

Updated to 2016-12-31. I've identified and fixed a few lingering bugs: The romance chance wasn't checking known sexualities properly, and animal pawns threw NPEs when they had panic attacks.