Terraria 1.2.0.1 Source Code

Posts 1–15 of 32 · Page 1 of 3
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...
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
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.
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
Interesting... I haven't even downloaded the update yet. I'll take a look tonight.
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.
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.
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.
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.
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.
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.
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.
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.
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!
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.
Posts 1–15 of 32 · Page 1 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us