Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] - support for decompiling CSharp scripts #67

Open
mkisX4 opened this issue Sep 16, 2022 · 3 comments
Open

[Feature Request] - support for decompiling CSharp scripts #67

mkisX4 opened this issue Sep 16, 2022 · 3 comments

Comments

@mkisX4
Copy link

mkisX4 commented Sep 16, 2022

In a process of recovering some of my oldest projects I stumbled upon an interesting "bug" — gdsdecomp doesn't know what to do with .cs files and leaves it empty. Tried full recovery with .8 and .9, both hadn't succeded.

Would be cool if there'd be a way to restore them as well.

@char-ptr
Copy link

as a temporary workaround, you can decompile il bytecode with a tool like dnspy or ilspy. you can find the assemblies in <pck_export>/.mono/assemblies//*.dll

@nikitalita
Copy link
Collaborator

What pozm said. Ilspy, dnspy, or dotpeek are all great solutions to this. I don't have much experience with godot mono, so I'm reticent to add any C# decomp features to this, but I will welcome any PRs.

@Robocraft999
Copy link

as a temporary workaround, you can decompile il bytecode with a tool like dnspy or ilspy. you can find the assemblies in <pck_export>/.mono/assemblies//*.dll

How would I do that with ilspy? There is no .mono folder in the folder I exported (recovered) to. In the folder with the compiled game there is also no .mono folder just a data_*_windows_x86_64. This one does contain a *.dll but this doesn't seem to be working if I open it with ilspy. i'm using Godot 4.3 (also gdre_export.log says to open with 4.3), but I can't figure out how to decompile the .cs files. The overall Project seems to be working to decompile as far as I can tell.

@nikitalita nikitalita changed the title [Suggestion] - a way to decompile .cs files [Feature Request] - support for decompiling CSharp scripts Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants