Register for your free account! | Forgot your password?

Go Back   elitepvpers › MMORPGs › Conquer Online 2 › CO2 Private Server › CO2 PServer Guides & Releases
You last visited: Today at 11:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[(Awesome)RELEASE] CoEmuv2.Nano(5095) Source Code

Discussion on [(Awesome)RELEASE] CoEmuv2.Nano(5095) Source Code within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old   #916
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Your fire wall might be blocking it or your IPs are wrong probably have to make an exception list
n0mansland is offline  
Thanks
1 User
Old   #917
 
elite*gold: 0
Join Date: Feb 2007
Posts: 28
Received Thanks: 0
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;
		}
	}
}


Anyone can help me?

Thnx!
Roykssop is offline  
Old   #918
 
Singah's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 53
Received Thanks: 4
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.

Can I have your theme? =P
Singah is offline  
Old   #919
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
nope, the fix is this:
Code:
public static MySqlConnection NewConnection()
		{
			MySqlConnection C = null;
			try{
			C = new MySqlConnection("Server=" + SERVER + ";Database='" + DATA_BASE + "';Username='" + USER_NAME + "';Password='" + PASSWORD + "';");
			C.Open();
			}
			catch(Exception e)
			{
				Console.WriteLine(e.ToString());
				return null;
			}
			return C;
		}
It will error after like 1 hour probably, but thats ur problem.
alexbigfoot is offline  
Old   #920
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
I thought that was just the fix for line 30? I cant read spanish so cant see what the error is
n0mansland is offline  
Old   #921
 
elite*gold: 0
Join Date: Feb 2007
Posts: 28
Received Thanks: 0
Ready, now gameserver works fine!

The problem was this line (Min Pool Size = 300; Max Pool Size = 900"

Thanks!
Roykssop is offline  
Old   #922
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
np
alexbigfoot is offline  
Old   #923
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,386
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.
pro4never is offline  
Old   #924
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
if anyone has problems logging in like frozen or "cant connect to gameserver" check out my guide to fix it..



and link inside for line 30 and line 34 fix (apparently it works for line 31 error too... =/)
n0mansland is offline  
Old   #925
 
darkmanx1's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 96
Received Thanks: 8
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.
darkmanx1 is offline  
Old   #926
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Quote:
Originally Posted by darkmanx1 View Post
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
n0mansland is offline  
Thanks
1 User
Old   #927
 
darkmanx1's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 96
Received Thanks: 8
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
darkmanx1 is offline  
Old   #928
 
elite*gold: 0
Join Date: Feb 2007
Posts: 28
Received Thanks: 0
Quote:
Originally Posted by darkmanx1 View Post
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 the same probl
Roykssop is offline  
Old   #929
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
In your friends server.dat does he put your hamachi or w/e IP in?
n0mansland is offline  
Thanks
1 User
Old   #930
 
darkmanx1's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 96
Received Thanks: 8
Quote:
Originally Posted by n0mansland View Post
In your friends server.dat does he put your hamachi or w/e IP in?

tryed every ip hamatchi, his himatchi, my main ip, my router, idk kinda just playing around with stuff slowly learning.
darkmanx1 is offline  
Closed Thread


Similar Threads Similar Threads
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



All times are GMT +1. The time now is 11:07.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.