Skip to content
Hussein Farran edited this page Dec 27, 2016 · 6 revisions

Note: This page is a work in progress.

Currently Implemented Modifications

Name Description
ChangeArchitecture Changes the assembly architecture to x86.
Chest.Item.Add Implements a hook on the check quick stacking functionality.
Collision.PressurePlate Implements the pressure plate collision hooks.
Collision.SwitchTilesEntity Changes the SwitchTiles function to include an extra parameter to allow an entity to be passed by callers.
Console Hooks all Console.Write and Console.WriteLine calls.
Core Edits the assembly info of the EXE to change its Assembly name.
HardMode.TileUpdate N/A
Input.ChatText Hooks chat messages.
Input.Command Hooks console commands and the creation of the dedicated console input thread in Vanilla.
Input.Filter <>
Input.Text <>
Item.CheckMaterial Hooks Item.checkMat() calls.
Item.NetDefaults Implements hooks before and after the game calls NetDefaults for items.
Item.SetDefaultsById Implements hooks before and after the game calls SetDefaults with the overload that takes in an item ID.
Item.SetDefaultsByName Implements hooks before and after the game calls SetDefaults with the overload that takes in an item name.
Item.Update Hooks Item.UpdateItem() calls.
Json Updates the version of Newtonsoft.Json which is referenced in order to match the OTAPI version.
Lighting.Swipe <>
Main.Christmas Implements a hook making it possible to cancel xmas checks before they go through.
Main.GameInitialize Implements hooks before and after the game's Initialize function.
Main.GameStarted Implements a hook before the game starts the server update loop. Hooks before Game.DedServ.
Main.GameUpdate Implements hooks before and after the game's Update function.
Main.Halloween Implements a hook which allows for the cancellation of the checkHalloween function.
Main.LoadContent Hooks before and after the game calls Main.LoadContent.
Main.StatusText Hooks changes to Main.statusText.
MakeTypesPublic Makes all types in the Terraria assembly public types.
MessageBuffer.NameCollision Hooks around the name collision auto-kick.
MessageBuffer.ReadData.Exception Inserts a Console.WriteLine around any exceptions which have occured in the CheckBytes try-catch loop.
MessageBuffer.ReceiveData Hooks around NetMessage.GetData
Mono Removes the UPnP integration and the Ctrl+C checking from the console in order to provide compatibility with Mono.
Net.RemoteClient.Reset Hooks both begin and end around RemoteClient.Reset.
Net.SendBytes Hooks into NetMessage.SendData and NetMessage.AsyncSend.
Net.SendData.Locking Changes the internals of NetMessage.SendData in an attempt to reduce lag.
Net.SendData Hooks NetMessage.SendData.
Net.SendUnknownPacket Adds a default statement to the NetMessage.SendData switch allowing for the sending of packets ids unknown to vanilla Terraria.
Net.Socket.Accepted Hooks into Netplay.OnConnectionAccepted.
Net.Socket.Create Replaces the new TcpSocket call in the server loop to allow for custom implementations.
Clone this wiki locally