(For mod devs) Terraria NetMessage.SendData detailed information spreadsheet

Gortart

Terrarian
Since I had too much time I compiled a spreadsheet about how to use NetMessage.SendData in you mod.
 
  • Like
Reactions: W1K
Thanks, though some of that still just describes what they do and not about how to use them in mods.
For example, if I want to sync an item from the server, it doesn't say anything about that the parameter [number] should be the whoAmI of the item you want to sync.
 
If you deal with networking you usually also know that its important, and at that point you have (or should have) the decompiled source ready, so you can check exactly what vanilla does with syncing items in your example. Atleast this is my approach
 
If you deal with networking you usually also know that its important, and at that point you have (or should have) the decompiled source ready, so you can check exactly what vanilla does with syncing items in your example. Atleast this is my approach
True, I just made it for a quicker reference.
 
Back
Top Bottom