OurOhnlyHope
Chieftain
- Joined
- Mar 1, 2021
- Messages
- 3
Hey all,
I've been lurking on these forums since the heyday of Civ 4 and finally tried out modding Civ 6. My sister enjoys the game but doesn't survive long when playing against me and my friends in multiplayer. I was trying to create a mod that buffs the Inca so she stops getting killed by even the AI on Chieftan.
My SQL mod is registered in the "Additional Content" section of the main menu screen. When I load a game none of the buffs apply. I queried the GameplayDebug.sqlite and did not see any of my table updates where they should be. Other updates from other mods (including those I based this off of) do show up correctly.
I should preface by saying that I understand what I am trying to do conceptually, but I have a learning disability so executing that is not easy for me. If anyone has any advice on where I've gone wrong I would appreciate it.
Changes.modfinfo file:
Code.sql:
The above is the totality of code I wrote. The game has no problem recognizing the data in the mod.info file.
The idea behind these buffs was to just give the Inca civ the foreign key traits that other civs use. If this methodology is flawed I'm more than willing to trash the code and write some production and food increases from the ground up.
I based my template off of Isau's Modding with SQLite tutorial, for those who are wondering.
Thank you again to anyone who can suggest what I did wrong.
I've been lurking on these forums since the heyday of Civ 4 and finally tried out modding Civ 6. My sister enjoys the game but doesn't survive long when playing against me and my friends in multiplayer. I was trying to create a mod that buffs the Inca so she stops getting killed by even the AI on Chieftan.
My SQL mod is registered in the "Additional Content" section of the main menu screen. When I load a game none of the buffs apply. I queried the GameplayDebug.sqlite and did not see any of my table updates where they should be. Other updates from other mods (including those I based this off of) do show up correctly.
I should preface by saying that I understand what I am trying to do conceptually, but I have a learning disability so executing that is not easy for me. If anyone has any advice on where I've gone wrong I would appreciate it.
Changes.modfinfo file:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="9bc14b36-d19c-47c7-89a2-5e1b9b06c61b" version="1">
<Properties>
<Name>Inca Buff</Name>
<Teaser>This mod gives the Inca some advantages. </Teaser>
<Description>This mod buffs the Inca. I made this for my sister, who is quite bad at this game.</Description>
<Authors>OurOhnlyHope</Authors>
<CompatibleVersions>1.2,2.0</CompatibleVersions>
</Properties>
<!-- Different parts of the mod -->
<Components>
<UpdateDatabase id="INCA_BUFF_PATCH">
<Items>
<File>Code.sql</File>
</Items>
</UpdateDatabase>
</Components>
</Mod>
Code.sql:
Code:
--===================================
-- SQL by OurOhnlyHope
--===================================
-- Inca Buff Patch
-------------------------------------
-------------------------------------
-- Civilization Buffs so Ally doesn't get ganked on turn 60 by Canada anymore
-------------------------------------
INSERT INTO CivilziationTraits
(CivilizationType, TraitType)
VALUES ('CIVILIZATION_INCA', 'TRAIT_CIVILIZATION_LAND_DOWN_UNDER'),
('CIVILIZATION_INCA', 'TRAIT_CIVILIZATION_EJERCITO_PATRIOTA'),
('CIVILIZATION_INCA', 'TRAIT_CIVILIZATION_IMPERIAL_FREE_CITIES'),
('CIVILIZATION_INCA', 'TRAIT_CIVILIZATION_SCOTTISH_ENLIGHTENMENT'),
('CIVILIZATION_INCA', 'TRAIT_CIVILIZATION_PLATOS_REPUBLIC'),
('CIVILIZATION_INCA', 'TRAIT_CIVILIZATION_ADJACENT_DISTRICTS'),
('CIVILIZATION_INCA', 'TRAIT_CIVILIZAITON_ALL_ROADS_TO_ROME'),
('CIVILIZATION_INCA', 'TRAIT_CIVILIZATION_MONGOLIAN_ORTOO');
-------------------------------------
-- Leader Buffs in case the above isn't even enough
-------------------------------------
INSERT INTO LeaderTraits
(LeaderType, TraitType)
VALUES ('LEADER_PACHACUTI', 'TRAIT_LEADER_GIFTS_FOR_TLATOANI');
The above is the totality of code I wrote. The game has no problem recognizing the data in the mod.info file.
The idea behind these buffs was to just give the Inca civ the foreign key traits that other civs use. If this methodology is flawed I'm more than willing to trash the code and write some production and food increases from the ground up.
I based my template off of Isau's Modding with SQLite tutorial, for those who are wondering.
Thank you again to anyone who can suggest what I did wrong.