Results 1 to 11 of 11
  1. #1
    Huntermuir1213's Avatar
    Join Date
    Jul 2017
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    13
    My Mood
    Tired

    Post How to make a hacked client (Terraria 1.3.5.3)

    How to make a hacked client with DNSpy (By: Hunter101)

    Hello terrarians, and welcome to an updated thread on how to make a modified client in terraria. This thread will only cover how to modify the executable and inject code at startup. It will not cover how to make commands, or do anything really, but it will put you on the right track. If this post gets enough attention and likes, I will do a second part with more info (Hooking chat, adding commands).

    Part 1 (Download DNSPY and open the Terraria executable) :
    To download DNSpy, please visit this link. https://******.com/0xd4d/dnSpy/releases DNSpy is .Net debugger and assembly editor, which will allow you to modify the Terraria executable. Once you have opened the link, click DNSpy.zip, and wait for it to download. Once it is finished, open the .zip file with a archive extracting program (7-zip or WinRAR), and then scroll down and open dnSpy-x86.exe. Once in the program, click on File>Open..., then find and select Terraria.exe (from your steamapps folder.).

    Part 2 (Patch the Terraria executable to hook startup code)
    Great, you got it open. I'm proud of you for making it this far. Okay, now this is where it may get a little harder. Try to keep up. First, look to the Assembly Explorer. It's on the far left and it is very noticeably blue. Found it? Great. Now scroll through the list until you find "Terraria". Press the drop-down triangle, again, look for "Terraria" except now in yellow, drop-down it again, and find "Program", now in green, once again press the arrow to drop-down. Now, right click "LaunchGame(...", and click "Edit Method". Now, a box will open. Delete these lines.
    Code:
    if (Platform.IsOSX)
    {
    	Main.OnEngineLoad += delegate
    	{
    			Main.instance.IsMouseVisible = false;
    	};
    }
    Now tap "Compile". Okay, you still with me? No? Once you are back in the Assembly Explorer, move up back towards the yellow "Terraria", and right click it. Click "Add Class". Once it shows the blank box, paste this in.
    Code:
    using System;
    using System.Collections.Generic;
    using Microsoft.Xna.Framework;
    using Microsoft.Xna.Framework.Input;
    namespace Terraria
    {
    	public class Mods
    	{
                    public static void Main()
    		{
    			Terraria.Main.OnTick += Mods.OnUpdate;
    		}
                     static Mods()
    		{
                    }
                    public static void OnUpdate()
    		{
                     //code in here will run every frame
                    }
                    public Mods()
    		{
    		}
            }
    }
    Then, press "Compile". Great, you should probably now save your client. Go to File>Save Module and click "OK". You can now start it by pressing Debug>Start Debugging... To make sure it worked, add this code inside the brackets of "public static void OnUpdate()" to your Mods code (under yellow Terraria).
    Code:
    Terraria.Main.NewText("Hello World!");
    (Then File>Save Module, obviously.) If it worked, Hello World! will spam your chat really fast whenever you are in game. Feel free to remove this after.
    Last edited by Huntermuir1213; 07-23-2018 at 12:39 AM.

  2. The Following 4 Users Say Thank You to Huntermuir1213 For This Useful Post:

    drise (06-24-2019),exponentz (07-26-2018),Gaylord101 (09-04-2018),loleris111 (05-25-2020)

  3. #2
    HiImKyle's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Location
    England
    Posts
    233
    Reputation
    10
    Thanks
    206
    wtf, how did I miss that OnTick event. Thanks lol

  4. #3
    Huntermuir1213's Avatar
    Join Date
    Jul 2017
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    13
    My Mood
    Tired
    You're welcome..?

  5. #4
    Huntermuir1213's Avatar
    Join Date
    Jul 2017
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    13
    My Mood
    Tired
    I just realized that I really messed up this tutorial. Unfortunately it's too late to edit this so I will be re-writing it, with pictures, tommorow.

  6. The Following User Says Thank You to Huntermuir1213 For This Useful Post:

    exponentz (07-26-2018)

  7. #5
    Gaylord101's Avatar
    Join Date
    Aug 2018
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0
    Are you the one that hacked on Jupiter, vindictus and Pedguin?

  8. #6
    Huntermuir1213's Avatar
    Join Date
    Jul 2017
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    13
    My Mood
    Tired
    Yes, why?.

  9. #7
    Gaylord101's Avatar
    Join Date
    Aug 2018
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0
    Nah just wondering nice tutorial btw

  10. #8
    IDontReallyKnowEither's Avatar
    Join Date
    Jun 2018
    Gender
    male
    Posts
    21
    Reputation
    10
    Thanks
    685
    Huh. I never knew this event was a thing either. Probably won't ever use it, but nice to know it's there.

  11. #9
    winifix's Avatar
    Join Date
    Nov 2017
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    My Mood
    Breezy

    Smile

    Quote Originally Posted by IDontReallyKnowEither View Post
    Huh. I never knew this event was a thing either. Probably won't ever use it, but nice to know it's there.
    Here is the correction, as I see you didn't post it
    Edit LaunchGame as per: https://i.imgur.com/5bPVFpW.png
    Your method is as per: https://i.imgur.com/DxCZnN3.png

    Note: 1.4.0.5 now uses
    Main.OnTickForThirdPartySoftwareOnly += Mods.OnUpdate;
    not
    Main.OnTick += Mods.OnUpdate;
    Last edited by winifix; 06-09-2020 at 11:15 AM.

  12. #10
    hero0393's Avatar
    Join Date
    Jun 2015
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0

    .

    i have a bug: "The type or namespace name 'ReLogic' could not be found" when i edit LaunchGame method, how to fix this.

  13. #11
    HiImKyle's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Location
    England
    Posts
    233
    Reputation
    10
    Thanks
    206
    Quote Originally Posted by hero0393 View Post
    i have a bug: "The type or namespace name 'ReLogic' could not be found" when i edit LaunchGame method, how to fix this.
    Export "Terraria.Libraries.ReLogic.ReLogic.dll‎" from Terraria's EXE Resources to the game directory named "ReLogic.dll" and try again.

Similar Threads

  1. How to make a hacked client?
    By McChickenHumper in forum Realm of the Mad God Tutorials & Source Code
    Replies: 17
    Last Post: 12-22-2016, 10:04 AM
  2. [Solved] How do I make a hacked client?
    By Alkine in forum Realm of the Mad God Private Servers Help
    Replies: 7
    Last Post: 06-06-2016, 07:58 AM
  3. How to make a hacked client for a private server?
    By MatuandJohku in forum Realm of the Mad God Private Servers Help
    Replies: 5
    Last Post: 04-28-2015, 12:33 AM
  4. how to make a hacked client
    By bring me 115 in forum Realm of the Mad God Help & Requests
    Replies: 1
    Last Post: 11-07-2013, 06:53 AM
  5. [Tutorial] How to make a Hacked client simple **With Pictures**
    By tsj9834 in forum Minecraft Tutorials
    Replies: 7
    Last Post: 09-28-2013, 11:34 AM