Discussion on [(Awesome)RELEASE] CoEmuv2.Nano(5095) Source Code within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
I had a problem with gameserver.exe when i debug in c# , login server works fine.
Database connection.cs
Code:
/*
* Created by SharpDevelop.
* User: sams
* Date: 3/8/2009
* Time: 1:13 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using MySql.Data.MySqlClient;
namespace CoEmu_v2_GameServer.Database
{
/// <summary>
/// Provides MySql resource connections, for multiple connections to a single MySql database.
/// This is due to the fact that the server is multi-threaded, so allowing a single connection would
/// likely result in errors, or general loss of performance.
/// </summary>
public static class DatabaseConnection
{
public const string USER_NAME = "root";
public const string PASSWORD = "";
public const string SERVER = "127.0.0.1";
public const string DATA_BASE = "conqueremu";
public static MySqlConnection DBConnection = null;
public static MySqlConnection NewConnection()
{
MySqlConnection C = null;
try{
C = new MySqlConnection("Server=" + SERVER + ";Database='" + DATA_BASE + "';Username='" + USER_NAME + "';Password='" + PASSWORD + "'; Min Pool Size = 300; Max Pool Size = 900");
C.Open();
}
catch(Exception e)
{
Console.WriteLine(e.ToString());
return null;
}
return C;
}
}
}
Is MQSQL installed?
(Go to CMD and type mysql, if you get accepted don't bother with this)
You have no MQSQL password. Or didn't you enter it?
The error states the connection to your database is null, no connection!
I think you forgot to enter the password.
Just make sure its exactly like the logging server.
ok so I've finished reading the first 30+ pages of the thread and I've heard it mentioned a few times but never fully answered.
I have gone through the source code and it is all running fine, I have tried 2 different edited .exes/server.dats and edited them multiple times. I still get the failed to connect to server error when I try to log into a character.
Game server AND login server are running with no errors, I have checked ips and server name like 20 times and they all appear to be right, as I said I tried 2 diff exes and server.dats posted in this thread both with same results.
Game Server says Ready for commands
Login server loads everything ok
Mysql is working fine, I added an account (username only, no password as all the guides have said) and yet still getting the same problem.
Ip I'm using is 127.0.0.1, I've tried using my own server name and CoEmu servername (default) both in server.dat and in the source, both get the same results.
Any ideas people? So far source looks quite good from what I saw in the database/source, nicely organized and looks like it has lots of potential... just cant get my **** char in lol.
<edit>
Nvm fixed it, I think I ****** something up in the original source, I copied sections of the original back into it and it works now. Source looks good, cant wait till I have time to work on it.
His Guide didnt help me. im still having the login sit there loading.
Wandering if anyone could help me 1-on-1 i have a vent server so easy
to talk with less typing and more understanding ya know.
if you can help me get it running.
His Guide didnt help me. im still having the login sit there loading.
Wandering if anyone could help me 1-on-1 i have a vent server so easy
to talk with less typing and more understanding ya know.
if you can help me get it running.
Follow my guide on login freeze above BUT DONT Change the name of the server in the server.dat until i figure it out... Then it will work
i have a new problem its hamatchi atm i done want hamatchi and my freind cant connect i teamveiwered him and changed server.dat ima keep tryin but login server keeps telling me his connection timed out
i have a new problem its hamatchi atm i done want hamatchi and my freind cant connect i teamveiwered him and changed server.dat ima keep tryin but login server keeps telling me his connection timed out
CoEmuv2.Nano(5095) Problem help pls 06/07/2017 - CO2 Private Server - 14 Replies I Have a Problem Can help my pls
http://www.imgbox.de/users/public/images/w31636w1 19.jpg