Civilization6(Civ6 シヴィライゼーション6) 攻略Wiki
-
MOD/作成方法/新文明・指導者/UD
をテンプレートにして作成 |
新規
|
子ページ作成
|
ページ一覧
|
最終更新
|
モバイル表示に変更
|
開始行:
* ユニーク区域の作成 [#vc2e7c53]
例として一番単純な区域(建造物がないもの)である近郊部の置...
近郊部の効果を一部ンバンザに近いものにし、工業地帯に接す...
(これもすでに公開しているMODで・・・)
** xmlの記述 [#x1387994]
*** NewLeader_District.xml [#l116581e]
ユニークユニットでやったように新しくxmlファイルを作ります。
ファイル名は「NewLeader_District.xml」としてください。作...
内容は近郊部の定義をコピーして書き換えます。近郊部の定義...
また、わかりやすくアピールによる住宅の変動はなしで5固定(...
隣接ボーナスは他の区域のものを参考に書いてみます。
で、実際には以下の内容となります。
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
<Types>
<Row Type="DISTRICT_hogehoge" Kind="KIND_DISTRICT"/>
</Types>
<DistrictReplaces>
<Row CivUniqueDistrictType="DISTRICT_hogehoge" Replace...
</DistrictReplaces>
<Districts>
<Row DistrictType="DISTRICT_hogehoge" Name="LOC_DISTRI...
PrereqCivic="CIVIC_URBANIZATION" PlunderType="PLUNDER_...
Cost="54" CostProgressionModel="COST_PROGRESSION_GAME_...
OnePerCity="false" Aqueduct="false" NoAdjacentCity="fa...
MilitaryDomain="NO_DOMAIN" Housing="5" CityStrengthMod...
</Districts>
<District_Adjacencies>
<Row DistrictType="DISTRICT_hogehoge" YieldChangeId="I...
</District_Adjacencies>
<Adjacency_YieldChanges>
<Row ID="IndustrialZone_Production" Description="LOC_D...
YieldType="YIELD_PRODUCTION" YieldChange="2" TilesRequ...
</Adjacency_YieldChanges>
</GameInfo>
Types:区域の親定義
DistrictReplace:何の区域の置き換えにするか
Districts:区域の詳細設定
|Name|区域名。別ファイルに中身を書きます|
|Description|区域の説明。別ファイルに中身を書きます|
|PrereqCivic|解禁社会制度:CIVIC_URBANIZATION = 都市化|
|PlunderType|略奪で得られるもの:PLUNDER_GOLD = ゴールド|
|PlunderAmount|略奪時のボーナス量|
|AdvisorType|助言者設定|
|Cost|区域の基礎建設コスト|
|CostProgressionModel|コストの上昇モデル?|
|CostProgressionParam1|コストの上昇値?|
|RequiresPlacement|建設に領土が必要かどうか。通常はtrueで...
|RequiresPopulation|建設に人口が必要かどうか。キャンパス...
|OnePerCity|1都市に1つかどうか。近郊部など無制限に作れる...
|Aqueduct|trueにすると、都心区域と真水源の間にのみ建設可...
|NoAdjacentCity|都心に隣接できるかどうか。falseだと隣接で...
|InternalOnly|trueの場合は、文明に1つだけ建設可能になる制...
//|宇宙船部品などの特殊用途専用。trueにすると、都市では直...
|ZOC|ZOCの発生の有無。trueで発生。|
|CaptureRemovesBuildings|占領時に区域内の建造物が略奪状態...
//|trueの場合、この区域のユニットは直接攻撃できない。兵営...
|CaptureRemovesCityDefenses|不明ですがおそらく都心専用。...
|MilitaryDomain|区域を設置したタイルでの戦闘時になんのド...
|Housing|住宅への加算値|
|TraitType|所属特性(ユニークにするなら必須)|
District_Adjacencies:区域の隣接ボーナスの親定義
Adjacency_YieldChanges:区域の隣接ボーナスの詳細設定
|ID|District_Adjacenciesで作成したIDを指定|
|Description|隣接ボーナスの説明|
|YieldType|得られるボーナスの種類|
|YieldChange|得られるボーナスの値|
|TilesRequired|ボーナスを得るために必要なタイルの数|
|AdjacentDistrict|ボーナスを得るための隣接区域|
*** NewLeader_Felines.xml [#h0edb1c5]
ユニークユニットと同様、ユニーク区域も指導者か文明に紐付...
今回は文明側に紐付けます。
<?xml version="1.0" encoding="utf-8"?>
<GameData>
<Types>
<Row Type="CIVILIZATION_FELINE" Kind="KIND_CIVILIZATIO...
<Row Type="TRAIT_CIVILIZATION_BUILDING_LITTER_BOX" Kin...
<Row Type="TRAIT_CIVILIZATION_FELINE" Kind="KIND_TRAIT...
<Row Type="TRAIT_CIVILIZATION_DISTRICT_hogehoge" Kind=...
</Types>
<Civilizations>
<Row>
<CivilizationType>CIVILIZATION_FELINE</CivilizationTy...
<Name>LOC_CIVILIZATION_FELINE_NAME</Name>
<Description>LOC_CIVILIZATION_FELINE_DESCRIPTION</Des...
<Adjective>LOC_CIVILIZATION_FELINE_ADJECTIVE</Adjecti...
<StartingCivilizationLevelType>CIVILIZATION_LEVEL_FUL...
</Row>
</Civilizations>
<CivilizationLeaders>
<Row CivilizationType="CIVILIZATION_FELINE" LeaderType...
</CivilizationLeaders>
<CivilizationCitizenNames>
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
</CivilizationCitizenNames>
<CivilizationInfo>
<Row CivilizationType="CIVILIZATION_FELINE" Header="LO...
</CivilizationInfo>
<CivilizationTraits>
<Row CivilizationType="CIVILIZATION_FELINE" TraitType=...
<Row CivilizationType="CIVILIZATION_FELINE" TraitType=...
<Row CivilizationType="CIVILIZATION_FELINE" TraitType=...
</CivilizationTraits>
<Traits>
<Row TraitType="TRAIT_CIVILIZATION_BUILDING_LITTER_BOX...
<Row TraitType="TRAIT_CIVILIZATION_FELINE" Name="LOC_T...
<Row TraitType="TRAIT_CIVILIZATION_DISTRICT_hogehoge" ...
</Traits>
・
・
・
これで文明とユニーク区域がつながりました。
*** NewLeader_Config.xml [#a82bc8a3]
ユニークユニットと同様、ユニーク区域も文明選択時やLoading...
</Row>
<Row> ★追加
<Domain>StandardPlayers</Domain> ★追加
<CivilizationType>CIVILIZATION_FELINE</CivilizationTy...
<LeaderType>LEADER_JASPER_KITTY</LeaderType> ★追加
<Type>DISTRICT_hogehoge</Type> ★追加
<Name>LOC_DISTRICT_hogehoge_NAME</Name> ★追加
<Description>LOC_DISTRICT_hogehoge_DESCRIPTION</Descr...
<Icon>ICON_DISTRICT_hogehoge</Icon> ★追加
<SortIndex>30</SortIndex> ★追加
</Row> ★追加
</PlayerItems>
</GameData>
*** NewLeader_ConfigText.xml [#u7976574]
ユニークユニットと同様、名称や説明などを書きます。
<Row Tag="LOC_DISTRICT_hogehoge_NAME" Language="en_US"...
<Text>Industrial Park</Text> ★追加
</Row> ★追加
<Row Tag="LOC_DISTRICT_hogehoge_DESCRIPTION" Language=...
<Text>A district unique to Majestic Felines. Replaces...
</Row> ★追加
<Row Tag="LOC_TRAIT_CIVILIZATION_DISTRICT_hogehoge_NAM...
<Text>Majestic Felines unique District: Industrial Pa...
</Row> ★追加
<Row Tag="LOC_PEDIA_BUILDINGS_PAGE_DISTRICT_hogehoge_C...
<Text></Text> ★追加
</Row> ★追加
</LocalizedText>
</GameData>
** Artdefの記述 [#n0d4207b]
区域の見た目を設定します。
ユニークユニットと同様、既存の使いまわしでいきます。
まずは新規にartdefファイルを作成してください。ファイル名...
バニラの区域のArtdefファイルは
Sid Meier's Civilization VI/Base/Artdefs/Districts.artdef
ですので、ここから「DISTRICT_NEIGHBORHOOD」のものを探し出...
書き換えたものは以下になります。
<?xml version="1.0" encoding="UTF-8" ?>
<AssetObjects:ArtDefSet>
<m_Version>
<major>3</major>
<minor>0</minor>
<build>202</build>
<revision>872</revision>
</m_Version>
<m_TemplateName text="Districts"/>
<m_RootCollections>
<Element>
<m_CollectionName text="District"/>
<m_ReplaceMergedCollectionElements>false</m_ReplaceMe...
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:BoolValue">
<m_bValue>false</m_bValue>
<m_ParamName text="CanAffectBuildings"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections>
<Element>
<m_CollectionName text="Landmark"/>
<m_ReplaceMergedCollectionElements>false</m_Replac...
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="DISTRICT_NEIGHBORHOOD"/>
<m_RootCollectionName text="Districts"/>
<m_ArtDefPath text="Landmarks.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLock...
<m_TemplateName text="Landmarks"/>
<m_ParamName text="Xref"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="Landmark001"/>
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
</Element>
<Element>
<m_CollectionName text="StrategicView"/>
<m_ReplaceMergedCollectionElements>false</m_Replac...
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="Neighborhood"/>
<m_RootCollectionName text="Districts"/>
<m_ArtDefPath text="StrategicView.artdef"/>
<m_CollectionIsLocked>false</m_CollectionIsLoc...
<m_TemplateName text="StrategicView"/>
<m_ParamName text="XrefName"/>
</Element>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="Completed"/>
<m_RootCollectionName text="BuildStates"/>
<m_ArtDefPath text="Districts.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLock...
<m_TemplateName text="Districts"/>
<m_ParamName text="State"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="StrategicView001"/>
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="Neighborhood_Pillaged"/>
<m_RootCollectionName text="Districts"/>
<m_ArtDefPath text="StrategicView.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLock...
<m_TemplateName text="StrategicView"/>
<m_ParamName text="XrefName"/>
</Element>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="Pillaged"/>
<m_RootCollectionName text="BuildStates"/>
<m_ArtDefPath text="Districts.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLock...
<m_TemplateName text="Districts"/>
<m_ParamName text="State"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="StrategicView002"/>
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="Neighborhood_UnderConstru...
<m_RootCollectionName text="Districts"/>
<m_ArtDefPath text="StrategicView.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLock...
<m_TemplateName text="StrategicView"/>
<m_ParamName text="XrefName"/>
</Element>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="UnderConstruction"/>
<m_RootCollectionName text="BuildStates"/>
<m_ArtDefPath text="Districts.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLock...
<m_TemplateName text="Districts"/>
<m_ParamName text="State"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="StrategicView003"/>
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
</Element>
<Element>
<m_CollectionName text="Audio"/>
<m_ReplaceMergedCollectionElements>false</m_Replac...
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:StringValue">
<m_Value text="Build_District_Neighborhood"/>
<m_ParamName text="XrefName"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="Build_District_Neighborhood"/>
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
</Element>
<Element>
<m_CollectionName text="AmbPlay"/>
<m_ReplaceMergedCollectionElements>false</m_Replac...
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:StringValue">
<m_Value text="PLAY_AMBIENCE_DISTRICT_NEIGHBOR...
<m_ParamName text="XrefName"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="PLAY_AMBIENCE_DISTRICT_NEIGHBORHOOD...
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
</Element>
<Element>
<m_CollectionName text="AmbStop"/>
<m_ReplaceMergedCollectionElements>false</m_Replac...
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:StringValue">
<m_Value text="STOP_AMBIENCE_DISTRICT_NEIGHBOR...
<m_ParamName text="XrefName"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="STOP_AMBIENCE_DISTRICT_NEIGHBORHOOD...
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
</Element>
</m_ChildCollections>
<m_Name text="DISTRICT_hogehoge"/> ★ここを「DISTRICT...
<m_AppendMergedParameterCollections>false</m_AppendM...
</Element>
</Element>
<Element>
<m_CollectionName text="BuildStates"/>
<m_ReplaceMergedCollectionElements>false</m_ReplaceMe...
<Element>
<m_Fields>
<m_Values/>
</m_Fields>
<m_ChildCollections/>
<m_Name text="Completed"/>
<m_AppendMergedParameterCollections>false</m_AppendM...
</Element>
<Element>
<m_Fields>
<m_Values/>
</m_Fields>
<m_ChildCollections/>
<m_Name text="Pillaged"/>
<m_AppendMergedParameterCollections>false</m_AppendM...
</Element>
<Element>
<m_Fields>
<m_Values/>
</m_Fields>
<m_ChildCollections/>
<m_Name text="UnderConstruction"/>
<m_AppendMergedParameterCollections>false</m_AppendM...
</Element>
</Element>
</m_RootCollections>
</AssetObjects:ArtDefSet>
** Mod.Art.xmlへの登録 [#jeefcc4d]
記述したArtdefファイルをMod.Art.xmlへ登録します。hogehoge...
<Element>
<consumerName text="Landmarks"/>
<relativeArtDefPaths>
<Element text="hogehoge_D...
</relativeArtDefPaths>
<libraryDependencies>
<Element text="CityBuildings"/>
<Element text="TileBase"/>
<Element text="RouteDecalMaterial"/>
</libraryDependencies>
<loadsLibraries>true</loadsLibraries>
</Element>
<Element>
<consumerName text="WorldView_Translate"/>
<relativeArtDefPaths>
<Element text="hogehoge_Districts.artdef"/> ★追加
</relativeArtDefPaths>
<libraryDependencies/>
<loadsLibraries>false</loadsLibraries>
</Element>
<Element>
<consumerName text="StrategicView_Translate"/>
<relativeArtDefPaths>
<Element text="hogehoge_Districts.artdef"/> ★追加
</relativeArtDefPaths>
<libraryDependencies/>
<loadsLibraries>false</loadsLibraries>
</Element>
** アイコンの作成 [#d73d6558]
区域のアイコンに必要なのは256,128,80,50,38,32のサイズのも...
ですが・・・
今回は既存の近郊部のアイコンを使いまわす方法を記載します。
\Sid Meier's Civilization VI\Base\Assets\UI\Icons
以下の、Icons_Districts.xml内。IconDefinitionsから使いた...
・
・
・
<Row Name="ICON_DISTRICT_hogehoge" Atlas="ICON_ATLAS_D...
</IconDefinitions>
</GameData>
** ビルド・動作確認 [#b3c2b84e]
これで完成です。ビルドして動作確認してみましょう。
文明選択画面
&ref(SelectUD.jpg);
Loading画面
&ref(LoadingUD.jpg);
解禁の条件が都市化ですので、スタートを近代以降にして開始...
まず工業地帯を設置し、その隣に今回作った区域を設置してみ...
隣接ボーナスで生産力+2が付いていれば成功です。
&ref(UD.jpg);
** 備考 [#j106512a]
上記サンプルでは、工業地域で制作していますが、それ以外は
|都心|CITY_CENTER|
|キャンパス|CAMPUS|
|聖地|HOLY_SITE|
|兵営|ENCAMPMENT|
|商業ハブ|COMMERCIAL_HUB|
|総合娯楽施設|ENTERTAINMENT_COMPLEX|
|劇場広場|THEATER|
|工業地帯|INDUSTRIAL_ZONE|
こんな感じです。
より詳しくは、
\Sid Meier's Civilization VI\Base\Assets\Gameplay\Data
以下のDistricts.xmlに定義があります。
また、傑作枠のある建造物が立つ区域に関してはFontIconの定...
これを足し忘れると、敵文明で登場させた際、スパイの「傑作...
※他にもあるかもしれませんが、いまのところ筆者がわかってい...
例えば劇場広場を置換する区域がそうです(劇場広場には美術館...
バニラだとアクロポリスが該当。
Iconの記述に以下のように書き加えてください。
<Row Name="DISTRICT_hogehoge" Atlas="ICON_ATLAS_FONT_ICO...
これで劇場広場のアイコンが表示されるようになります。
Indexの番号を変えれば他のアイコンにもできますので、傑作枠...
バニラのFontIconの定義はBase\Assets\UI\Icons\FontIcons.xm...
ここまで作業したものを以下に置いておきます。
https://www.axfc.net/u/3836466
終了行:
* ユニーク区域の作成 [#vc2e7c53]
例として一番単純な区域(建造物がないもの)である近郊部の置...
近郊部の効果を一部ンバンザに近いものにし、工業地帯に接す...
(これもすでに公開しているMODで・・・)
** xmlの記述 [#x1387994]
*** NewLeader_District.xml [#l116581e]
ユニークユニットでやったように新しくxmlファイルを作ります。
ファイル名は「NewLeader_District.xml」としてください。作...
内容は近郊部の定義をコピーして書き換えます。近郊部の定義...
また、わかりやすくアピールによる住宅の変動はなしで5固定(...
隣接ボーナスは他の区域のものを参考に書いてみます。
で、実際には以下の内容となります。
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
<Types>
<Row Type="DISTRICT_hogehoge" Kind="KIND_DISTRICT"/>
</Types>
<DistrictReplaces>
<Row CivUniqueDistrictType="DISTRICT_hogehoge" Replace...
</DistrictReplaces>
<Districts>
<Row DistrictType="DISTRICT_hogehoge" Name="LOC_DISTRI...
PrereqCivic="CIVIC_URBANIZATION" PlunderType="PLUNDER_...
Cost="54" CostProgressionModel="COST_PROGRESSION_GAME_...
OnePerCity="false" Aqueduct="false" NoAdjacentCity="fa...
MilitaryDomain="NO_DOMAIN" Housing="5" CityStrengthMod...
</Districts>
<District_Adjacencies>
<Row DistrictType="DISTRICT_hogehoge" YieldChangeId="I...
</District_Adjacencies>
<Adjacency_YieldChanges>
<Row ID="IndustrialZone_Production" Description="LOC_D...
YieldType="YIELD_PRODUCTION" YieldChange="2" TilesRequ...
</Adjacency_YieldChanges>
</GameInfo>
Types:区域の親定義
DistrictReplace:何の区域の置き換えにするか
Districts:区域の詳細設定
|Name|区域名。別ファイルに中身を書きます|
|Description|区域の説明。別ファイルに中身を書きます|
|PrereqCivic|解禁社会制度:CIVIC_URBANIZATION = 都市化|
|PlunderType|略奪で得られるもの:PLUNDER_GOLD = ゴールド|
|PlunderAmount|略奪時のボーナス量|
|AdvisorType|助言者設定|
|Cost|区域の基礎建設コスト|
|CostProgressionModel|コストの上昇モデル?|
|CostProgressionParam1|コストの上昇値?|
|RequiresPlacement|建設に領土が必要かどうか。通常はtrueで...
|RequiresPopulation|建設に人口が必要かどうか。キャンパス...
|OnePerCity|1都市に1つかどうか。近郊部など無制限に作れる...
|Aqueduct|trueにすると、都心区域と真水源の間にのみ建設可...
|NoAdjacentCity|都心に隣接できるかどうか。falseだと隣接で...
|InternalOnly|trueの場合は、文明に1つだけ建設可能になる制...
//|宇宙船部品などの特殊用途専用。trueにすると、都市では直...
|ZOC|ZOCの発生の有無。trueで発生。|
|CaptureRemovesBuildings|占領時に区域内の建造物が略奪状態...
//|trueの場合、この区域のユニットは直接攻撃できない。兵営...
|CaptureRemovesCityDefenses|不明ですがおそらく都心専用。...
|MilitaryDomain|区域を設置したタイルでの戦闘時になんのド...
|Housing|住宅への加算値|
|TraitType|所属特性(ユニークにするなら必須)|
District_Adjacencies:区域の隣接ボーナスの親定義
Adjacency_YieldChanges:区域の隣接ボーナスの詳細設定
|ID|District_Adjacenciesで作成したIDを指定|
|Description|隣接ボーナスの説明|
|YieldType|得られるボーナスの種類|
|YieldChange|得られるボーナスの値|
|TilesRequired|ボーナスを得るために必要なタイルの数|
|AdjacentDistrict|ボーナスを得るための隣接区域|
*** NewLeader_Felines.xml [#h0edb1c5]
ユニークユニットと同様、ユニーク区域も指導者か文明に紐付...
今回は文明側に紐付けます。
<?xml version="1.0" encoding="utf-8"?>
<GameData>
<Types>
<Row Type="CIVILIZATION_FELINE" Kind="KIND_CIVILIZATIO...
<Row Type="TRAIT_CIVILIZATION_BUILDING_LITTER_BOX" Kin...
<Row Type="TRAIT_CIVILIZATION_FELINE" Kind="KIND_TRAIT...
<Row Type="TRAIT_CIVILIZATION_DISTRICT_hogehoge" Kind=...
</Types>
<Civilizations>
<Row>
<CivilizationType>CIVILIZATION_FELINE</CivilizationTy...
<Name>LOC_CIVILIZATION_FELINE_NAME</Name>
<Description>LOC_CIVILIZATION_FELINE_DESCRIPTION</Des...
<Adjective>LOC_CIVILIZATION_FELINE_ADJECTIVE</Adjecti...
<StartingCivilizationLevelType>CIVILIZATION_LEVEL_FUL...
</Row>
</Civilizations>
<CivilizationLeaders>
<Row CivilizationType="CIVILIZATION_FELINE" LeaderType...
</CivilizationLeaders>
<CivilizationCitizenNames>
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
<Row CivilizationType="CIVILIZATION_FELINE" CitizenNam...
</CivilizationCitizenNames>
<CivilizationInfo>
<Row CivilizationType="CIVILIZATION_FELINE" Header="LO...
</CivilizationInfo>
<CivilizationTraits>
<Row CivilizationType="CIVILIZATION_FELINE" TraitType=...
<Row CivilizationType="CIVILIZATION_FELINE" TraitType=...
<Row CivilizationType="CIVILIZATION_FELINE" TraitType=...
</CivilizationTraits>
<Traits>
<Row TraitType="TRAIT_CIVILIZATION_BUILDING_LITTER_BOX...
<Row TraitType="TRAIT_CIVILIZATION_FELINE" Name="LOC_T...
<Row TraitType="TRAIT_CIVILIZATION_DISTRICT_hogehoge" ...
</Traits>
・
・
・
これで文明とユニーク区域がつながりました。
*** NewLeader_Config.xml [#a82bc8a3]
ユニークユニットと同様、ユニーク区域も文明選択時やLoading...
</Row>
<Row> ★追加
<Domain>StandardPlayers</Domain> ★追加
<CivilizationType>CIVILIZATION_FELINE</CivilizationTy...
<LeaderType>LEADER_JASPER_KITTY</LeaderType> ★追加
<Type>DISTRICT_hogehoge</Type> ★追加
<Name>LOC_DISTRICT_hogehoge_NAME</Name> ★追加
<Description>LOC_DISTRICT_hogehoge_DESCRIPTION</Descr...
<Icon>ICON_DISTRICT_hogehoge</Icon> ★追加
<SortIndex>30</SortIndex> ★追加
</Row> ★追加
</PlayerItems>
</GameData>
*** NewLeader_ConfigText.xml [#u7976574]
ユニークユニットと同様、名称や説明などを書きます。
<Row Tag="LOC_DISTRICT_hogehoge_NAME" Language="en_US"...
<Text>Industrial Park</Text> ★追加
</Row> ★追加
<Row Tag="LOC_DISTRICT_hogehoge_DESCRIPTION" Language=...
<Text>A district unique to Majestic Felines. Replaces...
</Row> ★追加
<Row Tag="LOC_TRAIT_CIVILIZATION_DISTRICT_hogehoge_NAM...
<Text>Majestic Felines unique District: Industrial Pa...
</Row> ★追加
<Row Tag="LOC_PEDIA_BUILDINGS_PAGE_DISTRICT_hogehoge_C...
<Text></Text> ★追加
</Row> ★追加
</LocalizedText>
</GameData>
** Artdefの記述 [#n0d4207b]
区域の見た目を設定します。
ユニークユニットと同様、既存の使いまわしでいきます。
まずは新規にartdefファイルを作成してください。ファイル名...
バニラの区域のArtdefファイルは
Sid Meier's Civilization VI/Base/Artdefs/Districts.artdef
ですので、ここから「DISTRICT_NEIGHBORHOOD」のものを探し出...
書き換えたものは以下になります。
<?xml version="1.0" encoding="UTF-8" ?>
<AssetObjects:ArtDefSet>
<m_Version>
<major>3</major>
<minor>0</minor>
<build>202</build>
<revision>872</revision>
</m_Version>
<m_TemplateName text="Districts"/>
<m_RootCollections>
<Element>
<m_CollectionName text="District"/>
<m_ReplaceMergedCollectionElements>false</m_ReplaceMe...
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:BoolValue">
<m_bValue>false</m_bValue>
<m_ParamName text="CanAffectBuildings"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections>
<Element>
<m_CollectionName text="Landmark"/>
<m_ReplaceMergedCollectionElements>false</m_Replac...
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="DISTRICT_NEIGHBORHOOD"/>
<m_RootCollectionName text="Districts"/>
<m_ArtDefPath text="Landmarks.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLock...
<m_TemplateName text="Landmarks"/>
<m_ParamName text="Xref"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="Landmark001"/>
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
</Element>
<Element>
<m_CollectionName text="StrategicView"/>
<m_ReplaceMergedCollectionElements>false</m_Replac...
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="Neighborhood"/>
<m_RootCollectionName text="Districts"/>
<m_ArtDefPath text="StrategicView.artdef"/>
<m_CollectionIsLocked>false</m_CollectionIsLoc...
<m_TemplateName text="StrategicView"/>
<m_ParamName text="XrefName"/>
</Element>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="Completed"/>
<m_RootCollectionName text="BuildStates"/>
<m_ArtDefPath text="Districts.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLock...
<m_TemplateName text="Districts"/>
<m_ParamName text="State"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="StrategicView001"/>
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="Neighborhood_Pillaged"/>
<m_RootCollectionName text="Districts"/>
<m_ArtDefPath text="StrategicView.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLock...
<m_TemplateName text="StrategicView"/>
<m_ParamName text="XrefName"/>
</Element>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="Pillaged"/>
<m_RootCollectionName text="BuildStates"/>
<m_ArtDefPath text="Districts.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLock...
<m_TemplateName text="Districts"/>
<m_ParamName text="State"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="StrategicView002"/>
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="Neighborhood_UnderConstru...
<m_RootCollectionName text="Districts"/>
<m_ArtDefPath text="StrategicView.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLock...
<m_TemplateName text="StrategicView"/>
<m_ParamName text="XrefName"/>
</Element>
<Element class="AssetObjects:ArtDefReferenceVal...
<m_ElementName text="UnderConstruction"/>
<m_RootCollectionName text="BuildStates"/>
<m_ArtDefPath text="Districts.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLock...
<m_TemplateName text="Districts"/>
<m_ParamName text="State"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="StrategicView003"/>
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
</Element>
<Element>
<m_CollectionName text="Audio"/>
<m_ReplaceMergedCollectionElements>false</m_Replac...
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:StringValue">
<m_Value text="Build_District_Neighborhood"/>
<m_ParamName text="XrefName"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="Build_District_Neighborhood"/>
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
</Element>
<Element>
<m_CollectionName text="AmbPlay"/>
<m_ReplaceMergedCollectionElements>false</m_Replac...
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:StringValue">
<m_Value text="PLAY_AMBIENCE_DISTRICT_NEIGHBOR...
<m_ParamName text="XrefName"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="PLAY_AMBIENCE_DISTRICT_NEIGHBORHOOD...
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
</Element>
<Element>
<m_CollectionName text="AmbStop"/>
<m_ReplaceMergedCollectionElements>false</m_Replac...
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:StringValue">
<m_Value text="STOP_AMBIENCE_DISTRICT_NEIGHBOR...
<m_ParamName text="XrefName"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="STOP_AMBIENCE_DISTRICT_NEIGHBORHOOD...
<m_AppendMergedParameterCollections>false</m_Appe...
</Element>
</Element>
</m_ChildCollections>
<m_Name text="DISTRICT_hogehoge"/> ★ここを「DISTRICT...
<m_AppendMergedParameterCollections>false</m_AppendM...
</Element>
</Element>
<Element>
<m_CollectionName text="BuildStates"/>
<m_ReplaceMergedCollectionElements>false</m_ReplaceMe...
<Element>
<m_Fields>
<m_Values/>
</m_Fields>
<m_ChildCollections/>
<m_Name text="Completed"/>
<m_AppendMergedParameterCollections>false</m_AppendM...
</Element>
<Element>
<m_Fields>
<m_Values/>
</m_Fields>
<m_ChildCollections/>
<m_Name text="Pillaged"/>
<m_AppendMergedParameterCollections>false</m_AppendM...
</Element>
<Element>
<m_Fields>
<m_Values/>
</m_Fields>
<m_ChildCollections/>
<m_Name text="UnderConstruction"/>
<m_AppendMergedParameterCollections>false</m_AppendM...
</Element>
</Element>
</m_RootCollections>
</AssetObjects:ArtDefSet>
** Mod.Art.xmlへの登録 [#jeefcc4d]
記述したArtdefファイルをMod.Art.xmlへ登録します。hogehoge...
<Element>
<consumerName text="Landmarks"/>
<relativeArtDefPaths>
<Element text="hogehoge_D...
</relativeArtDefPaths>
<libraryDependencies>
<Element text="CityBuildings"/>
<Element text="TileBase"/>
<Element text="RouteDecalMaterial"/>
</libraryDependencies>
<loadsLibraries>true</loadsLibraries>
</Element>
<Element>
<consumerName text="WorldView_Translate"/>
<relativeArtDefPaths>
<Element text="hogehoge_Districts.artdef"/> ★追加
</relativeArtDefPaths>
<libraryDependencies/>
<loadsLibraries>false</loadsLibraries>
</Element>
<Element>
<consumerName text="StrategicView_Translate"/>
<relativeArtDefPaths>
<Element text="hogehoge_Districts.artdef"/> ★追加
</relativeArtDefPaths>
<libraryDependencies/>
<loadsLibraries>false</loadsLibraries>
</Element>
** アイコンの作成 [#d73d6558]
区域のアイコンに必要なのは256,128,80,50,38,32のサイズのも...
ですが・・・
今回は既存の近郊部のアイコンを使いまわす方法を記載します。
\Sid Meier's Civilization VI\Base\Assets\UI\Icons
以下の、Icons_Districts.xml内。IconDefinitionsから使いた...
・
・
・
<Row Name="ICON_DISTRICT_hogehoge" Atlas="ICON_ATLAS_D...
</IconDefinitions>
</GameData>
** ビルド・動作確認 [#b3c2b84e]
これで完成です。ビルドして動作確認してみましょう。
文明選択画面
&ref(SelectUD.jpg);
Loading画面
&ref(LoadingUD.jpg);
解禁の条件が都市化ですので、スタートを近代以降にして開始...
まず工業地帯を設置し、その隣に今回作った区域を設置してみ...
隣接ボーナスで生産力+2が付いていれば成功です。
&ref(UD.jpg);
** 備考 [#j106512a]
上記サンプルでは、工業地域で制作していますが、それ以外は
|都心|CITY_CENTER|
|キャンパス|CAMPUS|
|聖地|HOLY_SITE|
|兵営|ENCAMPMENT|
|商業ハブ|COMMERCIAL_HUB|
|総合娯楽施設|ENTERTAINMENT_COMPLEX|
|劇場広場|THEATER|
|工業地帯|INDUSTRIAL_ZONE|
こんな感じです。
より詳しくは、
\Sid Meier's Civilization VI\Base\Assets\Gameplay\Data
以下のDistricts.xmlに定義があります。
また、傑作枠のある建造物が立つ区域に関してはFontIconの定...
これを足し忘れると、敵文明で登場させた際、スパイの「傑作...
※他にもあるかもしれませんが、いまのところ筆者がわかってい...
例えば劇場広場を置換する区域がそうです(劇場広場には美術館...
バニラだとアクロポリスが該当。
Iconの記述に以下のように書き加えてください。
<Row Name="DISTRICT_hogehoge" Atlas="ICON_ATLAS_FONT_ICO...
これで劇場広場のアイコンが表示されるようになります。
Indexの番号を変えれば他のアイコンにもできますので、傑作枠...
バニラのFontIconの定義はBase\Assets\UI\Icons\FontIcons.xm...
ここまで作業したものを以下に置いておきます。
https://www.axfc.net/u/3836466
ページ名:
Tweet