bruvzg / gdsdecomp

Godot reverse engineering tools
MIT License
1.44k stars 142 forks source link

I've decompiled a game but every scripts are corrupted :/ #10

Closed Ayfri closed 2 years ago

Ayfri commented 3 years ago

I don't know how to fix this and I don't know what I've done wrong 🤔

ghost commented 3 years ago

I have the same problem, it doesn't decompile any scripts

nikitalita commented 3 years ago

Can you give us the engine version of the game(s) you're trying to decompile?

ghost commented 3 years ago

ubuntu, godot version 3.2.0, using the 3.x fork of gdsdecomp, it decompiles majority of the stuff, but none of the scripts get decompiled.

nikitalita commented 3 years ago

You have to manually specify which scripts you want decompiled after extraction with the other menu option, it doesn't do it during extraction.

ghost commented 3 years ago

thanks, and does your fork of gdsdecomp support directly decompiling scripts on extraction?

nikitalita commented 3 years ago

Yes it does. Use the branch my PR is on and follow the instructions in the PR, it's on Godot master but supports Godot 2-4 projects. https://github.com/bruvzg/gdsdecomp/pull/19

ghost commented 3 years ago

what does PR stand for?

ghost commented 3 years ago

private repository?

nikitalita commented 3 years ago

Pull request, it's how you get changes into other forks on GitHub. It's the tab to the right of issues?

BTW, please be aware that full project export is currently a CLI-only option, it's not available via the menu yet.

ghost commented 3 years ago

which branch do I use in your repository? (master, 3.2-backport, 3.2-cli-stuff, or 3.2)

nikitalita commented 3 years ago

image So if you look at the PR, you'll see that I'm requesting a merge from my 4.0-nikitalita branch. image

ghost commented 3 years ago

thanks, so if I'm not mistaken, 4.0-nikitalita supports godot 3 & 4

nikitalita commented 3 years ago

It supports building with the current Godot master (i.e. 4.x); it will not build with the 3.x branch. Once built, it does support exporting Godot 2, 3, and 4 projects.

ghost commented 3 years ago

thanks, that's all.... 👍

ghost commented 3 years ago

I've been trying to get rid of errors for hours, so I give up, I can't get it to work. But it does look promising though.

Jimmio92 commented 3 years ago

When you decompile the scripts, you must match the version used to export. There's also a Godot export of this as a standalone app, no compiling into Godot is necessary to just use it. I just used it to completely recover a project I thought was gone forever.

ghost commented 3 years ago

When you decompile the scripts, you must match the version used to export. There's also a Godot export of this as a standalone app, no compiling into Godot is necessary to just use it. I just used it to completely recover a project I thought was gone forever.

Where do I find the standalone decompiler?

Jimmio92 commented 3 years ago

The releases section of this project has builds for windows, linux, and mac. Github's layout blows, to be perfectly honest. It's tucked over on the right hand side instead of being a tab at the top and easily visible. https://github.com/bruvzg/gdsdecomp/releases