SONS OF THE FRONT 1944
Field manual / Entity index
Getting started

Build your first map

Build a room with two team spawns and a flag. Walk it in Sons, then use the same process to build a larger map.

Install TrenchBroom

Download the Windows release and open TrenchBroom. The editor is free to use under the GNU GPL v3 or later. The starter profile below provides the entity definitions and its own material, so you can begin with an empty workspace.

Get TrenchBroom

Get the BSP30 compiler

Download hltools-windows-x64.zip from the release assets. Extract hltools.exe to C:\Mapping\tools. This GPL v2 tool turns the editor’s text .map file into the binary .bsp that Sons loads. Neither tool requires a paid seat.

Get hltools for Windows

Install the Sons editor profile

Unzip the starter kit. In TrenchBroom Preferences, open Game Configuration and click the folder icon below the game list. Copy the entire SonsWorkshop folder there and restart TrenchBroom. Select Sons of the Front 1944 in Preferences and set its game path to C:\Mapping. Create the content and maps folders shown below. Copy the kit’s workshop.wad into content. Its grid texture covers ordinary surfaces, aaatrigger marks trigger volumes, origin marks a hinge, and !workshop_water marks a swimming surface.

C:\Mapping\
  tools\hltools.exe
  content\workshop.wad
  content\maps\
Download the Sons starter kit

Draw and texture a sealed room

Choose New Map → Sons of the Front 1944. The profile uses Valve 220 source format. Drag workshop.wad from File Explorer into the editor and choose the absolute path if prompted. Pick grid in the material browser. Use six touching world brushes for the floor, ceiling and four walls. An interior 256 units wide, 256 deep and 192 high makes a useful first room. Texture all faces, then save the .map under content\maps with a filename of your choice.

TrenchBroom reference manual

Add the spawns and a control point

In the Entity Browser, place two info_player_teamspawn points on opposite sides of the room, with their origins 48 units above the floor. Set team_no to 1 for Allies and 2 for Axis. Place a light near the ceiling and a capture_point near the middle, with its origin about 32 units above the floor. Give it a display name in point_name and leave point_default_owner at 0. On an objective-enabled host, stepping up to this flag changes its owner.

Use the entity recipes

The profile includes the entity classes used in the gameplay and object chapters. Drag a point entity into the scene. For a volume such as capture_area, draw the brush, select it, right-click and choose the brush entity class. The compiler assigns its internal model number. Enter the manual’s key and value in the Entity Inspector as separate fields, without quotation marks. Keys like team_no belong on entities. Server settings like round_limit belong in the map’s .cfg file.

Add outputs to a timeline

Select a multi_manager. In the Entity Inspector, click + below the properties table and replace the new key with the receiver’s targetname. Tab to its value and enter a delay in seconds. Add another row for each output. For the same receiver twice, give the second key a #2 suffix. Sons strips that suffix when dispatching. In this example a button activates the passage immediately and a separate sound receiver half a second later.

Key             Value
targetname      passage_sequence
passage         0
passage_sound   0.5

Compile and check the result

Open PowerShell in C:\Mapping. In the example below, replace your-file with the name you saved. The compiler builds the geometry, collision, visibility and lighting. The second command should report version 30, completed VIS and RAD stages, and one embedded texture for the starter room. For a reported leak, inspect the compiler’s pointfile, close the gap in the outer world brushes and compile again.

.\tools\hltools.exe compile -noembedsource .\content\maps\your-file.map
.\tools\hltools.exe bsp info .\content\maps\your-file.bsp
Compiler reference

Inspect the package and host it

Upload the compiled .bsp to the manifest inspector. For this room, check for two faction spawns and one control point. Set the host’s custom maps folder to C:\Mapping\content and choose the BSP in its maps folder. Keep the editable .map and the editor profile in your authoring workspace. For additional models, sounds or sky art, copy the files you can redistribute to the relative paths in the report. Test both spawns, walk into the flag radius and check that its name and owner appear correctly.

Inspect your BSP