> To start, download Visual Studio [Any year version or type].
Terraria is a .exe game which you may have to decompile, or you can download source code files from this website, and once you've acquired the source code, you can start modding the game!
> Firstly, load up the .sln or .csproj file that comes with the source code, this will open up in Visual Studio once you've downloaded it. You'll be able to see all kinds of files you can edit to modify your gaming experience, but code can be hard to understand in a complex game, so you will be learning new things while you start coding.
> We want the game to run flawlessly and smoothly, so we want to get the errors out the way.
> Copy your "Content" folder, steam_api.dll, CSteamworks.dll and steam_appid.txt located in:
C:\Program Files*\Steam\steamapps\common\Terraria\
The contents folder contains all the images and sounds for the game. Without these, the game can't run properly.
* Can be "Program Files(x86)"
> Open Visual Studio and find this line of code located in Terraria.Social.SocialAPI.cs.
Code:
{
SocialAPI.LoadSteam();
}
foreach (ISocialModule current in SocialAPI._modules)
{
current.Initialize();
}
> You want to comment out SocialAPI.LoadSteam(); by putting 2 forward slashes in from of it [//]. What this will do is cut the connection from Terraria connecting with Steam, this doesn't need to be done but is useful if your making a modding client.
> You're ready to begin with modding!