Help with a simple mod

Zeronix

Chieftain
Joined
Jan 21, 2018
Messages
12
I'm trying to make an extremely simple mod where I increase the defensive strength bonus of Palace Guards to +13 instead of +3, but it isn't working, and I can't figure out why.

My code:
Screenshot_1.png


Would greatly appreciate any help.
 
Would need to look at the mod itself to diagnose why it is not working.

The SQL code looks ok, but a picture of isolated code snippets doesn't really tell us anything about what you may be doing wrong

Zip the mod from the game's MODS folder and attach to a post
 
Hey, thanks for the reply!

That is actually the entire mod, sorry if I didn't make it clear. The SQL is shown here:
Screenshot_2.png


It's supposed to just change the 3 in the first row of the Value column to 13, but somehow it's not working for me.
 
Your mod does not actually do anything. There is no "action" defined for the mod to take with the SQL file.
Spoiler your modinfo :
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="64d6c087-6520-4468-85d2-11d4d1a4a2b3" version="1">
  <Properties>
    <Name>Zeronix's Stronger Capitals</Name>
    <Description>Gives +10 combat strength to capital cities.</Description>
    <Teaser>Gives +10 combat strength to capital cities.</Teaser>
    <Authors>Zeronix</Authors>
  </Properties>
  <Files>
    <File>CapitalStrengthBuff.sql</File>
  </Files>
</Mod>
This is the modinfo file for a mod called "My Civ6 Changes". Note the differences between this modinfo file and yours with regard to the SQL file
Spoiler My Civ6 Changes modinfo :
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="1d937889-0d2a-46a3-9792-ad82ca2aa354" version="1">
  <Properties>
    <Name>My Civ6 Changes</Name>
    <Description>Allows the inexperienced mod-maker to dump their xml or sql code into a prepackaged mod</Description>
    <Teaser>Allows the inexperienced mod-maker to dump their xml or sql code into a prepackaged mod</Teaser>
    <Authors>Lee</Authors>
  </Properties>
  <InGameActions>
	<UpdateDatabase id="SQL_Changes">
		<File>MyCiv6SQL_Changes.sql</File>
	</UpdateDatabase>
        .....snipped out some stuff..............
  </InGameActions>
  <Files>
    <File>MyCiv6SQL_Changes.sql</File>
        .....snipped out some stuff..............
  </Files>
</Mod>
 
Back
Top Bottom