A fork of https://github.com/xensik/gsc-tool - A utility to compile & decompile IW engine game scripts.
Go to file
2021-11-16 17:17:47 +01:00
.github init 2021-05-08 18:15:25 +02:00
data move data 2021-09-17 16:46:55 +02:00
deps init 2021-05-08 18:15:25 +02:00
docs iw8 build 2021-09-13 20:00:43 +02:00
gen Undo CRLF conversions by vscode 2021-11-04 11:35:31 +01:00
src fix infinite loop 2021-11-16 17:17:47 +01:00
tools init 2021-05-08 18:15:25 +02:00
.gitignore move data 2021-09-17 16:46:55 +02:00
.gitmodules init 2021-05-08 18:15:25 +02:00
appveyor.yml update token 2021-06-24 13:14:20 +02:00
LICENSE init 2021-05-08 18:15:25 +02:00
prebuild-macos.sh init 2021-05-08 18:15:25 +02:00
prebuild-windows.bat init 2021-05-08 18:15:25 +02:00
premake5.lua s4 build 2021-09-17 15:50:49 +02:00
README.md support running recursive directory 2021-11-15 18:11:06 +01:00

Build status license GitHub issues GitHub release (latest by date)

GSC Tool

A utility to compile & decompile IW engine game scripts.

Supported Games

  • IW5 (Call of Duty: Modern Warfare 3)
  • IW6 (Call of Duty: Ghosts)
  • IW7 (Call of Duty: Infinite Warfare)
  • IW8 (Call of Duty: Modern Warfare (2019))
  • S1 (Call of Duty: Advanced Warfare)
  • S2 (Call of Duty: WWII)
  • S4 (Call of Duty: Vanguard)
  • H1 (Call of Duty: Modern Warfare Remastered)
  • H2 (Call of Duty: Modern Warfare 2 Campaign Remastered)

Usage

./gsc-tool.exe <mode> <game> <path>

modes: asm, disasm, comp, decomp

games: iw5, iw6, iw7, iw8, s1, s2, s4, h1, h2

paths: file, directory (recursive process all files with mode extension)

for zonetool files (.cgsc, .cgsc.stack) use: zasm, zdisasm, zcomp, zdecomp

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

Format

  • gsc-tool .gscbin format is a serialized ScriptFile struct: name: null-term string, compressedLen: 4 byte uint, len: 4 byte uint, bytecodeLen: 4 byte uint, buffer: byte array[compressedLen], bytecode: byte array[bytecodeLen].

  • zonetool format made of bytecode file .cgsc and decompressed stack buffer .cgsc.stack.

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.