1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  3. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  4. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  5. Dismiss Notice
  6. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

Help with a simple mod

Discussion in 'Mod Creation Help' started by Zeronix, Jan 21, 2018.

  1. Zeronix

    Zeronix Chieftain

    Joined:
    Jan 21, 2018
    Messages:
    12
    Gender:
    Male
    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.
     
  2. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    5,498
    Location:
    Illinois, USA
    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
     
  3. Zeronix

    Zeronix Chieftain

    Joined:
    Jan 21, 2018
    Messages:
    12
    Gender:
    Male
    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.
     
  4. Zeronix

    Zeronix Chieftain

    Joined:
    Jan 21, 2018
    Messages:
    12
    Gender:
    Male
    Attached the file here if you need it:
     

    Attached Files:

  5. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    5,498
    Location:
    Illinois, USA
    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>
     
  6. Zeronix

    Zeronix Chieftain

    Joined:
    Jan 21, 2018
    Messages:
    12
    Gender:
    Male
    Oh, that fixed it. Thanks!
     

Share This Page

Ebates: Get Paid to Shop