dbnsa.blogg.se

Terraria mods
Terraria mods





terraria mods

If we wanted to see the item's behavior, search for something like "type = 40" in the Item.cs file.ini file and take note of the "type=40" value. Use the Default Files to find an item, a Wooden Arrow for example.As the code is quite messy, here is a trick I use all the time to find something in the code:.For example, you will see a lot of variables called things like num6 - that's just an artifact of compiling and decompiling. Because compilation loses some information such as local variable names and comments, the code may be hard to understand.You can now view the code with an editor of your choice.After ILSpy has finished running, you should have a number of C# files in the folder you chose.If your machine is a bit older, then it could take up 30 minutes or more! Please note: This process will take some time, so be patient! On a modern, high quality computer, it will take about 10 minutes.ILSpy will then reverse-engineer the game into a few dozen C# files in the chosen directory, and it will also conveniently generate a project file if you use Visual Studio.Regardless of what you have selected, it will generate a file tree, previewing what it has to do.Original game (with tConfig): TerrariaOriginalBackup.exe.Navigate to your Steam's Terraria folder, which is usually located in C:\Program Files (x86)\Steam\SteamApps\Common\Terraria\ and choose a file to decompile: Download ILSpy if you have not already done so.Terraria tConfig Modding Tutorial 4 - Decompiling Terraria Requirements







Terraria mods