Never modded Civ before, but I'm experienced with coding in several programming languages. Just as a basic start to Civ6 modding, I wanted to get the World Health Organisation Wonder into the game with some simple buffs to science & culture.
I can get an appropriate menu item to appear in the "additional components" (Mod) game menu using the modinfo file below, but no building appears ingame in the city menus. I'm clearly not doing it right, I'm hoping one of the experienced modders here can assist.
WHO_Wonder.modinfo File
WHO_Buildings.xml File
WHO_Buildings_Text.xml File
I can get an appropriate menu item to appear in the "additional components" (Mod) game menu using the modinfo file below, but no building appears ingame in the city menus. I'm clearly not doing it right, I'm hoping one of the experienced modders here can assist.
WHO_Wonder.modinfo File
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="3e383d8a-03cf-41af-94f3-cd36d11c9f11" version="1">
<Properties>
<Name>LOC_WHO_NAME</Name>
<Teaser>LOC_WHO_TEASER</Teaser>
<Description>LOC_WHO_DESCRIPTION</Description>
<Authors>LOC_WHO_AUTHORS</Authors>
<SpecialThanks>Any special thanks?</SpecialThanks>
<HideSetupGame>0</HideSetupGame>
<AffectsSavedGames>1</AffectsSavedGames>
<MinCompatibleSaveVersion>0</MinCompatibleSaveVersion>
<SupportsSinglePlayer>1</SupportsSinglePlayer>
<SupportsMultiplayer>1</SupportsMultiplayer>
<SupportsHotSeat>1</SupportsHotSeat>
<SupportsMac>1</SupportsMac>
<ReloadAudioSystem>0</ReloadAudioSystem>
<ReloadLandmarkSystem>0</ReloadLandmarkSystem>
<ReloadStrategicViewSystem>0</ReloadStrategicViewSystem>
<ReloadUnitSystem>0</ReloadUnitSystem>
</Properties>
<Dependencies></Dependencies>
<References />
<Blocks />
<LocalizedText>
<Text id="LOC_WHO_NAME">
<en_US>World Health Organisation Wonder</en_US>
<de_DE>Weltgesundheitsorganisation Wonder</de_DE>
<es_ES>Organización Mundial de la Salud Wonder</es_ES>
<fr_FR>Santé Organisation mondiale Wonder</fr_FR>
<it_IT>Organizzazione mondiale della sanità Wonder</it_IT>
<ja_JP>世界保健機関ワンダー</ja_JP>
<ko_KR>세계 보건기구 (WHO) 원더</ko_KR>
<pl_PL></pl_PL>
<pt_BR></pt_BR>
<ru_RU>Всемирная организация здравоохранения Wonder</ru_RU>
<rh_Hans_CN></rh_Hans_CN>
<zh_Hant_HK></zh_Hant_HK>
</Text>
<Text id="LOC_WHO_TEASER">
<en_US>Adds the World Health Organisation Wonder to Civ 6</en_US>
<de_DE>Fügt die Weltgesundheitsorganisation Wonder zu Civ 6</de_DE>
</Text>
<Text id="LOC_WHO_DESCRIPTION">
<en_US>Adds the World Health Organisation Wonder to Civ 6. Wonder is available to build after researching sanitation.</en_US>
<de_DE>Fügt die Weltgesundheitsorganisation Wonder 6. Wonder ist verfügbar zu bauen, nachdem die Erforschung sanitären Einrichtungen zu CIV.</de_DE>
<es_ES>Añade la Organización Mundial de la Salud de la maravilla de CIV 6. Wonder está disponible para construir después de investigar el saneamiento.</es_ES>
<fr_FR>Ajoute l'mondiale de la Santé Organisation Wonder à Civ 6. Wonder est disponible pour construire après des recherches sur l'assainissement.</fr_FR>
<it_IT>Aggiunge l'Organizzazione Mondiale della Sanità Wonder al CIV 6. Wonder è disponibile a costruire dopo la ricerca servizi igienico-sanitari.</it_IT>
<ja_JP>世界保健機関ワンダー6.ワンダーは衛生を研究した後に構築するために利用可能である文明に追加します。</ja_JP>
<ko_KR>세계 보건기구 (WHO) 원더 6. 원더는 위생을 연구 한 후 구축 할 수 있습니다 문명에 추가합니다.</ko_KR>
<pl_PL></pl_PL>
<pt_BR></pt_BR>
<ru_RU>Добавляет Всемирная организация здравоохранения диковинку CIV 6. Удивление доступен для создания после изучения санитарных условий.</ru_RU>
<rh_Hans_CN></rh_Hans_CN>
<zh_Hant_HK></zh_Hant_HK>
</Text>
<Text id="LOC_WHO_AUTHORS">
<en_US>Salmo</en_US>
</Text>
</LocalizedText>
<Files>
<File>World Health Organisation Wonder/XML/GameInfo/WHO_Buildings.xml</File>
<File>World Health Organisation Wonder/XML/Text/en_US/WHO_Buildings_Text.xml</File>
<!--
<File>World Health Organisation Wonder/XML/Text/Translations/WHO_Vanilla_de_DE.xml</File>
<File>World Health Organisation Wonder/UI/Icons/WHO_Icons_Wonders.xml</File>
-->
</Files>
</Mod>
WHO_Buildings.xml File
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
<Types>
<!-- World Health Organisation Wonder -->
<Row Type="BUILDING_WHO" Kind="KIND_BUILDING"/>
</Types>
<Buildings>
<!-- TODO: Change PrereqTech="TECH_ANIMAL_HUSBANDRY" to PrereqTech="TECH_SANITATION" -->
<Row BuildingType="BUILDING_WHO"
Name="LOC_WHO_NAME"
Description="LOC_WHO_DESCRIPTION"
PrereqTech="TECH_ANIMAL_HUSBANDRY"
Cost="3000"
MaxWorldInstances="1"
IsWonder="true"
RequiresPlacement="true"
MustNotBeLake="true"
MustBeAdjacentLand="true"
Quote="LOC_WHO_QUOTE"
/>
<!-- QuoteAudio="Play_WHOE_QUOTE"/> -->
</Buildings>
<Building_YieldChanges>
<!-- WHO YIELD -->
<Row BuildingType="BUILDING_WHO" YieldType="YIELD_SCIENCE" YieldChange="6"/>
<Row BuildingType="BUILDING_WHO" YieldType="YIELD_CULTURE" YieldChange="2"/>
</Building_YieldChanges>
<AiFavoredItems>
<Row ListType="MvembaWonders" Item="BUILDING_WHO"/>
</AiFavoredItems>
<IconDefinitions>
<!-- TODO: Using HERMATAGE icon for the time being -->
<Row Name="ICON_BUILDING_WHO" Index="24" Atlas="ICON_ATLAS_WONDERS"/>
</IconDefinitions>
</GameInfo>
WHO_Buildings_Text.xml File
Code:
<?xml version="1.0" encoding="utf-8" ?>
-<BaseGameText>
-<Row Tag="LOC_WHO_DESCRIPTION">
<Text>World Health Organisation Wonder. Provides [ICON_science] +6 science [ICON_culture] +2 culture benefits.</Text>
</Row>
-<Row Tag="LOC_WHO_QUOTE">
<Text>
“Let food be thy medicine and medicine be thy food.
Make a habit of two things: to help; or at least to do no harm.
Walking is man's best medicine.”[NEWLINE]– Hippocrates
</Text>
</Row>
-<Row Tag="LOC_PEDIA_BUILDING_WHO_CHAPTER_HISTORY_PARA_1">
<Text>
The World Health Organization (WHO/OMS) headquarters building is situated on the outskirts of Geneva
at the end of Avenue Appia, approximately three kilometres from the centre of town, and about
one and a half kilometres from the Palais des Nations (UN).
</Text>
</Row>
</BaseGameText>
Last edited: