Skip to content

Fix redscript install: scc.exe nested under engine\engine - #27

Draft
nobody71004 wants to merge 7 commits into
masterfrom
cursor/fix-redscript-scc-merge-f4ac
Draft

Fix redscript install: scc.exe nested under engine\engine#27
nobody71004 wants to merge 7 commits into
masterfrom
cursor/fix-redscript-scc-merge-f4ac

Conversation

@nobody71004

Copy link
Copy Markdown
Owner

Problem

Install-All.ps1 downloaded redscript successfully, then failed with:

Install of redscript finished but expected file is still missing:
...\Cyberpunk 2077\engine\tools\scc.exe

Cause

Install-ZipToGame used Copy-Item of whole folders into the game root. Cyberpunk already has engine\ and r6\, so PowerShell nested the archive as engine\engine\tools\scc.exe (and r6\r6\...) instead of merging.

Fix

  • Add Copy-MergeDirectory and use it in Install-ZipToGame (and AMM install)
  • On startup, repair leftover nested folders (engine\engine, r6\r6, etc.) from earlier failed runs
  • Same merge caution applied in Install-NPV-Template.ps1

Tester note

Re-run Install-All.bat / Install-All.ps1 with the updated script. If a previous run left files under engine\engine\, the installer will move them into place automatically.

Open in WebOpen in Cursor

cursoragent and others added 7 commits July 16, 2026 13:25
Copy-Item of a folder into an existing Cyberpunk directory nested
archives (engine\engine\tools\scc.exe instead of engine\tools\scc.exe),
so Install-All failed after downloading redscript. Merge zip contents
recursively and repair leftover nested folders from prior runs.

Co-authored-by: XEROX710 <nobody71004@users.noreply.github.com>
Align EnqueueLoadLastCheckpoint with C++ Handle/ref (was wref), declare
ClosePlayerMenu, and stop NoIntroVideos from redefining splash natives
when Codeware is missing.

Co-authored-by: XEROX710 <nobody71004@users.noreply.github.com>
Preserve vanilla final.redscripts (full cache wipe caused the corrupted
scripts popup), reinstall client from package, strip legacy mods, and
align PlayerActionTracker native return types.

Co-authored-by: XEROX710 <nobody71004@users.noreply.github.com>
Users were pasting PowerShell into Command Prompt. Ship a .bat launcher
plus FIX-INSTALL-NOW.ps1 that repairs natives, leftovers, and cache.

Co-authored-by: XEROX710 <nobody71004@users.noreply.github.com>
Install-All skipped existing RED4ext.dll, leaving loaders that reject
API v1 plugins. That made RedSync natives look invalid. Detect file
version and reinstall RED4ext/Codeware when below the pinned release;
FIX-INSTALL-NOW also force-installs both.

Co-authored-by: XEROX710 <nobody71004@users.noreply.github.com>
PowerShell Set-Content -Encoding UTF8 injected a BOM that made scc
fail on NoIntroVideos.reds. Remove that rewrite; file is optional.

Co-authored-by: XEROX710 <nobody71004@users.noreply.github.com>
EnqueueLoadLastCheckpoint takes ref/Handle; GetSystemRequestsHandler
returns wref, which failed redscript compilation after the native fix.

Co-authored-by: XEROX710 <nobody71004@users.noreply.github.com>
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.

2 participants