[A16] Psychology (2017-5-14)

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

Previous topic - Next topic

System.Linq

Quote from: Caraise Link on December 28, 2016, 09:06:22 PM
So hey, is it possible to see characters' sexuality listed anywhere? The Kinsey scale is a really useful simplification that applies to this situation incredibly well, but it's annoying me that it doesn't seem to be visible.

You can find it in the save file if you edit it, and it will be revealed by therapy sessions in future versions. In the meantime, don't you know it's impolite to ask?

Quote from: LycanBlackpaw on December 28, 2016, 09:14:59 PM
Not really sure what's going on, but this error pops up when attempting to create a world. I assume it has something to do with Psychology not interacting well with mods that add factions, based on what little I can read of it.

Exception from asynchronous event: System.NullReferenceException: Object reference not set to an instance of an object
  at Psychology.Detour._PawnComponentsUtility._CreateInitialComponents (Verse.Pawn pawn) [0x00000] in <filename unknown>:0
  at Verse.PawnGenerator.DoGenerateNewNakedPawn (Verse.PawnGenerationRequest& request, System.String& error, Boolean ignoreScenarioRequirements) [0x00000] in <filename unknown>:0
  at Verse.PawnGenerator.GenerateNewNakedPawn (Verse.PawnGenerationRequest& request) [0x00000] in <filename unknown>:0
  at Verse.PawnGenerator.GeneratePawn (PawnGenerationRequest request) [0x00000] in <filename unknown>:0
  at RimWorld.Faction.GenerateNewLeader () [0x00000] in <filename unknown>:0
  at RimWorld.FactionGenerator.NewGeneratedFaction (RimWorld.FactionDef facDef) [0x00000] in <filename unknown>:0
  at RimWorld.FactionGenerator.GenerateFactionsIntoWorld (System.String seedString) [0x00000] in <filename unknown>:0
  at RimWorld.Planet.WorldGenerator.GenerateWorld (Single planetCoverage, System.String seedString, OverallRainfall overallRainfall, OverallTemperature overallTemperature) [0x00000] in <filename unknown>:0
  at RimWorld.Page_CreateWorldParams.<CanDoNext>m__527 () [0x00000] in <filename unknown>:0
  at Verse.LongEventHandler.RunEventFromAnotherThread (System.Action action) [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__733()

It's possible. What faction mod did you use and do you have the latest version?

LycanBlackpaw

I've got a couple...Let me post my mod list. Off the top of my head it's just Orassans, the Medieval Times factions, and the Call of Cthulu factions.

    Core
    HugsLib
    Chemicals &amp; Neutroamine
    MadSkills-A16-1.2.1-T
    RW_AreaUnlocker
    TradingSpotA16
    Tech Advancing
    StepAway
    ShutdownAllA16
    sd_conduitwall
    sd_adv_powergen
    RW_MedicalInfo
    RW_Manager
    RW_EnhancedTabs
    RW_Blueprints
    RoofSupport A16
    Refactored Work Priorities
    RecolorStockpileA16
    PrisonExtensions
    OSHACompliance
    MineItAll
    kNumbers-0.6.0
    ICanFixIt
    Hand Me That Brick
    Grenade Fix Rearmed
    Fluffy_Breakdowns
    Floors Rebalance
    CraftingHysteresis
    realisticbeds
    Cooks Can Refuel
    Caerbannog
    Autoclose Event Notifications
    Animals Hoods
    AllowTool
    Call of Cthulhu - Cosmic Horrors V1.4 A16
    Quality Builder
    Prisoner Harvesting
    Overhead Mountain Removal
    Mending Easy
    RemoteExplosives
    Bulk Meals A16
    Medieval Times
    Improved Ship Reactor
    Growable Grass
    Growing Plots
    HP Lovecraft Storyteller v1.2 A16
    Jecrell - Tobacco &amp; Cigarettes V1.3c
    Call of Cthulhu - Straitjackets 1.0 A16
    Call of Cthulhu - Industrial Age V1.1 A16
    Call of Cthulhu - Factions V1.7 A16
    Call of Cthulhu - Cults 1.1a A16
    ExpandedProsthetics&amp;OrganEngineering
    A Dog Said
    Orassan (heads)
    Orassan (EPOE Patch)
    ResearchList
    LongRangePodLauncher
    FashionRIMsta
    RIMkea 1.1
    RT_Fuse-A16-1.0.4
    RT_QuantumStorage-A16-1.0.7
    RT_SolarFlareShield-A16-1.1.1
    CaravanSpot
    DefensivePositions
    Better Pathfinding
    StackXXL
    EdBPrepareCarefully
    Psychology

System.Linq

#92
The mod at large appears to be the Orassans, likely because they add a custom alien race and don't appear to use HugsLib. I have no problem generating a map with Medieval Times or Call of Cthulhu, and Orassans works fine with Psychology off. I recommend you disable the Orassans mod until I can look into the problem.

e: It appears that Orassans uses a custom pawn type, and I missed a null check when instantiating pawn sexuality. The error has been fixed.

Kyna Tiona

Quote from: Psychology on December 28, 2016, 09:16:52 PM
Quote from: Caraise Link on December 28, 2016, 09:06:22 PM
So hey, is it possible to see characters' sexuality listed anywhere? The Kinsey scale is a really useful simplification that applies to this situation incredibly well, but it's annoying me that it doesn't seem to be visible.

You can find it in the save file if you edit it, and it will be revealed by therapy sessions in future versions. In the meantime, don't you know it's impolite to ask?

Eh, it is for some people? It shouldn't be. I typically prefer it when guys know not to hit on me and any lesbians in the room are aware I might be an option. It's to my benefit to reveal that information when queried, and the only real alternative is to hit on every girl that interests me just in case she's gay and not telling me. Asking seems more impolite, personally~

More on point, though, I would prefer it if you gave the option of making it visible. Every other data point you'd want to know about a given pawn is made openly available, so it doesn't really jive well with the existing game to hide their sexuality. It makes sense if you hide traits as well, but that doesn't sound at all enjoyable, so hopefully you'd include an alternate version that leaves everything visible anyway.

System.Linq

When therapy is implemented, traits will be hidden until revealed through therapy. That will of course be toggleable in the settings. At present, I simply didn't feel like detouring or reflecting anything that would allow me to display one line of text on the screen for the convenience of a handful of users. I recommend you look in the save file if you must know; either way, hang tight and it will be integrated into the GUI better.

Kyna Tiona

Ah, okay. I guess for some reason I thought it would be easier than that, but then I'm reminded that GUIs are routinely a mess.

System.Linq

It is difficult because I added an entirely new dimension to the game that isn't part of any other system. That means I have to either detour an existing tab to draw the text on (ew!) or create my own from scratch (huge pain). Both are time-consuming and not necessary to the functionality, so I left them out in the initial implementation.

Kyna Tiona

Whoa, gross. Given the absurd number of fields in the general information tab, I'd just assumed adding arbitrary fields was a straightforward matter. Suddenly I don't want to think about what the back end of that tab looks like...

System.Linq

Updated to 2016-12-28 v4. Mainly bugfixes.

System.Linq

Updated to 2016-12-29. Fixed problems with romance methods not being detoured properly, resulting in pawns not learning each others' sexualities or using Psychology romance chances. Also tweaked anxiety values.

Zakhad

#100
I updated like 15 minutes ago, and I'm getting systemNullReferenceExceptions causing fps death. (I don't know how else to describe it :P) Would you like a log, save or a modlist? (I have 20 or so mods) Psychology was working perfectly fine before the update.

I had a pawn with the trait, and now it seems to have disappeared. Anxiety that is.

Edit: After a while the fps death disappears (I assume this is due to anxiety wearing off?)

[attachment deleted by admin due to age]

System.Linq

The Anxiety trait was removed and re-implemented as a health problem. This can cause errors on older saves but they shouldn't be problematic. I recommend you save again and load it, that might fix the missing trait.

If not, please post the log.

Kufitaah

I had a problem with the rest detour, JobGiver_GetRest.GetPriority , which I thought was because I had heavy sleepers or something, but I started a world with just a pawn and nothing related to sleep in traits and it was the same. The error log gets filled up like 1 error/second (So just a big red flashy screen that doesn't let me play at all) and drops my fps while it's doing it (which I tried letting it pass, but it seems endless)

Right now I'm updating to 2016-12-29 to see if that fixes it, but if it doesn't, I'll post more data.

Zakhad

My error for the more part seems to have gone, a few bad references (Probably due to how you changed things) but it seems to be playing as normal I'll report back if anything happens, thanks for the update / help

Kufitaah

Indeed, as soon as I updated the rest thing was gone. It just gave me a warning with Anxiety but I didn't have anyone with it so it's k.
Working fine!