xensik / gsc-tool

A utility to compile & decompile IW engine game scripts.
GNU General Public License v3.0
230 stars 42 forks source link
advanced black callofduty cod compiler decompiler duty engine ghosts gsc mod modding modern ops remastered scripts tools vanguard warfare warzone

sonar build issues license releases paypal

GSC Tool

A utility to compile & decompile IW engine game scripts.

Supported Games

Usage

gsc-tool [OPTIONS..] <path>

Example: gsc-tool -m comp -g iw5 -s pc ./data/iw5/my_fancy_script.gsc

Mode Description Output
asm assemble a file.gscasm file.gscbin
disasm dissasemble a file.gscbin file.gscasm
comp compile a file.gsc file.gscbin
decomp decompile a file.gscbin file.gsc
parse parse a file.gsc file.gsc

File Format

If you need to extract scripts from fastfiles or game memory, use Zonetool or Jekyll.

note: for PS3 & Xbox 360 .gscbin files (compressedLen, len, bytecodeLen) are saved as little-endian!!

Build

Contribute

If you like my work, consider sponsoring/donating! Would allow me to spend more time adding new features & fixing bugs.

BTC: bc1qky7x9kpjlt6nsvt7pckc3wwzk8rk9pgtnmw98u\ ETH: 0x6261BBE1a33F6Fec4b722DbCe2c28B4CC02c9C7B\ pypl kofi

Credits

This project is based on RektInator's gsc-asm. Special thanks to RektInator, JTAG & Dasfonia.

Disclaimer

This software has been created purely for the purposes of academic research. Project maintainers are not responsible or liable for misuse of the software. Use responsibly.