570eb3aceb7c7d16f16299f6285266718284f15c
WinMain now wraps the engine block in a loop: when a front-end-launched mission ends under the local console, the setup screen comes back in the same process instead of exiting (the arcade relaunch-per-mission model). Replaces the CreateProcess self-respawn - required for Steam, where the lobby and sockets must survive across races. Second-cycle re-init crash fixed: d3d_OBJECT kept a static texture cache keyed by filename, so race 2 got IDirect3DTexture9 pointers created on race 1 destroyed device and died at first draw (DrawMesh AV). The cache is now flushed in ~DPLRenderer before the device is released, and ParticleEngine::Initialize drops particles left over from the previous mission. Verified: three consecutive 30s races in one PID, each stopped on time by the console with final scores collected. Also: L4CONSOLELEN env override for test-length races, and the console exposes MissionCompleted() for the loop. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Red Planet 4.12
Red Planet is the VWE pod-racing game built on the in-house MUNGA engine
(Win32 / DirectX 9, MUNGA_L4 platform layer). The 4.12 line is the
consumer port: a version of Red Planet that can be sold on Steam and played
over internet multiplayer, without cockpit-pod hardware.
Forked from RP411 (the arcade/cockpit 4.11 line) with full history preserved.
Goals
- Steam distribution — Steamworks integration, SteamPipe builds, store-ready packaging.
- Internet multiplayer — take the engine's LAN-era WinSock networking online (NAT traversal, matchmaking, latency tolerance).
- No cockpit required — keyboard / mouse / gamepad input and on-screen replacements for the pod's RIO panel and plasma display, drawing on vRIO.
- Self-hosted sessions — in-game race setup/join replacing the operator-driven TeslaConsole flow.
See docs/RP412-ROADMAP.md for the plan and the Steam-multiplayer logistics.
Building
Unchanged from 4.11 for now — see BUILD.md
(VS 2005/2008 + DirectX SDK June 2010, Release|Win32, output Release\rpl4opt.exe).
Toolchain modernization is a roadmap item.
Related repositories
| Repo | Role |
|---|---|
| RP411 | Upstream arcade source (this repo's base) |
| VRIO | Virtual RIO panel + vPLASMA display — input bindings and display emulation to fold in |
| TeslaSuite | TeslaConsole / Launcher / vPOD — the arcade session-control stack 4.12 replaces (and a reference for the Munga control protocol, TCP 1501) |
Languages
C++
86.5%
C
13%
PowerShell
0.3%
Assembly
0.2%