The mod editor
The mod editor is in Trench Engr. on PC: press Mods on the main menu, then Mod editor. The pictures on this page are from the game itself.
The editor is a part of the game. In it you make a mod without opening a single file: new units and weapons, a new army, a battle with its map and its story, a campaign of several battles, your own pictures, sounds, music and words. It checks your mod as the game reads it, starts the game into a battle of your mod so you can play it, and makes the zip you give to other players.
Everything the modding guide explains can be done in the editor. A mod made in the editor is an ordinary mod folder: you can still open its files in a text editor, and the editor keeps what you wrote there, comments included.
What it is

The screen has four parts:
- The list on the left shows everything your mod holds, by kind: units, weapons, armies, battlefields, battles, campaigns. Under them are the pages for pictures, sounds, music, texts, languages and files. Press Add to make something new, or type in Find in this mod.
- The page in the middle is what you are working on. Each thing you open gets a tab above it, as in a web browser.
- The help on the right says what the field in hand does and what it takes. F1 shows or hides it.
- The bar at the top has the mod's name, undo and redo, whether your work is saved, Search, Test and Share.
Opening it
In the game on your PC, press Mods at the bottom right of the main menu (it is also in Settings, on the Gameplay tab). On the Mods screen, press Mod editor.


Every mod in your mods folder is in the list.
Your first mod
This takes a few minutes. You make a new unit, give it a name, look at the small battle the editor makes for it, and play that battle.
1. Make the mod
Press New mod. Write the mod's name: it is what players will see. Then choose what you want to start with. Here we choose A new unit, which comes with a small battle to try it in.

Press Create. The mod is made in your mods folder and switched on.
2. Give your unit its name
The editor opens your new unit. It already has a weapon, an army to belong to, and a battle and a campaign to be played in: you see them all in the list on the left.
Write your unit's name in Name. Here we call it Black Watch Raiders. The new name shows at once in the title, the tab and the list on the left.

Every field works the same way: type, or pick from a list. A field you never touched shows "default" or "not set" in grey, and the game uses its own value there. The cross at the end of a line takes your change out again.
3. Look at its battle
Press The Raid in the list. This is the small battle that came with your unit: a map with two sides, trenches, and your unit placed on it.

4. Play it
Press Test at the top. The game starts again with your mod, straight into the battle. When you have seen enough, press Back to the editor: the game comes back to the page you left.

That is a whole mod. To give it to a friend, press Share (see Sharing).
Units and weapons
Open a unit or a weapon from the list. Its page is a form: one line for each thing you can set.

- A form shows first what your mod sets. Find a field finds any other field by its name, and adds it.
- Choose a field and the help on the right says what it does, what it takes, and where it is written in the mod's files.
- A field that names something else, such as a unit's army or a man's weapon, is a list of what there is: the game's and your mod's. The small arrow beside it opens that thing.
- A list, such as a unit's men, has a line for each item. Drag a line by its handle to move it. The buttons at its end copy it or take it out.
- A weapon has a page like this one. A unit's men point to it, so a change to a weapon is a change for every unit that carries it. A new weapon starts from the kind you choose: a rifle, a machine gun, a field gun or mortar, or a grenade.
- To change one of the game's units rather than make a new one, press Add and choose Change something in the game. Your mod then holds only what you changed. Each field you leave alone reads "the game's".
Armies
An army has its units, the units it starts a battle with, its colour and its emblem.

Battles: the map
A battle has three tabs: Map, Story and Settings. The map is the real ground of the battle, drawn by the game itself.

The tools are on the left, each with its key:
| Tool | Key | What it does |
|---|---|---|
| Select | V | Click to select, drag to move. The wheel zooms; a right drag moves the view. |
| Unit | U | Place a unit: click where it stands. |
| Trench | T | Draw a trench: click its points one by one, and press Enter to end it. |
| Wire | W | Give a trench its wire: click the trench, then drag the wire's handle. |
| Building | B | Place a building: click where it stands. |
| Sector | S | Add a sector: click its middle. |
| Area | A | Give a goal or an event its area: drag a box on the map. |
| Land | L | Shape the land: woods, villages, rivers, hills. |
| Measure | M | Measure a distance: drag from one place to another. |
On the right, The ground chooses the battlefield the ground is made from, its seed and its size. Another makes a new ground from the same battlefield. Sides chooses the armies. On the map lists everything that is placed; the eye hides a kind while you work.

Battles: the story
The Story tab holds the battle's goals and its events. They are written as sentences, so you can read the whole battle from top to bottom.

- A goal says what a side must do: hold a place, survive for a time, lay wire. An extra goal earns a star.
- An event starts at a time, when a unit reaches an area, or when another event has happened. Then it does one thing or several: a message comes, a sound plays, units appear, units go somewhere, the weather turns.
Press the arrow of a line to open it. Each part of the sentence is a field you can change.

Campaigns
A campaign is a row of battles on the staff map. Drag a mark to put the battle where it was fought. The arrows show which battle opens which.

For each mission you choose the battle, its date, its place (the name the map writes beside its mark) and a short name for where the place's name does not fit. What opens it says which battles must be won first. Test plays that mission's battle.
Pictures
The Pictures page lists every picture your mod can change, by what it is for: the figures of a unit, icons, buildings, vehicles and guns, aircraft, portraits, emblems. Your own units and armies come first.

Drop a PNG file on the window, or press Replace a picture and choose one. The editor checks its size and puts the file where the game looks for it. A picture your mod does not have is the game's. Play the frames shows a figure move as it will in the battle.
Sounds and music
The Sounds page lists every sound by what it is: a soldier's call, a weapon's shot, your mod's own sounds. A sound can have several takes; the game picks one each time it plays it.


Texts and languages
The Texts page holds the texts the game shows by a key: what is said on the telephone, the slips of paper, the citations. A name or a description is not here: it stands with its unit, its battle or its goal. Change one of the game's lets you write your own words in place of a text of the game.

The game is played in English, French, German, Spanish, Russian and Turkish. The Languages page shows your mod's English beside each language, with what is still missing. A text you leave empty is shown in English.

Checking and fixing problems
The editor checks your mod as you work, with the same check the game makes when it loads mods. The bar at the bottom says how many problems there are.
- A problem stops the game from loading your mod as it is: a unit with no weapon, a name that is used twice, a battle on a battlefield that is not there.
- A thing to know does not stop the game, but may not be what you meant: an army with nobody to dig trenches, a picture of the wrong size.
Press the bar to open it. Each line says where the problem is; press it to go to the field. Where the editor knows the fix, a button on the line makes it in one press. F8 goes to the next problem.

Testing in the game
Test is at the top of every page. It names what it will play: the battle you are working on, the mission of the campaign you are on, or a custom battle with your army. The button beside it chooses another.
The game starts again with your mod and the mods it needs, straight into the battle. Back to the editor brings you back to the same page. A test is never saved and leaves your campaigns and your profile as they were.
Sharing
Share at the top opens the Overview at its share part, which says whether your mod is ready; Make a zip there makes its zip. The editor opens the zip it made the way the game will, to be sure it works.

Give the zip to anyone who has the game. On a PC, they unzip it into their mods folder. On Android, they add the zip in Settings > Gameplay > Mods.
Nothing is lost
- Undo (Ctrl+Z) takes back any change, on any page, even one made on another tab. Redo (Ctrl+Y) puts it back.
- Every change is written to the mod's folder a second after you make it. The word Saved at the top says so.
- Each time you open a mod, the editor copies it before your first change. The Backups on the Overview page list these copies, and Restore puts one back. A copy of the mod as it is now is made first, so a restore can be taken back too.
- If you change a file in another program while the editor is open, the editor sees it before it would write over it.
- If a change could not be written when the game is closed, the editor offers to put it back the next time.

Keys
| Key | What it does |
|---|---|
| Ctrl+K | Search your mod, the game and the editor's pages |
| Ctrl+F | Find on this page |
| Ctrl+Z | Undo |
| Ctrl+Y | Redo |
| Ctrl+S | Write the last change now (it is written by itself a second later) |
| Ctrl+D | Copy the chosen thing |
| Ctrl+W | Close the tab |
| Ctrl+Tab | Next tab |
| F1 | Show or hide the help |
| F2 | Rename the chosen thing in the list |
| F8 | Go to the next problem |
| Delete | Take out the chosen thing |
| V, U, T, W, B, S, A, L, M | The map's tools |
| Home | Show the whole map |
Questions and ideas are welcome on our Discord.