Skip to content

Hammer-MCP v0.8.0

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Nov 14:32
· 6 commits to master since this release
v0.8.0
a2502e4

Added

  • GoldSrc game configs: the binary GameCfg.wc next to Worldcraft / Hammer 3.x (versions 1.3 and 1.4) is read, so game_configs, fgd_*, compile_sequences and find_assets work with GoldSrc editors too. A config gives the mod folder (gameDir), the game it falls back to (valve), FGDs (relative ones against the editor folder), map / bsp folders and the compile tools ($csg_exe included).
  • find_assets for GoldSrc: models (models/scientist.mdl; texture and sequence-group files like scientistt.mdl, scientist01.mdl are left out), sprites (sprites/glow01.spr), sounds (ambience/wind1.wav) from the mod and valve with their _addon / _downloads folders, plus textures by name from the WADs in those folders and decals from decals.wad ({BLOOD1; a wildcard matches names with or without the { ! +0 -0 ~ prefix). Utility WADs (fonts, gfx, cached, spray / temp decals) are skipped. PAKs (pak0.pak, pak1.pak, ...) in those folders are searched too.
  • The texture WAD list of Worldcraft / Hammer 3.x (Options > Textures) is read from the editor's registry key and searched first; the key of every known GoldSrc editor is in the build registry (settingsKey: Worldcraft 1.1-2.0, Worldcraft 2.1-3.3, Hammer 3.4/3.5 and Neo, CSM, Neon each keep their own).
  • An old GameCfg.wc (version 1.3, Worldcraft 1.6-2.x) has no mod folder: <game exe folder>\valve (or id1) is used and reported as a guess.
  • J.A.C.K. / Jackhammer game configs (VDKGameCfg.ini next to the exe): mod and base folders, FGDs, compilers, and the texture WAD list (Parcel*), which find_assets searches first.
  • J.A.C.K. / Jackhammer Run Map profiles (VDKRunCfg.ini next to the exe) in compile_sequences and run_compile: every profile (Default, Half-Life (Full), (FastVis), ...) with its steps - change directory, copy / delete / rename file, compilers, the game - and $csg_exe / $bspext. A step's "check file" (FileCheck) is enforced: run_compile stops when the step did not write it during this run (hlbsp writes no .prt when the map leaks; a file left from an earlier compile does not count). Delete / rename steps and copy targets may only touch files in the map folder or the game's maps folder. The same goes for "ensure file post-exists" in Hammer's sequences.
  • GoldSrc compile logs in compile_log / run_compile: ----- BEGIN hlcsg ----- stages with timings and ZHLT / VHLT leaks (=== LEAK in hull 0 ===, the leaking entity); the compile log is also looked for in the game's maps folder, where J.A.C.K. compiles. GoldSrc compilers read the .map the editor exports: run_compile refuses to start when that file is missing or older than the open .rmf / .jmf and says how to export it.
  • check_assets for GoldSrc maps (.rmf, .map, .jmf): face textures against the WADs (the game's and those in worldspawn wad), infodecal decals against decals.wad, models / sprites / sounds in any keyvalue and the sky (gfx/env/<skyname>*.tga) against the folders and PAKs; WADs listed in the map but found nowhere are reported. Compiler tool textures (CLIP, ORIGIN, NULL, SKIP, HINT, ...) are not checked.
  • Sound scripts (Source 1): find_assets also finds named sounds (Ambient.Wind, Weapon_Pistol.Single) from the scripts that scripts/game_sounds_manifest.txt lists (precache_file, preload_file, ...; #include / #base followed), loose or inside VPKs; kind soundscript, each hit with its waves. Without a manifest every scripts/game_sounds*.txt is read. The first definition of a name wins, as in the engine. Source 2 sound events (.vsndevts) are not read yet.
  • check_assets checks sounds (Source 1): sound files in any keyvalue (ambient/wind1.wav, sound characters like ) or * stripped) against sound/, and the sound script name in ambient_generic's message against the sound scripts and the map's own maps/<map>_level_sounds.txt.
  • Files inside VPKs and PAKs can now be read (not only listed).
  • OpenCode bridge (new OpenCode tab in the app): each line you write in Hammer's chat (MCP > Chat) also goes into your OpenCode session as a message, so an agent working in OpenCode wakes up and answers without you switching windows. OpenCode 2.x (/api/session/{id}/prompt, queued after the agent's current turn) and 1.x (prompt_async); Basic auth; the session is the one you used last unless you set its id; Test shows where the lines go. A line the agent is already waiting for in wait_for_user goes there instead, and a delivered line is not handed out again by user_requests. A password that would go over plain http to another machine is warned about (Test) and needs confirmation (Save).

Fixed

  • Left 4 Dead and later games (Portal 2, CS:GO, ...) mount pak01_dir.vpk of each search path folder without listing it in gameinfo.txt; it is now mounted too (only when the gameinfo.txt lists no VPKs, as these games do - Source 2013 games list theirs), so find_assets and check_assets see that content.
  • Content is looked up in the order of the gameinfo.txt search paths: a VPK listed before a folder (TF2: tf/tf2_misc.vpk before tf) wins over the folder's loose files, and an auto-mounted pak01_dir.vpk over its folder. Before, every loose folder came first, so find_assets could name the wrong copy.
  • GoldSrc Hammer 3.x shows only the file name in its title when the map window is not maximized (Valve Hammer Editor - tut1.rmf): the full path is now taken from the process command line or found in the configs' map folders, so map tools work there.
  • find_assets (GoldSrc): a model whose name merely ends in t or two digits (foot.mdl next to foo.mdl) is no longer hidden as a texture / sequence-group file - loose files are checked by their header.
  • The build registry called a genuine Valve Hammer 3.5 build "HL-Lab" (goldsrc-hammer-3.5-hllab is now goldsrc-hammer-3.5-b).
  • Entities inside groups of .rmf / .jmf maps were not listed.
  • App: a second click on Start / Stop while the server was still starting (a double click) stopped it again a moment later.

Full Changelog: v0.7.0...v0.8.0