Announcement

Collapse
No announcement yet.

[Barbarian] Scenario question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Barbarian] Scenario question

    I am enjoying playing the Barbarian scenario, but was wondering if it is possible to change starting gold and additionally map size to include many more civilizations?

    Thanks for any/all feedback.

    Grandpa Troll
    Hi, I'm RAH and I'm a Benaholic.-rah

  • #2
    For the map size (and type) you just have to load the 'barbarian' mod and to select 'custom game' instead of 'Warlords scenarios'.

    Comment


    • #3
      Money money

      For the money it's quite simple too: you've got to find the 'Barbarian.py' file and edit it. This file should be in the 'assets' directory of the 'barbarian' mod. For me it looks lilke:
      Code:
      C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Warlords\Mods\Barbarian\Assets\Python
      Then modify the amount of money according to your dreams and to the start you choose (autoplay duration : 40, 65 or 100 turns). In the following example I've chosen to start with 6666 gold instaed of 1000 for the 40 turns autoplay:
      Code:
      class Barbarian:
      	def __init__(self):
      		# (Turn, Gold)
      		self.__Difficulty={	DIFFICULTY_EASY : (40, 6666), 
      							DIFFICULTY_MEDIUM : (65, 1750),
      							DIFFICULTY_HARD : (100, 2500),
      							}
      The code to change is very easy to find: it's nearly at the beginning of 'Barbarian.py'

      Comment


      • #4
        Originally posted by Max
        For the map size (and type) you just have to load the 'barbarian' mod and to select 'custom game' instead of 'Warlords scenarios'.
        The only choices are shown here

        Random

        Duel

        Tiny

        Small
        Attached Files
        Hi, I'm RAH and I'm a Benaholic.-rah

        Comment


        • #5
          Re: Money money

          Originally posted by Max
          For the money it's quite simple too: you've got to find the 'Barbarian.py' file and edit it. This file should be in the 'assets' directory of the 'barbarian' mod. For me it looks lilke:
          Code:
          C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Warlords\Mods\Barbarian\Assets\Python
          Then modify the amount of money according to your dreams and to the start you choose (autoplay duration : 40, 65 or 100 turns). In the following example I've chosen to start with 6666 gold instaed of 1000 for the 40 turns autoplay:
          Code:
          class Barbarian:
          	def __init__(self):
          		# (Turn, Gold)
          		self.__Difficulty={	DIFFICULTY_EASY : (40, 6666), 
          							DIFFICULTY_MEDIUM : (65, 1750),
          							DIFFICULTY_HARD : (100, 2500),
          							}
          The code to change is very easy to find: it's nearly at the beginning of 'Barbarian.py'
          Thanks

          worked like a charm, now to figure out the map size issue
          Hi, I'm RAH and I'm a Benaholic.-rah

          Comment


          • #6
            Oups sorry: I had not carefully read your first post.
            You'll have to go through XML for that one.

            In your 'CIV4WorldInfo.xml' file (for me it's found at 'C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Warlords\Mods\Barbarian\Assets\XML\GameInfo') you just have 3 'WorldInfo' sections for each of the 3 map sizes the scenario allows. Add the following sections to be able to play more map size:
            Code:
            		<WorldInfo>
            			<Type>WORLDSIZE_STANDARD</Type>
            			<Description>TXT_KEY_WORLD_STANDARD</Description>
            			<Help>TXT_KEY_WORLD_STANDARD_HELP</Help>
            			<iDefaultPlayers>7</iDefaultPlayers>
            			<iUnitNameModifier>20</iUnitNameModifier>
            			<iTargetNumCities>5</iTargetNumCities>
            			<iNumFreeBuildingBonuses>5</iNumFreeBuildingBonuses>
            			<iBuildingClassPrereqModifier>50</iBuildingClassPrereqModifier>
            			<iMaxConscriptModifier>25</iMaxConscriptModifier>
            			<iWarWearinessModifier>-10</iWarWearinessModifier>
            			<iGridWidth>21</iGridWidth>
            			<iGridHeight>13</iGridHeight>
            			<iTerrainGrainChange>0</iTerrainGrainChange>
            			<iFeatureGrainChange>0</iFeatureGrainChange>
            			<iResearchPercent>130</iResearchPercent>
            			<iTradeProfitPercent>50</iTradeProfitPercent>
            			<iDistanceMaintenancePercent>80</iDistanceMaintenancePercent>
            			<iNumCitiesMaintenancePercent>30</iNumCitiesMaintenancePercent>
            			<iNumCitiesAnarchyPercent>8</iNumCitiesAnarchyPercent>
            		</WorldInfo>
            		<WorldInfo>
            			<Type>WORLDSIZE_LARGE</Type>
            			<Description>TXT_KEY_WORLD_LARGE</Description>
            			<Help>TXT_KEY_WORLD_LARGE_HELP</Help>
            			<iDefaultPlayers>9</iDefaultPlayers>
            			<iUnitNameModifier>10</iUnitNameModifier>
            			<iTargetNumCities>6</iTargetNumCities>
            			<iNumFreeBuildingBonuses>6</iNumFreeBuildingBonuses>
            			<iBuildingClassPrereqModifier>75</iBuildingClassPrereqModifier>
            			<iMaxConscriptModifier>50</iMaxConscriptModifier>
            			<iWarWearinessModifier>-30</iWarWearinessModifier>
            			<iGridWidth>26</iGridWidth>
            			<iGridHeight>16</iGridHeight>
            			<iTerrainGrainChange>1</iTerrainGrainChange>
            			<iFeatureGrainChange>1</iFeatureGrainChange>
            			<iResearchPercent>140</iResearchPercent>
            			<iTradeProfitPercent>40</iTradeProfitPercent>
            			<iDistanceMaintenancePercent>90</iDistanceMaintenancePercent>
            			<iNumCitiesMaintenancePercent>25</iNumCitiesMaintenancePercent>
            			<iNumCitiesAnarchyPercent>7</iNumCitiesAnarchyPercent>
            		</WorldInfo>
            		<WorldInfo>
            			<Type>WORLDSIZE_HUGE</Type>
            			<Description>TXT_KEY_WORLD_HUGE</Description>
            			<Help>TXT_KEY_WORLD_HUGE_HELP</Help>
            			<iDefaultPlayers>11</iDefaultPlayers>
            			<iUnitNameModifier>0</iUnitNameModifier>
            			<iTargetNumCities>6</iTargetNumCities>
            			<iNumFreeBuildingBonuses>7</iNumFreeBuildingBonuses>
            			<iBuildingClassPrereqModifier>100</iBuildingClassPrereqModifier>
            			<iMaxConscriptModifier>75</iMaxConscriptModifier>
            			<iWarWearinessModifier>-50</iWarWearinessModifier>
            			<iGridWidth>32</iGridWidth>
            			<iGridHeight>20</iGridHeight>
            			<iTerrainGrainChange>1</iTerrainGrainChange>
            			<iFeatureGrainChange>1</iFeatureGrainChange>
            			<iResearchPercent>150</iResearchPercent>
            			<iTradeProfitPercent>30</iTradeProfitPercent>
            			<iDistanceMaintenancePercent>100</iDistanceMaintenancePercent>
            			<iNumCitiesMaintenancePercent>20</iNumCitiesMaintenancePercent>
            			<iNumCitiesAnarchyPercent>6</iNumCitiesAnarchyPercent>
            		</WorldInfo>
            Be careful that the 2 ending tags stay at the end of the file! That is:
            Code:
            	</WorldInfos>
            </Civ4WorldInfo>
            Last edited by Max; August 8, 2006, 03:34.

            Comment


            • #7
              Thanks

              You were exactly accurate except it went into the Barbarian Folder first then follow those paths

              But

              I do thank you for your expertise

              Love doing the Barb conquest!
              Hi, I'm RAH and I'm a Benaholic.-rah

              Comment


              • #8
                No, no, thank you: I had a great fun doing barbs with unlimited credit thanks to your idea!

                I edited my post to make the folder name right, which was indeed most incorrect. Between CIV and my recently new born child I really need sleep...
                Last edited by Max; August 8, 2006, 03:37.

                Comment

                Working...
                X