Skip to content

D2VP Vanilla+QoL-0.0.7-R124

Choose a tag to compare

@VTSTech VTSTech released this 05 Nov 23:13
· 234 commits to main since this release
image image image # Vanilla+ Release Notes — R108 → R124

R108 — Mana Burn Fix joins the Vanilla+ Options page (2026-11-04, tag R108)

The R106 mana_burn_fix toggle is no longer ini-only: Esc → Options →
"Vanilla+ Options"
grows an eighth row, Mana Burn Fix, on the same
D2VP_Get/SetFeatureToggle bridge as the other seven. The server gate keeps
its 2 s hot-read, so a panel flip applies on the next drain roll within 2 s
and the panel draw shows the flip immediately. The eighth row moved the
Previous Menu row down one pitch and grew the page box (still fits 640x480).

For what the fix itself does (retail 1.14d Mana Burn uniques drained 256x the
intended mana — 512x in Hell), see the R106 release notes and the README
feature table. Gates 387/387.
Commit: 70f8ec6e.

R109 — 1344x700: retail's dormant mode 3 becomes the slider's fourth stop (2026-11-04)

The resolution Blizzard's 1.14d binaries always carried but never exposed:
D2GFX_GetWindowSizeByResolutionMode case 3 = 1344x700, and the
renderer-side mode-3 branches (GDI, DDraw, D3D, and the Glide wrapper's
g3x_resolution_size entry 17 in Glide3xVK) were in the binaries all along —
only the client side was missing. The slider grows a fourth stop (label
L"1344x700"), CLIENT_SetScreenResolution and the mini-panel re-apply paths
learn mode 3, and a stray position-3 from an older build clamps per-path.
Opt-in by picking the stop — not ini-gated, same as 720p.

Field round 1: Glide GREEN (the stop live under glide3xvk 0.4.6). The
same pass caught a D3D crash — on Vista+ the exclusive DDraw SetDisplayMode
only accepts timings from the driver's mode list, and 1344x700 is a
non-standard timing retail never shipped. Fixed in-round with a two-layer
defense: the D3D renderer retries a rejected mode with letterbox hosts
(1366x768 / 1360x768; viewport stays 1344x700), and the client probes the
driver's 32-bpp mode list before committing stops 3/4, refusing cleanly when
neither exact nor host is listed. Gates 401/401.
Commit: a85582a7.

R110 → R111 — D3D 1344x700 fullscreen presentation: probe-first, host-sized (2026-11-04)

R110 was the hotfix overlay (mark bumped only at R111) that stopped the R109
D3D crash — and promptly surfaced emulation behavior #2: Win10/11 DDraw
fullscreen emulation can accept a SetDisplayMode it cannot actually set
(fake success) and fall back to a borderless window, so R110's retry ladder
never fired on the field box and the stop showed a borderless window instead
of fullscreen.

R111 fixes both shapes: the D3D renderer probes the driver's 32-bpp mode
list before any mode-set (an unlisted stop goes straight to the first
listed host — the doomed call is never made, every mode-set is real), and
hosted stops size the game window to the HOST with the flip chain auto-sized
to the host mode (viewport/render coordinates stay 1344x700, bands stay
black). The client probe gains a depth-aware base and a DirectDraw
exact-only branch
— 8-bit DDRAW has no letterbox mechanism, so it enters
stops 3/4 only when the driver lists the mode at 8 bpp (extinct on modern
drivers → graceful refusal; closes the same-class crash DDRAW still carried).

Expected D3D presentation at 1344x700: display switches to 1366x768, frame
top-left 1344x700 with black bands right/bottom, no desktop visible, plus the
[vanilla-plus vpres] FOG log line naming the host. Gates 405/405.
Commit: e79eba59 (R111).

R112 — hosted stops stretch to fill the host + 1366x768 becomes the fifth stop (2026-11-04)

Two asks, one round. (1) The R111 letterbox black bars ("ok, i see the
black bars") become optional history: hosted stops now stretch the
logical frame over the whole host mode — the scene still renders into the
top-left logical rect, what changes is the present (a new stretch-blit on the
four present sites; a Blt refusal on an exotic backend degrades to the R111
letterbox, never a lost frame). The cursor follows the pixels: raw host
coordinates map back into the logical frame before the retail clamp, so
clicks land where the stretched pixels are and the bottom rows stay
reachable. True-exclusive stops keep the retail Flip byte-identical.
(2) Resolution mode 5, 1366x768 — the panel-standard 16:9 CEA timing
most panels list natively, so D3D usually enters TRUE-exclusive (retail Flip,
1:1 cursor) and the stretch ladder only fires on drivers that omit it: slider
position 4 + label, mini-panel arm, D3D/DDraw/GDI tables, Glide enum 18
(needs Glide3xVK 0.4.7), wide-UI class everywhere. One retail-struct
change: the esc-menu slot array grows [4] → [5].

Expected at 1344x700: edge-to-edge stretched frame, no bands; at 1366x768:
true-exclusive native. Gates 432/432.
Commit: the R112 upkeep commit (self-ID Vanilla+0.0.7-R112).

R113 — R112 regression hotfix: the esc-menu struct growth broke the menu (2026-11-04)

Owner: "your R112 changes broke the Esc menu. The mouse can no longer
navigate or select options… It no longer says 'Resolution' but '640x480'
instead of the word Resolution." Root cause: R112's retail-struct growth
(pDC6SubImages[4] → [5], 0x550 → 0x554-byte items) shipped with three
retail-shaped consumers still on the OLD stride — the mouse hit-test walked
rows at += 0x154 ints (no row ever hit-tested; the keyboard walk used the
compiler's stride and kept working — exactly the field split), the image
loader spilled every value-DC6 write 4 bytes early (the "640x480" image
parked over the baked "Resolution" caption), and the free path still halted
on count > 4 (every menu teardown after visiting video options would have
taken the fatal tail). All three re-pointed in place: strides → 0x155,
free path accepts count ≤ 5. No stop/mapping/label/stretch behavior changes.
Gates 434/434 (+2 stride pins so a future struct change cannot silently
re-arm this).
Commit: 550d895d.

R114 — Glide 1366x768 fix: wrapper-side (Glide3xVK 0.4.7), no game change (2026-11-04)

Owner: "when the Resolution lands on 1366x768 it only displays the top left
1/4 of the screen and its very zoomed in." Root cause wrapper-side, exactly
the dependency R112 flagged: the game's fifth stop sends grSstWinOpen
resolution enum 18, but Glide3xVK 0.4.6's table only knew 0–17 — the stop
took the documented soft-fail (640x480 surface) while the game laid out for
1366x768, and the wrapper presented that 640x480 surface stretched over the
full host: the top-left quarter at ~2x zoom. Fix ships in the wrapper repo as
0.4.7 (g3x_resolution_size entry 18 + the guard > 17 → > 18).
d2vp.exe is unchanged this round — the R113 build stays current
(gates 434/434 untouched). Pairing note: game build R112+ wants wrapper
0.4.7+ for the 1366x768 stop.
Record: patch/glide3xvk-0.4.7-entry18.patch in the wrapper repo.

R115 — 1920x1080: the slider's SIXTH stop (mode 6) + wrapper 0.4.8 entry 19 (2026-11-04)

Owner: "Great job. works. Published Glide3xVK 0.4.7. Now lets do 1080p."
Resolution mode 6 (1920x1080), the most universally listed CEA timing —
D3D almost always enters it TRUE-exclusive (retail Flip, 1:1 cursor) and the
R112 stretch ladder hosts (and downscales) it on the exotic unlistable
driver. The full sixth-stop drill: D2GFX case 6 + the D3D mirror, client
case 6 + probe + refusal snap-back, slider position 5 + label, fourth runtime
blank, mini-panel arm + clamp, D3D perspective-class gate, DDraw tables
[6] → [7], GDI DIB + scale width, Glide enum 19 (Glide3xVK 0.4.8),
wide-UI class everywhere (the 800-class UI re-centers as one rigid unit at
offsets X 560 / Y 480). The one retail-struct change repeats R112's —
pDC6SubImages[5] → [6] — with the R113 lesson applied in the same
commit
: both raw int strides re-pointed (0x155 → 0x156), all three
count clamps widened together, the draw-site clamp re-pointed.
Gates 454/454. Field matrix expectations: 1080p D3D true-exclusive native;
Glide 1080p via wrapper 0.4.8; switch ladder across all six stops; relaunch
keeps the stop.
Commit: ae9a9d3a.

R116 — windowed 1366x768 diagonal shear fix: the GDI DIB renderer rode the logical width as scanline pitch (2026-11-05)

Owner: "in D3D windowed mode 1366x768 everything is distorted and slanted."
First fact pinned: -w never reaches the D3D renderer — it is the GDI
DIB software path (CreateDIBSection 8bpp + StretchBlt), always was. Root
cause: GDI DWORD-aligns every 8bpp scanline, so the DIB's real stride is
(width + 3) & ~3 — 1368 at the 1366-wide stop, exactly width at every
other stop
(which is why no other stop ever sheared and the defect stayed
invisible since R112 shipped mode 5). The renderer handed the Y-buffer row
table, all tile drawing, the CELCMP pitch slots and every raw
memset/pixel/line/smacker address the logical width: 2 px drift per row, the
bottom row lands 1,534 px off, the frame shears diagonally and wraps. Fix
(one file, D2Gdi/Renderer/Windowed.cpp): a computed
RENDERER_WINDOWED_nDIBPitch used at all 24 raw-buffer sites.
Byte-identical at every %4 stop, by arithmetic. Gates 458/458.
Commit: 16f50fa7.

R117 — resolution-scaled edge-void fill: the level-boundary black wedges at the wide stops (2026-11-05)

Owner at the new 1080p stop (perspective on): "there's some blackness at the
very edge. Is there any way to fix that?" Pixel-measured the screenshot
first: 0 px solid band on every edge — this is the D2 level-boundary void,
not a present artifact. Retail's void skirt (the act edge tile stamped past
the drawn bounds) is one 3-tile strip per open side, sized for 800x600 whose
view reaches ~25 subtiles; a 1920x1080 view reaches ~127 subtiles into the
void, so near any level boundary the void shows as black wedges at the screen
edges. Fix (one file, D2Client/GAME/Draw.cpp): the strip becomes a band
fill scaled from the live backbuffer
— reach = W/32 + H/16 + 10 subtiles,
four open-side bands, bounds captured before the first stamp, off-screen
stamps cost one coordinate map + the existing cull. Wide stops only — 800x600
never reaches the code (retail byte-identical there). Host geometric proof:
at every wide stop the stamped rectangle covers 100% of the on-screen void
diamond at any camera parity (~295k sampled void px at 1080p, zero
uncovered). Gates 462/462.
Commit: 851c5a1d.

R118 — the wide-view room walk: the black rim at every mode ≥720p (+ the R117 boot incident fenced) (2026-11-05)

Owner: "the blackness at the edges is still there… present in all video modes
720p and up. 1080p sees way beyond 720p's border… This seems like some kind
of render of view limit, can we extend it?" The owner was right: both
render walks stop ONE hop out
— the floor pass loops exactly the player's
room + direct neighbors (the 3x3 room block), and the wall2 scene walk uses
the same set — so floors, walls, roofs, units and shadows ALL stop at the
3x3 block and the cleared backbuffer shows through as the black rim past it.
Retail never needed more (800x600 reaches ~25 subtiles, a room block covers
±60–100); the wide stops reach 85–127 subtiles. The rooms past the block
already exist (the RoomEx graph materializes three hops out) — only the draw
walks stopped short. Fix: a shared BFS collector to depth 3 with a
world-space cull, feeding both the floor pass (retail's two-pass room-draw
shape verbatim) and the wall2 scene pass; cost bounded by per-room cull
rects. Wide stops only; 640x480/800x600 byte-identical.

Same round, the R117 boot incident on the record: the root CMake globs
*.cpp tree-wide and R117's host proof harness (with its own int main())
silently compiled INTO d2.exe — the owner's build died right after the
static-init mark in every renderer with nothing in any log. The fork glob
filter now literal-prefix-excludes scripts/, so nothing parked there can
reach the game link again. Gates +6 r118: pins (the total is recorded at
R119: 475/475).
Commit: ae9fb6a9.

R119 — the wide-view reach unit fix: R118's prune square was 5x too small (2026-11-05)

Owner after R118: "that half fixed it… still blackness on the top edge and
top corners", then the mode split that cracked it: "without perspective mode
it's the opposite issue, rolling black triangle at bottom." Both residuals
were ONE bug: DRLG room coords live in game coords (5 per subtile), but
R118's reach constant computed the screen half-reach in subtiles — the
right number in the wrong space, so the walk square covered 43 subtiles
instead of the 127+ a 1080p view reaches ("half fixed"), and the same
subtile-scaled number fed R117's fill triggers so the band fill under-fired
whenever the drawn bounds sat far out. Fix: reach computed in coords at both
call sites, the four fill triggers compare the coord-space reach, the BFS
queue widened 128 → 512 and both out-caps 96 → 256, collector params renamed
to the space they operate in. (The suspicion of a 5x origin bug in retail's
own UNIT_CenterXCoordsDiv5 * 5 is retracted — that expression is retail's
own.) Gates +6 r119: pins → 475/475.
Commit: ff2f9e7b (tag R119).

R120 — wide-view diagnostics: vpdiag lines in d2boot.log, zero behavior change (2026-11-05)

Owner: "same behavior, blackness on top with perspective, blackness on bottom
without… Is there anything we could add to d2boot.log to help diagnose?"
Four candidate mechanisms, two field modes that only discriminate by which
edge hurts — so R120 instruments all four and prints the numbers instead of
guessing: the floor pass dumps three vpdiag lines ~2x/second plus a forced
dump on every perspective flip. Line 1: phase/perspective/cull-rect/lightmap
origin. Line 2: the tile bounds the fill triggers compare + the walk's real
coverage (emitted rooms, hop mix, union AABB, both silent-drop counters).
Line 3: tile counters, drawn-floor pixel AABB with per-edge gaps vs the
backbuffer, fill fired bits, lightmap clamp rate. Zero behavior change — int
counters on already-walking paths. Field protocol: capture d2boot.log at
1080p in BOTH modes standing where the blackness shows, plus one perspective
ON→OFF→ON toggle. Gates +14 r120: pins → 489/489. Field: the owner's d2boot.log
capture is owed; the fix round is R121 with the numbers in hand.
Commit: the R120 upkeep commit (self-ID Vanilla+0.0.7-R120).

R121 — the R120 log verdicts: the band fill finally runs, the walk reaches hop 4, the triggers read snapshot bounds (2026-11-05)

The owner's R120 vpdiag capture read four verdicts, four fixes:

  1. The R117 fill never ran in the field: edge=0 on every line in BOTH
    modes — A1 outdoor's DrawEdges is 0 and that retail flag gated the whole
    fill+bounds block (all dumps phase 0, fire=0000, st=0). So the R118
    "half fix" was the wide walk alone; the band fill was dead code in the
    exact test area. Fix: with edge=0 the bounds still grow and the fill
    runs keyed on wide-layout mode alone (retail modes keep the retail exit
    byte-identical; the flag itself untouched).
  2. The ortho bottom void measured: gaps=0/52..86/0/0 every frame.
  3. The shortfall is the hop-4 diagonal: iso projection puts the 1080p
    bottom screen corner one BFS edge past the depth-3 walk union. Fix: both
    walk call sites depth 3 → 4 (unmaterialized hop-4 rooms simply yield
    nothing — the probe is free).
  4. The 74% lightmap misses are benign — the ambient grid pre-fills with
    the player room's ambient; the counter stays as a drift alarm.

Bonus fix: the fill's trigger bounds now snapshot before the first stamp
(an earlier band's own growth was pushing a later trigger's bound past the
reach and silently skipping that band). Gates +6 r121: pins → 495/495.
Field expectations: phase-1 lines with real bounds, fired bits, thousands of
edge stamps, bottom gap at/near 0.
Commit: the R121 upkeep commit (self-ID Vanilla+0.0.7-R121).

R122 — the R121-log verdict: cull rect re-fit; the last bottom band was retail's own ScreenSizeY - 0x2f (2026-11-05, tag R122)

The owner's R121-build vpdiag capture proved every R121 fix in the field —
fill firing at full stretch (fire=1248, st=12432 stamps/frame), hop-4
rooms emitting with zero silent drops — and STILL gaps=0/51..82/0/0. The
discriminator: the drawn-floor pixel AABB hugs the retail cull rect on every
edge while the culled-anchor screen extremes run far past it — world is
offered far past the screen and the retail rect refuses it. Root:
SetViewRectangleSize builds the rect as SetRect(-0x50, -0x50, W+0x50, H-0x2f) — the bottom margin is −47 px: the rect stops above the
backbuffer by design
(the 800x600 panel-era wedge; at 1080p a guaranteed
dead band). Fix: one block — at the wide classifier the rect re-fits to the
live backbuffer (−0xc0 margins all around, covering retail's widest per-edge
margin plus perspective warp slack; the wall2 scene pass reads the same rect,
so bottom walls un-cull with the floors). 640x480/800x600 keep the retail
rect byte-identical. Gates +4 r122: pins → 499/499.
Commit: fb047c9f (tag R122).

R123 — the eighth upstream sync: Ghidra 1908 → 1948, merge-only round (2026-11-05)

Upstream jaenster/redivivus 7df6ad0e..b8e3087f, 16 commits, 786 files,
three evidence rounds. Headliners: 693 unreferenced functions defined
(1608ccb3, with recorded VC8 forms), Ghidra 1934–36 control-flow forms +
wrapping signed arithmetic, module-local symbols refiled into their using
modules
(7d30a7d8 — the D3D wrapper block moves to
D2Direct3D/Renderer/Direct3D.cpp, MCP.{cpp,h} fold into their consumers),
initialised data byte-matched against 1.14d, f0f24ecb InitPerspective
identifier + NPC trade roll, two quest functions return nothing, and
Duriel's death no longer crashes (810e339a). Upstream byte-match at DB
1948: 7,648 of 14,626 functions (52.3%) — see the README Verification table.

Fork-side: one CRLF → LF normalization commit (217 fork-touched files) cut
the raw trial surface 48 files/78 hunks → 26 real sites/57 hunks — 22 of
the raw conflicts were pure line-ending noise that auto-merged away. The
real resolutions: the R112 hosted-stretch EndScene2 hook refiled WITH its
function into the new TU (the count gate caught the hook missing on the
first pass), RENDERER_D3D_InitializeDevice keeps the fork body whole (the
wide-stop ladder — upstream's switch shape would regress it), the party
tooltip body kept whole, everywhere else upstream's inlined shapes win with
the wide-offset terms re-planted. Gates re-pinned → 499/499; include-path
audit clean; merge-site syntax sweep caught one tooltip-var class in ui.cpp
(re-expressed on upstream's shape). Merge-only round — no behavior change
intended beyond upstream's.
Commit: 18a368ce (merge), upkeep fcc7f71e.

R124 — D3D fullscreen boot crash fix: the merge split the texture-cache node-base spelling across a refile boundary (2026-11-05, field-verified 2026-11-06)

Owner field report on the R123 build: "D3D fullscreen does not boot. boots in
-w, crashes on 1080p. Glide still works in all modes/resolutions." The
d2boot.log capture showed init fully green (provider init → 1, InitPerspective
→ 1, CreateWindowWithChecks → 1) → "setup ok → entering mode loop" → ~1 s →
VEH: fatal exception 0xC0000005 … own-code fault … AV READ at 00000010 —
after init, in the first title-screen frames, D3D-only.

Root cause — NOT the old war-story classes (all verified intact post-merge):
a merge resolution defect in RENDERER_DIRECT3D_UploadTextureToCache,
the per-frame D3D texture-cache upload. Upstream's eighth-sync refile turned
the texture-cache node-buffer bases into a function-local static addressed as
(&INT_00970ec4)[iMipLevel * 7] — a spelling that aliases the real storage
only at RETAIL data addresses; in a rebuilt exe the static lives wherever the
linker puts it and the indexed read runs off into unrelated .bss as a garbage
node-array pointer. The merge took upstream's spelling for three of the
function's four base sites but kept the fourth (the palette-identity check)
on the fork's relative form — one hunk, two spellings, and the resolver
dropped the refile on the if-condition line. Result: allocator writes
landed in one region while the per-frame palette check and SetTexture
indexed the other — the first texture upload succeeds (empty cache), the
first RE-upload of the same sprite class reads its palette pointer through
the wrong region and dereferences a near-null base → AV READ at 0x10.

Fix (one function): all four base sites back on the fork's build-independent
relative form (field-proven R74..R122; retail-equivalent by struct
arithmetic), upstream's dead statics dropped, dated VP note on the function.
New instrument: scripts/refile_aliasing_audit.py sweeps all 220
refile-marked TUs for the three defect shapes — repo-wide CLEAN after the
fix: this was the only refile-aliasing site the eighth sync created. Gates
unchanged 499/499. Field-verified 2026-11-06: "great job, d3d fullscreen
works again."
Commit: fd89b115 — suggested tag R124.

Full Changelog: R108...R124