Page 1 of 3 123 LastLast
Results 1 to 15 of 32
  1. #1
    Teleporter's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    65

    Terraria 1.2.0.1 Source Code

    Please somebody help me decompile Terraria 1.2.0.1!
    I will pay money for your work and understanding.
    Please share source code. I am an ordinary translator.
    I just want to play this greatest game in my own language and help other gamers understand this game...
    Last edited by Teleporter; 10-02-2013 at 12:46 PM.

  2. #2
    infinest's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    163
    Reputation
    10
    Thanks
    2,929
    My Mood
    Tired
    I got it running already after trying several Decompilers, to get the least fucked up code.
    The worldgeneration doesn't function properly, so i gotta look into that. You can go ingame without problems but i haven't tried doing anything yet so there may be more errors. If i get to fix that stuff i may come back to you.

    Edit: Ok it is WAY more fucked up than i thought
    Last edited by infinest; 10-02-2013 at 02:08 PM.

  3. #3
    Teleporter's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    65
    Thank you! I trying "JetBrains dotPeek version 1.1" decompiler and also get more bugs, but I also will fix it...
    Sorry for my bad English.

  4. #4
    infinest's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    163
    Reputation
    10
    Thanks
    2,929
    My Mood
    Tired
    Ye i used that too and looked at code from the old version and from other decompilers.
    It runs but some WorldGen Functions freeze, Saving freezes and items just don't show up(every item is "undefinded")
    So i'll take a break, it'll take some time to fix all this shit and i don't think im the best for the job.
    If someone wants to take a look at my project just pm me


    Edit:
    Before i forget, there was a thread about decompiling 1.2 in the official forums, which got removed pretty fast.
    I could save it before it got removed and there are at least a few helpful tips so if you want that too just pm me
    Last edited by infinest; 10-02-2013 at 02:22 PM.

  5. #5
    Xenoxiluna's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    106
    Reputation
    10
    Thanks
    4,303
    My Mood
    Asleep
    Interesting... I haven't even downloaded the update yet. I'll take a look tonight.

  6. #6
    OblivionGun's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    apples
    Posts
    1
    Reputation
    10
    Thanks
    0
    I've tried cleaning it up, I managed to get rid of all the errors, but when I run it now it throws an exception. I don't work with c# usually so I don't know what to do.

  7. #7
    MrBlueSL's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    Illinois
    Posts
    56
    Reputation
    10
    Thanks
    51
    My Mood
    Happy
    Quote Originally Posted by OblivionGun View Post
    I've tried cleaning it up, I managed to get rid of all the errors, but when I run it now it throws an exception. I don't work with c# usually so I don't know what to do.
    Have you tried decompiling 1.2.0.2?
    I've tried both. Decompiling on .NET Reflector, and ILSpy, both freezing up at Items.cs, I can never decompile past that point.

    If you have decompiled 1.2.0.2 with the same issues, could you send me the code? I've worked with modding Terraria since it's release, but this is the only update that's ever given me trouble decompiling. I can try my best to fix the exception errors, or anything I find and I'll release it on here crediting to you.

  8. #8
    OblivionGun's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    apples
    Posts
    1
    Reputation
    10
    Thanks
    0
    Yeah I've been trying since 1.2, so I've done 1.2, 1.2.0.1, and 1.2.02.

    ILSpy won't decompile it because Items.cs will always crash it. i used JetBrains dotPeek 1.1 for that.

    2 shared /file/JBRydZcW/1202_src.html
    (won't let me post links)
    This is my somewhat fixed version.

    If you manage to get it compiled and working, please upload just the source with no hacks or edits tacked on.

  9. #9
    MrBlueSL's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    Illinois
    Posts
    56
    Reputation
    10
    Thanks
    51
    My Mood
    Happy
    Quote Originally Posted by OblivionGun View Post
    Yeah I've been trying since 1.2, so I've done 1.2, 1.2.0.1, and 1.2.02.

    ILSpy won't decompile it because Items.cs will always crash it. i used JetBrains dotPeek 1.1 for that.

    2 shared /file/JBRydZcW/1202_src.html
    (won't let me post links)
    This is my somewhat fixed version.

    If you manage to get it compiled and working, please upload just the source with no hacks or edits tacked on.
    I'll see what I can do. If I can get it fixed, and running, I'll post it by the morning.

    Here comes a fun night of trial and error.

  10. #10
    MrBlueSL's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    Illinois
    Posts
    56
    Reputation
    10
    Thanks
    51
    My Mood
    Happy

    Exclamation

    I found the exception error. I guess when dot peek decompiled Terraria, it added an unnecessary (string) line to an object reference.

    So, the exception was found in Program.cs, but traced to Main.cs:line 517 where the game references save data.

    The line as followed:
    Code:
    public static string SavePath = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + (object) Path.DirectorySeparatorChar + "My Games" + (string) + (object) Path.DirectorySeparatorChar + "Terraria";
    When decompiled it added that extra (string) reference.

    The code should have read:
    Code:
    public static string SavePath = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + Path.DirectorySeparatorChar + "My Games" + Path.DirectorySeparatorChar + "Terraria";
    There might be some more errors that I'll be looking into for now.

    I'll submit it as a release soon.

    #EDIT#
    Sorry for the double post.

    #EDIT2#

    Just went through the basic settings check, everything is out of wack. Graphical and Audio settings have the same errors with the misplaced (string) reference.
    Last edited by MrBlueSL; 10-05-2013 at 12:43 AM.

  11. #11
    qabriel's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    1
    I'm also waiting the source code so I can start working on my translation.
    Hope you can manage to fix the errors, MrBlueSL. Good luck.

  12. #12
    MrBlueSL's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    Illinois
    Posts
    56
    Reputation
    10
    Thanks
    51
    My Mood
    Happy
    I originally thought I could have it out by this morning (It's 4:07 am here), but turns out there's a ton of bracket errors?

    (See Image)

    Notice the top section of the code is what it should look like, the bottom section is what I have to change.

    Not sure what to make of it, but I have to go manually input each bracket.

    So the source probably won't be released soon. Maybe tomorrow if I'm not too busy today.

    (I might be able to crank it out later today if I don't sleep, haha.)

    #EDIT#
    I figured out a quicker way to fix all the bracket errors. I guess I'll be releasing it now.
    Attached Thumbnails Attached Thumbnails
    4I1mx.png  

    Last edited by MrBlueSL; 10-05-2013 at 05:00 AM.

  13. #13
    uitham's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by MrBlueSL View Post
    I originally thought I could have it out by this morning (It's 4:07 am here), but turns out there's a ton of bracket errors?

    (See Image)

    Notice the top section of the code is what it should look like, the bottom section is what I have to change.

    Not sure what to make of it, but I have to go manually input each bracket.

    So the source probably won't be released soon. Maybe tomorrow if I'm not too busy today.

    (I might be able to crank it out later today if I don't sleep, haha.)

    #EDIT#
    I figured out a quicker way to fix all the bracket errors. I guess I'll be releasing it now.
    And don't forget searching for "// ISSUE:" in the source code, there are 3 functions spread around that haven't decompiled like some projectile stuff.

    You can decompile those functions individually and paste them in I guess, not sure if it will work but I am testing it right now.


    Also AFAIK those aren't bracket errors, if there is only one line in an if statement you can replace the brackets with 1 tab.
    Last edited by uitham; 10-05-2013 at 08:51 AM.

  14. #14
    MrBlueSL's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    Illinois
    Posts
    56
    Reputation
    10
    Thanks
    51
    My Mood
    Happy
    I went through and individually replaced the code in Items, and Projectiles, there seemed to be a lot of messed up code in those two. I also did look for the errors (// ISSUE), none found.

    #EDIT#

    SO I was planning on releasing the source this morning, but while I was uploading the files on some virus scanners, I fell asleep... SORRY ABOUT THAT!

  15. #15
    josephcw's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    Missouri
    Posts
    17
    Reputation
    10
    Thanks
    233
    My Mood
    Daring
    No worries! I just hope to have it up soon. I know if it's actually usable code then I'll personally release some of my old src to trusted members.

Page 1 of 3 123 LastLast

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. [Request] Terraria 1.1.2 Server Source Code
    By Shadon1nja in forum Terraria Hacks
    Replies: 2
    Last Post: 08-02-2012, 07:44 AM
  3. [Source Code] Terraria 1.1.1 Source Code
    By Xenoxiluna in forum Terraria Hacks
    Replies: 17
    Last Post: 01-22-2012, 09:36 PM
  4. [Release] ****** DLL Source Code
    By OneWhoSighs in forum WarRock - International Hacks
    Replies: 20
    Last Post: 10-25-2007, 07:41 AM
  5. HALO 2 (XBOX) Source Code
    By mirelesmichael in forum General Game Hacking
    Replies: 12
    Last Post: 09-23-2006, 04:35 AM