# Station 7: Village & farms

## Goal

Buildings, farms and selling points stand on the map, plus decoration. The start point is at the farm. Everything stands on the ground, and every file comes from the game or from your mod.

## Steps

### Place an object

1. Open the tab “Assets” on the right. It lists the objects of the game and of your mod.
2. Pick a category, for example “Buildings”, “Silos” or “Fences”, or type into the search field. The search goes by file name, and the game's files have English names: barn, shed, fence. Each row states the origin: game or mod.
3. Double-click an entry, or select it and start **Place** (`Alt+2`).
4. Click into the map. The object stands. If you hold the mouse button, it glides over the ground until you let go.
5. Place as many copies as you need. Esc ends placing.
6. “Random rotation” and “Follow slope” in the tab apply to every new object.

### Move, rotate, delete

1. Choose **Select** (`Alt+1`) and click an object. Ctrl or Shift while clicking selects several.
2. Switch the handles: **Move** (`W`), **Rotate** (`E`), **Scale** (`R`). Drag an arrow or a ring.
3. Ctrl while dragging snaps. Alt while dragging leaves a copy at the old place.
4. **Drop to terrain** (`PgDn`) puts the selection at terrain height.
5. **Duplicate** (`Ctrl+D`) and **Delete** (`Del`) act on the selection. **Frame selection** (`F`) brings it into view.

### Farms, selling points, productions

1. These are placeables: objects with their own XML file that the game treats as buildings with a function. You find them in the same tab “Assets”.
2. Place them like any object. On saving, the editor enters them into the map's placeable file.
3. “Reference only (no placeable)” places only the model, without a function in the game.
4. **Level ground under placeable** (`Ctrl+L`) levels the terrain under the selected placeable the way the game would when building.

### Spread many small things

1. In the tab “Assets”, select an object, for example a rock or a bush.
2. Choose **Scatter** (`Alt+3`) and add the object to the brush with “+ Selected asset”.
3. Paint over the area. Density, distance, size and rotation are set in the panel.

### Start point and starting vehicles

1. Bring the spot where the game should begin to the centre of the view: hold Alt and double-click the ground.
2. Click **Start point** (`Alt+4`). The start point now lies at the centre of the view; the status line gives its position.
3. Vehicles for a new game are dragged into the map from the tab “Assets” under “Vehicles”.
4. Save with **Save** (`Ctrl+S`). Only then are placeables and vehicles in their files.

### Light, camera, note

1. **Light** (`Alt+7`) creates a light source above the centre of the view. Colour and range are in the tab “Selection”.
2. **Camera** (`Alt+8`) creates a camera from the current view.
3. **Note** (`Alt+6`) puts a text into the scene. The game does not show it.

## Common mistakes

- **An object hangs in the air.** The problem list reports Floating, and Below the terrain for objects in the ground. The button in the row puts them on the ground; “Fix all” does it for the whole group.
- **An object lies outside the map.** The problem list reports Outside the map. Move it back or delete it.
- **An object comes from someone else's mod.** The game loads files only from your mod and from the game data. The problem list reports Files (`p-file-other-mod`); the button copies the files into your mod. Copy other people's files only with their author's permission.
- **A placeable comes from another mod.** Then your map needs that mod as a dependency. The problem list reports Placeables (`p-dependency`) and enters it with one click.
- **A file is missing.** The problem list reports File missing (`p-missing-file`). Put the file back or delete the object.
- **Two placeables have the same id.** This happens when copying. The problem list reports Placeables (`p-uniqueid-twice`); the button assigns a new one.
- **The tab shows no objects of the game.** The editor does not know the game folder. Set it under **Settings** (`Ctrl+,`) on the page “Game and paths”.
- **The new object ends up in a group.** If a group or an object is selected while placing, the new one goes there. Clear the selection first.

## Next

Finally, checking and packaging: [Station 8: Check & publish](./pruefen.md).

