Hey all, ran into what looks like a roadblock and am looking for alternates. I found a reference that another modder was having difficulty with this type of thing on improvements over on this thread, but didn't find a wrap up to that discussion.
Attempt: Assign a negative housing value to power plants. XML seemed the most successful, but didn't apply any change (seems like the floor of the function is 0 as per the thread, but haven't confirmed).
This code showed up in the Civpedia and the production menu, but no change in housing was applied (my guess is it went to 0)
No change registered shown in Civpedia or build menu, but no crash
No change registered, no crash, same as above
Since power plants can be upgraded and downgraded, I was hoping to solve this on a building level, but I am open to other ways if anyone knows of any
Thank you for your time and ideas!
Attempt: Assign a negative housing value to power plants. XML seemed the most successful, but didn't apply any change (seems like the floor of the function is 0 as per the thread, but haven't confirmed).
Code:
<GameData>
<Buildings>
<Update>
<Where BuildingType="BUILDING_COAL_POWER_PLANT"/>
<Set Housing="-7"/>
</Update>
</Buildings>
</GameData>
This code showed up in the Civpedia and the production menu, but no change in housing was applied (my guess is it went to 0)
Code:
UPDATE Buildings SET Housing=-7, WHERE BuildingType='BUILDING_COAL_POWER_PLANT';
No change registered shown in Civpedia or build menu, but no crash
Code:
INSERT OR IGNORE INTO Buildings
(BuildingType, Housing)
VALUES ('BUILDING_COAL_POWER_PLANT', -7),
No change registered, no crash, same as above
Since power plants can be upgraded and downgraded, I was hoping to solve this on a building level, but I am open to other ways if anyone knows of any
Thank you for your time and ideas!