Skip to content

[codex] Restore Stargate VGUI flow#477

Closed
jr551 wants to merge 3 commits into
nillerusr:masterfrom
jr551:codex/restore-stargate-vgui
Closed

[codex] Restore Stargate VGUI flow#477
jr551 wants to merge 3 commits into
nillerusr:masterfrom
jr551:codex/restore-stargate-vgui

Conversation

@jr551

@jr551 jr551 commented May 31, 2026

Copy link
Copy Markdown

What changed

  • Restores the StargateTC HUD/client VGUI sources and wires them into the HL2MP client build.
  • Adds a self-contained Stargate team/class menu for chooseteam / changeclass without relying on .res layout files.
  • Wires server-side Stargate team/class selection, class loadouts, spectator-first join flow, MOTD suppression, and HUD class/portrait messages.

Diagnosis

The local runtime previously had VGUI panel code only in the sibling source tree, not in this fork, so a clean build from this fork could not reproduce the visible Stargate VGUI. Runtime testing also exposed a separate current machine issue: hl2_launcher.exe crashes in shaderapidx9.dll before console.log/RCON when DX9 enumerates display adapter state.

Validation

  • ./waf.bat configure --build-games=hl2mp --out=build_codex_x86 -T release -4
  • ./waf.bat build --out=build_codex_x86 --targets=client,server -j4
  • git diff --cached --check

Deploy Bot and others added 3 commits May 25, 2026 14:08
P1: Source files
- Copy 9 server stargate files + sg_constants.h + sg_weapons.cpp from
  StargateTCSource/sourcecode/ into game/server/stargate/ and
  game/shared/stargate/.
- Add $Folder "Stargate" block to server_hl2mp.vpc and client_hl2mp.vpc.
- Extend $AdditionalIncludeDirectories with stargate paths.

P2/P3: Gamerules + player patches
- hl2mp_gamerules.h: add TEAM_JAFFA=4, TEAM_UNAS=5 to team enum.
- hl2mp_gamerules.cpp: preserve 5 Stargate spawn classnames in
  s_PreserveEnts[]; rename teams to Tau'ri/Goa'uld/Jaffa/Unas;
  rename game description to "StargateTC"/"StargateTC Teamplay".
- hl2mp_player.cpp: EntSelectSpawnPoint now searches Stargate spawn
  classnames first (torri/goauld/marine/unas) with per-team fallback
  chain to combine/rebel/deathmatch.

Build: 0 errors. Server.dll 13.19MB, client.dll 9.85MB.
Runtime test: window title "StargateTC", live game launches,
HEALTH 100 HUD renders, HL2MP MOTD shown, sky/world geometry renders.
Response system loads 217 rules without crashing (was the original
Mapbase+VS2022 heap-corruption point).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Server-side: sg_mcp_debug.cpp — 20 debug/RCON commands for entity inspection,
player manipulation, weapon spawning, button simulation, and networking stats.

Client-side: sg_mcp_debug_client.cpp — 15 commands for VGUI panel tree inspection,
material diagnostics, cursor/keyboard simulation, and client entity queries.

VPC: Register both files in server_hl2mp.vpc and client_hl2mp.vpc Stargate folders.

Gitignore: Exclude source-engine-runtime/ (separate Rust workspace with its own
git history).
@jr551 jr551 closed this by deleting the head repository May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant