chiphead
Chieftain
- Joined
- Jul 27, 2007
- Messages
- 56
I'm working on a mod (America All Uniques) that gives the American civilization all UAs/UBs/UUs, but I've run into a few problems getting all the traits to play nice.
I originally just added all other leaders' traits to Washington, and that gets most of them working right away. One that did not work at first was Carthage's free harbors -- I was able to get them working by using the previously-unused TRAIT_PHILOSOPHICAL trait and adding a FreeBuilding to it, as I explain on the How to get the free habor effects of Carthage? thread. This approach also worked to get the Huns' +1 production from pastures, by adding TRAIT_PHILOSOPHICAL to table Trait_ImprovementYieldChanges.
Once that was working, I tried to get the double resources from the Arabian and Russian UAs by adding TRAIT_PHILOSOPHICAL to table Trait_ResourceQuantityModifiers. The changes show up in the database (I'm checking with the SQLite Manager), but the resource quantities remain unchanged. The same happens with Russia's +1 production for strategic resources under table Trait_YieldChangesStrategicResources, TRAIT_PHILOSOPHICAL is on the table but there's no +1 production per resource. Any ideas?
I originally just added all other leaders' traits to Washington, and that gets most of them working right away. One that did not work at first was Carthage's free harbors -- I was able to get them working by using the previously-unused TRAIT_PHILOSOPHICAL trait and adding a FreeBuilding to it, as I explain on the How to get the free habor effects of Carthage? thread. This approach also worked to get the Huns' +1 production from pastures, by adding TRAIT_PHILOSOPHICAL to table Trait_ImprovementYieldChanges.
Once that was working, I tried to get the double resources from the Arabian and Russian UAs by adding TRAIT_PHILOSOPHICAL to table Trait_ResourceQuantityModifiers. The changes show up in the database (I'm checking with the SQLite Manager), but the resource quantities remain unchanged. The same happens with Russia's +1 production for strategic resources under table Trait_YieldChangesStrategicResources, TRAIT_PHILOSOPHICAL is on the table but there's no +1 production per resource. Any ideas?