A template mod to add new map scripts

Gedemon

Modder
Super Moderator
Joined
Oct 4, 2004
Messages
12,778
Location
France
A mod template to add new map scripts into the game


To install: extract in your "{user}\AppData\Local\Firaxis Games\Sid Meier's Civilization VII\Mods" folder

Change the mod's folder name to your mod's name, as well as the "mapscript-template.modinfo" file name

In that file change the modid

Code:
<Mod id="yourname-mapscript-template" version="1"
    xmlns="ModInfo">

it must be unique, so either use a UID or something other modders won't use

for example
Code:
<Mod id="gedemon-newcontinent" version="1"
    xmlns="ModInfo">

The ID must also be copied in the config.xml file, that's how the game will know the path to the mapscript file.

Code:
    <Maps>
        <Row File="{gedemon-newcontinent}maps/continent-mod.js" Name="LOC_MAP_MAPSCRIPT_TEMPLATE_CONTINENT_NAME" Description="LOC_MAP_MAPSCRIPT_TEMPLATE_CONTINENT_DESCRIPTION" SortIndex="9"/>
    </Maps>

Also edit the "LOC_" tags in the various files to something unique to your mod.

The included example script is the Continent script without any forced ocean separation

1738906043210.png



Download here:
 
I've tried making a highlands map using your template, and am getting critical map error on load.

Which log are you looking into to troubleshoot these issues. I'm not seeing the particular problem clearly.
 
Any advice on finding what the various function parameters do?

Seems like some of the functions are not defined in the JS files under the maps dir.

Not sure where to find things like TerrainBuilder and its function defs for example.
 
Back
Top Bottom