This software in a pre-alpha stage and is not suitable for use in production.
This module includes following tools:
- PCK archive explorer / tester / extractor / creator.
- GDScript batch "compiler" / "decompiler".
- Resource text <-> binary batch converter.
- All module functions are accessible via
RE Tools
menu. - Decompilers additionally available as
GDScriptDecomp_{commit_hash}
GDScript classes.
var decomp = GDScriptDecomp_{commit_hash}.new()
decomp.decompile_byte_code(path)
# or
decomp.decompile_byte_code_encrypted(path, key)
var source = decomp.get_script_text()
Godot 3.x (3.x branch) or 4.0 (master branch)
To decompile GDScript, exact engine version that was used to compile it, should be specified.
Run ./{executable_name} --version > version.txt
.
Version strings have following formats:
- Official releases:
{major}.{minor}.{rev}.stable.official
- Development builds:
{major}.{minor}.{rev}.{build_type}.{commit_hash}
Copy executable to the helpers
folder.
Run ./{executable_name} -s detect_bytecode_ver.gd --path .
.
Clone this repository into Godot's modules
subfolder as gdsdecomp
.
Rebuild Godot engine as described in https://docs.godotengine.org/en/latest/development/compiling/index.html.
The source code of the module is licensed under MIT license.