Repository navigation
v0.1.0
First release of GCL — decompile, edit and compile the scenerio.gcx scripts of Metal Gear Solid 4, Metal Gear Online 2 and Metal Gear Arcade in VS Code.
Install
Install from the Visual Studio Marketplace (search Metal Gear GCL, or ext install zoft123.metal-gear-gcl), or download metal-gear-gcl-0.1.0.vsix below and use Extensions view → … → Install from VSIX….
What's in it
- Byte-exact round trip: an unedited project compiles back to the original
.gcxbyte for byte; edited projects get every size, offset and table rebuilt. MGO2 stage files are decrypted and re-encrypted automatically. - Live diagnostics from the compiler — a file with no errors compiles — plus checks for undefined procs, missing resources, strings over 254 bytes, names that hash to something else (e.g.
NewSkyvs[ce2d24/NewSky], with a quick fix) and typos in new option / command names. - Autocomplete for
@proc/p:proc, options per command, commands andcommands.txthandlers,$res:resources, variables, andif/switchsnippets. - Hovers, go to definition, find references and a proc outline; syntax highlighting for scripts and resource files.
- Bundled
dictionary.txtandcommands.txtname lists (your own copies take priority). bin/gcx.jscommand-line tool with the same engine (Node.js 18+):node bin/gcx.js scenerio.gcx,compile,verify.
See the README for the text format, settings and details.