alright so I've recently encountered this problem. I have not made any "Major" modifications to the StartServer void just a few(I have tried everything but still nothing)... but I have token the ones I put in out and it still tells me this:
much help would be appreciated. :handsdown:
here is my StartServer void:Quote:
The type initializer for 'CoEmu_v2_GameServer.Nano' threw an exception.
Code:
public static void StartServer()
{
QuizShowInfo[(byte)1] = "Dany";
QuizShowInfo[(ushort)1] = 245;
QuizShowInfo[1] = 100;
QuizShowInfo[(byte)2] = "Lord";
QuizShowInfo[(ushort)2] = 244;
QuizShowInfo[2] = 200;
QuizShowInfo[(byte)3] = "Quiz-Master";
QuizShowInfo[(ushort)3] = 243;
QuizShowInfo[3] = 400;
GenerateKey();
Struct.LoadItems("items.txt");
Struct.LoadItemPluses("itemadd.ini");
Struct.LoadMaps();
Struct.LoadMonsters();
Struct.LoadNpcs();
Struct.LoadPortals();
Struct.LoadServerskills();
Struct.LoadTNpcs();
Struct.LoadFeatures();
Struct.LoadGuilds();
Database.Database.LoadRevivePoints();
Database.Database.LoadEnchantData();
Database.Database.LoadTops();
//Database.Database.PurgeGuilds();
Console.WriteLine("This program is a branch of CoEmu.Nano, property of the CoEmu Foundation.");
Console.WriteLine("[GameServer-Init] Creating Game Thread..");
Nano.GameServer = new MasterSocket("GameServer");
new Thread(Nano.GameServer.AcceptNewConnections).Start();
Console.WriteLine("[GameServer-Init](Game Thread) Success.");
Console.WriteLine("[GameServer-Init] Creating Auth Thread..");
Nano.AuthServer = new MasterSocket("AuthServer");
new Thread(Nano.AuthServer.AcceptNewConnections).Start();
Console.WriteLine("[GameServer-Init](Auth Thread) Success.");
CharacterThread = new CoEmuThread(); CharacterThread.Start(CharacterCheck);
SummonedGuardsThread = new CoEmuThread(); SummonedGuardsThread.Start(SummonedGuardsCheck);
GuardsThread = new CoEmuThread(); GuardsThread.Start(GuardsCheck);
BroadCastTimer = DateTime.Now;
RandEventTimer = DateTime.Now;
PkTournyStarTime = DateTime.Now;
TradePartnerCount = DateTime.Now;
LastMobsMove = DateTime.Now;
LastDMapCheck = DateTime.Now;
CheckWalk = DateTime.Now;
GuildScores = DateTime.Now;
LastUpdateSite = DateTime.Now;
LastGuildPoints = DateTime.Now;
ServerToolsThread = new CoEmuThread(); ServerToolsThread.Start(ToolsCheck);
ConsoleCommands();
}