loppnessmonsta
Chieftain
- Joined
- Nov 27, 2013
- Messages
- 19
I've been working on this mod for weeks now and I'm stuck. My tooltips update fine, but the actual changes don't work.
This is my PolicyUpdates file:
The mod has other files, but doesn't throw any visible errors and most of it works. The only problem is that the changes from my Update files don't take effect. In particular, the CultureFromKills (easiest to test). I checked the database log and found nothing related to this.
From this I can only surmise that I have done something wrong in my syntax that causes the file to just not load, but for the life of me I can't figure out what. I've had the BuildingClassType in the WHERE line, but that didn't work either, though I guess I may have had other errors at the time that may have broken it. I dunno. Could use some fresh eyes.
This is my PolicyUpdates file:
Spoiler :
<GameData>
<Policies>
<Update>
<Where PolicyType="POLICY_HONOR"/>
<Set CultureFromKills="100"/>
</Update>
<!--<Update>
<Where PolicyType="POLICY_HONOR"/>
<Set CultureFromBarbarianKills="200"/>
</Update>-->
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set GreatWriterRateModifier="25"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set GreatArtistRateModifier="25"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set GreatMusicianRateModifier="25"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set GreatWriterRateModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set GreatArtistRateModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set GreatMusicianRateModifier="0"/>
</Update>
</Policies>
<Policy_BuildingClassProductionModifiers>
<Update>
<Where PolicyType="POLICY_HONOR"/>
<Set BuildingClassType="BUILDINGCLASS_BARRACKS" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_HONOR"/>
<Set BuildingClassType="BUILDINGCLASS_ARMORY" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_HONOR"/>
<Set BuildingClassType="BUILDINGCLASS_MILITARY_ACADEMY" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_CONSTABLE" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_POLICE_STATION" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set BuildingClassType="BUILDINGCLASS_MONUMENT" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set BuildingClassType="BUILDINGCLASS_AMPHITHEATER" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set BuildingClassType="BUILDINGCLASS_OPERA_HOUSE" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set BuildingClassType="BUILDINGCLASS_MUSEUM" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set BuildingClassType="BUILDINGCLASS_BROADCAST_TOWER" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_BARRACKS" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_ARMORY" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_MILITARY_ACADEMY" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set BuildingClassType="BUILDINGCLASS_MONUMENT" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set BuildingClassType="BUILDINGCLASS_AMPHITHEATER" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set BuildingClassType="BUILDINGCLASS_OPERA_HOUSE" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set BuildingClassType="BUILDINGCLASS_MUSEUM" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set BuildingClassType="BUILDINGCLASS_BROADCAST_TOWER" ProductionModifier="0"/>
</Update>
</Policy_BuildingClassProductionModifiers>
<Policy_BuildingClassHappiness>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_CONSTABLE" Happiness="1"/>
</Update>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_POLICE_STATION" Happiness="1"/>
</Update>
</Policy_BuildingClassHappiness>
</GameData>
<Policies>
<Update>
<Where PolicyType="POLICY_HONOR"/>
<Set CultureFromKills="100"/>
</Update>
<!--<Update>
<Where PolicyType="POLICY_HONOR"/>
<Set CultureFromBarbarianKills="200"/>
</Update>-->
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set GreatWriterRateModifier="25"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set GreatArtistRateModifier="25"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set GreatMusicianRateModifier="25"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set GreatWriterRateModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set GreatArtistRateModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set GreatMusicianRateModifier="0"/>
</Update>
</Policies>
<Policy_BuildingClassProductionModifiers>
<Update>
<Where PolicyType="POLICY_HONOR"/>
<Set BuildingClassType="BUILDINGCLASS_BARRACKS" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_HONOR"/>
<Set BuildingClassType="BUILDINGCLASS_ARMORY" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_HONOR"/>
<Set BuildingClassType="BUILDINGCLASS_MILITARY_ACADEMY" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_CONSTABLE" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_POLICE_STATION" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set BuildingClassType="BUILDINGCLASS_MONUMENT" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set BuildingClassType="BUILDINGCLASS_AMPHITHEATER" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set BuildingClassType="BUILDINGCLASS_OPERA_HOUSE" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set BuildingClassType="BUILDINGCLASS_MUSEUM" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_AESTHETICS"/>
<Set BuildingClassType="BUILDINGCLASS_BROADCAST_TOWER" ProductionModifier="50"/>
</Update>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_BARRACKS" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_ARMORY" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_MILITARY_ACADEMY" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set BuildingClassType="BUILDINGCLASS_MONUMENT" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set BuildingClassType="BUILDINGCLASS_AMPHITHEATER" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set BuildingClassType="BUILDINGCLASS_OPERA_HOUSE" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set BuildingClassType="BUILDINGCLASS_MUSEUM" ProductionModifier="0"/>
</Update>
<Update>
<Where PolicyType="POLICY_CULTURAL_CENTERS"/>
<Set BuildingClassType="BUILDINGCLASS_BROADCAST_TOWER" ProductionModifier="0"/>
</Update>
</Policy_BuildingClassProductionModifiers>
<Policy_BuildingClassHappiness>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_CONSTABLE" Happiness="1"/>
</Update>
<Update>
<Where PolicyType="POLICY_PROFESSIONAL_ARMY"/>
<Set BuildingClassType="BUILDINGCLASS_POLICE_STATION" Happiness="1"/>
</Update>
</Policy_BuildingClassHappiness>
</GameData>
The mod has other files, but doesn't throw any visible errors and most of it works. The only problem is that the changes from my Update files don't take effect. In particular, the CultureFromKills (easiest to test). I checked the database log and found nothing related to this.
From this I can only surmise that I have done something wrong in my syntax that causes the file to just not load, but for the life of me I can't figure out what. I've had the BuildingClassType in the WHERE line, but that didn't work either, though I guess I may have had other errors at the time that may have broken it. I dunno. Could use some fresh eyes.