Disable Ideologies

Jamforce

Warlord
Joined
May 19, 2014
Messages
129
Location
Italy
I currently working on a total conversion mod. I have already removed buildings, units, eras, project, etc. but I'm unable to disable Ideologies, the popup appears immediately after the 1st turn. If i just make a delete of the ideologies, the policies panel stops to work. I understand that obviously is necessary some changes to lua, maybe to SocialPolicyPopup.lua, however i dont know how. Forgive me for the lexical mistakes (english is not my primary language) and thanks in advance for the help!
 
Try
Code:
<PostDefines>
  <Delete Name="POLICY_BRANCH_FREEDOM"/>
  <Delete Name="POLICY_BRANCH_AUTOCRACY"/>
  <Delete Name="POLICY_BRANCH_ORDER"/>
</PostDefines>
within one of your other XML files that updates the database
 
Try adding

Code:
<Defines>
  <Replace Name="POLICY_BRANCH_FREEDOM" Value="0"/>
  <Replace Name="POLICY_BRANCH_AUTOCRACY" Value="0"/>
  <Replace Name="POLICY_BRANCH_ORDER" Value="0"/>
</Defines>

as well, and then after you mod has loaded use a database inspection utility to check that the values of those three items in the Defines table are all zero
 
...simply changed <PostDefines> to <Defines>

Interesting :scan: As logically that shouldn't work :confused: Which implies Firaxis are doing something I wasn't expecting within the DLL before mods are loaded :eek:
 
Note that it works only if you have

Code:
<PolicyBranchTypes>
   <Delete>
	<Type>POLICY_BRANCH_ORDER</Type>
   </Delete>
   <Delete>
	<Type>POLICY_BRANCH_FREEDOM</Type>
   </Delete>
   <Delete>
	<Type>POLICY_BRANCH_AUTOCRACY</Type>
   </Delete>
</PolicyBranchTypes>
 
You can save yourself quite a lot of text (and lines)

Code:
  <PolicyBranchTypes>
    <Delete Type="POLICY_BRANCH_ORDER"/>
    <Delete Type="POLICY_BRANCH_FREEDOM"/>
    <Delete Type="POLICY_BRANCH_AUTOCRACY"/>
  </PolicyBranchTypes>

is functionally the same as your XML
 
Back
Top Bottom