• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Map size problem

Joined
Jan 7, 2009
Messages
637
Location
Central Europe
I'd like to add bigger map size to my game - I edited CIV4WorldInfo.xml and copied this:

Spoiler :
<WorldInfo>
<Type>WORLDSIZE_GIANT</Type>
<Description>TXT_KEY_WORLD_GIANT</Description>
<Help>TXT_KEY_WORLD_GIANT_HELP</Help>
<iDefaultPlayers>13</iDefaultPlayers>
<iUnitNameModifier>0</iUnitNameModifier>
<iTargetNumCities>8</iTargetNumCities>
<iNumFreeBuildingBonuses>7</iNumFreeBuildingBonuses>
<iBuildingClassPrereqModifier>120</iBuildingClassPrereqModifier>
<iMaxConscriptModifier>100</iMaxConscriptModifier>
<iWarWearinessModifier>-70</iWarWearinessModifier>
<iGridWidth>40</iGridWidth>
<iGridHeight>25</iGridHeight>
<iTerrainGrainChange>1</iTerrainGrainChange>
<iFeatureGrainChange>1</iFeatureGrainChange>
<iResearchPercent>200</iResearchPercent>
<iTradeProfitPercent>20</iTradeProfitPercent>
<iDistanceMaintenancePercent>150</iDistanceMaintenancePercent>
<iNumCitiesMaintenancePercent>15</iNumCitiesMaintenancePercent>
<iColonyMaintenancePercent>30</iColonyMaintenancePercent>
<iCorporationMaintenancePercent>50</iCorporationMaintenancePercent>
<iNumCitiesAnarchyPercent>5</iNumCitiesAnarchyPercent>
<iAdvancedStartPointsMod>130</iAdvancedStartPointsMod>
</WorldInfo>
<WorldInfo>
<Type>WORLDSIZE_GIGANTIC</Type>
<Description>TXT_KEY_WORLD_GIGANTIC</Description>
<Help>TXT_KEY_WORLD_GIGANTIC_HELP</Help>
<iDefaultPlayers>15</iDefaultPlayers>
<iUnitNameModifier>0</iUnitNameModifier>
<iTargetNumCities>10</iTargetNumCities>
<iNumFreeBuildingBonuses>9</iNumFreeBuildingBonuses>
<iBuildingClassPrereqModifier>140</iBuildingClassPrereqModifier>
<iMaxConscriptModifier>125</iMaxConscriptModifier>
<iWarWearinessModifier>-85</iWarWearinessModifier>
<iGridWidth>50</iGridWidth>
<iGridHeight>30</iGridHeight>
<iTerrainGrainChange>1</iTerrainGrainChange>
<iFeatureGrainChange>1</iFeatureGrainChange>
<iResearchPercent>250</iResearchPercent>
<iTradeProfitPercent>10</iTradeProfitPercent>
<iDistanceMaintenancePercent>175</iDistanceMaintenancePercent>
<iNumCitiesMaintenancePercent>10</iNumCitiesMaintenancePercent>
<iColonyMaintenancePercent>30</iColonyMaintenancePercent>
<iCorporationMaintenancePercent>50</iCorporationMaintenancePercent>
<iNumCitiesAnarchyPercent>4</iNumCitiesAnarchyPercent>
<iAdvancedStartPointsMod>140</iAdvancedStartPointsMod>
</WorldInfo>


From A New Dawn mod. But when I choose this new map size in my game (terra, giant) - this happens all the time:

Spoiler :
2hnb12f.png


No seas, only one huge landmass. XML text was copied from a mod where it works without any problems, so why here it gives me... this?

Any advice?
 
Ok, here it is:

Spoiler :
sys.path = ['..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\email', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\encodings', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\build', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\py', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\tools', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\colourchooser', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\editor', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\floatcanvas', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\masked', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\mixins', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\ogl', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\af', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ca', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\cs', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\da', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\de', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\el', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\es', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\eu', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fi', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fr', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hi', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hu', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\id', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\it', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ja', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\lv', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nb', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nl', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pl', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pt_BR', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ru', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sl', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sv', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\tr', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\uk', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_CN', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_TW', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\af\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ca\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\cs\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\da\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\de\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\el\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\es\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\eu\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fi\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fr\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hi\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hu\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\id\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\it\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ja\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\lv\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nb\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nl\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pl\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pt_BR\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ru\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sl\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sv\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\tr\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\uk\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_CN\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_TW\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\py\\tests', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\tools\\XRCed', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\tools\\XRCed\\src-images', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM']

sys.modules = {'zipimport': <module 'zipimport' (built-in)>, 'signal': <module 'signal' (built-in)>, '__builtin__': <module '__builtin__' (built-in)>, 'sys': <module 'sys' (built-in)>, '__main__': <module '__main__' (built-in)>, 'exceptions': <module 'exceptions' (built-in)>, 'CvPythonExtensions': <module 'CvPythonExtensions' (built-in)>}

sys.builtin_module_names = ('CvPythonExtensions', '__builtin__', '__main__', '_bisect', '_codecs', '_codecs_cn', '_codecs_hk', '_codecs_iso2022', '_codecs_jp', '_codecs_kr', '_codecs_tw', '_csv', '_heapq', '_hotshot', '_locale', '_multibytecodec', '_random', '_sre', '_subprocess', '_symtable', '_weakref', '_winreg', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'md5', 'mmap', 'msvcrt', 'nt', 'operator', 'parser', 'regex', 'rgbimg', 'sha', 'signal', 'strop', 'struct', 'sys', 'thread', 'time', 'xxsubtype', 'zipimport')
load_module CvEventInterface
load_module BugEventManager
load_module CvEventManager
load_module CvUtil
load_module traceback
load_module CvScreensInterface
load_module CvMainInterface
load_module ScreenInput
load_module CvScreenEnums
load_module time
load_module BugDll
load_module BugOptions
load_module BugConfig
load_module BugCore
load_module BugUtil
load_module ColorUtil
load_module BugInit
load_module BugPath
load_module BugConfigTracker
load_module BugTypes
load_module xmllib
..\WARLORDS\ASSETS\PYTHON\SYSTEM\xmllib.py:9: DeprecationWarning: The xmllib module is obsolete. Use xml.sax instead.
22:53:54 DEBUG: BugConfig - registering xml handler BugConfig.RootHandler
22:53:54 DEBUG: BugConfig - registering bug handler BugConfig.BugHandler
22:53:54 DEBUG: BugConfig - registering load handler BugConfig.LoadHandler
22:53:54 DEBUG: BugConfig - registering config handler BugConfig.ConfigHandler
22:53:54 DEBUG: BugConfig - registering arg handler BugConfig.ArgHandler
load_module configobj
load_module __future__
load_module codecs
load_module validate
validate import failed
load_module BugOptionsScreen
load_module BugErrorOptionsTab
load_module BugOptionsTab
load_module BugHelp
load_module Popup
22:53:54 INFO : BugCore - creating uninitialized mod Core
22:53:54 INFO : BugCore - creating uninitialized mod MainInterface
load_module CityUtil
22:53:54 INFO : BugCore - creating uninitialized mod NJAGC
22:53:54 INFO : BugCore - creating uninitialized mod Scores
22:53:54 INFO : BugCore - creating uninitialized mod CityScreen
load_module ReligionUtil
load_module FontUtil
load_module MonkeyTools
load_module PyHelpers
load_module AStarTools
22:53:54 INFO : BugCore - creating uninitialized mod PLE
load_module UnitUtil
load_module PlayerUtil
load_module TradeUtil
load_module DiplomacyUtil
load_module AttitudeUtil
load_module GameUtil
load_module Scoreboard
load_module DealUtil
load_module BugUnitPlot
load_module ReminderEventManager
load_module SdToolKit
load_module BugData
load_module cPickle
load_module autolog
load_module CvModName
22:53:54 INFO : BugCore - creating uninitialized mod Autolog
22:53:54 INFO : BugCore - creating uninitialized mod Reminder
load_module CvAppInterface
load_module GGUtil
load_module GPUtil
load_module ProgressBarUtil
load_module PLE
load_module RawYields
load_module CvTechChooser
load_module TechPrefs
22:53:55 INFO : BugCore - creating uninitialized mod Advisors
load_module CvForeignAdvisor
load_module math
load_module CvExoticForeignAdvisor
load_module IconGrid_BUG
load_module DomPyHelpers
load_module TechTree
load_module FavoriteCivicDetector
load_module CvReligionScreen
load_module CvCorporationScreen
load_module CvCivicsScreen
load_module CvVictoryScreen
load_module TechUtil
load_module GameSetUpCheck
load_module AutoSave
load_module MapFinder
load_module MapFinderStatusScreen
22:53:55 INFO : BugCore - creating uninitialized mod MapFinder
22:53:55 INFO : BugCore - creating uninitialized mod AutoSave
load_module Buffy
22:53:55 INFO : BugCore - creating uninitialized mod BUFFY
load_module CvEspionageAdvisor
load_module SpyUtil
load_module BugScreen
22:53:55 INFO : BugCore - creating uninitialized mod BetterEspionage
load_module CvOptionsScreen
load_module CvReplayScreen
load_module CvHallOfFameScreen
load_module CvDanQuayle
load_module CvGameUtils
load_module CvUnVictoryScreen
load_module CvDawnOfMan
load_module CvTechSplashScreen
load_module CvTopCivs
load_module random
load_module CvInfoScreen
load_module CvIntroMovieScreen
load_module CvVictoryMovieScreen
load_module CvWonderMovieScreen
load_module CvEraMovieScreen
load_module CvSpaceShipScreen
load_module SevoScreenEnums
load_module CvWorldBuilderScreen
load_module CvWorldBuilderDiplomacyScreen
load_module CvDebugTools
load_module CvDebugInfoScreen
load_module CvMapGeneratorUtil
load_module CvGFCScreen
load_module CvPopupInterface
load_module CvScreenUtilsInterface
load_module CvOverlayScreenUtils
load_module CvDotMapOverlayScreen
load_module CvStrategyOverlay
22:53:55 INFO : BugCore - creating uninitialized mod StrategyOverlay
22:53:55 INFO : BugCore - creating uninitialized mod CustDomAdv
22:53:55 INFO : BugCore - creating uninitialized mod TechWindow
init-ing world builder screen
load_module CvWBPopups
load_module CvCameraControls
load_module CvAdvisorUtils
load_module InputUtil
22:53:55 DEBUG: BugUtil - extending BugEventManager.preGameStart instead CvAppInterface
22:53:55 DEBUG: BugEventManager - adding event 'PreGameStart'
22:53:55 DEBUG: BugEventManager - adding event 'BeginActivePlayerTurn'
22:53:55 DEBUG: BugEventManager - adding event 'SwitchHotSeatPlayer'
22:53:55 DEBUG: BugEventManager - adding event 'LanguageChanged'
22:53:55 DEBUG: BugEventManager - adding event 'ResolutionChanged'
22:53:55 DEBUG: BugEventManager - adding event 'PythonReloaded'
22:53:55 DEBUG: BugEventManager - adding event 'unitUpgraded'
22:53:55 DEBUG: BugEventManager - adding event 'unitCaptured'
22:53:55 DEBUG: BugEventManager - adding event 'combatWithdrawal'
22:53:55 DEBUG: BugEventManager - adding event 'combatRetreat'
22:53:55 DEBUG: BugEventManager - adding event 'combatLogCollateral'
22:53:55 DEBUG: BugEventManager - adding event 'combatLogFlanking'
22:53:55 DEBUG: BugEventManager - adding event 'playerRevolution'
22:53:55 DEBUG: BugInit - game not fully initialized
PY:OnInit
 
Probably a question of definition of the Map size.

I refer you to this thread, to read up to the last post.
 
Problem solved. I edited CIV4WorldInfo.xml but had no idea I have to edit map type .py file (I thought that changing this xml file is everything I have to do). So I copied ROM_terra.py to my mod folder and right now everything work perfectly.

Thanks for all your replies.
 
You have to edit any map script that overrides the default map sizes, and possibly some other things, if you add an entry to the world info XML. If you don't it will have a problem when it tries to look up the size of the map, calling the function in the map script that overrides the sizes, and it turns out that it doesn't have any data for the extra size. Unlike a lot of things in the game, map making seems to have some default stuff to fall back to in the event of an error and one of the things that does is typically to generate an all land map (it can also just produce an all grassland map, or it presumably just uses the first terrain defined in the file which is grassland for regular BtS, the difference probably depending on how or when it fails).
 
Back
Top Bottom