Set default settings for Custom games or Play now! games...

Discussion in 'Civ4 - Rise of Mankind' started by VladDaImpaler, Feb 21, 2010.

  1. VladDaImpaler

    VladDaImpaler Chieftain

    Joined:
    Jan 6, 2009
    Messages:
    68
    I was wondering, is there something in an *.ini or some sort of settings file that i can set what options i want enabled BY DEFAULT for custom games, or even the play now games? (like, have revolutions mod enabled by default) because the game doesn't seem to ever remember my previous settings except for like map size and speed etc
     
  2. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,556
    Gender:
    Male
    Location:
    Canberra, Australia
    Many of the options are set in the file CIV4GameOptionInfos.xml found in the XML/GameInfo folder. Revolutions is one of those. A value of "1" is on and a value of "0" is off.
     
  3. Stormwind

    Stormwind King

    Joined:
    Dec 7, 2008
    Messages:
    697
    Rise of Mankind\Assets\XML\GameInfo\Civ4GameOptionInfos.xml should have Vanilla RoM options, if you play with A New Dawn, then the rest is in Rise of Mankind\Assets\Modules\Afforess\Required\Civ4GameOptionsInfos.xml

    Edit Dancing H. beat me to it while searching.
     
  4. The_Reckoning

    The_Reckoning Prince

    Joined:
    Sep 21, 2005
    Messages:
    430
    Location:
    UK
    Massive necro but worth it, I came here through google looking for information on how to set default custom settings, and have since figured it out myself.

    With a map script if you search the text of the options it gives you (e.g. for Totestra search "Everyone on same landmass") - you can then use the variable this is tied to to bounce to a table somewhere within the script to find how to set it.

    E:
    example, in the case of Totestra, this function controls the default options

    Code:
    def getCustomMapOptionDefault(argsList):
        """
        Returns default value of specified option
        argsList[0] is Option ID (int)
        Return an integer
        """
        #Always zero in this case
        #print argsList[0]
            if argsList[0] == OPTION_Patience:
                return 1 # Slow speed/good quality (Mark's default)
        elif argsList[0] == OPTION_MapRatio:
            return 2 # 3:2 Earthlike map
        elif argsList[0] == OPTION_SmoothPeaks:
            return 1 # By default, smooth coastal and other peaks
          
      elif argsList[0] == OPTION_Pangaea:
            return 1
           
       elif argsList[0] == OPTION_NewWorld:
            return 2
          
          
          
            else: # Everything else defaults to first choice
                return 0
    
     
    Last edited: Mar 15, 2022

Share This Page