LeeS
Imperator
XML (Advanced) Guide to Adding Buildings and Wonders to Brave New World
Support Issues Related to the Impending Release of Civ6:
- Other than to clean up any small whoopses or typos that may exist in the information presented I have no intentions of adding to the information nor of making any great changes to format of how the info is presented
- I am attempting to wind-down my Civ5 modding in preperation for the release of 6.
- I am not abandoning the Civ5 modding forum, I am just winding down the stuff I have in the works and that I can reasonably expect to put to bed prior to the release of 6.
- I intend to move on to 6 modding for the most part (or for the all part), assuming 6 is not a mess or a BE
----------------------------------------------------------------------------------------------------------------------------
I originally posted this as a Mod on the Steam Workshop. It can be found at Buildings Guide on the Steam Workshop. It is also now available here on CivFanatics at Forum Download of Buildings Guide. To give you an idea of the scope and nature of this guide I am including a link to a mediafire holdbox where you can look at and download the core document of my guide. The mediafire link is Buildings_Guide.xml. My intensions with this guide is to add all of the information in the core "Buildings_Guide.xml" file to this tutorial/reference. For now I do not intend to add any information that will be different from that provided in the download or steam versions of the guide, but I will be taking advantage of the much more powerful formatting capabilities of the forum as compared to a text-only file.
Notes on scope and purpose of the guide as it has been packaged in the download link and on my Steam Workshop mod
- Note that the downloadable versions of this tutorial are not as up-to-date so far as new added information is concerned as is the version here on the forum. I have been updating a 'master' version of the tutorial that in the near future I will re-publish to the downloadable versions, but I am also trying to keep the need for numerous small 'updates' to a minimum.
- I built the downloaded versions of the guide so that they could be posted to Steam, or here, and downloaded by potential users without having to worry about needing any program besides notepad to read them.
- I wanted the core part of the guide to be a reference that anyone could easily refer to while adding a new building or wonder to the game. I therefore wanted it to be able to "live on" a user's computer, quick to refer to.
- I wanted to make it at an accessible level to the new modder as well as to the experienced hand. When faced with "what was that darn command, again?", I wanted both sorts of modder to find the Guide a quick, easy, and useful reference.
This is my mod description as it appears on Steam. Except for the bits about downloading from steam, I think it might help give a better idea of how the downloaded version of the guide is intended to be used:
Spoiler :
Detailed XML Guide to adding Buildings and Wonders to the Game for the Brave New World expansion. Covers all XML tables that relate to buildings and wonders. If you've had trouble getting your mod to do what you want it to do, this should be the guide for you.
Also adds three range-unit enhancing buildings to the game when the MOD is enabled.
1) Subscribe to the mod and let it download to your MODs folder in the normal way.
2) exit the game.
3) navigate to your MyGames/Civilization5/MODS folder and then to the Buildings Guide mod
4) double-click on the BUILDINGS_GUIDE.XML file and it should open in notepad. If it opens in Wordpad or Word you might have to resize the margins. Or simply close the file and set your computer to open .XML files with Notepad.
5) The Guide is a text-only file with tabs as the only "special formatting", so anyone ought to be able to open it. There are a few instructions at the top of the BUILDINGS_GUIDE.XML file that tell you what the other included files are for.
6) I have added a file called Changes_2_FIRAXIS.xml that discusses formats and some strategies for changing exisitng firaxis-supplied buildings, and a file that contains all text strings (tags) that are used in-game by the firaxis-supplied buildings for the civilopedia, help pop-ups, etc.
Enabling the MOD will not try to activate the BUILDINGS_GUIDE.XML file in-game, but will activate the three buildings in the Archery Buildings folder. They are Practice Range, Archery Range, and Artillery Range. Each of these buildings gives a slight buff to constructing archery or siege units, and add small buffs to experience or quality of newly-made archery or siege units.
I REALLY SUCK AT ARTWOK so the in-game icons for the three ranged unit buildings is borrowed from existing in-game artwork.
Special Thanks and Credit should go to:
Irkalla on the CivFanatics site for figuring out how to hide a building without needing an LUA
Sun Ce of Wu of the Steam Workshop for graciously allowing me to use his Theater of Dionysus as a practical code-example for adding audio to wonder splashes
Leugi for his useful Tutorial on the CivFanatics forum for adding audio files to Civs, etc.
Ceej12 here on the Steam Workshop for his very useful intro guide to modding.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
THREAD PAGE 1 Table of Contents
Clicking the 'Navigation Links' in this Table of Contents will cause the post # indicated to appear as a pop-up window. Simply close the pop-up window to return to the table of contents.
Post 3 : Navigation Link: Introduction
Post 4 : Navigation Link: Miscellanea
Commands: Comments Format
Post 5 : Navigation Link: <GameData> Command
Commands: <GameData>
Post 6 : Navigation Link: <Buildings> Game Table Overview
Table: <Buildings>
Post 7 : Navigation Link: Opening the <Buildings> game table
Table: <Buildings>
Commands: <Buildings>
Commands: <Buildings>
Post 8 : Navigation Link: Start of Defining Your Building and XML-Name of Your Building
Table: <Buildings>
Commands: <Row>, <Type>
Commands: <Row>, <Type>
Post 9 : Navigation Link: Defining the Building Class Your Building Fits Into
Table: <Buildings>
Commands: <BuildingClass>
Includes Review Example
Commands: <BuildingClass>
Includes Review Example
Post 10 : Navigation Link: Building is free based on start eras
Table: <Buildings>
Commands: <FreeStartEra>
Includes List of usable settings for <FreeStartEra>
Commands: <FreeStartEra>
Includes List of usable settings for <FreeStartEra>
Post 11 : Navigation Link: Building Hammer Cost
Table: <Buildings>
Commands: <Cost>
Includes Review Example
Commands: <Cost>
Includes Review Example
Post 12 : Navigation Link: World congress building projects
Table: <Buildings>
Commands: <UnlockedByLeague>
Commands: <UnlockedByLeague>
Post 13 : Navigation Link: BUILDING GOLD MAINTENANCE COST PER TURN and REQUIRED TECH TO BUILD THE BUILDING
Table: <Buildings>
Commands: <GoldMaintenance>, <PrereqTech>
Includes Review Example
Commands: <GoldMaintenance>, <PrereqTech>
Includes Review Example
Post 14 : Navigation Link: Building is un-locked or purchasable with faith
Table: <Buildings>
Commands: <FaithCost>, <UnlockedByBelief>
Includes Review Example
Commands: <FaithCost>, <UnlockedByBelief>
Includes Review Example
Post 15 : Navigation Link: Building civilopedia and help-tip text-look-ups
Table: <Buildings>
Commands: <Help>, <Description>, <Civilopedia>, <Strategy>, <ThemingBonusHelp>, <Quote>, and use of <Gender> within the <Language_en_US> table.
Includes Review and other Examples
Commands: <Help>, <Description>, <Civilopedia>, <Strategy>, <ThemingBonusHelp>, <Quote>, and use of <Gender> within the <Language_en_US> table.
Includes Review and other Examples
Post 16 : Navigation Link: Building render art type
Table: <Buildings>
Commands: <ArtDefineTag>, <ArtInfoCulturalVariation>, <ArtInfoEraVariation>, <ArtInfoRandomVariation>, <DisplayPosition>
Includes Review Example
Commands: <ArtDefineTag>, <ArtInfoCulturalVariation>, <ArtInfoEraVariation>, <ArtInfoRandomVariation>, <DisplayPosition>
Includes Review Example
Post 17 : Navigation Link: Building is unavailable based on player start eras
Table: <Buildings>
Commands: <MaxStartEra> and listing of valid era names
Includes Review Example
Commands: <MaxStartEra> and listing of valid era names
Includes Review Example
Post 18 : Navigation Link: Specialists and great person points
Table: <Buildings>
Commands: <SpecialistType>, <SpecialistCount>, <GreatPeopleRateChange>
Includes Examples
Commands: <SpecialistType>, <SpecialistCount>, <GreatPeopleRateChange>
Includes Examples
Post 19 : Navigation Link: Specialist extra culture
Table: <Buildings>
Commands: <SpecialistExtraCulture>
Commands: <SpecialistExtraCulture>
Post 20 : Navigation Link: Min area size
Table: <Buildings>
Commands: <MinAreaSize>
Commands: <MinAreaSize>