Repository navigation
Releases
Quake 2 Re-release TypeScript v1.1.1
Quake 2 Re-release TypeScript v1.1.1
Play-test fixes across both rulesets, LMCTF end to end, a rebuilt multiplayer front end, and a play-through test gate.
Added
- Bots for the re-release module: the game-agnostic bot brain shared with
quake-1-re-ts (src/qcommon/bot_brain, lifted at its commit f57aadb with
three stuck-bot fixes made here) bound over the kex edicts' sv_entity
projection, the NAV3 navmesh mapped onto the brain's graph, synthesized
weapon/item/monster/interactable knowledge tables (the re-release ships no
bots/*.txt for Quake II), socketless bot client slots seated like local
splitscreen players,addbot/kickbot/bot_skill/bot_count. On retail
q2dm1 two bots roam the navmesh, pick up items and fight. Legacy-module
bots need the sv projection synthesized (see src/server/bots/bot_game_view.ts).
Play-test fixes (Call of the Machine under the re-release module)
- Alpha-tested world surfaces (the re-release's SURF_ALPHATEST flag:
Call of the Machine's foliage and roots) render with their cut-outs in
both renderers instead of black or pink rectangles. - A real model can no longer land on model index 255, the wire's "draw
the player model" slot; a map that precached more than 254 models drew
one monster as the player. - The help computer's text centers inside its panel: the kfont width
measure now scales with the HUD like the draw does, which also fixes
every centered or right-aligned re-release string at HUD scale 2x. - The view weapon draws at any field of view in play (vanilla hid it
above fov 90; the reference and the re-release only do that for
compatibility demo playback). - Hitscan and projectiles hit monsters again after a level change, and
items are picked up: entities kept their area-grid links across a map
change and the grid ring was severed on the first relink (532 solid
entities linked, 89 reachable on a session's second map); the
collision box hull also lacked the merged contents the re-release
trace reads. Every item on Wastelands, Too Deep, Uplink Tower and
Outer Base is now reachable and picks up (575 items swept). - All-maps sweep (2,567 launches, every map under every module,
server messages classified against the original game code): a
point-entity trigger no longer drops the level under The Reckoning,
Ground Zero, CTF and LMCTF (outbase and four other maps); the
re-release module's warnings carry the entity position like the C++;
a BSP whose entity lump runs past the file end (three third-party
maps) loads as vanilla does instead of erroring out. - Client CPU time per frame on the largest re-release maps is down by
about a quarter (Strogg Gateway: 25.1 to 19.0 ms of engine work per
frame): world surfaces draw as vertex arrays, frustum culling passes
its results down the tree, the image lookup is indexed, the pak name
lookup is indexed (a missing file no longer scans every pak entry per
probe), the entity sync skips empty slots, and the per-frame
allocations in the world walk and relighting are gone. This is what
the 40 Hz animation and monster movement were losing to. - Two third-party classic maps with long level names dropped the client
with "Illegible server message" on connect: the server compressed the
very first message, which no reference client can decode before the
server data arrives, and the client dispatched that opcode by a codec
it had not negotiated yet. Both fixed. A map with corrupt surface
edges (amine) is refused with a clean error instead of a crash; the
original engine crashes on it too. - Walking off a step or small ledge under the re-release module no
longer drops the view in one frame: the re-release's step-down moves
the player up to 18 units in a tick and the client's prediction only
smoothed steps up, so the eye teleported down; the reference's
step-smoothing rule (magnitude, accumulated, clamped) is ported.
Second play-test round (classic module on re-release data, LMCTF)
- Returning to a level you already left (Outer Base to Installation and
back) no longer hangs the game on the way back in: the monsters' sight
client search read the entity-state number of the cleared player edict
(vanilla drops player edicts from the level save on purpose) and never
reached its stop condition. It now uses the edict's index like the C. - Changing level no longer crashes the client: client-side prediction
kept clipping against the previous map's brush models after the
collision model the local server shares with it had been reloaded, and
a stale node index is not addressable here the way it was in the C's
static arrays. Prediction skips brush entities until the client has
refilled its clip table for the new map. - Level and server save files are looked for and read in the write
directory only, as the C's fopen(FS_Gamedir()) does. A stale save in
another mounted root (the basedir while the home directory was the
write root) made the engine try to restore a level it then could not
open. - Loud static when stepping into or out of water: the re-release's
footstep sets (splash, carpet, grass, snow, tile) and one klaxon are
24-bit PCM, which the 1997 loader has no path for and decoded as
noise. The reference's 24-to-16-bit conversion is ported. - LMCTF (Loki's Minions CTF) sends every connecting client the
+hook/-hookaliases its own game code stuffs, sobind mouse2 +hookworks as documented. Its rotation list is found through the
search path (the console printed "Can't find lmctf/maplist.txt"). - The menu names LMCTF correctly, no longer offers LMCTF or CTF as
single-player content, and the multiplayer start-server screen gains a
game selector: each mod's own map list and rules (CTF for CTF mods,
deathmatch otherwise) with the vanilla fields kept. Launching a mod
from the menu applies the game directory after the server is torn
down and before the map loads; it used to latch and the map was not
found. - Firing under the re-release data no longer spams "no such frame 1":
the one-frame muzzle flash models were added to the scene twice, the
second time at frame 1. - The classic module on re-release data shows the map's messages as
text: centerprints that arrive as localization keys are localized and
the re-release's leading bind tokens are dropped for the classic HUD. - New
cl_drawfps(1 draws the frames per second top-right at HUD
scale). - Picking up an armor shard under the CTF and LMCTF modules dropped the
game with "Pickup_Armor: item.info is not a GitemArmorT": the armor
info was validated before the shard branch that never reads it (the
shard's info is NULL in the C). - LMCTF scores again: a flag capture, frag or assist adds to the player's
and team's score. The mod keeps per-player statistics in a record it
creates when the client connects (or finds again by name after a drop);
the port cleared that record at connect and never created one, so every
score add was silently dropped and the HUD stayed at zero. - LMCTF assigns the player a team skin the way the mod does: the skins
file's list when it is loaded, else the skinset's built-in team-colored
set, on connect, on team join and on respawn from spectator. The client
kept whatever skin it arrived with, so the HUD portrait lookup printed
"Can't find pic: grunt_i" every frame. The mod's line-based files
(skins.ini, maplist.txt, menus) are read the way the Windows builds read
them: the CR of their CRLF line endings is dropped, so "[blue]" matches
and rotation entries carry no stray character. - The start-server screen gains a ruleset row (Classic 3.21 / Re-release
2023) under the game row, and every game offers both: deathmatch, The
Reckoning, Ground Zero and CTF under the re-release ruleset run the
re-release module on the re-release data, LMCTF under it runs LMCTF's
own code on the re-release wire family. The map list, rules and server
options follow the resolved pair, and the "kex" module name no longer
appears as a game choice. A "-kex" selector now mounts and writes
the mod's own directory and the launch keeps the classic tree as the
fallback root, so LMCTF under the re-release ruleset finds its maps,
skins file and rotation list (verified: lmctf41 loads with the 43-entry
rotation under the re-release module family). - LMCTF under the re-release ruleset puts the player where the server has
them: the re-release wire format carries the player's position as
floats, LMCTF's movement code fills only the classic fixed-point pair,
and the binding between them never mirrored one into the other, so the
client was told it stood at the world origin (spawning outside the
level, every sound heard from far away). - Menus scale at high resolutions and take the mouse. Menus and the
console lay out on a virtual 640x480-class canvas drawn at the same
tier the HUD picks (ui_scale, 0 = auto, named after the reference
client's cvar; a "menu scale" row on the video screen applies it live),
so at 1280x960 every screen is the 640x480 layout at 2x instead of an
8-pixel-font block. The pointer hovers and selects, left click
activates, right click backs out, sliders click and drag, spin values
cycle by half, lists select on hover and scroll by wheel or scrollbar,
fields focus on click; keyboard navigation is unchanged and the Keys
screen still binds mouse buttons. - Server browser redesigned as a dense screen: it renders one tier below
the menu scale (native on a 720-line display) with a source tab strip,
a boxed toolbar (refresh, favourites, address book, masters, hide-empty
and hide-full chips, a text filter, direct address and connect), a framed
table with a header bar, zebra rows, a highlight selection bar and a
drawn sort triangle, a footer with counts and key hints, and a framed
two-column detail card (server info, player list). Every control is
reachable by keyboa...
Quake 2 Re-release TypeScript v1.1.0
Quake 2 Re-release TypeScript v1.1.0
The stepping-stone release toward playing any Quake content under any ruleset.
Any content, any ruleset
The classic 3.21 game module now spawns every re-release entity class as first-class content -- the whole Call of the Machine campaign (its monsters, weapons, items, triggers, shadow lights, props and movers) plays under the classic ruleset, and every one of the 222 shipped maps loads under either ruleset with zero unknown entities. Configstring space is a property of the session: content that outgrows vanilla's limits widens to the re-release layout mid-load; content that fits stays byte-for-byte on vanilla's wire, so vanilla-family remote clients and protocol-34 demos are unchanged. Start points, landmark-relative level transitions and coop-only entity inhibition follow the re-release rules on re-release maps and vanilla's on 1997 maps. The Reckoning, Ground Zero, CTF and LMCTF modules spawn the same full re-release entity set -- every shipped map loads under each of them with zero unknown entities -- and LMCTF maps have their weapons, ammo and armor back. The classic ruleset also presents the re-release's objective compass markers, health bars, hologram effects and compass help path (the breadcrumb trail, now drawn with the re-release's marker model under both rulesets), and on re-release maps the player crouches, jumps and is seen by monsters exactly as on 1997 maps -- the widened session's move format had dropped the fields the classic module reads.
Local splitscreen
One to four players on one machine under both rulesets: keyboard/mouse plus gamepads, per-pane cameras, HUDs, centerprints and sounds. New Game gains a "local players" row; Options gains a Controllers screen with per-player device assignment (by controller GUID, survives replug) and per-player sensitivity, invert and dead zone.
Full shadow mapping (GL)
Cone and point/omni shadow lights cast real shadows from a single cached depth atlas; players, monsters and movers cast shadows. Video > OpenGL gains a shadow-mapping toggle and quality slider, and the toggle takes effect in-session. The 1997 planar model shadow is off by default (id's own default) and never draws on top of shadow mapping.
Rendering
Re-release fog (global, height and sky terms, with fades) and 3D world text render in the GL renderer. Flares render. Skeletal (MD5) models draw their high-resolution skins correctly -- items, monsters and barrels were drawing a magnified crop of the wrong texture panel -- and the re-release's emissive glow maps render on models and world surfaces under both rulesets. Textures upload at native size with driver mipmaps up to the driver's limit (the 1997 skins were all being resampled and lost about half their detail), a truecolor file beside a classic .pcx/.wal wins, and every image keeps the shipped asset's logical size whatever the replacement's format or resolution, so high-resolution replacement packs load and never warp in either renderer. Fit-to-screen works for a 4:3 mode on a 16:9 display, resolution scale goes to 2x supersampling, and the classic HUD auto-scales with the display like the re-release HUD (with a clean font and a proper drop shadow). The sky honors each map's autorotate flag. The software renderer lights re-release maps (decoupled lightmaps), loads the re-release's TGA skies, sizes its per-frame pools to the map, and renders the underwater warp.
Re-release ruleset fixes
Every brush-model entity under the re-release module had collapsed bounds (doors, buttons, plats, trains, triggers, walls -- 11,289 across 211 maps) and ignored its authored spawn keys; both fixed. Crucified prisoners no longer crash map loads; long start_items keys are no longer truncated; the module's landmark flag tested a bit no map carries.
Also
Level changes between the largest re-release maps no longer hit the GL image cap, and a map change that fails part-way drops cleanly to the console instead of running a game frame over a half-built level. LM-CTF is a complete port now: player view, HUD, scoreboards, weapon firing, flag carry, runes, votes, every client command and the maplist rotation, ported from lmctf60 with behavior kept exactly. Mod directories mount every pak they hold, so named map packs load, and a stray renderer name in an old config (r1gl) means gl instead of a fall back to software. Demos you record play back, and the retail attract demo plays; oversized frames reach the network fragmenter (mgu5m1/mgu5m2 rendered black before); tall menus scroll and start below their banner; menu values sit beside their labels; Player Setup lists a classic install's loose player models; the Video menu has a HUD scale setting; the New Game screen never hides, blanks or locks a choice; the re-release install is auto-detected when nested under a classic basedir, and with that layout every ruleset and map-set combination loads the map set you chose with localized objective text.
Quake 2 Re-release TypeScript v1.0.1
Video UX patch: live value readouts on every slider (resolution scale marks 1.00x native), a scale-to-fullscreen toggle (default on) atop a real fullscreen blit-geometry fix, render-at-selected-mode fullscreen that always fills the display, mode list labeled with aspect ratios and 720p/1080p/1440p/2160p names, and video settings (fullscreen included) that persist across restarts. See CHANGELOG.md.
Quake 2 Re-release TypeScript v1.0.0
Quake 2 Re-release TypeScript v1.0.0
The first stable release: a complete TypeScript port of Quake 2's 2023
re-release lineage, running on Bun — one engine, five first-class game
modules (vanilla 3.21, The Reckoning, Ground Zero, CTF, LM-CTF, and the
full 2023 KEX game, a 103k-line C++ port), with every format in the
retail data implemented and all retail content playable.
Highlights
Play anything. The New Game screen selects content x ruleset x data
tree independently: run the 1997 campaigns under the re-release rules,
run re-release data under classic 3.21 rules, point either at original
or remastered data per launch — including KEX rules on the original
1997 map files with re-release presentation. Expansions and installed
mods are discovered per data tree, with campaigns listed in campaign
order.
Full KEX protocol and game. Protocol 1038 end to end (float pmove,
64 stats, wide layouts), variable tick with frame-division AI, bot
navigation, savegames, MVD/GTV demos and relay, working demo recording
with cross-family replay parity, HTTP downloads, and legacy protocols
34/35/36 byte-faithful.
Every retail format. QBSP extended maps, MD5 skeletal models,
materials, TTF/OTF with color controller icons, environmental reverb,
haptics, and image support spanning pcx/wal/tga/png/jpg (baseline and
progressive)/bmp/gif — animated GIFs loop on the 2D layer at the
classic 10 Hz beat.
Two renderers. The GL pipeline with per-pixel lighting and correct
two-pass lightmap rendering, and the faithful 1997 software renderer —
both handling modern content capacities, both verified by automated
screenshot comparison in the release gate.
Modern input. Full SDL gamepad support wired to the retail
controller bindings, with haptics.
Verification
3,235 tests at zero failures, proven order-independent; live self-play
across every game family, both renderers, both shader modes, gated by
screenshot verification of actual rendered frames.
See CHANGELOG.md for the complete list.