r/howdidtheycodeit • • May 30 '23

Question How are unofficial modding software made without access to code bases?

Modding software that typically takes protected assets (like Valves's .vpk files), extracts them to textures, models, other random files that are usuable. These files are then modified and then reinjected (probably the opposite of the extract functions) into the protected files.

40 Upvotes

12 comments sorted by

View all comments

Show parent comment

3

u/heyheyhey27 May 30 '23

The more precise answer is that c# code is (usually) only half-compiled, and the other half of the work is done as the program is running. Which means you don't have to do nearly as much work to "decompile".

1

u/Katniss218 Jun 23 '23

An even more precise answer is that it gets compiled twice. Once by roslyn, and then once more by the JIT.