[GS] Wordbuilder Map creation - custom map size

Dommi98

Chieftain
Joined
Feb 10, 2009
Messages
10
Location
Germany
I would like to create a map in Worldbuilder.
The final map should have dimensions not equal to the presets given by the game/WB itself.
In particular I want to create a map with 96x96.
Is there any way to achieve this?

I already tried to change the gridheight and gridwidth in the maps file stored in the assets subfolders. Without effect...

Is there any option without deep knowledge of LUA?
 
create a 96x96 map size in xml

example from YnAMP code in <GamePlay>
Code:
<GameInfo>
    <Types> <!-- Map Sizes -->
        <Replace Type="MAPSIZE_SMALL21"     Kind="KIND_MAPSIZE"/>
        <Replace Type="MAPSIZE_STANDARD21"     Kind="KIND_MAPSIZE"/>
        <Replace Type="MAPSIZE_LARGE21"     Kind="KIND_MAPSIZE"/>
        <Replace Type="MAPSIZE_HUGE21"         Kind="KIND_MAPSIZE"/>
        <Replace Type="MAPSIZE_ENORMOUS"     Kind="KIND_MAPSIZE"/>
        <Replace Type="MAPSIZE_ENORMOUS21"     Kind="KIND_MAPSIZE"/>
        <Replace Type="MAPSIZE_GIANT"         Kind="KIND_MAPSIZE"/>
        <Replace Type="MAPSIZE_LUDICROUS"     Kind="KIND_MAPSIZE"/>
        <Replace Type="MAPSIZE_OVERSIZED"     Kind="KIND_MAPSIZE"/>
    </Types>
    
    <Maps>   
        <Replace MapSizeType="MAPSIZE_SMALL21"         Name="LOC_MAPSIZE_SMALL21_NAME"     Description="LOC_MAPSIZE_SMALL21_DESCRIPTION"         DefaultPlayers="6"     GridWidth="84"     GridHeight="44" NumNaturalWonders="4" PlateValue="4" Continents="3"/>
        <Replace MapSizeType="MAPSIZE_STANDARD21"     Name="LOC_MAPSIZE_STANDARD21_NAME"     Description="LOC_MAPSIZE_STANDARD21_DESCRIPTION"     DefaultPlayers="8"     GridWidth="96"     GridHeight="50" NumNaturalWonders="5" PlateValue="4" Continents="4"/>
        <Replace MapSizeType="MAPSIZE_LARGE21"         Name="LOC_MAPSIZE_LARGE21_NAME"     Description="LOC_MAPSIZE_LARGE21_DESCRIPTION"         DefaultPlayers="10" GridWidth="108" GridHeight="56" NumNaturalWonders="6" PlateValue="5" Continents="5"/>
        <Replace MapSizeType="MAPSIZE_HUGE21"         Name="LOC_MAPSIZE_HUGE21_NAME"         Description="LOC_MAPSIZE_HUGE21_DESCRIPTION"         DefaultPlayers="12" GridWidth="120" GridHeight="62" NumNaturalWonders="7" PlateValue="5" Continents="6"/>

        <Replace MapSizeType="MAPSIZE_ENORMOUS"     Name="LOC_MAPSIZE_ENORMOUS_NAME"     Description="LOC_MAPSIZE_ENORMOUS_DESCRIPTION"         DefaultPlayers="19" GridWidth="128" GridHeight="80" NumNaturalWonders="8" PlateValue="5" Continents="6"/>
        <Replace MapSizeType="MAPSIZE_ENORMOUS21"     Name="LOC_MAPSIZE_ENORMOUS21_NAME"     Description="LOC_MAPSIZE_ENORMOUS21_DESCRIPTION"     DefaultPlayers="19" GridWidth="140" GridHeight="74" NumNaturalWonders="8" PlateValue="5" Continents="6"/>
        <Replace MapSizeType="MAPSIZE_GIANT"         Name="LOC_MAPSIZE_GIANT_NAME"         Description="LOC_MAPSIZE_GIANT_DESCRIPTION"         DefaultPlayers="23" GridWidth="180" GridHeight="94" NumNaturalWonders="12" PlateValue="6" Continents="7"/>
        <Replace MapSizeType="MAPSIZE_LUDICROUS"     Name="LOC_MAPSIZE_LUDICROUS_NAME"     Description="LOC_MAPSIZE_LUDICROUS_DESCRIPTION"     DefaultPlayers="23" GridWidth="200" GridHeight="104" NumNaturalWonders="16" PlateValue="7" Continents="8"/>
        <Replace MapSizeType="MAPSIZE_OVERSIZED"     Name="LOC_MAPSIZE_OVERSIZED_NAME"     Description="LOC_MAPSIZE_OVERSIZED_DESCRIPTION"     DefaultPlayers="23" GridWidth="230" GridHeight="116" NumNaturalWonders="24" PlateValue="8" Continents="10"/>
    </Maps>
    <Map_GreatPersonClasses>
        <Replace MapSizeType="MAPSIZE_SMALL21" GreatPersonClassType="GREAT_PERSON_CLASS_PROPHET" MaxWorldInstances="4"/>
        <Replace MapSizeType="MAPSIZE_STANDARD21" GreatPersonClassType="GREAT_PERSON_CLASS_PROPHET" MaxWorldInstances="5"/>
        <Replace MapSizeType="MAPSIZE_LARGE21" GreatPersonClassType="GREAT_PERSON_CLASS_PROPHET" MaxWorldInstances="6"/>
        <Replace MapSizeType="MAPSIZE_HUGE21" GreatPersonClassType="GREAT_PERSON_CLASS_PROPHET" MaxWorldInstances="7"/>
        <Replace MapSizeType="MAPSIZE_ENORMOUS21" GreatPersonClassType="GREAT_PERSON_CLASS_PROPHET" MaxWorldInstances="7"/>
        
        <Replace MapSizeType="MAPSIZE_ENORMOUS" GreatPersonClassType="GREAT_PERSON_CLASS_PROPHET" MaxWorldInstances="7"/>
        <Replace MapSizeType="MAPSIZE_GIANT" GreatPersonClassType="GREAT_PERSON_CLASS_PROPHET" MaxWorldInstances="7"/>
        <Replace MapSizeType="MAPSIZE_LUDICROUS" GreatPersonClassType="GREAT_PERSON_CLASS_PROPHET" MaxWorldInstances="7"/>
        <Replace MapSizeType="MAPSIZE_OVERSIZED" GreatPersonClassType="GREAT_PERSON_CLASS_PROPHET" MaxWorldInstances="7"/>
    </Map_GreatPersonClasses>
</GameInfo>

and in <FrontEnd>
Code:
<GameInfo>
    
    <MapSizes>
        <Replace MapSizeType="MAPSIZE_SMALL21"         Name="LOC_MAPSIZE_SMALL21_NAME" Description="LOC_MAPSIZE_SMALL21_DESCRIPTION" MinPlayers="2" MaxPlayers="62" DefaultPlayers="6" MinCityStates="0" MaxCityStates="60" DefaultCityStates="9" SortIndex="31" />
        <Replace MapSizeType="MAPSIZE_STANDARD21"     Name="LOC_MAPSIZE_STANDARD21_NAME" Description="LOC_MAPSIZE_STANDARD21_DESCRIPTION" MinPlayers="2" MaxPlayers="62" DefaultPlayers="8" MinCityStates="0" MaxCityStates="60" DefaultCityStates="12" SortIndex="41" />
        <Replace MapSizeType="MAPSIZE_LARGE21"         Name="LOC_MAPSIZE_LARGE21_NAME" Description="LOC_MAPSIZE_LARGE21_DESCRIPTION" MinPlayers="2" MaxPlayers="62" DefaultPlayers="10" MinCityStates="0" MaxCityStates="60" DefaultCityStates="15" SortIndex="51" />
        <Replace MapSizeType="MAPSIZE_HUGE21"         Name="LOC_MAPSIZE_HUGE21_NAME" Description="LOC_MAPSIZE_HUGE21_DESCRIPTION" MinPlayers="2" MaxPlayers="62" DefaultPlayers="12" MinCityStates="0" MaxCityStates="60" DefaultCityStates="18" SortIndex="61" />           
        <Replace MapSizeType="MAPSIZE_ENORMOUS21"     Name="LOC_MAPSIZE_ENORMOUS21_NAME" Description="LOC_MAPSIZE_ENORMOUS21_DESCRIPTION" MinPlayers="2" MaxPlayers="62" DefaultPlayers="16" MinCityStates="0" MaxCityStates="60" DefaultCityStates="24" SortIndex="71" />
        <Replace MapSizeType="MAPSIZE_ENORMOUS"     Name="LOC_MAPSIZE_ENORMOUS_NAME" Description="LOC_MAPSIZE_ENORMOUS_DESCRIPTION" MinPlayers="2" MaxPlayers="62" DefaultPlayers="16" MinCityStates="0" MaxCityStates="60" DefaultCityStates="24" SortIndex="70" />
        <Replace MapSizeType="MAPSIZE_GIANT"         Name="LOC_MAPSIZE_GIANT_NAME" Description="LOC_MAPSIZE_GIANT_DESCRIPTION" MinPlayers="2" MaxPlayers="62" DefaultPlayers="26" MinCityStates="0" MaxCityStates="60" DefaultCityStates="37" SortIndex="80" />
        <Replace MapSizeType="MAPSIZE_LUDICROUS"     Name="LOC_MAPSIZE_LUDICROUS_NAME" Description="LOC_MAPSIZE_LUDICROUS_DESCRIPTION" MinPlayers="2" MaxPlayers="62" DefaultPlayers="26" MinCityStates="0" MaxCityStates="60" DefaultCityStates="37" SortIndex="90" />
        <Replace MapSizeType="MAPSIZE_OVERSIZED"     Name="LOC_MAPSIZE_OVERSIZED_NAME" Description="LOC_MAPSIZE_OVERSIZED_DESCRIPTION" MinPlayers="2" MaxPlayers="62" DefaultPlayers="34" MinCityStates="0" MaxCityStates="60" DefaultCityStates="37" SortIndex="90" />
    </MapSizes>
</GameInfo>
 
I start to get a clue...hopefully.

This means I have to create a mod defining any new map size like shown above?
This can then be selected previous to loading worldbuilder and generating the map will already follow my definition?
Anything else to take care or consider in special?
 
yes, create a mod before the map, then add the map to the mod (because the map size define the number of great person available, without that you can't have great person when using the map).

Can't really be sure you on that part as I use Lua only for YnAMP, and the WB export to map/mod process is still a great mystery for me, but I suppose once you've have the map as a file, you'll have to add the file to the imported files of the mod, and in a frontend file add a reference to it
Code:
<GameInfo>
    <Maps>
        <Row File="yourMapFileName.Civ6Map" Name="LOC_YOUR_MAP_NAME" Description="LOC_YOUR_MAP_DESC" SortIndex="1"/>
    </Maps>
</GameInfo>

(and a text file to define the "LOC" text in gameplay/frontend)
 
Back
Top Bottom