Beginner Mod

gooners55

Chieftain
Joined
Mar 27, 2015
Messages
8
Just realized I posted this in the wrong forum.

OK, so I am new to modding. I have read several tutorials and watched videos and have started making my own mod- starting very simply with editing buildings. For example:

<Update>
<Set Happiness="4"/>
<Where Type="BUILDING_COLOSSEUM"/>
</Update>
to increase colosseum happiness from 2 to 4. OK great- I get it to work in-game and all is good.

Now I apply the same logic to cultural buildings-specifically the amphitheater, opera house, and museum bc I feel they are underpowered. For example:

<Update>
<Set Culture="6"/>
<Where Type="BUILDING_OPERA_HOUSE"/>
</Update>
I cannot get this to work in-game! Moreover, I cannot even find the Amphitheater in the xml files. I am sure there is a simple solution to this but I cannot for the life of me find one. Thanks!
 
The problem with not being able to find Building-X in the xml-files is likely because you are looking in the wrong place. These are the locations for the xml-files based upon the expansion one has:
  1. Vanilla files are at:
    C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization V\assets\Gameplay\XML
  2. G&K files are at:
    C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization V\assets\DLC\Expansion\Gameplay\XML
  3. BNW files are at:
    C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization V\assets\DLC\Expansion2\Gameplay\XML
The beginning portion of your file path might be slighlty different depending on whether you have Win7, Win10, etc. (I have Win8.1)

Note that in the G&K and BNW folders there will be more than one xml-file with code for Buildings.

-------------------------------------------------------------------------------------------------

  • In G&K and BNW, the column Culture no longer exists within table Buildings, and attempts to use it for those expansions cause complete file failure.
    • You have to write to the table <Building_YieldChanges> and specify a building will have a <YieldType> of YIELD_CULTURE
    • For the Opera House I would want:
      Code:
      <GameData>
         <Building_YieldChanges>
            <Update>
               <Where BuildingType="BUILDING_OPERA_HOUSE" YieldType="YIELD_CULTURE" />
               <Set Yield="6" />
            </Update>
         </Building_YieldChanges>
      </GameData>
 
Thank you! I checked the log file and it said culture was no longer a column in BNW but I had no idea what the solution was. #noobproblems Thanks again.
 
Back
Top Bottom