Skip to content

fix(cs2): 0.4.3 bug fixes, ReShade add-on repair, and CS2 1.42.0.1 signatures - #216

Merged
Wockstajit merged 1 commit into
release/0.4from
fix/0.4.3-bugfixes
Dec 2, 2026
Merged

Wockstajit merged 1 commit into
release/0.4from
fix/0.4.3-bugfixes

Conversation

@Wockstajit

Copy link
Copy Markdown
Owner

Summary

Maintenance release 0.4.3 on
elease/0.4\ (bug fixes only — no 1.0 features from \main):

…gnatures

Maintenance release 0.4.3 on release/0.4 (bug fixes only, no 1.0 features):

- Backports #198 (DeathMsg signatures for CS2 1.42) and #192 (SkyOrient entity class check).
- Incorporates #213 (scenesystem.dll shadow signatures for CS2 1.42.0.1, credit @SpasaevDonut).
- Backports #215: stuck demo-bar scrub drag recovery, shader derivation/hook std::bad_alloc guards, worker concurrency cap and commit-headroom backoff, mvm_debug gate on the 512 MiB shader dump cache, DXBC length bounds checks, clean worker shutdown, IDXGISwapChain::Release hook, and ReShade add-on launch repair (refreshing bundled ReShade d3d11.dll, clearing stray ReShade dxgi.dll, keeping .\ in [ADDON] AddonPath, and un-disabling mvm_reshade_state.addon64).
- Bumps launcher version to 0.4.3 and adds the 0.4.3 section to CHANGELOG.md (What's New).

Refs #214
@Wockstajit Wockstajit added type: fix Correct existing behaviour area: cs2 CS2 hook and filmmaker features in AfxHookSource2 area: panorama In-game Panorama panels and ui-mockup area: launcher SourceMovieMakerLauncher host, app and packaging labels Dec 2, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T03:40:18.215092Z cde9ac2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cde9ac2fa0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

WindowResize_Shutdown(); // destroys the resize readout window before the DLL goes away
SceneKeys_Flush();
Environment::FlushCommittedEdits();
Environment::ShutdownNativeMaterialDerivation();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Invoke the filmmaker shutdown from the CS2 quit hook

The hooked new_CCS2_Client_Shutdown path in main.cpp never calls Filmmaker::Shutdown(), and there are no other callers in the repository. That leaves this new queue-stop step unreachable on normal CS2 quit, so derivation jobs can still run while Source2 tears down. Call the filmmaker shutdown from the hooked path.

Useful? React with 👍 / 👎.

queue.stopping=true;
queue.jobs.clear();
queue.wake.notify_all();
queue.idle.wait_for(lock,std::chrono::milliseconds(1500),[&]{return queue.activeWorkers==0;});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Wait for derivation workers to exit before teardown

If shutdown is called while a worker is deriving a shader, this wait returns after 1.5 seconds even if activeWorkers is still nonzero; its result is ignored, and the workers are detached. The caller can therefore proceed to unload the DLL while a worker is still executing DLL code. Keep worker handles and join them, or otherwise wait for the threads themselves to exit before returning.

Useful? React with 👍 / 👎.

static std::mutex lock;std::lock_guard<std::mutex> guard(lock);
// Development aid: keep the bytecode of every clustered-light program only when mvm_debug is active
// so normal user sessions never pin up to 512 MiB of raw DXBC in process memory.
if(info.lightSlot&&MvmDebugLog_Active()){

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the documented dumpprograms workflow

For the documented mirv_relight dumpprograms workflow, if users load a map without starting mvm_debug first, this condition records no native pixel shaders. DumpNativePrograms then cannot supply the material programs needed by ValidateNativeVariants; the separately stored cluster-compute shaders do not cover them. Preserve this workflow with an independent capture option, or update the procedure to require enabling debug logging before loading the map.

Useful? React with 👍 / 👎.

Log("auto-release stuck drag at %.3f (sawDown=%d upFrames=%d)", g_target, g_dragSawMouseDown ? 1 : 0, g_dragMouseUpFrames);
g_released = true;
g_reaims = 0;
if (TimelinePlayhead_Scrubbing()) TimelinePlayhead_EndScrub();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Release CameraPath's scrub state on auto-release

If the Camera Timeline slider misses SliderReleased, this auto-release ends the shared playhead scrub but leaves CameraPath scrubbing: camtl scrubpreview called m_play.BeginScrub() and cleared m_scrubReleasePending, and CameraPath::RunFrame() continues ticking that pose without a release pending. The camera therefore remains pinned to the preview instead of handing control back after the world scrub releases; also end the CameraPath scrub on this auto-release path.

Useful? React with 👍 / 👎.

@Wockstajit
Wockstajit merged commit 367cddb into release/0.4 Dec 2, 2026
9 checks passed
@Wockstajit
Wockstajit deleted the fix/0.4.3-bugfixes branch December 2, 2026 04:01
Wockstajit added a commit that referenced this pull request Dec 2, 2026
Ports the 0.4.3 section of CHANGELOG.md from release/0.4 (#216) back to main so the in-game What's New popup stays in sync.

Refs #214
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cs2 CS2 hook and filmmaker features in AfxHookSource2 area: launcher SourceMovieMakerLauncher host, app and packaging area: panorama In-game Panorama panels and ui-mockup type: fix Correct existing behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant