Mission editor

Basic
To access it you must click on the New game option from the main menu then click on the Edit button from one of the listed mission.

In order to create a new mission you must create a new file within the missions directory, we recommend you to clone an existing file and to change the guiname variable from the config section in order to edit your custom mission file. For more detail see the Missions files section below.

Missions files
Each mission have a dedicated file that you can find into the folders: %PROGRAMFILES(x86)%\Production Line\data\missions (on a Windows x64 machine).

From then, if we refer to a folder we will assume you are in %PROGRAMFILES(x86)%\Production Line

It may be usefull to clone a mission file in order to create your own custom missions and avoid overriding the default in games missions.

File syntax
Missions file are plain text file (with the same syntax as an ini file) that can be edited with text editor such as notepad.

The file is composed from two parts, the first one is a section and the other is a list of variable.

Both sections are case sensitive.

Section

 * 1) Always start with [
 * 2) config, zone followed by a unique value starting from 0, imports or exports
 * 3) Always end with ]

config
Store informations that affect globaly the mission such as the name, the icon, the starting cash or the size of the map.

zone
A specific rectangle of the map.

imports
The variable name is an increment value between 0 up to infinite. The variable value is the coordonnate of the upper-top of the map starting from 0 in the X,Y format where the , (comma) is the separator.

exports
The variable name is an increment value between 0 up to infinite. The variable value is the coordonnate of the upper-top of the map starting from 0 in the X,Y format where the , (comma) is the separator.

Variables

 * 1) Start the the variable name (see the table below)
 * 2) May contains an = equal if it contains a value
 * 3) Then contains the value (see the Possible values cell for help about the possible value for a variable)

Know issues

 * Creating an export or an import not within a building section (slate blue) and not right next to a wall (the red border) will crash the game if you try to create a game from the mission
 * When releasing the right mouse click after draging a zone you always must be further (on the X and Y axies) than your original drag.