-
Notifications
You must be signed in to change notification settings - Fork 396
How to create custom maps
Dan Van Atta edited this page Aug 22, 2019
·
3 revisions
The initial settings for each game are stored in a file that you can
edit to create a new game. You can modify unit placement,
territory ownership, number of players, alliance of players, turn
order, strengths of units, and other factors.
You can open the file in any text editor. On windows you can use Notepad. Simple start notepad, and then use the file-> open menu. When you save the game, make sure that you save the game with the correct extension (.xml). When saving use file->save as, and before you save change the "Save as Type" to be "All Files".
Many of the values you can modify make no sense, and may cause the game to become unstable while playing. It is possiible for instance to specify an attack value of 10 for an infantry unit, or to say that a nation has two capitals, or none. Needless to say this may cause the game to act in weird ways. This may be what you want, but be warned.
Look in the file for the line,
<unitInitialize>
<unitPlacement unitType="infantry" territory="Alaska" quantity ="1" owner="Americans" />
<ownerInitialize>
<territoryOwner territory="Alaska" owner = "Americans" />
You can modify these lines to change the starting ownership of each country. If you want a country to be neutral then remove the line for that territory. If a country is neutral, add a new line to set it's ownership/
Look in the file for the line,
<playerList>
<alliance player="Germans" alliance="Axis" />
<alliance player="Germans" alliance="Allies" />
To change the attack, defense or movement points of a unit look for a line that looks like
<attachmentList>
Beneath that you will see a series of lines like
<attachment name="unitAttachment" attatchTo="infantry" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
<option name="movement" value="1" />
<option name="transportCost" value="1" />
<option name="attack" value="1" />
<option name="defense" value="2" />
</attachment>
To change the production value of the Caucus, look for a line that looks like
<attachment name="territoryAttachment" attatchTo="Caucasus" javaClass="games.strategy.triplea.attachments.TerritoryAttachment" type="territory">
<option name="production" value="3" />
</attachment>
<option name="production" value="3"/>
<option name="production" value="10" />
<attachment name="territoryAttachment" attatchTo="East US" javaClass="games.strategy.triplea.attachments.TerritoryAttachment" type="territory">
<option name="production" value="12" />
<option name="originalFactory" value="true" />
<option name="capital" value="Americans" />
</attachment>
You can change the sequence of who moves when.
If you look for the line
<sequence>
<step name="russianTech" delegate="tech" player="Russians" />
You can write code to change the behaviour of the game in ways that the author never intended. The source code is released under the gpl, and you are free to download it and modify it as long as you follow the terms of the gpl.