Page 1 of 1

Anyway to Decompile a Mod?

Posted: Wed Apr 08, 2020 8:42 pm
by l3lessed
So, on moving to 10.21, I accidentally deleted my outfitmanager script files. I have an old one, but it is way out of date and would require rebuilding.

Is there anyway I can just decompile the mod file I uploaded?

Re: Anyway to Decompile a Mod?

Posted: Wed Apr 08, 2020 9:20 pm
by Ralzar
Well, you can extract the .cs script as a text file in the mod window of the DFU launcher.
It’s how I take a look at other peoples mods.

Re: Anyway to Decompile a Mod?

Posted: Wed Apr 08, 2020 9:36 pm
by BadLuckBurt
Ralzar wrote: Wed Apr 08, 2020 9:20 pm It’s how I take a look at other peoples mods.
I will make sure to leave some sexy comments in my first mod ;)

Re: Anyway to Decompile a Mod?

Posted: Wed Apr 08, 2020 9:47 pm
by l3lessed
Thanks Razor, let me look at that. That be great if I could do that, and then just copy and paste. Hopefully it isn't missing any critical code.

That worked. Your awesome, you sneaky, sneaky code spy.

Re: Anyway to Decompile a Mod?

Posted: Wed Apr 08, 2020 10:33 pm
by Hazelnut
Yeah this is such a useful option.. it's how I've been able to update some mods that were not being actively maintained so they worked after a making a change to DFU that broke them.

Re: Anyway to Decompile a Mod?

Posted: Thu Apr 09, 2020 1:58 pm
by Ralzar
Yeah, and I’ve been able to check exactly what version of my code was in my published mods when I started doubting myself :D

Re: Anyway to Decompile a Mod?

Posted: Thu Apr 09, 2020 4:15 pm
by Hazelnut
Ralzar wrote: Thu Apr 09, 2020 1:58 pm Yeah, and I’ve been able to check exactly what version of my code was in my published mods when I started doubting myself :D
Learn to use git properly and tag your releases! :D

(to be fair, I've forgotten to tag releases of my mods a few times...)