A gamemode heavily inspired by the Baiknor combined arms gamemode, but for ACE
On the Workshop: The Proving Ground and TPG E2 & Starfall Team Functions.
To install: Garrysmod/garrysmod/gamemodes
Requires ACE (Armored Combat Extended) installed under garrysmod/addons/, and a CPPI prop
protection addon such as Nadmod Prop Protection
(without one, vehicles are not protected in the safezones). On
startup TPG checks for ACE/CFW and prints a warning to the server console if
either is missing (see TPG.Config.ValidateACE() in gamemode/config/sh_config.lua).
python tools/build_gma.py packs the gamemode into build/theprovingground.gma for upload.
Title, type and tags come from addon.json. Running gmad on the repo directly doesn't work: a
gamemode has to sit under gamemodes/theprovingground/ inside a .gma, so the script stages it
that way first.
Upload a new build of an existing item with
gmpublish update -id 3820591474 -addon build/theprovingground.gma -changes "..."
(3820591473 for tpg_e2sf, packed with gmad create -folder addons/tpg_e2sf).
gmpublish only sets the file and a square JPG icon. python tools/workshop_page.py tpg (or
tpg_e2sf) sets the rest of the page through Steam's API, with Steam running: the animated
preview, the description from workshop/*.bbcode, the gallery and the required items. It leaves
visibility alone.
media/header.gif is drawn by python tools/media/make_header.py, from the HUD palette, Exo 2
and icon512.png. media/gameplay.gif is built by python tools/media/make_gameplay.py <steam screenshot folder>, which blurs out chat, names and overlays before anything else.
media/e2sf.gif is drawn by python tools/media/make_e2sf.py in the header's style.
media/workshop/ holds the Workshop previews and the tpg_e2sf logo, drawn by
python tools/media/make_workshop.py. The gallery stills come from
make_gameplay.py <steam screenshot folder> --stills build/workshop.
media/modes.gif (all five game modes) and media/loadout.gif (armour tiers, kits, ranks,
commendations) are drawn by python tools/media/make_showcase.py. Its soldiers are the tiers'
real player models, rendered out of GMod's own VPKs into media/tiers/ by
python tools/media/render_tiers.py (needs numpy and a GMod install; GMod never starts).
All of these need Pillow.
The tpg* chip functions (team roster, loadouts, teammate checks) live in a separate addon,
tpg_e2sf. TPG servers need it installed,
because TPG has no chip functions of its own. The same addon also works in plain sandbox: there
it adds stand-in teams (tpg_test_team), so you can build and test chips before joining a
match. Its README lists every function.
GMod only loads Wire and Starfall extensions from a real addon under garrysmod/addons/, never
from inside a gamemode. Install it there like any other addon. On startup TPG prints a warning
to the server console if it's missing (TPG.Config.ValidateE2SFSandbox() in
gamemode/config/sh_config.lua).
For development this repo carries it as a submodule at addons/tpg_e2sf. Clone with
git clone --recurse-submodules, or run git submodule update --init in an existing clone,
then link the folder into garrysmod/addons/ once per machine so the copy you edit is the one
the game loads:
New-Item -ItemType Junction -Path "<garrysmod>\addons\tpg_e2sf" -Target "<garrysmod>\gamemodes\theprovingground\addons\tpg_e2sf"ln -s "<garrysmod>/gamemodes/theprovingground/addons/tpg_e2sf" "<garrysmod>/addons/tpg_e2sf"The addon is its own repository: commit and push changes to it there, then commit the updated
submodule here. Anything it reads from TPG is pinned by tests/test_e2sf_contract.lua.
For best NPC experience get this addon: https://steamcommunity.com/sharedfiles/filedetails/?id=3760260083
WIP


