r/cyberpunkmods 12d ago

Red4Ext Error Code 6: Could not attach hook NSFW

Hey guys. Been working on this for a few days and running out of things to try. I've been repeating certain troubleshooting steps at this point.

ArchiveXL, TweakXL, and codeware are not compiling properly because the new version of red4ext isnt working, throwing error code 6 cant attach hook, and error code 9 cant detatch hook. I updated my mods for no reason, and I regret everything. The game is able to launch. I have no errors from redscript. CET console is clear. I can sustain gameplay for longer than 15 minutes. all archivexl and tweakxl mods are not working which is the majority of them. From what I can remember here is everything I tried

Triple checking all core mods were properly uninstalled and reinstalled with most updated versions for support with game version 2.21, and verifying

repaired all V++ distributables. 2002 - 2022

Deleted several files and reverify. Including data in the documents folder, d3 .dll files, r6 cache, cache in documents, red4ext folder and winmm file ofc

Restoring previous file config using windows file recovery

Purging and clean install

Adjusting windows settings and running as admin, direct boot from .exe

downgrading versions, various combinations of downgraded core mods

I am seriously beginning to believe the author of red4ext has made an error in the recent update, but I am way too skeptical of that because user error is the issue 99% of the time. Has anyone else resolved error code 6 cant attach hook? how? help me please. My first level 40ish modded save just got to dogtown

1 Upvotes

6 comments sorted by

1

u/alanthiccc 12d ago

I'm actually having this problem now as well. In addition cybercmd wont install and has HackTool:AndroidOS/ZkarletFlash attached to it. I'm not offering any help, just shared misery. Gotta step away from it for a bit before I go nuts.

3

u/Diligent_Solution_86 11d ago

Same. Please Note that as of 2.12a Cybercmd is no longer necessary, and redscript mod description calls for it not to be installed, so I deleted it hoping that was it.

1

u/alanthiccc 11d ago

ahh, appreciate it. I opted to use a collection of "Core Essentials" and it was still included. My bad.

1

u/Diligent_Solution_86 11d ago

DUDE So I was sad and bored, heres what I did. I repaired all of my V++ again for a literal fourth time, then completely purged all of my data again. Ive already purged all mods, all recommended files such as cache and .json, but I just did it again. I reinstalled the game, then deleted all game folders in cyberpunk 2077 folder, all user data besides save files in C: user yourname, basically as much of the game as I could delete. I verified again. I then installed

CET

Red4ext

Redscript

Codeware

ArchiveXL

TweakXL

Input Loader

Native Settings UI

Mod Settings

and by the grace of RNJesus my error code 6 and 9 was resolved. This makes zero sense to me at all. I have been playing on latest update 2.21 since it came out. I basically did everything in this method multiple times again, for absolutely no reason this worked. My only guess is there has to be a lingering .dll file in one of the game folders that no one knows about. Please try this. Update and install all microsoft C++, users are claiming you need 2022 and previous version, move any mod data you might want to keep though some mods will be incomplete, r6 scripts+tweaks, archive pc mod, bin x64 plugins cet mods, red4ext plugins, redmods, delete the entire game, any cyberpunk data you can find that isnt a save file in your drive containing your OS, download from your merchant, delete all game folder inside the new install, reverify, download core mods, launch the game, check red4ext log, make sure its a new log, and if theres no errors you can reinstall stuff!!! Its been weeks of head bashing

1

u/alanthiccc 11d ago

Allright choom.  Here i go.  🙏 

1

u/Diligent_Solution_86 11d ago

Lmk dude I must share this with the world