bruvzg / gdsdecomp

Godot reverse engineering tools
MIT License
1.42k stars 138 forks source link

How do i compile .GD script files back to .GDC format? #56

Open Karri966 opened 2 years ago

Karri966 commented 2 years ago

As the title says im looking for a solution to this since the gdre_tools.exe has the "Compile .GD script files..." button but its grayed out.

Kein commented 2 years ago

I'm interested in this as well. Standalone version produced empty output for 3.x

nikitalita commented 2 years ago

Try the new standalone release: https://github.com/bruvzg/gdsdecomp/releases/tag/v0.0.8

Kein commented 2 years ago

With 0.8 Error: Couldn't load project data at path ".". Is the .pck file missing? If you've renamed the executable, the associated .pck file should also be renamed to match the executable's name (without the extension).

nikitalita commented 2 years ago

what OS are you using?

Kein commented 2 years ago

Oh nevermind, I renamed executable but it looks like it searches for pack with the same name as binary so it failed.

nikitalita commented 2 years ago

yeah, that's a Godot limitation. Does GDC compiling work now?

Karri966 commented 2 years ago

I still can't compile the GD files back to GDC format. Here's a screenshot showing the option is still grayed out after extracting the .pck file and decrypting the gdc files: https://prnt.sc/NXTfItnM9HQg

nikitalita commented 2 years ago

@bruvzg ?

Kein commented 2 years ago

Same

bruvzg commented 2 years ago

There's no custom compilers for each of the versions implemented. So the easiest way to compile it back is taking an appropriate version of the engine (https://downloads.tuxfamily.org/godotengine/) adding script to the empty project, exporting it as zip and extract compiled script.