1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Help with SQL/XML

Discussion in 'Civ5 - Creation & Customization' started by mr.manager1225, Jul 21, 2013.

  1. mr.manager1225

    mr.manager1225 Chieftain

    Joined:
    Jul 21, 2013
    Messages:
    10
    So, I made a new resolution in the World Congress. But, I'm having trouble actually getting my custom XML tag <MilitaryEmbargoPlayer> to work. Does anyone have any idea how to insert this into the table Resolutions?

    ALTER TABLE Resolutions ADD MilitaryEmbargoPlayer boolean;

    ^^^ is my SQL code right now. I've imported it into VFS (true) and also OnModActivated the entire thing. I look at my Database.log and everytime I load the mod to see if the resolution is in-game, it says table Resolution doesn't hold "MilitaryEmbargoPlayer>

    HELP!
     
  2. PawelS

    PawelS Ancient Druid

    Joined:
    Dec 11, 2003
    Messages:
    2,803
    Location:
    Poland
    SQLite doesn't support boolean. Use integer instead (0 for false, 1 for true).

    (You don't have to import SQL files into the VFS, you just need to use OnModActivated.)
     
  3. Gilgamesch

    Gilgamesch Ancient Alien

    Joined:
    Dec 15, 2010
    Messages:
    2,228
    Location:
    good old germany
    Dumb to post it here, but i cant send you pm messages.
    Grr wrote one....
    Please check your settings, or is the fanatic newbies limit changed?
     

Share This Page