Modding reference

Trench Engr. · mod format 1

Every id and name a mod can use, from this version of the game. A patch names one of these ids to change that entry. To add a new entry, give it an id of your own. How to write either is in the modding guide. We publish the names. We do not publish the game's numbers.

Units

The units an army has: infantry, crews and vehicles. In a data file they are in units.

IdNameArmy
gb_rifle_sectionRifle Sectiongb
gb_lewis_sectionLewis Gun Sectiongb
gb_bombersBombing Partygb
gb_vickers_teamVickers MG Teamgb
gb_stokes_teamStokes Mortar Teamgb
gb_18pdr18-pounder Field Gungb
gb_6in_howitzer6-inch Howitzergb
gb_aa_gun13-pounder AA Sectiongb
gb_sniperSniper Teamgb
gb_observerForward Observergb
gb_engineersRoyal Engineersgb
gb_officerPlatoon HQgb
gb_cavalryCavalry Troopgb
gb_mk1_maleMark I (Male)gb
gb_mk1_femaleMark I (Female)gb
gb_mk4_maleMark IV (Male)gb
gb_mk4_femaleMark IV (Female)gb
gb_whippetMedium Mark A 'Whippet'gb
gb_armored_carRolls-Royce Armoured Cargb
gb_supply_lorrySupply Lorrygb
gb_stretcher_bearersStretcher Bearersgb
fr_rifle_sectionEscouade d'infanteriefr
fr_chauchat_sectionGroupe de fusiliers-mitrailleursfr
fr_grenadiersGrenadiers d'élitefr
fr_hotchkiss_teamSection Hotchkissfr
fr_58mm_mortarCrapouillot 58 Tfr
fr_75mmCanon de 75fr
fr_155mm155 C Schneiderfr
fr_aa_gunAutocanon de 75fr
fr_sniperTireur d'élitefr
fr_observerObservateur d'artilleriefr
fr_genieSapeurs du géniefr
fr_officerChef de sectionfr
fr_cavalryEscadron de cuirassiersfr
fr_renault_ftRenault FTfr
fr_schneiderSchneider CA1fr
fr_armored_carAutomitrailleuse Peugeotfr
fr_supply_lorryCamion de ravitaillementfr
fr_stretcher_bearersBrancardiersfr
de_rifle_sectionGruppede
de_lmg_sectionLeichte MG-Gruppede
de_stosstruppStoßtruppde
de_mg08_teamMG 08 Truppde
de_light_mwLeichter Minenwerferde
de_medium_mwMittlerer Minenwerferde
de_77mm7.7 cm Feldkanonede
de_15cm_howitzer15 cm schwere Feldhaubitzede
de_aa_gunFlak-Zugde
de_atrifle_teamTankgewehr-Truppde
de_flamethrowerFlammenwerfer-Truppde
de_sniperScharfschützede
de_observerArtilleriebeobachterde
de_pionierePionierede
de_officerZugführerde
de_cavalryUlanen-Schwadronde
de_a7vA7V Sturmpanzerwagende
de_armored_carEhrhardt Panzerwagende
de_supply_lorryNachschub-Lastwagende
de_stretcher_bearersKrankenträgerde

Weapons

Every weapon: rifles, machine guns, grenades, mortars and guns. In a data file they are in weapons.

IdName
smleSMLE Mk III
lebelLebel Mle 1886
gewehr98Gewehr 98
carbineCavalry carbine
kar98azKarabiner 98 AZ
scoped_smleScoped SMLE (sniper)
scoped_gewehrGewehr 98 with Zeiss scope
scoped_lebelLebel with APX scope
webleyWebley revolver
lugerLuger P08
rubyRuby pistol
mp18MP 18
lewisLewis gun
chauchatChauchat CSRG
mg0815MG 08/15
vickersVickers .303
mg08MG 08
hotchkissHotchkiss M1914
lewis_tankLewis (vehicle)
vickers_tankVickers (vehicle)
hotchkiss_tankHotchkiss (vehicle)
maxim_tankMaxim (vehicle)
vickers_airSynchronised Vickers
spandau_airSynchronised LMG 08/15
lewis_dh2Lewis (pilot's, forward)
lewis_airObserver's Lewis
mills_bombMills bomb No.5
stielhandgranateStielhandgranate M1917
f1_grenadeF1 grenade
vb_grenadeVivien-Bessières rifle grenade
stokesStokes 3-inch mortar
leichter_mw7.58 cm leichter Minenwerfer
mittlerer_mw17 cm mittlerer Minenwerfer
crapouillot58 mm T No.2 'crapouillot'
qf18pdrQF 18-pounder
fk967.7 cm FK 96 n.A.
mle1897Canon de 75 mle 1897
bl6in_howBL 6-inch 26 cwt howitzer
sfh1315 cm sFH 13
c155155 C mle 1917 Schneider
heavy_9in2BL 9.2-inch howitzer (corps)
heavy_21cm21 cm Mörser (corps)
offmap_fieldDivisional field artillery
qf6pdrQF 6-pounder (tank)
puteaux3737 mm Puteaux SA 18
short7575 mm Blockhaus Schneider
maxim_nordenfelt575.7 cm Maxim-Nordenfelt
tgewehrMauser T-Gewehr
flammenwerferWex flamethrower
qf13pdr_aaQF 13-pounder AA
flak777.7 cm Flak
autocanon7575 mm autocanon
bomb_112lb112 lb bomb
bomb_50kg50 kg P.u.W. bomb
bomb_breguetMichelin 40 kg bomb

Shells

The kinds of artillery shell. In a data file they are in shells.

IdName
heHigh explosive
shrapnelShrapnel
smokeSmoke
gasGas

Abilities

Special actions of units. In a data file they are in abilities.

IdName
chargeOver the Top!
flareVery Light
smoke_grenadeSmoke grenades
gb_grenade_volleyBomb the trench
fr_grenade_volleyGrenade volley
de_grenade_volleyHandgranaten!
gas_releaseRelease gas
sprintDouble time

Structures

Buildings and works: farmhouses, churches, dugouts, nests, depots. In a data file they are in structures.

IdName
farmhouseFarmhouse
barnBarn
cottageCottage
churchChurch
chateauChateau
windmillWindmill
wellWell
shrineWayside shrine
haystackHaystack
cartAbandoned cart
cratesCrates
hqBattalion HQ
depotSupply dump
aidpostRegimental aid post
obspostObservation post
bunkerConcrete pillbox
mgnestMachine-gun nest
gunpitGun pit
dugoutDugout

Terrain

Kinds of ground. In a data file they are in terrain.

IdName
grassMeadow
grass_dryDry grass
field_plowedPloughed field
field_wheatWheat field
forest_floorWoodland
mudMud
churnedShell-torn ground
road_dirtDirt road
road_cobbleCobbled road
bridgeBridge
waterWater
marshMarsh
sandSand
rubbleRubble
snowSnow

Armies

The armies. In a data file they are in factions.

IdName
gbBritish Expeditionary Force
frArmée française
deDeutsches Heer

Each army's units (what it can buy) and callIns, in the game's order. A patch replaces a list whole, so copy the list and add your ids to it.

British Expeditionary Force (gb)

{
  "units": [
    "gb_rifle_section",
    "gb_lewis_section",
    "gb_bombers",
    "gb_officer",
    "gb_sniper",
    "gb_observer",
    "gb_engineers",
    "gb_vickers_team",
    "gb_stokes_team",
    "gb_18pdr",
    "gb_6in_howitzer",
    "gb_aa_gun",
    "gb_cavalry",
    "gb_mk1_male",
    "gb_mk1_female",
    "gb_mk4_male",
    "gb_mk4_female",
    "gb_whippet",
    "gb_armored_car",
    "gb_supply_lorry"
  ],
  "callIns": [
    "gb_field_barrage",
    "gb_shrapnel_barrage",
    "gb_heavy_barrage",
    "gb_smoke_barrage",
    "gb_gas_barrage",
    "gb_livens",
    "gb_recon_flight",
    "gb_recon_flight_re8",
    "gb_fighter_patrol_dh2",
    "gb_fighter_patrol",
    "gb_bombing_raid",
    "gb_balloon",
    "gb_reinforcements",
    "gb_supply_convoy"
  ]
}

Armée française (fr)

{
  "units": [
    "fr_rifle_section",
    "fr_chauchat_section",
    "fr_grenadiers",
    "fr_officer",
    "fr_sniper",
    "fr_observer",
    "fr_genie",
    "fr_hotchkiss_team",
    "fr_58mm_mortar",
    "fr_75mm",
    "fr_155mm",
    "fr_aa_gun",
    "fr_cavalry",
    "fr_renault_ft",
    "fr_schneider",
    "fr_armored_car",
    "fr_supply_lorry"
  ],
  "callIns": [
    "fr_field_barrage",
    "fr_heavy_barrage",
    "fr_smoke_barrage",
    "fr_gas_barrage",
    "fr_livens",
    "fr_recon_flight",
    "fr_recon_flight_br14",
    "fr_fighter_patrol_n17",
    "fr_fighter_patrol",
    "fr_bombing_raid",
    "fr_balloon",
    "fr_reinforcements",
    "fr_supply_convoy"
  ]
}

Deutsches Heer (de)

{
  "units": [
    "de_rifle_section",
    "de_lmg_section",
    "de_stosstrupp",
    "de_officer",
    "de_sniper",
    "de_observer",
    "de_pioniere",
    "de_mg08_team",
    "de_light_mw",
    "de_medium_mw",
    "de_77mm",
    "de_15cm_howitzer",
    "de_aa_gun",
    "de_atrifle_team",
    "de_flamethrower",
    "de_cavalry",
    "de_a7v",
    "de_armored_car",
    "de_supply_lorry"
  ],
  "callIns": [
    "de_field_barrage",
    "de_heavy_barrage",
    "de_smoke_barrage",
    "de_gas_barrage",
    "de_gaswerfer",
    "de_recon_flight",
    "de_recon_flight_rumpler",
    "de_fighter_patrol_albatros",
    "de_fighter_patrol",
    "de_bombing_raid",
    "de_balloon",
    "de_reinforcements",
    "de_supply_convoy"
  ]
}

Aircraft

Aeroplanes and balloons. In a data file they are in aircraft.

IdName
be2cB.E.2c
re8R.E.8
farmanFarman MF.11
albatros_cAlbatros C.I
rumplerRumpler C.IV
breguetBreguet 14
breguet_reconBreguet 14 A2
dh2Airco DH.2
nieuportNieuport 17
albatrosAlbatros D.II
camelSopwith Camel
spadSPAD S.XIII
fokkerFokker D.VII
halberstadt_cl2Halberstadt CL.II
dh4Airco DH.4
gothaGotha G.V
balloon_caquotCaquot observation balloon
balloon_drachenDrachen observation balloon

Call-ins

Off-map support: barrages, flights, reinforcements, supply. In a data file they are in callIns.

IdName
gb_field_barrageDivisional barrage
gb_shrapnel_barrageShrapnel sweep
gb_heavy_barrageCorps heavy artillery
gb_creeping_barrageCreeping barrage
gb_smoke_barrageSmoke screen
gb_gas_barrageGas shelling
gb_livensLivens projectors
gb_recon_flightReconnaissance sortie
gb_recon_flight_re8Reconnaissance sortie
gb_fighter_patrol_dh2Fighter patrol
gb_fighter_patrolFighter patrol
gb_bombing_raidBombing raid
gb_balloonObservation balloon
gb_reinforcementsReserve company
gb_supply_convoyAmmunition convoy
fr_field_barrageBarrage de 75
fr_heavy_barrageArtillerie lourde
fr_creeping_barrageBarrage roulant
fr_smoke_barrageÉcran de fumée
fr_gas_barrageObus toxiques
fr_recon_flightReconnaissance aérienne
fr_recon_flight_br14Reconnaissance aérienne
fr_livensProjecteurs à gaz
fr_fighter_patrol_n17Patrouille de chasse
fr_fighter_patrolPatrouille de chasse
fr_bombing_raidBombardement
fr_balloonBallon d'observation
fr_reinforcementsCompagnie de réserve
fr_supply_convoyConvoi automobile
de_field_barrageSperrfeuer
de_heavy_barrageSchwere Artillerie
de_hurricane_barrageFeuerwalze
de_smoke_barrageNebelschiessen
de_gas_barrageGasschiessen
de_gaswerferGaswerfer
de_recon_flightFliegerabteilung
de_recon_flight_rumplerFliegerabteilung
de_fighter_patrol_albatrosJagdstaffel
de_fighter_patrolJagdstaffel
de_bombing_raidBombengeschwader
de_balloonFesselballon
de_reinforcementsReservekompanie
de_supply_convoyNachschub

Doctrines

The campaigns' doctrines. In a data file they are in doctrines.

IdName
gb_creeping_barrageThe Creeping Barrage
gb_sound_rangingSound Ranging & Flash Spotting
gb_special_brigadeSpecial Brigade RE
gb_box_respiratorSmall Box Respirator
gb_bite_and_holdBite and Hold
gb_platoon_tacticsSS 143 Platoon Tactics
gb_tank_corpsHeavy Branch MGC
gb_tank_mechanicsTank Corps Workshops
gb_whippetsMedium Tanks
gb_contact_patrolsRFC Contact Patrols
gb_day_bombingDay Bombing Squadrons
fr_barrage_roulantBarrage roulant
fr_tir_sur_carteShooting from the map
fr_compagnies_zCompagnies Z
fr_casque_adrianCasque Adrian
fr_defense_profondeurDefence in depth
fr_grenadiers_voltigeursGrenadiers-voltigeurs
fr_objectifs_limitesPétain's limited offensives
fr_artillerie_specialeArtillerie spéciale
fr_chars_legersRenault light tanks
fr_aviation_observationObservation squadrons
fr_division_aerienneDivision aérienne
de_feuerwalzeFeuerwalze
de_bruchmullerBruchmüller's method
de_stosstruppenStoßtruppen
de_elastic_defenceElastic defence
de_stahlhelmStahlhelm
de_mg0815MG 08/15
de_gaspioniereGaspioniere
de_gummimaskeGummimaske
de_flammenwerferFlammenwerfer
de_artilleriefliegerArtillerieflieger
de_schlachtstaffelnSchlachtstaffeln

Artillery tempo

How much each army's guns fire without your orders, by year. In a data file they are in artilleryTempo.

Id
gb_1914
gb_1915
gb_1916
gb_1917
gb_1918
fr_1914
fr_1915
fr_1916
fr_1917
fr_1918
de_1914
de_1915
de_1916
de_1917
de_1918

Enemy commanders

The computer's commanders. In a data file they are in aiPersonalities.

IdName
balancedBalanced
methodicalMethodical (British 1916-17)
elanOffensive à outrance
defense_in_depthDefence in depth (German 1917)
infiltrationStormtroop offensive (German 1918)
cautiousCautious
recklessReckless

Battlefields

Battlefields: how the game builds a map, for a custom battle or for a battle of your own. In a data file they are in mapRecipes.

IdName
flandersFlanders plain
sommeSomme chalk downland
verdunMeuse heights
champagneChampagne plain
argonneArgonne forest
vosges_winterVosges in winter
large_frontArmy front (large)

Battles

The battles: the campaigns' missions and the lessons. In a data file they are in scenarios.

IdName
tutorialBasic Training
tutorial_attackPlanning an Attack
tutorial_gunsGuns
tutorial_holdHolding a Line
mons_1914The Canal at Mons
ypres_1915The Green Cloud
raid_1915The Raid
somme_1916The Big Push
flers_1916The Landships
messines_1917The Mines of Messines
passchendaele_1917The Mud of Passchendaele
cambrai_1917Tanks at Cambrai
spring_offensive_1918Kaiserschlacht
amiens_1918The Black Day
marne_1914The Taxis of the Marne
dixmude_1914The Sailors' Town
champagne_1915The Breakthrough
verdun_1916The Bois des Caures
douaumont_1916The Return to Douaumont
chemin_des_dames_1917The Ladies' Way
malmaison_1917The Method
champagne_1918The Fourteenth of July
retz_1918The Forest of Retz
rossignol_1914The Forest Road
langemarck_1914The Young Regiments
pilckem_1915A Favourable Wind
caures_1916Judgement
thiepval_1916At All Costs
frezenberg_1917The Empty Battlefield
gonnelieu_1917After the Bells
michael_1918The Rest Will Follow
epehy_1918According to Plan

Campaigns

The campaigns. In a data file they are in campaigns.

IdNameIts battles, in order
befThe Western Frontmons_1914, ypres_1915, raid_1915, somme_1916, flers_1916, messines_1917, passchendaele_1917, cambrai_1917, spring_offensive_1918, amiens_1918
frThe Marne to the Marnemarne_1914, dixmude_1914, champagne_1915, verdun_1916, douaumont_1916, chemin_des_dames_1917, malmaison_1917, champagne_1918, retz_1918
deNothing New in the Westrossignol_1914, langemarck_1914, pilckem_1915, caures_1916, thiepval_1916, frezenberg_1917, gonnelieu_1917, michael_1918, epehy_1918

Telephone callers

Who rings the engineer. In a data file they are in callers.

IdArmy
gb_adcgb
gb_generalgb
gb_qgb
gb_signalsgb
gb_sergeantgb
gb_gunnergb
fr_adcfr
fr_generalfr
fr_intendancefr
fr_signalsfr
fr_sergeantfr
fr_gunnerfr
de_adcde
de_generalde
de_intendanturde
de_signalsde
de_sergeantde
de_gunnerde

Telephone calls

What is said on the telephone, and when. In a data file they are in calls.

There are 412 calls. Their ids are in calls.txt, one per line.

Headquarters requests

The kinds of request Headquarters makes. In a data file they are in requestKinds.

Id
dig_trench
dig_commtrench
wire
tidy
hold
jumpoff
lend_men
build_dugout
build_mgnest

Commendations

The citations of the Report to Headquarters. In a data file they are in commendations.

Id
inspection
piano
men_spared
men_sheltered
straight_trench
great_digger
wire_artist
dugouts
mg_nests
repairs
obliging
favourite
independent
line_cut
not_an_inch
brisk
shell_economy
long_day

Figure sets

How an army's soldiers are drawn. An army names two sets: spriteSet (in steel helmets) and spriteSetEarly (before). The battle's date decides which one is drawn. A new army uses two of these six. Their pictures are under unit/<set>/ in the list of pictures below.

SetWhat it isFigures it leaves empty
gbBritish, in steel helmets: battles from January 1916flame, smg, atrifle
gb14British, before the steel helmet: battles before January 1916flame, smg, atrifle
frFrench, in steel helmets: battles from September 1915flame, smg, atrifle
fr14French, before the steel helmet: battles before September 1915flame, smg, atrifle
deGerman, in steel helmets: battles from February 1916none
de14German, before the steel helmet: battles before February 1916smg, atrifle

Sounds

The game's sounds. A file sounds/<name>.wav in a mod replaces the sound of that name. A weapon's sound, a structure's destroySound and a battle's sound action name one of these. The game's rifles, and every howitzer with an explosion radius of 5 tiles or more, always play their own: replace rifle_shot_smle, rifle_shot_lebel, rifle_shot_g98 or heavygun_fire.

Pictures

The game has 6,547 pictures (sprites) a mod can replace. A file art/<name>.png in a mod replaces the picture of that name. The whole list is in pictures.txt, one picture per line: its name, then its size. Here they are by family, with one name of each.

FamilyHow manyOne of them
aircraft/albatros/...3aircraft/albatros/0
aircraft/albatros_c/...3aircraft/albatros_c/0
aircraft/albatros_d2/...3aircraft/albatros_d2/0
aircraft/balloon_caquot/...3aircraft/balloon_caquot/0
aircraft/balloon_drachen/...3aircraft/balloon_drachen/0
aircraft/be2c/...3aircraft/be2c/0
aircraft/breguet/...3aircraft/breguet/0
aircraft/camel/...3aircraft/camel/0
aircraft/dh2/...3aircraft/dh2/0
aircraft/dh4/...3aircraft/dh4/0
aircraft/farman/...3aircraft/farman/0
aircraft/fokker/...3aircraft/fokker/0
aircraft/gotha/...7aircraft/gotha/0
aircraft/halberstadt_cl2/...7aircraft/halberstadt_cl2/0
aircraft/nieuport/...3aircraft/nieuport/0
aircraft/re8/...3aircraft/re8/0
aircraft/rumpler/...7aircraft/rumpler/0
aircraft/spad/...3aircraft/spad/0
aircraft/spad_17/...3aircraft/spad_17/0
decal/debris/...4decal/debris/0
decal/scorch_l/...3decal/scorch_l/0
decal/wrack/...4decal/wrack/0
defense/sandbag/...3defense/sandbag/0
defense/stakes1defense/stakes
defense/tanktrap1defense/tanktrap
defense/wire_coil/...4defense/wire_coil/0
defense/wire_stake/...1defense/wire_stake/2
fx/bird/...19fx/bird/crow/body
fx/blast/...7fx/blast/fountain/0
fx/blooddrag/...3fx/blooddrag/0
fx/blooddrop/...3fx/blooddrop/0
fx/bloodpool/...4fx/bloodpool/0
fx/bomb1fx/bomb
fx/circle/...1fx/circle/32
fx/cloud_shadow/...2fx/cloud_shadow/0
fx/debris/...4fx/debris/0
fx/dirt/...3fx/dirt/0
fx/disc/...3fx/disc/16
fx/dust/...3fx/dust/0
fx/ember1fx/ember
fx/flag/...84fx/flag/back/square
fx/flame/...8fx/flame/bed/0
fx/flare/...2fx/flare/0
fx/flash/...2fx/flash/m
fx/grenade1fx/grenade
fx/grenade_stick1fx/grenade_stick
fx/light1fx/light
fx/mark/...19fx/mark/band/15
fx/mortar/...2fx/mortar/stokes
fx/mortar_round1fx/mortar_round
fx/muzzle/...3fx/muzzle/l/0
fx/pixel1fx/pixel
fx/shadow/...3fx/shadow/l
fx/shell1fx/shell
fx/signboard1fx/signboard
fx/signboard/...3fx/signboard/face/0
fx/smoke/...12fx/smoke/16/0
fx/spark1fx/spark
icon/alert/...21icon/alert/aircraft
icon/cmd/...88icon/cmd/abandon
icon/phone/...1icon/phone/handset
icon/res/...7icon/res/manpower
icon/small/...11icon/small/abandon
icon/tool/...6icon/tool/attack
icon/ui/...2icon/ui/arrow_left
icon/unit/...29icon/unit/a7v
portrait/de_adc1portrait/de_adc
portrait/de_adc_s1portrait/de_adc_s
portrait/de_general1portrait/de_general
portrait/de_general_s1portrait/de_general_s
portrait/de_gunner1portrait/de_gunner
portrait/de_gunner_s1portrait/de_gunner_s
portrait/de_intendantur1portrait/de_intendantur
portrait/de_intendantur_s1portrait/de_intendantur_s
portrait/de_sergeant1portrait/de_sergeant
portrait/de_sergeant_s1portrait/de_sergeant_s
portrait/de_signals1portrait/de_signals
portrait/de_signals_s1portrait/de_signals_s
portrait/fr_adc1portrait/fr_adc
portrait/fr_adc_s1portrait/fr_adc_s
portrait/fr_general1portrait/fr_general
portrait/fr_general_s1portrait/fr_general_s
portrait/fr_gunner1portrait/fr_gunner
portrait/fr_gunner_s1portrait/fr_gunner_s
portrait/fr_intendance1portrait/fr_intendance
portrait/fr_intendance_s1portrait/fr_intendance_s
portrait/fr_sergeant1portrait/fr_sergeant
portrait/fr_sergeant_s1portrait/fr_sergeant_s
portrait/fr_signals1portrait/fr_signals
portrait/fr_signals_s1portrait/fr_signals_s
portrait/gb_adc1portrait/gb_adc
portrait/gb_adc_s1portrait/gb_adc_s
portrait/gb_general1portrait/gb_general
portrait/gb_general_s1portrait/gb_general_s
portrait/gb_gunner1portrait/gb_gunner
portrait/gb_gunner_s1portrait/gb_gunner_s
portrait/gb_q1portrait/gb_q
portrait/gb_q_s1portrait/gb_q_s
portrait/gb_sergeant1portrait/gb_sergeant
portrait/gb_sergeant_s1portrait/gb_sergeant_s
portrait/gb_signals1portrait/gb_signals
portrait/gb_signals_s1portrait/gb_signals_s
structure/aidpost/...12structure/aidpost/damaged
structure/barn/...190structure/barn/damaged
structure/barn2/...100structure/barn2/damaged
structure/bunker/...38structure/bunker/damaged
structure/cart/...14structure/cart/damaged
structure/chateau/...680structure/chateau/damaged
structure/church/...298structure/church/damaged
structure/cottage/...196structure/cottage/damaged
structure/cottage2/...136structure/cottage2/damaged
structure/cottage3/...130structure/cottage3/damaged
structure/crates/...8structure/crates/damaged
structure/damage/...40structure/damage/battens/0
structure/depot/...16structure/depot/damaged
structure/dugout/...38structure/dugout/blanket
structure/farmhouse/...140structure/farmhouse/damaged
structure/farmhouse2/...160structure/farmhouse2/damaged
structure/farmhouse3/...218structure/farmhouse3/damaged
structure/gunpit/...58structure/gunpit/damaged
structure/haystack/...16structure/haystack/damaged
structure/hq/...16structure/hq/damaged
structure/mgnest/...40structure/mgnest/damaged
structure/obspost/...40structure/obspost/damaged
structure/shrine/...68structure/shrine/damaged
structure/well/...8structure/well/damaged
structure/windmill/...102structure/windmill/damaged
terrain/churned1terrain/churned
terrain/crater_water/...12terrain/crater_water/l/0
terrain/detail/...12terrain/detail/flowers/0
terrain/dirt1terrain/dirt
terrain/field_plowed1terrain/field_plowed
terrain/field_wheat1terrain/field_wheat
terrain/forest_floor1terrain/forest_floor
terrain/forest_floor_winter1terrain/forest_floor_winter
terrain/grass1terrain/grass
terrain/grass_dry1terrain/grass_dry
terrain/marsh1terrain/marsh
terrain/mud1terrain/mud
terrain/mud_wet1terrain/mud_wet
terrain/road_cobble1terrain/road_cobble
terrain/road_dirt1terrain/road_dirt
terrain/rubble_ground1terrain/rubble_ground
terrain/sand1terrain/sand
terrain/sandbag_texture1terrain/sandbag_texture
terrain/snow1terrain/snow
terrain/tree/...249terrain/tree/burnt/0
terrain/trench_floor1terrain/trench_floor
terrain/trench_wall1terrain/trench_wall
terrain/water/...1terrain/water/0
ui/arrow1ui/arrow
ui/bar_bg1ui/bar_bg
ui/button1ui/button
ui/button_disabled1ui/button_disabled
ui/button_highlight1ui/button_highlight
ui/button_pressed1ui/button_pressed
ui/check_off1ui/check_off
ui/check_on1ui/check_on
ui/cursor/...5ui/cursor/attack
ui/emblem/...4ui/emblem/de
ui/frame1ui/frame
ui/logo1ui/logo
ui/marker/...6ui/marker/attack
ui/panel1ui/panel
ui/panel_dark1ui/panel_dark
ui/slider_knob1ui/slider_knob
ui/slider_track1ui/slider_track
ui/tooltip1ui/tooltip
unit/de/...546unit/de/atrifle/advance/0
unit/de14/...454unit/de14/body/0
unit/fr/...403unit/fr/body/0
unit/fr14/...407unit/fr14/body/0
unit/gb/...403unit/gb/body/0
unit/gb14/...407unit/gb14/body/0
unit/kit/...9unit/kit/atrifle
vehicle/a7v/...21vehicle/a7v/damaged/0
vehicle/armoredcar/...17vehicle/armoredcar/damaged/0
vehicle/armoredcar_de/...17vehicle/armoredcar_de/damaged/0
vehicle/armoredcar_fr/...17vehicle/armoredcar_fr/damaged/0
vehicle/mk1_female/...15vehicle/mk1_female/damaged/0
vehicle/mk1_male/...15vehicle/mk1_male/damaged/0
vehicle/mk4_female/...23vehicle/mk4_female/damaged/0
vehicle/mk4_male/...23vehicle/mk4_male/damaged/0
vehicle/renault_ft/...23vehicle/renault_ft/damaged/0
vehicle/schneider/...21vehicle/schneider/damaged/0
vehicle/staffcar/...1vehicle/staffcar/hull/0
vehicle/staffcar_de/...1vehicle/staffcar_de/hull/0
vehicle/staffcar_fr/...1vehicle/staffcar_fr/hull/0
vehicle/truck/...15vehicle/truck/damaged/0
vehicle/truck_de/...15vehicle/truck_de/damaged/0
vehicle/truck_fr/...15vehicle/truck_fr/damaged/0
vehicle/whippet/...21vehicle/whippet/damaged/0
weapon/aagun/...5weapon/aagun/barrel
weapon/aagun_fr/...5weapon/aagun_fr/barrel
weapon/aagun_gb/...5weapon/aagun_gb/barrel
weapon/atrifle/...4weapon/atrifle/barrel
weapon/fieldgun/...5weapon/fieldgun/barrel
weapon/fieldgun_fr/...5weapon/fieldgun_fr/barrel
weapon/fieldgun_gb/...5weapon/fieldgun_gb/barrel
weapon/hmg/...4weapon/hmg/barrel
weapon/hmg_de/...4weapon/hmg_de/barrel
weapon/hmg_fr/...4weapon/hmg_fr/barrel
weapon/hmg_gb/...4weapon/hmg_gb/barrel
weapon/howitzer/...5weapon/howitzer/barrel
weapon/howitzer_fr/...5weapon/howitzer_fr/barrel
weapon/howitzer_gb/...5weapon/howitzer_gb/barrel
weapon/mittlerer_mw/...4weapon/mittlerer_mw/barrel
weapon/mortar/...4weapon/mortar/barrel
weapon/mortar_de/...4weapon/mortar_de/barrel
weapon/mortar_fr/...4weapon/mortar_fr/barrel

Which pictures a unit is drawn from

The folders under art/ whose pictures you replace. Men are here in the set with steel helmets. In earlier battles they are drawn from the set with 14 at its end: unit/gb14/rifle/ for unit/gb/rifle/.

UnitNameDrawn from
gb_rifle_sectionRifle Sectionunit/gb/rifle/
gb_lewis_sectionLewis Gun Sectionunit/gb/gunner/, unit/gb/rifle/
gb_bombersBombing Partyunit/gb/bomber/
gb_vickers_teamVickers MG Teamweapon/hmg_gb/, unit/gb/crew/
gb_stokes_teamStokes Mortar Teamweapon/mortar/, unit/gb/crew/
gb_18pdr18-pounder Field Gunweapon/fieldgun_gb/, unit/gb/crew/
gb_6in_howitzer6-inch Howitzerweapon/howitzer_gb/, unit/gb/crew/
gb_aa_gun13-pounder AA Sectionweapon/aagun_gb/, unit/gb/crew/
gb_sniperSniper Teamunit/gb/sniper/, unit/gb/rifle/
gb_observerForward Observerunit/gb/officer/, unit/gb/rifle/
gb_engineersRoyal Engineersunit/gb/engineer/
gb_officerPlatoon HQunit/gb/officer/, unit/gb/rifle/
gb_cavalryCavalry Troopunit/gb/cavalry/
gb_mk1_maleMark I (Male)vehicle/mk1_male/
gb_mk1_femaleMark I (Female)vehicle/mk1_female/
gb_mk4_maleMark IV (Male)vehicle/mk4_male/
gb_mk4_femaleMark IV (Female)vehicle/mk4_female/
gb_whippetMedium Mark A 'Whippet'vehicle/whippet/
gb_armored_carRolls-Royce Armoured Carvehicle/armoredcar/
gb_supply_lorrySupply Lorryvehicle/truck/
gb_stretcher_bearersStretcher Bearersunit/gb/hurt/
fr_rifle_sectionEscouade d'infanterieunit/fr/rifle/
fr_chauchat_sectionGroupe de fusiliers-mitrailleursunit/fr/gunner/, unit/fr/rifle/
fr_grenadiersGrenadiers d'éliteunit/fr/bomber/
fr_hotchkiss_teamSection Hotchkissweapon/hmg_fr/, unit/fr/crew/
fr_58mm_mortarCrapouillot 58 Tweapon/mortar_fr/, unit/fr/crew/
fr_75mmCanon de 75weapon/fieldgun_fr/, unit/fr/crew/
fr_155mm155 C Schneiderweapon/howitzer_fr/, unit/fr/crew/
fr_aa_gunAutocanon de 75weapon/aagun_fr/, unit/fr/crew/
fr_sniperTireur d'éliteunit/fr/sniper/, unit/fr/rifle/
fr_observerObservateur d'artillerieunit/fr/officer/, unit/fr/rifle/
fr_genieSapeurs du génieunit/fr/engineer/
fr_officerChef de sectionunit/fr/officer/, unit/fr/rifle/
fr_cavalryEscadron de cuirassiersunit/fr/cavalry/
fr_renault_ftRenault FTvehicle/renault_ft/
fr_schneiderSchneider CA1vehicle/schneider/
fr_armored_carAutomitrailleuse Peugeotvehicle/armoredcar_fr/
fr_supply_lorryCamion de ravitaillementvehicle/truck_fr/
fr_stretcher_bearersBrancardiersunit/fr/hurt/
de_rifle_sectionGruppeunit/de/rifle/
de_lmg_sectionLeichte MG-Gruppeunit/de/gunner/, unit/de/rifle/
de_stosstruppStoßtruppunit/de/rifle/, unit/de/smg/
de_mg08_teamMG 08 Truppweapon/hmg_de/, unit/de/crew/
de_light_mwLeichter Minenwerferweapon/mortar_de/, unit/de/crew/
de_medium_mwMittlerer Minenwerferweapon/mittlerer_mw/, unit/de/crew/
de_77mm7.7 cm Feldkanoneweapon/fieldgun/, unit/de/crew/
de_15cm_howitzer15 cm schwere Feldhaubitzeweapon/howitzer/, unit/de/crew/
de_aa_gunFlak-Zugweapon/aagun/, unit/de/crew/
de_atrifle_teamTankgewehr-Truppunit/de/atrifle/, unit/de/rifle/
de_flamethrowerFlammenwerfer-Truppunit/de/flame/, unit/de/bomber/
de_sniperScharfschützeunit/de/sniper/, unit/de/rifle/
de_observerArtilleriebeobachterunit/de/officer/, unit/de/rifle/
de_pionierePioniereunit/de/engineer/
de_officerZugführerunit/de/officer/, unit/de/rifle/
de_cavalryUlanen-Schwadronunit/de/cavalry/
de_a7vA7V Sturmpanzerwagenvehicle/a7v/
de_armored_carEhrhardt Panzerwagenvehicle/armoredcar_de/
de_supply_lorryNachschub-Lastwagenvehicle/truck_de/
de_stretcher_bearersKrankenträgerunit/de/hurt/

Which pictures an aircraft is drawn from

AircraftNameDrawn from
be2cB.E.2caircraft/be2c/
re8R.E.8aircraft/re8/
farmanFarman MF.11aircraft/farman/
albatros_cAlbatros C.Iaircraft/albatros_c/
rumplerRumpler C.IVaircraft/rumpler/; before February 1917: aircraft/albatros_c/
breguetBreguet 14aircraft/breguet/
breguet_reconBreguet 14 A2aircraft/breguet/; before May 1917: aircraft/farman/
dh2Airco DH.2aircraft/dh2/
nieuportNieuport 17aircraft/nieuport/
albatrosAlbatros D.IIaircraft/albatros/; before February 1917: aircraft/albatros_d2/
camelSopwith Camelaircraft/camel/
spadSPAD S.XIIIaircraft/spad/; before February 1918: aircraft/spad_17/
fokkerFokker D.VIIaircraft/fokker/
halberstadt_cl2Halberstadt CL.IIaircraft/halberstadt_cl2/
dh4Airco DH.4aircraft/dh4/
gothaGotha G.Vaircraft/gotha/
balloon_caquotCaquot observation balloonaircraft/balloon_caquot/; before September 1916: aircraft/balloon_drachen/
balloon_drachenDrachen observation balloonaircraft/balloon_drachen/; from July 1917: aircraft/balloon_caquot/

Mission words

The words a battle (an entry of scenarios) can use, and the fields each one reads. Positions and lengths are in tiles, times in seconds. An area is [x, y, width, height]. Where a condition or an action has a faction and you leave it out, it is the first side of factions, unless the table says otherwise. units names kinds of unit: ids, or roles.

The parts of a battle

Each part of an entry of scenarios, with its fields. Objectives, conditions, actions and map features have tables of their own.

PartFieldsWhat they are
The battleid, name, description, briefing, locationIts id, and its texts. description is on the campaign's page.
date, yearWhen it is fought. The date names a month. Units and call-ins have years, uniforms change with the date, and so does the front on the staff map.
latitude, longitude, clockWhere it is fought, for the sun. clock is the army whose hour it keeps: gb, fr or de.
seedThe number the battle's luck comes from. It is the map's seed too, when the map has none.
map, factions, relations, sectors, units, structures, trenches, objectives, triggers, weather, hqIts parts, below.
startHour, timeScaleThe hour at the start (4.5 is 04:30), and the minutes of the day that pass in each second of the battle.
timeLimitHow long it lasts. 0, or nothing: no limit.
playerFactionThe side the player commands.
musicIts piece of music: battle, elegy, or a piece of your own.
categorycampaign.
difficultyLabel, difficultyScaleHow hard it is among its campaign's (Easy, Normal or Hard), and how much the player's difficulty changes the enemy's numbers, from 0 to 1.
fixedManpowertrue: each side has only the manpower it starts with.
aiTempoHow long the computer's commanders wait before and between attacks: 1 is usual, less is shorter.
artilleryTimeScaleAs timeScale, for how often the guns fire without orders. 0: the same.
decisiveEndings, decisiveLeadThe endings of the custom battles: a side that is far weaker than its enemies, or has lost its rear, is beaten. With decisiveLead, a side that holds most of the ground for minutes wins.
Headquarters (hq)requestsauto, scripted (only your own hq_request actions), off (none, and your own neither).
kindsThe requests it may make. An empty list: all of them.
firstRequest, intervalWhen the first one comes, and the time between two: [least, most].
expectedLossesThe losses it expects. The report compares yours with it.
telephonefalse: no telephone rings.
The map (map)recipe, seedThe battlefield it is built from, and the number it is built with.
width, heightIts size in tiles. 0: the battlefield's.
rivers, villages, roads, farms, streamsHow many the game adds of its own. 0: none. -1: as many as the battlefield has. Farms and streams need country.
featuresWhat you put on it: the map features.
country, keeptrue: fields, hedges, farms and woods grow round the ground the battle is fought on. keep lists more areas to leave as they are.
canaltrue: the rivers are canals.
baseTerrain, dryTerrain, dryPatchAmount, fieldCoverageThe kinds of ground in place of the battlefield's, and how much of it is dry, or fields.
landmarks, propsThe structures its villages have, in place of the battlefield's. An empty list: none.
Sides (factions)id, def, displayName, colorIts id in this battle, its army, its name and its colour.
controller, ai, difficultyWho commands it: player, ai, or passive (nobody). A computer's commander, and how good it is: easy, normal, hard or veteran.
teamSides of the same team are allies.
rearEdgeThe edge behind it: west, east, north or south. Its new units and its supply come from there.
hq, depotsWhere its headquarters and its supply depots stand.
startResources, incomeThe manpower and materiel it starts with, and what it gets each second.
availableUnits, callIns, doctrinesWhat it can buy and call for, and the doctrines it has. Without the first two: what its army has in that year.
unitCapThe most units it can have at once. 0: no limit.
canPurchasefalse: it buys nothing, and its staff neither.
autoFirefalse: its guns fire only when its commander asks.
artilleryChanges to its army's artillery tempo in this battle.
Relations (relations)a, b, relationTwo sides that are allied, neutral or hostile, whatever their teams.
Sectors (sectors)id, nameIts id, and its name on the map.
polygon, seedIts corners, and its middle. A sector with a seed alone is the ground nearest to it.
ownerThe side that holds it at the start.
keytrue: the map marks it.
neutraltrue: no man's land. Nobody ever holds it, and no objective can name it.
valueHow much a computer's commander wants it.
incomeThe manpower and materiel its owner gets each second. A sector without one pays its owner.
Units (units)faction, unit, countThe side, the unit, and how many.
at, spread, facingThey stand in a row across the way they face, spread tiles apart, with at in the middle.
entrenchedtrue: the men start in the nearest trench or cover.
garrisontrue: they start inside the nearest building with room. Infantry only, and machine guns in a pillbox.
stancehold_fire, or fire_at_will.
tagA name of your own, for objectives, conditions and actions. One that starts with script: keeps them from the staff.
veterancyHow experienced they are, from 0 to 3.
Structures (structures)structure, at, angleThe structure, its place, and how far a house is turned, in degrees.
faction, tagThe side that owns it, and a name of your own.
healthFrom 0 to 1: how whole it is at the start.
Trenches (trenches)faction, pointsThe side that owns it, and the line it follows.
zigzag, depth, sandbags, dugoutsWhether it is dug in bays, how deep it is (from 0 to 1), whether it has sandbags, and how many dugouts.
facingDegrees, wireOffsetThe way it faces, and how far in front its wire is. 0: no wire.
rolefire: men are posted in it whatever way it runs. reserve: the men in it wait there as the reserve.
Weather (weather)initial, dynamicThe weather at the start, and whether it changes by itself.
scriptThe changes you want: [{ "at": 600, "weather": "rain" }].
windDirection, windSpeedThe way the wind blows to, in degrees, and its tiles a second. It carries smoke and gas.
wetnessHow wet the ground is at the start, from 0 to 1.
Triggers (triggers)id, conditions, actionsIts id, what it waits for and what it does.
modeany: one condition is enough.
once, cooldown"once": false: it runs again, with at least cooldown seconds between.
enabledfalse: it waits for an enable_trigger.

Objectives

Every objective has an id, the faction it is for, a type, a text and a short text. "primary": false makes it optional, "awardsStar": true gives a star for it. "startActive": false keeps it closed until an objective_add. "hidden": true hides it from the player.

TypeIt is done whenIts fields
capture_sectorsThe side or an ally holds every sector. With "keySectors": true: every sector marked key.sectors, keySectors
hold_sectorsduration seconds have passed, and the side or an ally holds every sector. It fails after a minute with none of them.sectors, keySectors, duration
surviveduration seconds have passed. It fails when the side is beaten.duration
reach_areacount of the side's units are in the area at the same time. With tags or units: of those units.area, count, tags, units
protect_unitsduration seconds have passed. It fails when none of the units is left.tags, units, duration
destroy_unitsNo unit with one of the tags is left. A gun with too few men to fire counts as gone. Without tags: the side has put count enemy men out of action.tags, count
destroy_structuresEvery structure with one of the tags is in ruins. Without tags: every headquarters and depot of targetFaction.tags, targetFaction
eliminate_factionThat side is beaten.targetFaction
establish_linecount tiles of the area are deep trench of the side's. Without area: anywhere. A tile counts even if it is lost later.area, count
take_trenchOf the enemy's trench tiles in the area at the start, the side or an ally holds count, for duration seconds without a break.area, count, duration, targetFaction
control_shareThe side and its allies hold this share of the map, from 0 to 1, for duration seconds without a break.value, duration
reach_statThe number stat of the side has reached count.stat, count

Conditions

A condition with "not": true holds when it is false. compare is gte (at least), gt (more), lte (at most), lt (less) or eq. Without it: at least. A faction is a side's id.

TypeIt holds whenIts fields
alwaysAlways.
timeThe battle has lasted time seconds.time
triggerThat trigger has run, at least time seconds ago.trigger, time
objectiveThe objective is completed, failed or active. Without state: completed. With active and a time: for that long.objective, state, time
sector_ownerThe side or an ally holds the sector. Without faction: nobody holds it.sector, faction
units_in_areaSo many of the side's units are in the area. Without count: any. With tag or units: of those units.faction, area, tag, units, count, compare
unit_countThe side has so many units. "pending": true also counts the units of those kinds that are on their way.faction, tag, units, count, compare, pending
structure_destroyedA structure with the tag is in ruins.tag
flagThe flag has been set, and has this value. Without value, or with 0: 1.flag, value, compare
statA number of the side.faction, stat, count, compare
casualties, team_casualtiesThe men the side has lost, or the side and its allies.faction, count, compare
strength_ratio, team_strength_ratioThe strength of the side, or of the side and its allies, divided by its enemies'.faction, value, compare
randomBy chance, from 0 to 1, tried at every check (twice a second).chance
flying_weatherAircraft can fly: no fog, no storm, and not night.
attackThe side's commander has an attack under way. Your script's own attacks do not count.faction, area, count, compare, prep, creeping, smoke, heavies, commit
trenchThe side has a stretch of trench with that priority (low, normal or hold) or that order.faction, area, count, compare, priority, abandon, counterAttack, standing
barrageThe side's commander has a barrage under way.faction, area, count, compare
worksThe side has that structure, or is building it. With "state": "building": is building it. "structure": "wire" and "trench": it is laying wire, or digging.faction, structure, state, area, count, compare
call_inThe side has used that call-in, and it is not ready again.faction, callIn
reserveThe share of its infantry that the side keeps back, from 0 to 1.faction, value, compare

Actions

TypeWhat it doesIts fields
spawn_unitsBrings units on. They come on at the side's rear edge, level with at. With "fromEdge": false they appear at at. With to, they then go there. "alert": false does not tell the player.faction, unit, count, at, fromEdge, spread, to, route, tag, alert
move_unitsSends the units with the tag to to, or to the nearest structure of that kind of their side. mode is normal, fast or attack.tag, to, structure, mode, spread, route, faction
release_unitsGives the units with the tag to the side's staff.tag, faction
kill_units, remove_unitsKills the units with the tag, or takes them off the map.tag, faction
unit_stanceA fire order for the units with the tag: hold_fire or fire_at_will.tag, stance, faction
garrison_unitsSends the units with the tag into the nearest building with room, near at or near themselves. Infantry only, and machine guns into a pillbox.tag, at, faction
messageA letter. With faction, only that side reads it. slip is its paper: memo, signal, telegram, circular, dienst or report. from has at most 32 characters, stamp at most 28. place is the place it is about: when the player taps the message, the view goes there.title, text, faction, slip, from, stamp, place
objective_addOpens an objective.objective
objective_complete, objective_failCompletes or fails an objective. If the objective has "startActive": false, give the trigger the condition objective with "state": "active", or the action "early": true.objective, early
victory, defeatEnds the battle: the side wins, or loses.faction
weatherChanges the weather. Without weather: clear.weather
resourcesAdds to the side's stock. A number below 0 takes away.faction, manpower, materiel
barrageShells from off the map.faction, weapon, shell, at, rounds, radius, duration
fire_planThe side's own guns fire at a place, or along the line from at to to. value is how hard they fire, 1 without it.faction, at, to, shell, radius, duration, value
explosionA mine goes up, or count of them. "bridge": true also blows the bridges there.at, radius, count, spread, bridge, faction
air_raidSends aircraft. Without aircraft: the army's bomberAircraft. The trigger waits for flying weather.faction, at, count, aircraft
raise_balloonThe army's balloonAircraft goes up, if the weather allows it. Add the condition flying_weather.faction, at
spawn_structurePuts a structure there, or on free ground near it.structure, at, faction, tag
sector_ownerGives the sector to the side. Without faction: to nobody.sector, faction
take_trenchesGives the enemy's trenches in the sector to the side.faction, sector
abandon_trenches, no_counter_attackThe side leaves its trenches in the sector, or near at. Or it does not take them back when it loses them.faction, sector, at, radius
revealShows the ground of the area on the side's map.faction, area
relationMakes the side faction and the side target allied, neutral or hostile.faction, target, relation
ai_postureTells a side's computer commander what to do: offensive, push (several attacks at once), balanced, defensive, or auto (as it likes).faction, posture
hq_requestHeadquarters asks the player for something: one of the requests. Nothing happens while another request is open.request, area, at, count, duration, reward
flagSets a flag: a number with a name of your own. Without value, or with 0: 1. "add": true adds to what it holds.flag, value, add
enable_trigger, disable_triggerTurns a trigger on or off. A trigger that has run does not run again, unless it has "once": false.trigger
cameraMoves the view. With faction, only that player's.at, faction
soundPlays a sound at a place. It is heard near there. Without at, the place is the map's north-west corner.sound, at
wave_notice, battalion_noticeNotices of the game's own custom battles. Use a message.

Map features

The features of a battle's map. A line is in points, as [x1, y1, x2, y2, ...].

TypeWhat it isIts fields
hillHigher ground.at, radius, strength
valleyLower ground, round a point or along a line.at, points, radius, width, strength
ridgeHigher ground along a line.points, radius, strength
flattenLevel ground.at, radius
forest, clearing, lakeA wood, a gap in the woods, a lake.at, radius
fieldA field of that terrain. Without terrain: ploughed.at, radius, terrain
terrainGround of that terrain.at, radius, terrain
riverA river along a line.points, width
village, towncount buildings along streets, with a name on the map.at, count, name, buildings
roadA road along a line, a dirt road without terrain. With "terrain": "road_cobble": cobbles.points, width, terrain
treeline, hedgeTrees or a hedge along a line.points
tank_trapsA line of tank traps, which no vehicle crosses.points
crater_fieldcount shell holes.at, radius, count, strength
shelledGround that has been shelled.at, radius, strength

Numbers of a side

What a stat condition and a reach_stat objective count.

NameWhat it counts
soldiersKilledenemy men it has put out of action
soldiersLostits men killed and wounded
shellsFiredshells it has fired
shotsFiredshots it has fired
trenchTilesDugtiles of trench it has dug
wireLaidtiles of wire it has laid
barragesOrderedbarrages ordered with the shell tool
assaultsLaunchedattacks its commander has ordered
assaultsRepulsedof those attacks, the ones that were thrown back
structuresDestroyedstructures of others it has destroyed
sectorsCapturedsectors it has taken
sectorsLostsectors it has lost
unitsPurchasedunits it has bought
requisitionsof those units, the ones its commander asked for
vehiclesDestroyedenemy vehicles it has destroyed
structuresBuiltstructures it has built
dugoutsBuiltdugouts it has built
mgNestsBuiltmachine-gun nests it has built
requestsDonerequests of Headquarters it has done
worksMetrestiles of trench and of wire together

Words of text fields

fields.txt calls these fields string, and each takes the words here. A field of the kind enum has its words in fields.txt.

FieldIts words
abilities[].effectcharge, flare, smoke_grenade, grenade_volley, gas_release, sprint. With any other word the ability does nothing.
abilities[].targetnone, point, unit
aiPersonalities[].attackStylemethodical, biteAndHold, massed, infiltration, horde
aiPersonalities[].defenseStylerigid, elastic
callIns[].targetpoint, line, none
commendations[].all[].metrictrenchMetres, wireMetres, dugouts, mgNests, repairMetres, requestsDone, requestsDeclined, requestsFailed, requestsLapsed, tidyDone, lendDone, casualties, shelledMen, shelteredShare, lossesVsExpected, groundChange, sectorsCaptured, sectorsLost, favour, battleMinutes, straightness, shellsFired
commendations[].all[].opgte (at least), gt (more), lte (at most), lt (less), eq
doctrines[].effects[].typestat, unlockUnit, unlockCallIn, unlockAbility
doctrines[].effects[].targetThe id of the unit, call-in or ability. For the type stat: artilleryDispersion, artilleryReload, digRate, buildRate, morale, suppressionResistance, gasProtection, reinforceCost, callInCooldown, callInCost, infantrySpeed, vehicleReliability, vision, captureRate, income, accuracy, splinterLethality
mapRecipes[].climatetemperate, winter
mapRecipes[].frontAxisvertical (the sides are west and east), horizontal (north and south)
scenarios[].categorycampaign
scenarios[].difficultyLabelEasy, Normal, Hard: how hard the mission is among its campaign's
scenarios[].hq.requestsauto, scripted (only your own hq_request actions), off (none, and your own neither)
scenarios[].hq.kinds[]The requests that Headquarters may make. An empty list: all of them.
scenarios[].trenches[].rolefire, reserve, or leave it out
scenarios[].triggers[].modeall, any
scenarios[].triggers[].conditions[].comparegte (at least), gt (more), lte (at most), lt (less), eq. Without it: at least.
scenarios[].units[].stancehold_fire, fire_at_will
structures[].placementground, trench
units[].canBuild[]trench, wire, sandbags, or a structure
units[].members[].roleThe man's figure: lmg or gunner, officer, sniper, engineer, crew, bomber, flame, smg, atrifle, cavalry. With any other word (rifle, scout, assault) he is a rifleman, or the figure of his weapon: a pistol, a submachine gun, an anti-tank rifle.
units[].mounts[].mountfront, left, right, rear, turret
units[].rolearmoredcar, assault, bearer, cavalry, crew, engineer, flame, lmg, officer, rifle, scout, sniper, tank, truck. Give an army an infantry unit with rifle: its staff buys those. Sappers have engineer.
units[].tags[]assault, sniper, mg, antitank, fast (a fast tank). Other words do nothing in a custom battle or in a battle of your own.
weapons[].explosion.sizesmall, medium, large

The game does not read these fields: abilities[].sound, aircraft[].engineSound, factions[].flag, units[].vehicle.engineSound.

What an entry needs

These fields are in every entry of the game. Start a new entry with them. For an army, a battlefield, a battle and a campaign, start from the example mods.

KeyFields
unitsid, name, faction, category, role, icon, tags, speed, vision, morale, cost, deployTime, ai, description
units, infantryalso members, reinforceCost
units, teamalso members, crewWeapon, canDig, reinforceCost
units, vehiclealso movement, vehicle, canDig, canCapture, canGarrison
a unit's vehiclehull, armor, turnRate, acceleration, crew, repairTime, length, width, sprite
a unit's crewWeaponweapon, sprite, minCrew, setupTime, packUpTime, packedSpeedMultiplier, health
a unit's membersrole, weapon, count
a vehicle's mountsweapon, mount, arc
weaponsid, name, category, range, damage, accuracyNear, accuracyFar, fireInterval, magazine, reloadTime, sound
weapons with shells, bombs or grenadesalso projectile, explosion
shellsid, name, kind, icon, description
abilitiesid, name, effect, icon, cooldown, target, description
structuresid, name, width, height, health, armor, structureHeight, sprite, category
terrainid, name, texture, minimapColor, blendPriority
aircraftid, name, role, speed, turnRate, health, altitude, vision, stationTime, evasion, sprite
aircraft, fighteralso weapon
aircraft, bomberalso weapon, bomb, bombs
callInsid, name, faction, kind, icon, cost, cooldown, delay, description
callIns, airBomberalso year, aircraft, aircraftCount, target
callIns, airFighteralso year, aircraft, aircraftCount
callIns, airReconalso aircraft, aircraftCount
callIns, barragealso weapon, shell, rounds, pattern, radius, duration
callIns, reinforcementsalso target, units
callIns, supplyalso target, grant
doctrinesid, name, faction, cost, branch, tier, icon, effects, description
artilleryTempoid, faction, year, programmeStockPerGun, programmePerGunHour, programmeScale, routinePerGunHour, sosMinutes, callInMinutes
aiPersonalitiesid, name, aggression, caution, artilleryAffinity, fortifyAffinity, airAffinity, armorAffinity, reserveRatio, counterAttack, retreatThreshold, adaptiveness, planningInterval, attackStyle, defenseStyle, attackForceRatio, description
mapRecipesid, name, width, height, baseTerrain, dryTerrain, dryPatchAmount, elevationScale, elevationFrequency, ridgeStrength, rivers, villages, villageMinBuildings, villageMaxBuildings, roads, farms, fieldStrip, streams, forestCoverage, fieldCoverage, hedgeDensity, treeLineChance, frontAxis, climate, villageBuildings, landmarks, props, description

Towns and rivers

The names that a campaign's mapTowns and mapRivers can use. Write them exactly as here, with their accents.

Towns

Rivers

Messages

What the game says when something is wrong with a mod, and what to do. The game shows its messages in your language. Here they are in English. X is a file's path in the mod. Y and Z are an id or a name. A message that is not here says itself what to change.

Errors in a JSON file

Each of these follows a file's name.

MessageWhat to do
Line N, column M: not valid JSON. ...Look at that place, and before it, for a missing comma or bracket, or a name or text without double quotes.
The file ends too soon: a }, a ] or a closing quote is missing.Close every {, [ and " that you opened.
The file is empty: it must hold one JSON object, in { }.Write the file's fields inside { }.
The file must hold one JSON object, in { }.Put everything inside one { }, in place of a list.
Line N, (path): "Y" is written twice. Keep one.Delete one of the two.
Line N, (path): "Y" is not a field the game knows. ...Fix the name's spelling or letter case, or move it to its right place. Look it up in fields.txt.
Line N, (path): must be ...Write a value of the kind the message names. If it ends "without quotes.", take the quotes off.
Line N, (path): a \u code in this text is not a whole character. Remove it.Write the letter itself, and save the file as UTF-8.

"Can't be loaded:"

The folder or its mod.json is wrong.

MessageWhat to do
This folder has no mod.json.Put mod.json directly in the mod's folder. After an unzip, the mod's folder may be inside another one: move the inner folder into the mods folder.
X: rename it mod.json, in lower case.
X: rename it index.json, in lower case.
Rename the file.
mod.json: The file is not UTF-8 text: save it as UTF-8.Save the file again with the encoding "UTF-8".
mod.json must hold one JSON object: the mod's id, name and format.
mod.json is empty.
Write the file as one object, { }, with the fields in it.
mod.json must say the mod format it was made for: "format": 1.Add "format": 1.
Made for a newer version of the game ...Update the game.
The mod's id must be 1 to 32 characters ...Use only a to z, 0 to 9, - and _, and start with a letter or a digit.
The mod's name must be 1 to 48 characters on one line.The name is missing or too long, or it holds a tab or a line break.
The mod's version must be at most 16 characters on one line.
The mod's author must be at most 48 characters on one line.
Shorten it, on one line.
The mod's description must be at most 400 characters.Shorten it. Write a line break as \n, and no tab.
"after" lists the ids of other mods.An id in after is wrong, or is the mod's own.
A mod loads after 16 others at most.Shorten after.
mod.json is larger than 64 KB.Take out the comments.
Two folders hold the mod 'Y' ...: keep one.Delete one folder, or give one of the mods another id.
More than 64 mods: this one is not loaded.Remove the mods you do not use.

"Not loaded this time:"

The mod's data has an error, and the game started without the mod.

MessageWhat to do
index.json: Content index not found.Add index.json.
index.json: The content index lists no files.List the mod's data files in "files".
index.json: 'X' is not a file inside this folder: ...Write the path inside the mod's folder with /, without \, .. and :.
X: Listed in index.json but missing.No file has that path, in exactly that letter case.
X: The file is not UTF-8 text: save it as UTF-8.Save the file again with the encoding "UTF-8".
X: Patch of an unknown entry of "units", 'Y': ...Check the id, and that the mod that adds it is on and loads first.
X: A patch in "units" has no id: ...
X: An entry of "units" has no id.
Give the entry its id.
X: "patch" in "units" must be true or false.Write "patch": true, without quotes round true.
X: The id 'Y' in "units" must be 1 to 32 characters ...Shorten the new id, or take out its spaces and accented letters.
Its "after" makes a circle with other mods (Y): not loaded.Take one of these mods out of the other's after.
Its data does not load with the game's.Read the errors in log.txt.
units/Y: Unknown member weapon 'Z'.Any "Unknown" message: the id is misspelt, or its mod is off or loads later.
units/Y: Morale must be positive.A value is out of its range. The message says the rule.
scenarios/Y: ..., campaigns/Y: ..., mapRecipes/Y: ...Fix what the message names in that scenario, campaign or battlefield.
factions/Y: Missing stretcher bearers.Give the army stretcherBearers.
factions/Y: 'Z' is not a non-combatant unit of this faction.
units/Y: A non-combatant unit ...
Make the stretcher bearers as the guide says.
factions/Y: startingUnits must list ...Give the army startingUnits: at least one of its own units that fights.
factions/Y: startingUnits names 'Z', ...The id is misspelt, or the unit is another army's.
factions/Y: "like" names ...Name one of the game's armies (gb, fr or de), or a mod's army that has no like.
factions/Y: No spriteSet ...
factions/Y: Unknown spriteSet 'Z' ...
Give the army a like, or one of the six figure sets.
factions/Y: The army 'Y' has no telephone: ...Give the army a like.
callers: ...
calls: ...
The army's own telephone lacks a caller or a call. The message names it.

"Loaded, with these problems:"

The mod is in the game, without the picture, sound, piece of music, translation or value that each message names.

MessageWhat to do
X: a picture must be a .png file, with .png in lower case: left out.Save it as PNG, with a name that ends in .png.
X: (w)x(h) pixels, more than 1024 on a side: left out.Make the picture at most 1024 pixels on each side.
X: The file is larger than 4 MB. Left out.Save the picture again with compression on, or make it smaller.
X: Unsupported PNG ... Left out.Export it again as an 8-bit PNG, not interlaced.
X: ...: save it again as an 8-bit PNG (RGBA, not interlaced). Left out.The file is damaged, or is another kind of file. Export it again.
X: the mods' pictures are too many or too large: left out. ...Use fewer or smaller pictures.
X: the game's letters cannot be replaced: left out.A mod cannot change the font.
art/sprites.json: ...Fix what the message names in sprites.json.
X: a sound must be a .wav file, with .wav in lower case: left out.Save it as WAV, with a name that ends in .wav.
X: (what it is): left out. Export it as WAV, ...Export it again as the message says.
X: (s) seconds long, more than 60: left out.Cut the sound to 60 seconds at most.
X: The file is larger than 16 MB. Left out.Cut the sound to 60 seconds at most, or make it mono.
X: the mods' sounds would take more than 24 MB in all: left out ...Use fewer or shorter sounds, or mono.
sounds/Y: none of its sounds could be played, ...Export the sounds of that name again.
X: a piece of music must be a .wav file, with .wav in lower case: left out.Save it as WAV, with a name that ends in .wav.
X: a piece is a file music/<piece>.wav, ...: left out.Put the file in the music folder itself, without a folder between.
X: a piece's name is 1 to 32 lower-case letters, digits and _: left out.Rename the file.
X: (what it is): left out. The game takes music as WAV, ...Export it again as the message says.
X: (s) seconds long, more than 360 (6 minutes): left out.
X: (s) seconds long, less than 2: left out.
Make the piece 2 seconds to 6 minutes long.
X: The file is larger than 64 MB. Left out.Export the piece in mono, or at 22050 Hz.
X: a mod has at most 16 pieces of music: left out.Keep 16 pieces at most.
X: the mods' music would take more than 64 MB in all: left out ...Use fewer or shorter pieces, or turn another mod off.
X: 'Y' is not a language the game translates into, named in lower case: left out.Name the file by its language: fr, de, es, ru or tr, such as text/fr.json.
X: a translation is a file text/<language>.json, ...: left out.Put it in the text folder itself, named by its language.
X: not a JSON file the game can read (line N): left out.Fix the JSON at that line: a comma, a quote or a bracket is missing.
X: 'Y' is not a part of a translation file (only "exact"): left out.Keep only the exact object.
X: must be {"exact":{"English":"translation"}}: left out.Write the file as the guide shows.
X: the translation of "Y" is not a text in quotes: left out.Write it between quotes.
X: the translation of "Y" is an English text of the game: left out.
X: the translation of "Y" is another text the mods translate: left out.
Word it otherwise.
X: "Y": an English text and its translation must both have words: left out.Give both a word, or take the entry out.
X: "Y": longer than 8000 characters: left out.
X: more than 8192 translations: ... left out.
X: The file is larger than 2 MB. Left out.
Use shorter texts, or fewer.
X: the game's font has no ...: drawn as spaces.Use the letters that the guide lists.

Adding a mod on Android

These show at the bottom of the Mods screen. A message of the first two tables says what is wrong with the mod.json in the .zip.

MessageWhat to do
The file is not a .zip the game can read: zip the mod's folder again.Zip the mod's folder again.
The file is larger than 64 MB.
The mod unpacks to more than 128 MB.
'X' is larger than 16 MB.
Use fewer or smaller pictures, sounds and pieces of music.
The archive holds more than 4096 files.Use fewer files.
The archive holds more than one mod.json: ...Zip each mod on its own.
The archive holds no mod.json ...Zip the mod's folder itself.
'X' is not a file inside the mod's folder.
'X' is a name some systems cannot hold ...
Rename the file.
'X' is in the archive twice, differing only in capital letters.Rename one of the two files.
The archive holds a store.json, ...Take that file out of the .zip. Only the mod store writes it.
The mod could not be added: ...The phone could not write the mod. Free some space, and try again.