I've inserted new ones using SQL, but I don't see why you couldn't update as well.Anyone knows if we can update IconDefinitions using SQL ?
I've inserted new ones using SQL, but I don't see why you couldn't update as well.Anyone knows if we can update IconDefinitions using SQL ?
JFD & Sukritact do INSERT all the time.Anyone knows if we can update IconDefinitions using SQL ?
Or is this one XML only ?
INSERT OR REPLACE INTO IconDefinitions
INSERT OR REPLACE INTO IconDefinitions
(Name, Atlas, Index)
SELECT 'ICON_' || W.NewUnitType, I.Atlas, I.Index
FROM IconDefinitions AS I, WarfareExpandedReplaces AS W WHERE I.Name = 'ICON_' || (SELECT ReplacesUnitType FROM WarfareExpandedReplaces);
INSERT OR REPLACE INTO IconDefinitions
(Name, Atlas, "Index")
SELECT 'ICON_' || W.NewUnitType, I.Atlas, I.[Index]
FROM IconDefinitions AS I, WarfareExpandedReplaces AS W WHERE I.Name = 'ICON_' || (SELECT ReplacesUnitType FROM WarfareExpandedReplaces);
CREATE TABLE IF NOT EXISTS WarfareExpandedReplaces (
NewUnitType TEXT NOT NULL,
ReplacesUnitType TEXT NOT NULL,
PRIMARY KEY(NewUnitType ),
FOREIGN KEY (ReplacesUnitType) REFERENCES Units(UnitType) ON DELETE CASCADE ON UPDATE CASCADE
);
I have a GameData file where I define the unique leader trait as follows.Selection screen depends on your configuration, and loading screen on your traits, maybe you forgot to assign traittype to your items.
I have a GameData file where I define the unique leader trait as follows.
<Types>
<Row Type="MY_CUSTOM_LEADER" Kind="KIND_LEADER"/>
<Row Type="TRAIT_MY_CUSTOM_TRAIT" Kind="KIND_TRAIT"/>
</Types>
<LeaderTraits>
<Row LeaderType="MY_CUSTOM_LEADER" TraitType="TRAIT_MY_CUSTOM_TRAIT"/>
</LeaderTraits>
<Traits>
<Row TraitType="TRAIT_MY_CUSTOM_TRAIT" Name="LOC_TRAIT_MY_CUSTOM_TRAIT_NAME" Description="LOC_TRAIT_MY_CUSTOM_TRAIT_DESCRIPTION"/>
</Traits>
The text for TRAIT_MY_CUSTOM_TRAIT are located in a ConfigText File and everything shows up fine in the character selection....I also made sure in the project to add ConfigText to both the Front-End Actions and In-Game Actions, but in the loading screen the custom trait just isn't there. It's very odd.
Well, I think of Lua Script, if you adjacent to city center you eventually can get that building you want. For that you need a Lua file and a modinfo file. Check out this tutorial: https://forums.civfanatics.com/threads/civ-6-modding-tools-basics.634429/