<GameData>
<LocalizedText>
<!-- Names -->
<Row Tag="LOC_TCS_ABILITY_ARMOR_NAME" Language="en_US">
<Text>Iron Armor</Text>
</Row>
<!-- Full description -->
<Row Tag="LOC_TCS_ABILITY_ARMOR_DESCRIPTION" Language="en_US">
<Text>+5 [ICON_Strength] Combat Strength from iron resource.</Text>
</Row>
<!-- Combat preview description -->
<Row Tag="LOC_TCS_ABILITY_ARMOR_MODIFIER_DESCRIPTION" Language="en_US">
<Text>{1_Amount} Combat Strength from armor.</Text>
</Row>
</LocalizedText>
</GameData>
<?xml version="1.0" encoding="utf-8"?>
<Mod id="36e88483-48fe-4545-b85f-bafc50ddfz48" version="1">
<Properties>
<Name>Victorian Civ</Name>
<Stability>Alpha</Stability>
<Teaser>Victorian Era Conversion of Civ 6</Teaser>
<Description>Victorian era CIV VI</Description>
<Authors>VictorianCiv</Authors>
</Properties>
<Components>
<UpdateDatabase id="VICTORIAN_CIV_DB_UPDATE">
<Items>
<File>VictorianCiv_Routes.xml</File>
</Items>
</UpdateDatabase>
</Components>
</Mod>
<?xml version="1.0" encoding="utf-8"?>
<!-- edit 11/27/2016 VictorianCiv -->
<Routes>
<Update>
<Where RouteType="ROUTE_INDUSTRIAL_ROAD" />
<Set MovementCost="0.2" />
</Update>
<Update>
<Where RouteType="ROUTE_MODERN_ROAD" />
<Set MovementCost="0.05" />
</Update>
</Routes>
<Files>
<File>VictorianCiv_Routes.xml</File>
</Files>
<?xml version="1.0" encoding="utf-8"?>
<Mod id="36e88483-48fe-4545-b85f-bafc50ddfz48" version="1">
<Properties>
<Name>Victorian Civ</Name>
<Stability>Alpha</Stability>
<Teaser>Victorian Era Conversion of Civ 6</Teaser>
<Description>Victorian era CIV VI</Description>
<Authors>VictorianCiv</Authors>
</Properties>
<Files>
<File>VictorianCiv_Routes.xml</File>
</Files>
<Components>
<UpdateDatabase id="VICTORIAN_CIV_DB_UPDATE">
<Items>
<File>VictorianCiv_Routes.xml</File>
</Items>
</UpdateDatabase>
</Components>
</Mod>
<?xml version="1.0" encoding="utf-8"?>
<!-- edit 11/27/2016 VictorianCiv -->
<Routes>
<Update>
<Where RouteType="ROUTE_INDUSTRIAL_ROAD" />
<Set MovementCost="0.2" />
</Update>
<Update>
<Where RouteType="ROUTE_MODERN_ROAD" />
<Set MovementCost="0.05" />
</Update>
</Routes>
<?xml version="1.0" encoding="utf-8"?>
<!-- edit 11/27/2016 VictorianCiv -->
<GameInfo>
<Routes>
<Update>
<Where RouteType="ROUTE_INDUSTRIAL_ROAD" />
<Set MovementCost="0.2" />
</Update>
<Update>
<Where RouteType="ROUTE_MODERN_ROAD" />
<Set MovementCost="0.05" />
</Update>
</Routes>
</GameInfo>
Hmmm, still not working after adding the Files entry. Is there a particular log file I can check to see what's failing?
Also, where does the SQLite DB file get updated? Does it update the Debug ones under the User\Cache directory? If so, how do you revert changes back when you unload a mod?
Trying to understand the overall file structure here.
<?xml version="1.0" encoding="utf-8"?>
<!-- edit 11/27/2016 VictorianCiv -->
<GameInfo>
<Routes>
<Update>
<Where RouteType="ROUTE_INDUSTRIAL_ROAD" />
<Set MovementCost="0.2" />
</Update>
<Update>
<Where RouteType="ROUTE_MODERN_ROAD" />
<Set MovementCost="0.05" />
</Update>
</Routes>
</GameInfo>
UPDATE Routes SET MovementCost = 0.2 WHERE RouteType = "ROUTE_INDUSTRIAL_ROAD";
UPDATE Routes SET MovementCost = 0.05 WHERE RouteType = "ROUTE_MODERN_ROAD";
<ShowInBrowser>AlwaysHidden</ShowInBrowser>
<Dependencies>
<Mod id="" title="" />
</Dependencies>
<References>
<Mod id="" title="" />
</References>
<Blocks>
<Mod id="" title="" />
</Blocks>
<Mod id="08B8AACB-63EC-8E51-5086-24A939A317Ab" version="12">
<Properties>
<Name>My Mod</Name>
<Stability>Alpha</Stability>
<Teaser>My mod</Teaser>
<Description>My great mod</Description>
<Authors>Cyril PREISS</Authors>
<ShowInBrowser>Show</ShowInBrowser>
<EnabledByDefault>1</EnabledByDefault>
<EnabledAtStartup>1</EnabledAtStartup>
</Properties>
<Dependencies />
<References />
<Blocks />
<Components>
<UpdateDatabase id="UPDATE_DATA">
<Items>
<File>Data/Civilizations.xml</File>
</Items>
</UpdateDatabase>
</Components>
<Files>
<File>Data/Civilizations.xml</File>
</Files>
</Mod>
Can you attach the Civilizations.xml file from in your mod ? (or better yet zip and attach the mod itself). I suspect I know the issue but would like to confirm.
@cyrilp,
Your problem is probably that you just copied Civilizations.xml, which is inserting rows. When you mod runs, those rows are already inserted, so trying to insert them again is failing. You'll need to include just the rows you want to change and use <UPDATE> or <REPLACE>.
Thanks !The OP for .modinfo has a typo of "<Property>" for "<Properties>"--it should be the latter for all elements.
A quick glance at the parsing disassembly shows the following elements off the root:
Code:<Dependencies> <Mod id="" title="" /> </Dependencies> <References> <Mod id="" title="" /> </References> <Blocks> <Mod id="" title="" /> </Blocks>
<Dependencies> may be broken, though, it looks like it may expect it to open with <Dependencies> and close with </Depends>, though I haven't analyzed it enough to be certain. There's definitely a "Depends" after "Dependencies" where it would be closing the element for all the others, though.
Also, there is a "Priority" that can be associated with <File> under <Components> and <Settings>, though I haven't analyzed it enough to see if it's a child element or an attribute (I'd guess the latter), and I have no idea what it would do. It appears in the ComponentFiles and SettingFiles tables as an integer in Mods.sqlite--my best guess would be it is supposed to control the load order if for some reason you needed to do so.
<Depends>
<Dependencies>
<Mod id="" title="" />
</Dependencies>
<References>
<Mod id="" title="" />
</References>
<Blocks>
<Mod id="" title="" />
</Blocks>
</Depends>
<EnabledAtStartup>1</EnabledAtStartup>