projects

NightCity Console for Mac

An in-game console, cheat menu and item browser for the native macOS build of Cyberpunk 2077, in the spirit of Cyber Engine Tweaks.

JavaScript · Objective-C++ · Swift · 42 ★ · 1.9k downloads · v1.5.0-beta.2 on 2026.07.01

GitHub · Download · Nexus Mods · Install video · How it was built · macOS modding platform

NightCity Console launcher

Cyberpunk 2077's modding stack is Windows-only: RED4ext loads native plugins, RED4ext.SDK gives them typed access to the engine, TweakXL edits the game database at runtime, ArchiveXL loads custom resources, and Cyber Engine Tweaks exposes a console. The macOS build is a different binary (Mach-O, ARM64, no Windows TLS, no inline patching under W^X) with a different address library, so none of it ran on a Mac.

This project ports the loader and SDK to that binary, re-derives the addresses and struct layouts for v2.3.1, carries TweakXL, ArchiveXL and Codeware across on top, and adds a console drawn on the live frame. It ships as a one-click installer app, keeps SIP and Gatekeeper on, and leaves nothing permanent in the game install. Listed on Nexus Mods.

How it works

  • Three dylibs are inserted into the game process with DYLD_INSERT_LIBRARIES: the RED4ext port, the Frida gadget as an in-process script host, and a Metal/ImGui overlay.
  • Engine hooks are installed as JIT trampolines that are W^X safe on ARM64, instead of the Detours-style inline patches the Windows stack relies on.
  • Commands resolve REDengine's RTTI registry and call game functions with typed arguments built into a synthetic script stack frame. A generic call bridge can invoke any observed method by class and name.
  • The overlay draws Dear ImGui from a presentDrawable: swizzle and takes keyboard input from an NSApplication.sendEvent: swizzle. The command engine and the overlay are decoupled and talk over a small file channel.
  • On install, the launcher re-signs the game binary ad hoc with the JIT entitlements the injected script engine needs. Steam's Verify Integrity restores the stock signature at any time, and Steam Cloud saves keep working.
  • Offsets and layouts were recovered with Ghidra against the Steam build. The technical write-up covers the method, including a dyld image-index bug, the TweakDB flat cache invalidation, and TLS without the GS segment.
  • Bundled catalog of 7,552 items with category browsing, pinned favourites, godmode that registers with the engine's own system, teleport bookmarks, quest-fact editing, and a Mods tab for loose .archive files.
Search any item and spawn it
Search any item and spawn it
Find any item and its stats
Find any item and its stats
Add perks, attributes and relic points
Add perks, attributes and relic points
Teleport and quick actions
Teleport and quick actions