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 - sv-esk

#1
Releases / Re: [1.0] Psychology (2018-11-18)
May 12, 2019, 04:02:56 PM
Quote from: Arkaile on April 13, 2019, 12:46:31 PM
Does anyone know how I should go about re-enabling the psych tab for androids? Which file(s) should I be looking at?

Edit: As an alternative, is there a way I can manually add the psych tab to a colonist by editing a save?
It is hardcoded not to add tab to anything containing Android in its defName.

Re-enabling: PsychologyBase.cs file in source code. Remove && !def.defName.Contains("Android") and compile.

Adding tab without compiling dll - Save code as patch.xml in Mods/YourMod/Patches, load after androids and psychology:

<?xml version="1.0" encoding="utf-8" ?>
<Patch>

<Operation Class="PatchOperationAdd">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="ChjAndroid"]/recipes</xpath>
<value>
<li>TreatPyromania</li>
<li>TreatChemicalInterest</li>
<li>TreatChemicalFascination</li>
<li>TreatDepression</li>
<li>TreatInsomnia</li>
<li>CureAnxiety</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="ChjAndroid"]/race/hediffGiverSets</xpath>
<value>
<li>OrganicPsychology</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="ChjAndroid"]</xpath>
<value>
<inspectorTabs>
<li>Psychology.ITab_Pawn_Psyche</li>
</inspectorTabs>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="ChjAndroid"]/comps</xpath>
<value>
<li Class="Psychology.CompProperties_Psychology" />
</value>
</Operation>

</Patch>


BTW, ChjDroid and ChjBattleDroid should be blacklisted - these are definitely rudimentary robots. Please, make blacklist of defNames xml or modsettings - editable.