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

Minimizing fluff and fixing options in Scenarios.

Discussion in 'Maps & Scenarios' started by raxo2222, Aug 2, 2019.

  1. raxo2222

    raxo2222 Time Traveller

    Joined:
    Jun 10, 2011
    Messages:
    7,436
    Location:
    Poland
    Excess fluff may cause maps to break like flag decals, starting era, civic options and so on.
    We now know it @Pit2015 @TPEHEP @KaTiON_PT @Snofru1

    Minimal fluff in game config:
    Code:
    BeginGame
        Speed=GAMESPEED_of your choice as your own "default"
        Option=GAMEOPTION_list of options, that makes best to play
        Victory=VICTORY_list of victory conditions
        StartYear=-200000 (probably could be removed)
        Description= you can write anything here
        ModPath= (probably can be removed)
    EndGame
    All teams should be like this:
    Code:
    BeginTeam
        TeamID=0
        ContactWithTeam=Same number as TeamID
    EndTeam
    If you want custom descriptions, and have units and cities around intentionally, then it can be like this:
    Code:
    BeginPlayer
        Team=0
        LeaderType=LEADER_leader
        LeaderName=name of leader
        CivDesc=description
        CivShortDesc=short description
        CivAdjective=adjective
        CivType=CIVILIZATION_civilization
        RandomStartLocation=false
    EndPlayer
    if not, then this is as simple as possible.
    Code:
    BeginPlayer
        Team=0
        LeaderType=LEADER_leader
        CivType=CIVILIZATION_civilization
        StartingX=number1, StartingY=number2
        RandomStartLocation=false (if true, then Starting... line can be removed).
    EndPlayer
    Unused player is like this
    Code:
    BeginPlayer
        Team=number
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    Here is example of my test map, that I can use for testing calendar. Its almost as sterile as its possible.
    Terrain is just peak with single unit and orbit around so animals won't spawn.
    Code:
    Version=12
    BeginGame
        StartYear=-200000
        Description=This map is empty as void, designed to test
        ModPath=
    EndGame
    BeginTeam
       TeamID=0
       ContactWithTeam=0
    EndTeam
    BeginTeam
       TeamID=1
       ContactWithTeam=1
    EndTeam
    BeginTeam
       TeamID=2
       ContactWithTeam=2
    EndTeam
    BeginTeam
       TeamID=3
       ContactWithTeam=3
    EndTeam
    BeginTeam
       TeamID=4
       ContactWithTeam=4
    EndTeam
    BeginTeam
       TeamID=5
       ContactWithTeam=5
    EndTeam
    BeginTeam
       TeamID=6
       ContactWithTeam=6
    EndTeam
    BeginTeam
       TeamID=7
       ContactWithTeam=7
    EndTeam
    BeginTeam
       TeamID=8
       ContactWithTeam=8
    EndTeam
    BeginTeam
       TeamID=9
       ContactWithTeam=9
    EndTeam
    BeginTeam
       TeamID=10
       ContactWithTeam=10
    EndTeam
    BeginTeam
       TeamID=11
       ContactWithTeam=11
    EndTeam
    BeginTeam
       TeamID=12
       ContactWithTeam=12
    EndTeam
    BeginTeam
       TeamID=13
       ContactWithTeam=13
    EndTeam
    BeginTeam
       TeamID=14
       ContactWithTeam=14
    EndTeam
    BeginTeam
       TeamID=15
       ContactWithTeam=15
    EndTeam
    BeginTeam
       TeamID=16
       ContactWithTeam=16
    EndTeam
    BeginTeam
       TeamID=17
       ContactWithTeam=17
    EndTeam
    BeginTeam
       TeamID=18
       ContactWithTeam=18
    EndTeam
    BeginTeam
       TeamID=19
       ContactWithTeam=19
    EndTeam
    BeginTeam
       TeamID=20
       ContactWithTeam=20
    EndTeam
    BeginTeam
       TeamID=21
       ContactWithTeam=21
    EndTeam
    BeginTeam
       TeamID=22
       ContactWithTeam=22
    EndTeam
    BeginTeam
       TeamID=23
       ContactWithTeam=23
    EndTeam
    BeginTeam
       TeamID=24
       ContactWithTeam=24
    EndTeam
    BeginTeam
       TeamID=25
       ContactWithTeam=25
    EndTeam
    BeginTeam
       TeamID=26
       ContactWithTeam=26
    EndTeam
    BeginTeam
       TeamID=27
       ContactWithTeam=27
    EndTeam
    BeginTeam
       TeamID=28
       ContactWithTeam=28
    EndTeam
    BeginTeam
       TeamID=29
       ContactWithTeam=29
    EndTeam
    BeginTeam
       TeamID=30
       ContactWithTeam=30
    EndTeam
    BeginTeam
       TeamID=31
       ContactWithTeam=31
    EndTeam
    BeginTeam
       TeamID=32
       ContactWithTeam=32
    EndTeam
    BeginTeam
       TeamID=33
       ContactWithTeam=33
    EndTeam
    BeginTeam
       TeamID=34
       ContactWithTeam=34
    EndTeam
    BeginTeam
       TeamID=35
       ContactWithTeam=35
    EndTeam
    BeginTeam
       TeamID=36
       ContactWithTeam=36
    EndTeam
    BeginTeam
       TeamID=37
       ContactWithTeam=37
    EndTeam
    BeginTeam
       TeamID=38
       ContactWithTeam=38
    EndTeam
    BeginTeam
       TeamID=39
       ContactWithTeam=39
    EndTeam
    BeginPlayer
        Team=0
        LeaderType=LEADER_PERICLES
        CivType=CIVILIZATION_GREECE
        StartingX=7, StartingY=19
        RandomStartLocation=false
    EndPlayer
    BeginPlayer
        Team=1
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=2
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=3
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=4
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=5
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=6
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=7
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=8
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=9
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=10
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=11
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=12
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=13
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=14
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=15
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=16
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=17
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=18
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=19
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=20
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=21
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=22
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=23
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=24
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=25
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=26
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=27
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=28
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=29
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=30
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=31
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=32
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=33
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=34
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=35
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=36
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=37
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=38
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginPlayer
        Team=39
        LeaderType=NONE
        CivType=NONE
    EndPlayer
    BeginMap
        grid width=24
        grid height=24
        top latitude=90
        bottom latitude=-90
        wrap X=0
        wrap Y=0
        world size=WORLDSIZE_DUEL
        climate=CLIMATE_TEMPERATE
        sealevel=SEALEVEL_LOW
        num plots written=576
        num signs written=0
        Randomize Resources=false
    EndMap
     
    Last edited: Mar 30, 2020
    TPEHEP, Snofru1 and KaTiON_PT like this.
  2. Snofru1

    Snofru1 Emperor

    Joined:
    Dec 29, 2005
    Messages:
    1,203
    Location:
    Germany
    Thank you for this overwiew, @raxo2222 !

    I have a few questions though, as I want to be sure that I really can (or should) savely remove some more lines.
    In my spacemaps there are these lines:

    Era=ERA_ANCIENT (this is not in your description; does this line mean you are forced to play from prehistoric on or is it just a suggestion? Or does it do nothing at all?)
    Calendar=CALENDAR_DEFAULT (superfluous?)
    GameTurn=0
    MaxCityElimination=0
    NumAdvancedStartPoints=2000
    TargetScore=0 (these 4 lines are unnecessary, too?)

    RevealMap=0 (This line is missing in the team descriptions on my maps. What does it do? Should I include it?)

    BeginPlayer
    Team=0
    LeaderType=NONE
    CivType=NONE
    Color=NONE
    ArtStyle=NONE
    Handicap=HANDICAP_NOBLE
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=0

    StartingX=82, StartingY=31
    RandomStartLocation=false
    EndPlayer (Everything in bold is missing in your example. Should I delete it, too? Does it do any harm?)

    Thank you for any information that can enlighten me!
     
  3. Harrier

    Harrier Deity

    Joined:
    Feb 19, 2002
    Messages:
    2,409
    Location:
    UK
    @Snofru1 and others.

    Have a look at the beginning of one of my maps sem+ or lem in notepad.. I think they contain the minimum info needed. (ignore any options or victory)

    The game adds any missing items when you first load a scenario. So don't worry about missing something. After initially loading your map do a worldbuilder save and then have a look at the map in notepad. You may find it has added RevealMap=0.

    Revealmap=1 shows the whole map to that team, at the start of the game. Used when creating specific scenarios. e.g. an african war scenario.

    Take a look at the thread I have bumped to the top of this page. Lots of useful info there.
     
    Last edited: Aug 2, 2019
    Snofru1 likes this.
  4. Snofru1

    Snofru1 Emperor

    Joined:
    Dec 29, 2005
    Messages:
    1,203
    Location:
    Germany
    Thank you for your help, Harrier!
    When I look at you LEM map I find that my maps haven even a few less lines than yours. I dont have MaxTurns (anymore) and RevealMap (which you explained)...
    So it seems I already have been pretty well instructed by Raxo and Kation :) .
     
    KaTiON_PT likes this.
  5. raxo2222

    raxo2222 Time Traveller

    Joined:
    Jun 10, 2011
    Messages:
    7,436
    Location:
    Poland
    Just take a look at scenarios included in SVN, as I threw out as much fluff as possible here.
     
    TaylorItaly likes this.
  6. raxo2222

    raxo2222 Time Traveller

    Joined:
    Jun 10, 2011
    Messages:
    7,436
    Location:
    Poland
    Scenarios included in mod are now are as pristine as they can be - no excess stuff in them.

    It appears some scenarios in Caveman2Cosmos had some options that shouldn't be here, and other options were missing.
    That is there are some hidden options, that are turned off/on.

    This means you could have some missing animals (some of them required game option), or you couldn't assimilate other continental cultures.
    There could be other weird stuff going on too - random seed on reload was disabled as it causes trouble with debugging, and aggressive AI causes problems with AI.

    Options are active, if they have following line in scenario:
    Option=GAMEOPTION_X
    This means option X is active in scenario, unless you turn it off in custom scenario. Hidden options can't be turned off/on.

    Here is complete list of options, that are hidden.
    Those options are hidden and disabled for various reasons - your scenarios shouldn't have them.
    GAMEOPTION_AGGRESSIVE_AI - damages AI
    GAMEOPTION_ONE_CITY_CHALLENGE - mod is too full of stuff for this option
    GAMEOPTION_NEW_RANDOM_SEED - causes problems with debugging
    GAMEOPTION_LOCK_MODS - ?
    GAMEOPTION_NO_GOODY_HUTS - ?
    GAMEOPTION_RUTHLESS_AI - damages AI
    GAMEOPTION_NO_FUTURE - WIP
    GAMEOPTION_STRENGTH_IN_NUMBERS - WIP
    GAMEOPTION_SCALE_CITY_LIMITS - ?
    GAMEOPTION_LS612_TRAITS - ?
    GAMEOPTION_HEART_OF_WAR - WIP
    GAMEOPTION_BATTLEWORN - WIP
    GAMEOPTION_UPRANGE - WIP
    GAMEOPTION_EQUIPMENT - WIP
    GAMEOPTION_MAXIMUM_POPULATION - ?
    GAMEOPTION_ONGOING_TRAINING - WIP
    GAMEOPTION_NIGHTMARE_MODE - was changed to be normal handicap
    GAMEOPTION_OUTBREAKS_AND_AFFLICTIONS - WIP

    Those options are hidden and enabled for various reasons - your scenarios should have them listed.
    GAMEOPTION_MOUNTAINS - can build mountain mines, enables mountaineering tech
    GAMEOPTION_ASSIMILATION - allows assimilating other continental cultures
    GAMEOPTION_ECOLOGICAL_ANIMALS - few animal units need this option
     
    KaTiON_PT likes this.
  7. raxo2222

    raxo2222 Time Traveller

    Joined:
    Jun 10, 2011
    Messages:
    7,436
    Location:
    Poland
    KaTiON_PT likes this.

Share This Page