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 cooding problems

PostTerraria cooding problems

Posts 1–2 of 2 · Page 1 of 1
EX
exofos
Terraria cooding problems
When i try to debug my mod it says: "TypeIntializationException was unhandeled"
What did i do wrong?
Here's my code:


namespace Terraria
{
using System;
using System****;
//using System.Windows.Forms;

internal static class Program
{
private static void Main(string[] args)
{
Terraria.Main main = new Terraria.Main();
try
{
for (int i = 0; i < args.Length; i++)
{
if ((args[i].ToLower() == "-port") || (args[i].ToLower() == "-p"))
{
i++;
try
{
Netplay.serverPort = Convert.ToInt32(args[i]);
}
catch
{
}
}
if ((args[i].ToLower() == "-join") || (args[i].ToLower() == "-j"))
{
i++;
try
{
main.AutoJoin(args[i]);
}
catch
{
}
}
if ((args[i].ToLower() == "-pass") || (args[i].ToLower() == "-password"))
{
i++;
Netplay.password = args[i];
main.AutoPass();
}
if (args[i].ToLower() == "-host")
{
main.AutoHost();
}
if (args[i].ToLower() == "-loadlib")
{
i++;
string path = args[i];
main.loadLib(path);
}
}
//Steam.Init();
// if (Steam.SteamInit)
// {
main.Run();
// }
// else
// {
// MessageBox.Show("Please launch the game from your Steam client.", "Error");
//}
}
catch (Exception exception)
{
try
{
using (StreamWriter writer = new StreamWriter("client-crashlog.txt", true))
{
writer.WriteLine(DateTime.Now);
writer.WriteLine(exception);
writer.WriteLine("");
}
// MessageBox.Show(exception.ToString(), "Terraria: Error");
}
catch
{
}
}
finally
{
if (main != null)
{
main.Dispose();
}
}
}
}
}
#1 · edited 14y ago · 14y ago
NO
noobsludgerz
well to fix this goto: Pastebin.com - #1 paste tool since 2002! upload your code and paste the link here.
#2 · 14y ago
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

  • WPE problem...By styx23 in General Game Hacking
    8Last post 20y ago
  • Problem Wit Hacking ProgramsBy f5awp in General Gaming
    5Last post 20y ago
  • hacking problemsBy iwillkillyou in WarRock - International Hacks
    11Last post 20y ago
  • To All GunZ Down 02-07-06 PROBLEMBy WertyRO in Gunz General
    18Last post 20y ago
  • ProblemBy lambda in Gunz General
    3Last post 20y ago

Tags for this Thread

#cooding#terraria