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:
Quote:
The type initializer for 'CoEmu_v2_GameServer.Nano' threw an exception.
here is my StartServer void:
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();
}
nothing is worng with this void
your Problem is in Accepting a New Connection though
plus you should look at this void like its just a list for the stuff that the server well load/Execute/start/etcetc
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..");
[COLOR="DarkRed"]Nano.GameServer = new MasterSocket("GameServer");
new Thread(Nano.GameServer.AcceptNewConnections).Start();[/COLOR]
Console.WriteLine("[GameServer-Init](Game Thread) Success.");
Console.WriteLine("[GameServer-Init] Creating Auth Thread..");
[COLOR="DarkRed"]Nano.AuthServer = new MasterSocket("AuthServer");
new Thread(Nano.AuthServer.AcceptNewConnections).Start();[/COLOR]
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();
}
make sure you dident change any of the server connection setting else when you start the server and that exception pup up it wold be high lighted so you can see it follow that high lighted line by one clicking each colored
Quote:
example
Nano.GameServer = new MasterSocket("GameServer");
new Thread(Nano.GameServer.AcceptNewConnections).Start ();
part and hit F12 that well take you to the definition for each void you have there make sure they are all fine and nothing has changed else idk :P
make sure you dident change any of the server connection setting else when you start the server and that exception pup up it wold be high lighted so you can see it follow that high lighted line by one clicking each colored part and hit F12 that well take you to the definition for each void you have there make sure they are all fine and nothing has changed else idk :P
nah bra...I tried it but it still gives me that same ****** error >.<
idk what did you edit but the start server part must go Through those lines so try to replace it with this one and let me know
Code:
public static void StartServer()
{
GenerateKey();
Nano.GameServer = new MasterSocket("GameServer");
new Thread(Nano.GameServer.AcceptNewConnections).Start();
Nano.AuthServer = new MasterSocket("AuthServer");
new Thread(Nano.AuthServer.AcceptNewConnections).Start();
CharacterThread = new CoEmuThread(); CharacterThread.Start(CharacterCheck);
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();
}
after that try this one
Code:
public static void StartServer()
{
GenerateKey();
Nano.GameServer = new MasterSocket("GameServer");
new Thread(Nano.GameServer.AcceptNewConnections).Start();
Nano.AuthServer = new MasterSocket("AuthServer");
new Thread(Nano.AuthServer.AcceptNewConnections).Start();
CharacterThread = new CoEmuThread(); CharacterThread.Start(CharacterCheck);
ServerToolsThread = new CoEmuThread(); ServerToolsThread.Start(ToolsCheck);
ConsoleCommands();
}
this way you can only test the connection and make sure what is the problem connection or loading good luck and let me know plz
idk what did you edit but the start server part must go Through those lines so try to replace it with this one and let me know
Code:
public static void StartServer()
{
GenerateKey();
Nano.GameServer = new MasterSocket("GameServer");
new Thread(Nano.GameServer.AcceptNewConnections).Start();
Nano.AuthServer = new MasterSocket("AuthServer");
new Thread(Nano.AuthServer.AcceptNewConnections).Start();
CharacterThread = new CoEmuThread(); CharacterThread.Start(CharacterCheck);
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();
}
after that try this one
Code:
public static void StartServer()
{
GenerateKey();
Nano.GameServer = new MasterSocket("GameServer");
new Thread(Nano.GameServer.AcceptNewConnections).Start();
Nano.AuthServer = new MasterSocket("AuthServer");
new Thread(Nano.AuthServer.AcceptNewConnections).Start();
CharacterThread = new CoEmuThread(); CharacterThread.Start(CharacterCheck);
ServerToolsThread = new CoEmuThread(); ServerToolsThread.Start(ToolsCheck);
ConsoleCommands();
}
this way you can only test the connection and make sure what is the problem connection or loading good luck and let me know plz
still gettin the exact same error after trying both =/
this is your start server an if you dident touch it like you said before than it must work fine place this one and try to run the server
Code:
public static void StartServer()
{
GenerateKey();
Nano.AuthServer = new MasterSocket("AuthServer");
new Thread(Nano.AuthServer.AcceptNewConnections).Start();
CharacterThread = new CoEmuThread(); CharacterThread.Start(CharacterCheck);
ServerToolsThread = new CoEmuThread(); ServerToolsThread.Start(ToolsCheck);
ConsoleCommands();
}
this is your start server an if you dident touch it like you said before than it must work fine place this one and try to run the server
Code:
public static void StartServer()
{
GenerateKey();
Nano.AuthServer = new MasterSocket("AuthServer");
new Thread(Nano.AuthServer.AcceptNewConnections).Start();
CharacterThread = new CoEmuThread(); CharacterThread.Start(CharacterCheck);
ServerToolsThread = new CoEmuThread(); ServerToolsThread.Start(ToolsCheck);
ConsoleCommands();
}
[Help 5095]Can Any One Gave Me Code To Love Stone In source Binary 5095 04/18/2010 - CO2 Private Server - 1 Replies Can Any One Gave Me Code To Love Stone In source Binary 5095 from his source
Cuz I Have problem in marriage
love stone gave u flower and when u send it nothing sent to Your Frind
And I Think Problem In This Code
400011 400012 0 124 1067
[Help]5095 02/20/2010 - CO2 Private Server - 2 Replies Version 5095
first question:
Second Question:
could someone help me please
BOT 5095 02/19/2010 - Conquer Online 2 - 5 Replies i need bots for autolever, auto scater, auto loot and others thanks for all