There is a guide, you simply need to change the database connection to not be pooled or that's how I remember it.
Read the error 30 fixes, they have been posted here before.
@ person confused about which ip to use.
You will ALWAYS use 127.0.0.1 if you are hosting yourself. Regardless of if it is hosted locally, online or through hamachi, you will be using 127.0.0.1. Only OTHERS connecting will use the external ip.
That's why in the source there are two different ips. One for nano and one for the actual server. Change nano to 127.0.0.1 and the other to your external or hamachi ip if hosting online, change both to 127.0.0.1 if not.
Also ensure Website_ip is NOT 127.0.0.1 or your external ip. Connections using it will NOT work, it's for website server status/admin connections.
Should simply be some incorrect settings or something not allowing you to connect to your sql database.
I'd suggest making a test connection in navicat so you can double check your login information and then re-edit the source (both login server and game server) under Database>DatabaseConnection.cs and double check the user/pass and then debug both servers and try again.
Should be all there is to it really (ps: There are guides / threads posted already specifically for both of those errors...)
When i do a debug it shows errors of some kind i have no idea what it means lol
EDIT #### Trying to put screen shot up but dunno how lol sorry ill try explain the best way possible.
OK
1st i open CoEmu v2
2nd i go to solution explorer
3rd i go to CoEmu v2 Game Server, Database, DatabaseConnections.cs
/*
* Created by SharpDevelop.
* User: sams
Ill Delete This After To Free Up Space Sorry :/
* 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 = "USERNAMEHERE";
public const string PASSWORD = "PASSWORDHERE";
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;
}
}
}
Next I Run DeBug
Microsoft Visual C# Express Edition opens a page called Database.cs
/*
* Created by SharpDevelop.
* User: sams
* Date: 3/8/2009
* Time: 1:10 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Data;
using MySql.Data.MySqlClient;
namespace CoEmu_v2_LoginServer.Database
{
/// <summary>
/// Provides connections for information retrevial from the CoEmu database, which is MySQL based.
/// </summary>
public static class Database
{
public static bool TestConnect()
{
MySqlConnection Connection = DatabaseConnection.NewConnection(); if(Connection.State == ConnectionState.Open)
{
Connection.Close();
Connection.Dispose();
return true;
}
else
{
Connection.Dispose();
return false;
}
}
public static string Password(string Account)
{
string Password = "ERROR";
MySqlCommand Cmd = new MySqlCommand("SELECT * FROM `accounts` WHERE `AccountID` = \"" + Account + "\"", DatabaseConnection.NewConnection());
MySqlDataReader DR = Cmd.ExecuteReader(CommandBehavior.CloseConnection) ;
while(DR.Read())
{
Password = Convert.ToString(DR["Password"]);
}
DR.Close();
return Password;
}
public static void SetPass(string Account, string Pass)
{
MySqlCommand Cmd = new MySqlCommand("UPDATE `accounts` SET `Password` = \"" + Pass + "\" WHERE `AccountID` = \"" + Account + "\"", DatabaseConnection.NewConnection());
Cmd.ExecuteNonQuery();
Cmd.Connection.Close();
Cmd.Dispose();
}
}
}
and it highlights Line 46 , Col 9, Chan 3 with says
if(Connection.state == ConectionState.open <--- higlights in yellow with a box aside it called, NullReferenceException was unhandled.
I Dont Know What This Means Or What I Should Do
Been Doing Some Research And Came Accross This I Dont Know If I Can Your It In This Source Anywhere?
Write this code to create Sql connection.
SqlConnection con = new SqlConnection("Server=You server name or comp name;Database=Yourdatabasename;Trusted_Connectopn= True");
SqlCommand cmd = new SqlCommand("Write your sql query here eg. select * from Table name");
con.Open();
DataSet ds = new DataSet(cmd,con);
SqlDataAdapter da = new SqlDataAdapter();
da.Fill(ds);
con.Close();
Well if you are getting errors that will obviously mean that you won't be able to run it properly lol.
A list of the errors would be helpful. Usually they are fairly self explanatory (either having to do with an invalid argument, undefined variable or something similar) or it could be something more serious but just saying "I get errors and I don't know what they mean" doesn't help anyone. We aren't psychic and can't read you, or your computer's thoughts.
***** GARETH WE BOTH ON THE SAME SERVER PACK. AND U HAVIN PROBLEMS ROFL. I CANNOT BELIEVE IT. U SAID U FOUND A SERVER PACK UPDATED. IVE FOUND THE SAME ONE. GO ONTO THE OTHER THREAD IVE BEEN ASKING QUESTIONS ABOUT THIS ***** UP PACK FOR 3 DAYS LOLZ. I CANT BELIEVE THIS IS THE ONE U TRYIN TO INSTALL LOOL. ITS HARD AS *** THIS **** IS. COMAPRED TO POWER SOURCE. GET ON MSN WHEN U READ THIS LMAO. SONOFSKELE HAHAHA. LAUGHING ****** MY PANTS WHEN I SEEN THAT
I forget the specific solution but you are getting error 31, there has been a number of guides/solutions posted for that. If you search I'm positive you will find something (easiest way would be to do advanced search, search replies. Alot of them are shoved in large, multi page threads. Makes it easier to find ****)
Good luck, I'm sure you'll get it working. Lemme know if you run into any other problems.
[Guide] CoEmu Setup+LoginFix+Line30,31,34 Fix 03/09/2010 - CO2 PServer Guides & Releases - 17 Replies Setting Up CoEmuV2
Download everything Here
Download Client from Here
Thanks andy123 and BrokeN^WinG
Now let's start...
[Guide] How to setup Reflex Source 09/11/2009 - CO2 PServer Guides & Releases - 14 Replies hey 4 people pmed me that they dont know how to setup a source and i saw that beta and someone else didnt knew it eiter how to set it up so here is a guide.
Downloads:
The Source (http://www.elitepvpers.com/forum/co2-pserver-discu ssions-questions/197876-release-project-reflex-sou rce-v1-0-a.html)
APPServer 2.6.0 (AppServNetwork)
Co Client Patch 5017 (Conquer_2.0.rar - FileFront.com)
Note: People with Windows Vista need APPserver 2.5.1
The Final Guide: