Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Other MMORPG Hacks › Terraria Hacks › Terraria 1.2.0.1 Source Code

Terraria 1.2.0.1 Source Code

Posts 1–15 of 32 · Page 1 of 3
Teleporter
Teleporter
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...
#1 · edited 12y ago · 12y ago
infinest
infinest
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
#2 · edited 12y ago · 12y ago
Teleporter
Teleporter
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.
#3 · 12y ago
infinest
infinest
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
#4 · edited 12y ago · 12y ago
XE
Xenoxiluna
Interesting... I haven't even downloaded the update yet. I'll take a look tonight.
#5 · 12y ago
OB
OblivionGun
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.
#6 · 12y ago
MrBlueSL
MrBlueSL
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.
#7 · 12y ago
OB
OblivionGun
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.
#8 · 12y ago
MrBlueSL
MrBlueSL
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.
#9 · 12y ago
MrBlueSL
MrBlueSL
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.
#10 · edited 12y ago · 12y ago
QA
qabriel
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.
#11 · 12y ago
MrBlueSL
MrBlueSL
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.
4I1mx.png
#12 · edited 12y ago · 12y ago
UI
uitham
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.
#13 · edited 12y ago · 12y ago
MrBlueSL
MrBlueSL
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!
#14 · 12y ago
JO
josephcw
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.
#15 · 12y ago
Posts 1–15 of 32 · Page 1 of 3

Post a Reply

Similar Threads

  • Terraria 1.1.2 Server Source CodeBy Shadon1nja in Terraria Hacks
    2Last post 14y ago
  • Terraria 1.1.2 Source CodeBy Xenoxiluna in Terraria Hacks
    12Last post 12y ago
  • Terraria 1.1.1 Source CodeBy Xenoxiluna in Terraria Hacks
    17Last post 14y ago
  • [Release] WarHax DLL Source CodeBy OneWhoSighs in WarRock - International Hacks
    20Last post 18y ago
  • HALO 2 (XBOX) Source CodeBy mirelesmichael in General Game Hacking
    12Last post 20y ago

Tags for this Thread

None