tModLoader

tModLoader

87 ratings
Mod Extractor
2
   
Award
Favorite
Favorited
Unfavorite
Mod Features: Utilities
Mod Side: Client
tModLoader Version: 1.4.3, 1.4.4
Language: English
File Size
Posted
Updated
124.767 KB
8 Nov, 2022 @ 6:41pm
19 Dec, 2023 @ 3:34pm
10 Change Notes ( view )

Subscribe to download
Mod Extractor

In 1 collection by Destructor_Ben
Destructor_Ben's Mods
2 items
Description
Mod Extractor allows any mod to have it's code and resources extracted.

Copyright Notice
Do not use this mod to pirate other peoples mods. Nobody like having their hard work stolen, and the people in modding community know each other very well so a copied mod will be easily spotted and taken down.

Features
  • Forces mods to have their code extracted
  • Forces mods to have their resources extracted

Some mods in tModLoader have the code and resources hidden when they are extracted, which can be annoying for modders wanting to add cross-mod support or people wanting to use mods as a learning resource.

This mod allows any mod to have its code and resources extracted. If you want to test this, you can try it on this mod, since it has been set to hide its code and resources when extracted. Another mod this can be tested on is Calamity, since it hides it's resources when extracted. There is also a config for toggling whether code and resources should be extracted.

To extract a mod, download it and open it's mod info menu and click the extract button. After a mod is extracted, you can find its resources and the dll containing the code in the following folder:
C:\Users\{username}\Documents\My Games\Terraria\tModLoader\ModReader\{modname}
The dll is also located in the following folder:
C:\Users\{username}\Documents\My Games\Terraria\tModLoader\ModSources\ModAssemblies
The extracted mod doesn't actually contain the .cs files containing the source code, only the compiled dll, which can be opened in a program like dnSpy to view the C# code.

Contact
If you find any bugs or have any suggestions, please let me know on the mod's Steam Page, Github Repository[github.com] or Discord Server[discord.gg]

Support

Please consider rating and favouriting the mod on Steam, starring the Github Repository[github.com] and joining the Discord Server[discord.gg] if you would like to support this mod.

More Tools Like This
tModUnpacker[github.com] is a similar tool which works for 1.3 mods as well (thanks to AwesomeSavage777 for pointing this out), though it may be buggier, however I haven't tested it myself.
Originally posted by tModLoader:
Developed By Destructor_Ben
50 Comments
Destructor_Ben  [author] 6 Aug @ 4:36pm 
Mod files should be a .tmod file, are you sure you are doing it properly? You can join the discord server in the description if you need to talk to me.
Hamborger🍉 6 Aug @ 11:44am 
i edited a mod file (bak file) but once i tried it. the mod resets back to its original property
Destructor_Ben  [author] 24 Jul @ 11:07pm 
It shouldn't be encrypted, but it will be in a DLL, so you will need a tool like dotPeek, ILSpy, or dnSpy to decompile the DLL back into C# code.
Combo_pyro_main 24 Jul @ 11:53am 
I'm trying to use this to figure out how to code extra classes, what do i do if the code is encrypted
Combo_pyro_main 21 Jul @ 3:42pm 
thx
i am a piece of bread 27 Feb @ 8:56pm 
oh, if that's the case then yea it gets the dll
Destructor_Ben  [author] 27 Feb @ 4:49pm 
Do you have the config option for it enabled? Also it extracts the DLL not C# source files
i am a piece of bread 27 Feb @ 3:38am 
extracting doesn't get me a mod's code, only the textures
Destructor_Ben  [author] 31 Dec, 2024 @ 2:36pm 
I think tModUnpacker works for 1.3
billyredhair 31 Dec, 2024 @ 9:50am 
I would love a 1.3 version, it would be awesome for third parties to port abandoned 1.3 mods to 1.4