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

Coding Error?

Discussion in 'Civ4 - Creation & Customization' started by Lost King, Jul 13, 2010.

  1. Lost King

    Lost King Chieftain

    Joined:
    Jul 12, 2010
    Messages:
    4
    Well, I'm new to modding and scenario creating, this is my first true scenario (file) that I am working on. Originally, the scenario worked, however after I began changing the civics of the civs, the game began crashing after the first turn. My first error was simple *CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLVAERY* Next I gave Napoleon a civic that was ahead of his time period- State_Property in Renaissance Game. Fixed that (Returned to Despotism) Now I am once again having periodic problems. I looked it over a few times and I'm not sure what I'm missing/messing up on.

    I will include the actual file as an attachment as well. *

    EndTeam
    BeginPlayer
    Team=0
    LeaderType=LEADER_WASHINGTON
    LeaderName=John Adams
    CivDesc=Federal Party of Maryland
    CivShortDesc=Maryland
    CivAdjective=Federal
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
    WhiteFlag=0
    CivType=CIVILIZATION_AMERICA
    Color=PLAYERCOLOR_BLUE
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=400
    StartingX=2, StartingY=37
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFRAGE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_EMANCIPATION
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=1
    LeaderType=LEADER_WASHINGTON
    LeaderName=James Jackson
    CivDesc=State of Georgia
    CivShortDesc=Georgia
    CivAdjective=Georgian
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
    WhiteFlag=0
    CivType=CIVILIZATION_AMERICA
    Color=PLAYERCOLOR_ORANGE_AND_GREEN
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=125
    StartingX=33, StartingY=2
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFRAGE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=2
    LeaderType=LEADER_WASHINGTON
    LeaderName=John Drayton
    CivDesc=State of South Carolina
    CivShortDesc=South Carolina
    CivAdjective=South Carolinian
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
    WhiteFlag=0
    CivType=CIVILIZATION_AMERICA
    Color=PLAYERCOLOR_DARK_INDIGO_AND_WHITE
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=100
    StartingX=28, StartingY=11
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFRAGE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=3
    LeaderType=LEADER_WASHINGTON
    LeaderName=James Turner
    CivDesc=State of North Carolina
    CivShortDesc=North Carolina
    CivAdjective=North Carolinian
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
    WhiteFlag=0
    CivType=CIVILIZATION_AMERICA
    Color=PLAYERCOLOR_CYAN_AND_GRAY
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=100
    StartingX=25, StartingY=34
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFRAGE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=4
    LeaderType=LEADER_ALEXANDER
    LeaderName=James Monroe
    CivDesc=State of Virginia
    CivShortDesc=Virginia
    CivAdjective=Virginian
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
    WhiteFlag=0
    CivType=CIVILIZATION_AMERICA
    Color=PLAYERCOLOR_GREEN_AND_WHITE
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=250
    StartingX=48, StartingY=45
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFRAGE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=5
    LeaderType=LEADER_ALEXANDER
    LeaderName=Thomas McKean
    CivDesc=State of Pennsylvania
    CivShortDesc=Pennsylvania
    CivAdjective=Pennsylvanian
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
    WhiteFlag=0
    CivType=CIVILIZATION_AMERICA
    Color=PLAYERCOLOR_BLACK_AND_GREEN
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=300
    StartingX=5, StartingY=14
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFRAGE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_EMANCIPATION
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=6
    LeaderType=LEADER_ALEXANDER
    LeaderName=George Clinton
    CivDesc=State of New York
    CivShortDesc=New York
    CivAdjective=New Yorkian
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
    WhiteFlag=0
    CivType=CIVILIZATION_AMERICA
    Color=PLAYERCOLOR_DARK_CYAN_AND_LEMON
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=0
    StartingX=19, StartingY=23
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFRAGE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_EMANCIPATION
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=7
    LeaderType=LEADER_ALEXANDER
    LeaderName=William Wyatt Bibb
    CivDesc=State of Alabama
    CivShortDesc=Alabama
    CivAdjective=Alabaman
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
    WhiteFlag=0
    CivType=CIVILIZATION_AMERICA
    Color=PLAYERCOLOR_GREEN_AND_BLACK
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=0
    StartingX=37, StartingY=32
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFRAGE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=8
    LeaderType=LEADER_ALEXANDER
    LeaderName=David Holmes
    CivDesc=State of Mississippi
    CivShortDesc=Mississippi
    CivAdjective=Mississippian
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
    WhiteFlag=0
    CivType=CIVILIZATION_AMERICA
    Color=PLAYERCOLOR_GOLD_AND_BLACK
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=0
    StartingX=37, StartingY=48
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFRAGE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=9
    LeaderType=LEADER_FREDERICK
    LeaderName=John Hancock
    CivDesc=Northeastern States
    CivShortDesc=Northeastern States
    CivAdjective=Northeastern
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
    WhiteFlag=0
    CivType=CIVILIZATION_AMERICA
    Color=PLAYERCOLOR_RED_AND_GOLD
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=0
    StartingX=36, StartingY=40
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFRAGE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_EMANCIPATION
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=10
    LeaderType=LEADER_FREDERICK
    LeaderName=Arthur St.Clair
    CivDesc=Northwest Territory
    CivShortDesc=Northwest Territory
    CivAdjective=Northwestern
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
    WhiteFlag=0
    CivType=CIVILIZATION_AMERICA
    Color=PLAYERCOLOR_DARK_INDIGO
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=0
    StartingX=2, StartingY=2
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFRAGE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_EMANCIPATION
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=11
    LeaderType=LEADER_FREDERICK
    LeaderName=William Henry Harrison
    CivDesc=Indiana Territory
    CivShortDesc=Indiana Territory
    CivAdjective=Indianian
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
    WhiteFlag=0
    CivType=CIVILIZATION_AMERICA
    Color=PLAYERCOLOR_DARK_DARK_GREEN
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=0
    StartingX=2, StartingY=48
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFRAGE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_EMANCIPATION
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=12
    LeaderType=LEADER_DE_GAULLE
    LeaderName=Charles IV
    CivDesc=Spainish Florida
    CivShortDesc=Spainish Florida
    CivAdjective=Floridan
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Castle.dds
    WhiteFlag=0
    CivType=CIVILIZATION_SPAIN
    Color=PLAYERCOLOR_PINK
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=0
    StartingX=2, StartingY=25
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_HEREDITARY_RULE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_BUREAUCRACY
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=13
    LeaderType=LEADER_NAPOLEON
    LeaderName=Napoleon Bonaparte
    CivDesc=Louisiana Territory
    CivShortDesc=Louisiana
    CivAdjective=Louisian
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_FleurDeLis.dds
    WhiteFlag=0
    CivType=CIVILIZATION_FRANCE
    Color=PLAYERCOLOR_DARK_BLUE
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=0
    StartingX=34, StartingY=22
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_DESPOTISM
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_NATIONHOOD
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=14
    LeaderType=LEADER_CHURCHILL
    LeaderName=George III
    CivDesc=British Canada
    CivShortDesc=British Canada
    CivAdjective=British
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_StGeorgeCross.dds
    WhiteFlag=0
    CivType=CIVILIZATION_ENGLAND
    Color=PLAYERCOLOR_WHITE
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=300
    StartingX=17, StartingY=11
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_HEREDITARY_RULE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=15
    LeaderType=LEADER_CHURCHILL
    LeaderName=James Stuart
    CivDesc=Canadian Rebels
    CivShortDesc=Canadian Rebels
    CivAdjective=Canadian
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_StGeorgeCross.dds
    WhiteFlag=0
    CivType=CIVILIZATION_ENGLAND
    Color=PLAYERCOLOR_DARK_ORANGE
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=0
    StartingX=14, StartingY=34
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_REPRESENTATION
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_BUAREAUCRACY
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_EMANCIPATION
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=16
    LeaderType=LEADER_ALEXANDER
    LeaderName=David G. Burnet
    CivDesc=Republic of Texas
    CivShortDesc=Texas
    CivAdjective=Texan
    FlagDecal=Art/Interface/TeamColor/FlagDECAL_Star.dds
    WhiteFlag=0
    CivType=CIVILIZATION_AMERICA
    Color=PLAYERCOLOR_LIGHT_BROWN
    ArtStyle=ARTSTYLE_EUROPEAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=0
    StartingX=22, StartingY=48
    StateReligion=
    StartingEra=ERA_RENAISSANCE
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_UNIVERSAL_SUFFRAGE
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_FREE_SPEECH
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_FREE_MARKET
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELIGION
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginPlayer
    Team=17
    LeaderType=NONE
    CivType=NONE
    Color=NONE
    ArtStyle=NONE
    Handicap=HANDICAP_NOBLE
    EndPlayer
    BeginMap
    grid width=55
    grid height=51
    top latitude=0
    bottom latitude=0
    wrap X=0
    wrap Y=0
    world size=WORLDSIZE_HUGE
    climate=CLIMATE_TEMPERATE
    sealevel=SEALEVEL_MEDIUM
    num plots written=2805
    num signs written=0
    Randomize Resources=false
    EndMap
    *

    I believe I have all the formatting prior to the words correct


    Please Help if you can.

    I will include the actual file as an attachment as well.
     

    Attached Files:

  2. God-Emperor

    God-Emperor Deity

    Joined:
    Jul 18, 2009
    Messages:
    3,551
    Location:
    Texas
    Just scrolling though the post I saw two things.

    There is a typo in Ferderic's civic: CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_FREE_RELGION

    Also, it looks like you are missing a line break in Churchill's civic section.
     

Share This Page