Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    nivlac's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    216
    I found the issue! I was looking through Teleporter's code and my own decompiled version, and I noticed on line 47 of NetMessage (in my version) it siad

    Code:
    binaryWriter.Write(player.male ? 0 : 1);
    but upon further inspection, it seemed that Visual Studio thought that was referring to "BinaryWriter.Write(bool value)" instead of "BinaryWriter.Write(byte value)"

    So to fix it, go to NetMessage.cs and find where it says "binaryWriter.Write(player.male ? 0 : 1);" and replace it with this:

    Code:
    binaryWriter.Write(player.male ? (byte)0 : (byte)1);
    I just checked it and successfully got on a locally hosted server.

  2. #17
    Kyle873's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by nivlac View Post
    I found the issue! I was looking through Teleporter's code and my own decompiled version, and I noticed on line 47 of NetMessage (in my version) it siad

    Code:
    binaryWriter.Write(player.male ? 0 : 1);
    but upon further inspection, it seemed that Visual Studio thought that was referring to "BinaryWriter.Write(bool value)" instead of "BinaryWriter.Write(byte value)"

    So to fix it, go to NetMessage.cs and find where it says "binaryWriter.Write(player.male ? 0 : 1);" and replace it with this:

    Code:
    binaryWriter.Write(player.male ? (byte)0 : (byte)1);
    I just checked it and successfully got on a locally hosted server.
    Good catch. Not sure how I didn't notice this while I was debugging to find the problem, probably because it was like 5am and I was already tired from hours of porting code from 1.2.2 to 1.2.4.

  3. #18
    mortemluna's Avatar
    Join Date
    Jul 2014
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Visual Studio says that it can't find the SmartDig image in the images folder, even though I checked and it's right there. Help me!
    Last edited by mortemluna; 08-06-2014 at 08:48 PM.

  4. #19
    Darkheart979's Avatar
    Join Date
    Oct 2014
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    I may sound stupid but how do I open it?

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Source Code] Terraria 1.1.2 Source Code
    By Xenoxiluna in forum Terraria Hacks
    Replies: 12
    Last Post: 09-07-2013, 07:17 PM
  2. [Source Code] Terraria 1.1.1 Source Code
    By Xenoxiluna in forum Terraria Hacks
    Replies: 17
    Last Post: 01-22-2012, 09:36 PM
  3. [Source Code] terraria 1.06 clean source no errors
    By GraveDigger1337 in forum Terraria Hacks
    Replies: 7
    Last Post: 10-29-2011, 03:04 AM
  4. [Free]Terraria grief client 104 !! (source included)
    By Ewrokil in forum Terraria Hacks
    Replies: 6
    Last Post: 07-02-2011, 02:05 PM
  5. [Free]Terraria grief client 104 !! (source included)
    By Ewrokil in forum Terraria Hacks
    Replies: 1
    Last Post: 06-11-2011, 06:36 PM