Skip to content

crustyrashky/gdsdecomp

 
 

Repository files navigation

Godot RE Tools

This software in a pre-alpha stage and is not suitable for use in production.

Introduction

Code Screenshot

This module includes following tools:

  • PCK archive explorer / tester / extractor / creator.
  • GDScript batch "compiler" / "decompiler".
  • Resource text <-> binary batch converter.

Usage

  • 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()

Requirements

Godot 3.x (3.x branch) or 4.0 (master branch)

GDScript decompiler compatibility

Supported bytecode versions

To decompile GDScript, exact engine version that was used to compile it, should be specified.

To detect Godot version

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}

To detect GDScript version

Copy executable to the helpers folder. Run ./{executable_name} -s detect_bytecode_ver.gd --path ..

Downloading and compiling

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.

License

The source code of the module is licensed under MIT license.

Travis Build Status

About

Godot reverse engineering tools

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 98.3%
  • Other 1.7%