All Projects → jac3km4 → redscript

jac3km4 / redscript

Licence: MIT License
Compiler/decompiler toolkit for redscript

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to redscript

EMF
Extended Mechanics & Flavor
Stars: ✭ 33 (-82.72%)
Mutual labels:  modding
HLADM
Half-Life: Alyx: Deathmatch
Stars: ✭ 24 (-87.43%)
Mutual labels:  modding
LegendaryExplorer
Editor toolset for Mass Effect Trilogy and Mass Effect Legendary Edition
Stars: ✭ 85 (-55.5%)
Mutual labels:  modding
DockRotate
Kerbal Space Program lightweight robotics with docking ports
Stars: ✭ 12 (-93.72%)
Mutual labels:  modding
wasm.cljc
Spec compliant WebAssembly compiler, decompiler, and generator
Stars: ✭ 178 (-6.81%)
Mutual labels:  decompiler
libloot
A C++ library for accessing LOOT's metadata and sorting functionality.
Stars: ✭ 22 (-88.48%)
Mutual labels:  modding
ashfall
Ashfall is a survival, camping and needs mod for Morrowind. It uses the latest in MWSE Lua scripting functionality to implement a wide range of mechanics that integrate seamlessly into the game and provide a truly immersive experience.
Stars: ✭ 16 (-91.62%)
Mutual labels:  modding
m2sdk
Software Development Kit for the Steam version of Mafia2.
Stars: ✭ 19 (-90.05%)
Mutual labels:  modding
Figura
Primary repo for the Figura Project
Stars: ✭ 217 (+13.61%)
Mutual labels:  modding
BEFA-Library
High-level library for executable binary file analysis
Stars: ✭ 14 (-92.67%)
Mutual labels:  decompiler
factorio-example-mod
Lightweight modular example mod with various features and compatibilities
Stars: ✭ 15 (-92.15%)
Mutual labels:  modding
HavokLib
Havok format library
Stars: ✭ 38 (-80.1%)
Mutual labels:  modding
Android-ML
@cos8oih 👋
Stars: ✭ 20 (-89.53%)
Mutual labels:  modding
FFNx
Next generation modding platform for Final Fantasy VII and Final Fantasy VIII ( with native Steam 2013 release support! )
Stars: ✭ 200 (+4.71%)
Mutual labels:  modding
ti recover
Appcelerator Titanium APK source code recovery tool
Stars: ✭ 17 (-91.1%)
Mutual labels:  decompiler
Gibbed.JustCause4
Tools & code for use with Just Cause 4.
Stars: ✭ 20 (-89.53%)
Mutual labels:  modding
XLMultiplayer
Skater XL Multiplayer mod by silentbaws
Stars: ✭ 29 (-84.82%)
Mutual labels:  modding
viper
Launcher+Updater for TF|2 Northstar
Stars: ✭ 55 (-71.2%)
Mutual labels:  modding
WolvenKit
Mod editor/creator for RED Engine games. The point is to have an all in one tool for creating mods for the games made with the engine.
Stars: ✭ 429 (+124.61%)
Mutual labels:  cyberpunk2077
FFXIV Modding Tool
FFXIV Modding Tool is the Cross-platform Commandline interface alternative for TexTools
Stars: ✭ 39 (-79.58%)
Mutual labels:  modding

redscript

Toolkit for working with scripts used by REDengine in Cyberpunk 2077. Currently includes a compiler, a decompiler and a disassembler.

usage

Usage:
  decompile [opts]
  compile [opts]
  lint [opts]
Compiler options:
  -s, --src SRC        source file or directory
  -b, --bundle BUNDLE  redscript bundle file to read
  -o, --output OUTPUT  redscript bundle file to write
Decompiler options:
  -i  --input INPUT    input redscripts bundle file
  -o, --output OUTPUT  output file or directory
  -m, --mode MODE      dump mode (one of: 'ast', 'bytecode' or 'code')
  -f, --dump-files     split into individual files (doesn't work for everything yet)
  -v, --verbose        verbose output (include implicit conversions)
Lint options:
  -s, --src SRC        source file or directory
  -b, --bundle BUNDLE  redscript bundle file to use, optional

You can build the project and decompile all scripts in one command:

cargo run --bin redscript-cli --release -- decompile -i '/mnt/d/games/Cyberpunk 2077/r6/cache/final.redscript' -o dump.reds

note: current version requires nightly version of rust (rustup default nightly)

language

The scripts use a Swift-like language.

You can find a brief overview of it's features in the wiki.

You can also try it out in your browser.

For examples, you can have a look at some projects using redscript:

integrating with the game

You can integrate this compiler with the game and make it compile your scripts on startup.

To set it up, you can download the redscript-mod-{version}.zip archive from the latest release and extract it in the main game directory. You should end up with the following files:

  • Cyberpunk 2077/engine/tools/scc.exe
  • Cyberpunk 2077/engine/config/base/scripts.ini

If the compiler is set up correctly it will save logs to Cyberpunk 2077/r6/cache/redscript.log whenever you start the game.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].