Wrench
A set of modding tools (level editor, etc) for the Ratchet & Clank PS2 games.
Install / Use
/learn @chaoticgd/WrenchREADME
Wrench Editor
A set of modding tools for the Ratchet & Clank PS2 games. Compatible with R&C1, R&C2, R&C3 and Deadlocked. Work in progress.
Most members of the modding community for these games use Discord. Alternatively, feel free to use the issue tracker to ask questions about Wrench or technical questions about the games.
Features currently include:
- Launcher
- A user interface to manage mods.
- Used to launch the level editor.
- Build Tool
- Pack/unpack entire ISO files.
- Pack/unpack gameplay instances as
.instancesfiles. - Unpack tfrag meshes as COLLADA files.
- Unpack moby meshes as glTF files*.
- Unpack tie meshes as COLLADA files.
- Pack/unpack collision meshes as COLLADA files.
- Updated in v0.5! Pack/unpack shrub models as binary glTF files**.
- Updated in v0.5! Pack/unpack sky models as binary glTF files**.
- Pack/unpack textures as PNG files.
- Pack/unpack packed executables and level overlays as ELF files.
- Pack/unpack everything else as binary files.
- Level Editor
- View unpacked levels.
- Inspect objects and modify their attributes (including pvars).
- New in v0.5! Recover instanced collision for ties and shrubs.
- New in v0.5! Translate, rotate and scale objects using 3D transformation gizmos.
- Save Editor
- New in v0.5! Works for all the games, rather than just Deadlocked.
- Asset System
- A system to create, distribute and load mods.
- Multiple mods can be loaded at a time.
- Instance System
- A source format for storing object instances.
- Use pvar data types from C++ header files (reflection).
- Visibility Tool
- Rebuild occlusion data for levels on demand.
- Implemented as an OpenGL renderer.
* In version 0.5 or lower COLLADA was used instead.
** In version 0.4 or lower COLLADA was used instead.
Screenshots

Building
Linux
-
Install the following dependencies and tools:
- git
- cmake
- g++
- zenity
- extra-cmake-modules *
- libwayland-dev *
- libxkbcommon-dev *
- wayland-protocols *
- xorg-dev *
* Needed to build GLFW.
-
cd into the directory above where you want Wrench to live e.g.
cd ~/programs. -
Download the source code and additional dependencies using Git:
git clone --recursive https://github.com/chaoticgd/wrench
-
cd into the newly created directory:
cd wrench
-
Build it with cmake:
cmake . -B bin/ && cmake --build bin/ -j 8
(in the above example 8 threads are used)
Windows
-
Install the following tools:
- git
- Visual Studio (with desktop C++/cmake support)
-
Open a Visual Studio developer command prompt.
-
cd into the directory above where you want Wrench to live e.g.
cd c:\programs. -
Download the source code and dependencies using Git:
git clone --recursive https://github.com/chaoticgd/wrench
-
cd into the newly created directory:
cd wrench
-
Generate cmake files:
cmake . -B bin/
This should generate
wrench.slnalong with a few.vcxprojfiles. In case no such files are generated, you can explicitly specify usage of the Visual Studio generator by running the following command:cmake . -G "Visual Studio X YYYY"
where
Xis the Visual Studio version andYYYYis the Visual Studio year (example:Visual Studio 16 2019) A complete list can be obtained by runningcmake --help. -
(Option A) Build the project from the command line:
cmake --build bin/ --config BUILD_TYPE
where
BUILD_TYPEis one ofDebug(very slow - not recommended),Release(no symbols - not recommended),RelWithDebInfo(recommended) orMinSizeRel.(Option B) Build the project from Visual Studio:
Open the newly generated
wrench.slnin Visual Studio. In the Solution Explorer, right-click onwrenchand clickSet as Startup Project. You should now be able to build and debug wrench using the toolbar controls and all Visual Studio features.
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
