mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
Fixed logs on map.
This commit is contained in:
parent
fbf6810c5c
commit
8eaa920751
@ -23,7 +23,7 @@ namespace FFXIVClassic_Map_Server
|
|||||||
|
|
||||||
if (!File.Exists("./map_config.ini"))
|
if (!File.Exists("./map_config.ini"))
|
||||||
{
|
{
|
||||||
Program.Log.Error("[FILE NOT FOUND]");
|
Program.Log.Error("FILE NOT FOUND");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,8 +40,6 @@ namespace FFXIVClassic_Map_Server
|
|||||||
ConfigConstants.DATABASE_USERNAME = configIni.GetValue("Database", "username", "");
|
ConfigConstants.DATABASE_USERNAME = configIni.GetValue("Database", "username", "");
|
||||||
ConfigConstants.DATABASE_PASSWORD = configIni.GetValue("Database", "password", "");
|
ConfigConstants.DATABASE_PASSWORD = configIni.GetValue("Database", "password", "");
|
||||||
|
|
||||||
Program.Log.Info("[OK]");
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,16 +28,14 @@ namespace FFXIVClassic_Map_Server
|
|||||||
#endif
|
#endif
|
||||||
bool startServer = true;
|
bool startServer = true;
|
||||||
|
|
||||||
Program.Log.Info("---------FFXIV 1.0 Map Server---------");
|
Console.ForegroundColor = ConsoleColor.Cyan;
|
||||||
|
Console.WriteLine("---------FFXIV 1.0 Map Server---------");
|
||||||
|
Console.ForegroundColor = ConsoleColor.Gray;
|
||||||
|
|
||||||
//Load Config
|
//Load Config
|
||||||
if (!ConfigConstants.Load())
|
if (!ConfigConstants.Load())
|
||||||
startServer = false;
|
startServer = false;
|
||||||
|
|
||||||
Assembly assem = Assembly.GetExecutingAssembly();
|
|
||||||
Version vers = assem.GetName().Version;
|
|
||||||
Program.Log.Info("Version: " + vers.ToString());
|
|
||||||
|
|
||||||
//Test DB Connection
|
//Test DB Connection
|
||||||
Program.Log.Info("Testing DB connection... ");
|
Program.Log.Info("Testing DB connection... ");
|
||||||
using (MySqlConnection conn = new MySqlConnection(String.Format("Server={0}; Port={1}; Database={2}; UID={3}; Password={4}", ConfigConstants.DATABASE_HOST, ConfigConstants.DATABASE_PORT, ConfigConstants.DATABASE_NAME, ConfigConstants.DATABASE_USERNAME, ConfigConstants.DATABASE_PASSWORD)))
|
using (MySqlConnection conn = new MySqlConnection(String.Format("Server={0}; Port={1}; Database={2}; UID={3}; Password={4}", ConfigConstants.DATABASE_HOST, ConfigConstants.DATABASE_PORT, ConfigConstants.DATABASE_NAME, ConfigConstants.DATABASE_USERNAME, ConfigConstants.DATABASE_PASSWORD)))
|
||||||
|
@ -116,7 +116,7 @@ namespace FFXIVClassic_Map_Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
Console.ForegroundColor = ConsoleColor.White;
|
Console.ForegroundColor = ConsoleColor.White;
|
||||||
Program.Log.Debug("Map Server has started @ {0}:{1}", (mServerSocket.LocalEndPoint as IPEndPoint).Address, (mServerSocket.LocalEndPoint as IPEndPoint).Port);
|
Program.Log.Info("Map Server has started @ {0}:{1}", (mServerSocket.LocalEndPoint as IPEndPoint).Address, (mServerSocket.LocalEndPoint as IPEndPoint).Port);
|
||||||
Console.ForegroundColor = ConsoleColor.Gray;
|
Console.ForegroundColor = ConsoleColor.Gray;
|
||||||
|
|
||||||
mProcessor = new PacketProcessor(this, mConnectedPlayerList, mConnectionList);
|
mProcessor = new PacketProcessor(this, mConnectedPlayerList, mConnectionList);
|
||||||
|
Loading…
Reference in New Issue
Block a user