diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-30 17:41:44 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-30 17:41:44 +0200 |
| commit | 80c8c3997d6f9e6ce8a710c5702c10b6aec0aa78 (patch) | |
| tree | f7edea603f194eaf2fc317dd48af2cacdeeba876 | |
| parent | 259bee291e74f5f3aeaf3aec8b87c65151ac5aa5 (diff) | |
| download | stalag-80c8c3997d6f9e6ce8a710c5702c10b6aec0aa78.tar.gz | |
Trenchbroom setup
| -rw-r--r-- | README.md | 10 | ||||
| -rw-r--r-- | maps/demo1.map | 4 | ||||
| -rw-r--r-- | maps/demo3.map | 15 | ||||
| -rw-r--r-- | trenchbroom/stalag/Entities.fgd | 24 | ||||
| -rw-r--r-- | trenchbroom/stalag/GameConfig.cfg | 25 | ||||
| -rw-r--r-- | trenchbroom/stalag/GameEngineProfiles.cfg | 10 |
6 files changed, 86 insertions, 2 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..f0e2c51 --- /dev/null +++ b/README.md | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | ## Trenchbroom setup | ||
| 2 | |||
| 3 | ```sh | ||
| 4 | ln -s ~/Projects/stalag/trenchbroom/stalag/ ~/.TrenchBroom/games/ | ||
| 5 | ``` | ||
| 6 | |||
| 7 | - Check that `path` in `GameEngineProfiles.cfg` points to game executable. | ||
| 8 | - Open Trenchbroom and go to `View>Preferences` and check that `Game Path` | ||
| 9 | points to project root. | ||
| 10 | |||
diff --git a/maps/demo1.map b/maps/demo1.map index f7f73f7..a4e2168 100644 --- a/maps/demo1.map +++ b/maps/demo1.map | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | // brush 0 | 6 | // brush 0 |
| 7 | { | 7 | { |
| 8 | ( -176 -64 -16 ) ( -176 -63 -16 ) ( -176 -64 -15 ) brushes/ground_068 0 0 0 1 1 | 8 | ( -176 -64 -16 ) ( -176 -63 -16 ) ( -176 -64 -15 ) brushes/ground_068 0 0 0 1 1 |
| 9 | ( -64 -64 -16 ) ( -64 -64 -15 ) ( -63 -64 -16 ) brushes/ground_068 0 0 0 1 1 | 9 | ( -64 -112 -16 ) ( -64 -112 -15 ) ( -63 -112 -16 ) brushes/ground_068 0 0 0 1 1 |
| 10 | ( -64 -64 -16 ) ( -63 -64 -16 ) ( -64 -63 -16 ) brushes/ground_068 0 0 0 1 1 | 10 | ( -64 -64 -16 ) ( -63 -64 -16 ) ( -64 -63 -16 ) brushes/ground_068 0 0 0 1 1 |
| 11 | ( 64 64 16 ) ( 64 65 16 ) ( 65 64 16 ) brushes/ground_068 0 0 0 1 1 | 11 | ( 64 64 16 ) ( 64 65 16 ) ( 65 64 16 ) brushes/ground_068 0 0 0 1 1 |
| 12 | ( 64 64 16 ) ( 65 64 16 ) ( 64 64 17 ) brushes/ground_068 0 0 0 1 1 | 12 | ( 64 64 16 ) ( 65 64 16 ) ( 64 64 17 ) brushes/ground_068 0 0 0 1 1 |
| @@ -15,7 +15,7 @@ | |||
| 15 | // brush 1 | 15 | // brush 1 |
| 16 | { | 16 | { |
| 17 | ( 64 176 16 ) ( 64 -80 16 ) ( 64 -80 -16 ) brushes/bricks_076c 16 -16 0 1 1 | 17 | ( 64 176 16 ) ( 64 -80 16 ) ( 64 -80 -16 ) brushes/bricks_076c 16 -16 0 1 1 |
| 18 | ( 64 -80 16 ) ( 304 -80 0 ) ( 304 -80 -16 ) brushes/bricks_076c 0 0 0 1 1 | 18 | ( 64 -80 16 ) ( 304 -80 0 ) ( 304 -80 -16 ) brushes/bricks_076c -21 0 0 1 1 |
| 19 | ( 304 -80 -16 ) ( 304 176 -16 ) ( 64 176 -16 ) brushes/bricks_076c 0 0 0 1 1 | 19 | ( 304 -80 -16 ) ( 304 176 -16 ) ( 64 176 -16 ) brushes/bricks_076c 0 0 0 1 1 |
| 20 | ( 304 176 -16 ) ( 304 176 0 ) ( 64 176 16 ) brushes/bricks_076c 0 0 0 1 1 | 20 | ( 304 176 -16 ) ( 304 176 0 ) ( 64 176 16 ) brushes/bricks_076c 0 0 0 1 1 |
| 21 | ( 64 176 16 ) ( 304 176 0 ) ( 304 -80 0 ) brushes/bricks_076c 0 0 0 1 1 | 21 | ( 64 176 16 ) ( 304 176 0 ) ( 304 -80 0 ) brushes/bricks_076c 0 0 0 1 1 |
diff --git a/maps/demo3.map b/maps/demo3.map new file mode 100644 index 0000000..ab0e59d --- /dev/null +++ b/maps/demo3.map | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | // Game: Stalag | ||
| 2 | // Format: Standard | ||
| 3 | // entity 0 | ||
| 4 | { | ||
| 5 | "classname" "worldspawn" | ||
| 6 | // brush 0 | ||
| 7 | { | ||
| 8 | ( -176 -64 -32 ) ( -176 -63 -32 ) ( -176 -64 -31 ) brushes/bricks_076c 0 -16 0 1 1 | ||
| 9 | ( -64 -432 -32 ) ( -64 -432 -31 ) ( -63 -432 -32 ) brushes/bricks_076c 0 -16 0 1 1 | ||
| 10 | ( -64 -64 -16 ) ( -63 -64 -16 ) ( -64 -63 -16 ) brushes/bricks_076c 0 0 0 1 1 | ||
| 11 | ( 64 64 0 ) ( 64 65 0 ) ( 65 64 0 ) brushes/bricks_076c 0 0 0 1 1 | ||
| 12 | ( 64 64 0 ) ( 65 64 0 ) ( 64 64 1 ) brushes/bricks_076c 0 -16 0 1 1 | ||
| 13 | ( 64 64 0 ) ( 64 64 1 ) ( 64 65 0 ) brushes/bricks_076c 0 -16 0 1 1 | ||
| 14 | } | ||
| 15 | } | ||
diff --git a/trenchbroom/stalag/Entities.fgd b/trenchbroom/stalag/Entities.fgd new file mode 100644 index 0000000..b6496a5 --- /dev/null +++ b/trenchbroom/stalag/Entities.fgd | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | @BaseClass = Targetname | ||
| 2 | [ | ||
| 3 | targetname(string) : "Name" | ||
| 4 | ] | ||
| 5 | |||
| 6 | @BaseClass = Origin | ||
| 7 | [ | ||
| 8 | origin(string) : "Origin" | ||
| 9 | ] | ||
| 10 | |||
| 11 | @SolidClass = worldspawn : "Worldspawn" | ||
| 12 | [ | ||
| 13 | message(string) : "Map title" | ||
| 14 | ] | ||
| 15 | |||
| 16 | @PointClass base(Targetname, Origin) size(-16 -16 -16, 16 16 16) = info_player_start : "Player Start" | ||
| 17 | [ | ||
| 18 | angle(integer) : "Angle" : 0 | ||
| 19 | ] | ||
| 20 | |||
| 21 | @PointClass base(Targetname, Origin) size(-8 -8 -8, 8 8 8) = light : "Light" | ||
| 22 | [ | ||
| 23 | light(integer) : "Brightness" : 300 | ||
| 24 | ] \ No newline at end of file | ||
diff --git a/trenchbroom/stalag/GameConfig.cfg b/trenchbroom/stalag/GameConfig.cfg new file mode 100644 index 0000000..f061b4a --- /dev/null +++ b/trenchbroom/stalag/GameConfig.cfg | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | { | ||
| 2 | "version": 9, | ||
| 3 | "name": "Stalag", | ||
| 4 | |||
| 5 | "fileformats": [ | ||
| 6 | { "format": "Standard" } | ||
| 7 | ], | ||
| 8 | |||
| 9 | "filesystem": { | ||
| 10 | "searchpath": ".", | ||
| 11 | "packageformat": { "extension": ".pak", "format": "idpak" } | ||
| 12 | }, | ||
| 13 | |||
| 14 | "materials": { | ||
| 15 | "root": "textures", | ||
| 16 | "extensions": [ ".png", ".jpg", ".tga" ] | ||
| 17 | }, | ||
| 18 | |||
| 19 | "entities": { | ||
| 20 | "definitions": [ "Entities.fgd" ], | ||
| 21 | "defaultcolor": "0.6 0.6 0.6 1.0" | ||
| 22 | }, | ||
| 23 | |||
| 24 | "softMapBounds": "-4096 -4096 -4096 4096 4096 4096" | ||
| 25 | } \ No newline at end of file | ||
diff --git a/trenchbroom/stalag/GameEngineProfiles.cfg b/trenchbroom/stalag/GameEngineProfiles.cfg new file mode 100644 index 0000000..6c672e0 --- /dev/null +++ b/trenchbroom/stalag/GameEngineProfiles.cfg | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | { | ||
| 2 | "profiles": [ | ||
| 3 | { | ||
| 4 | "name": "Stalag", | ||
| 5 | "parameters": "+map ${MAP_BASE_NAME}", | ||
| 6 | "path": "/home/m/Projects/stalag/bin/stalag" | ||
| 7 | } | ||
| 8 | ], | ||
| 9 | "version": 1 | ||
| 10 | } \ No newline at end of file | ||
