yeah um mysql backupfile i backed it up and theres was no mosnters id no npc id were do i get it and how am i going to add it.
ManagedOpenSSL.dll needs to be in both bin\Debug AND bin\ReleaseQuote:
Here's one thing that confuses me... if i "Debug" the projects (gameserver and loginserver) it work fine... but when i "Build" i got 15 errors concerning OpenSSL in GameEncryption.cs and Nano.cs
Any one can help me out here nor enlighten me :D
You are most likely using an older version of the MySQL daemon than what Andy exported the dump with. Try upgrading.Quote:
When im executing batch file i get this:
[Err] 1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1' at line 10
[Err] CREATE TABLE `accounts` (
`AccountID` varchar(16) DEFAULT NULL,
`Password` varchar(40) DEFAULT NULL,
`Type` int(11) NOT NULL DEFAULT '100',
`Auth` int(11) NOT NULL DEFAULT '1',
`Address` int(11) DEFAULT '0',
`Email` varchar(100) DEFAULT NULL,
`SecretNumber` varchar(20) NOT NULL,
UNIQUE KEY `AccountID` (`AccountID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[Msg] Finished - Unsuccessfully
--------------------------------------------------
For PROTECTION, I HIGHLY recommend you GET RID of your IP, and MYSQL USERNAME/PASSWORD; You need to change the password A.S.A.P., so no one else can gain access to your mysql server.Quote:
When I am compiling i get this [Only registered and activated users can see links. Click Here To Register...]
This is the code for database:
Bold = Line 30Code:/* * 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_LoginServer.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 = "ACCOUNT"; <--- CHANGE THAT public const string PASSWORD = "PASSWORD"; <--- CHANGE THAT public const string SERVER = "MY IP HERE"; <--- CHANGE THAT public const string DATA_BASE = "conqueremu"; public static MySqlConnection NewConnection() { MySqlConnection C = null; try{ C = new MySqlConnection("Server=" + SERVER + ";Database='" + DATA_BASE + "';Username='" + USER_NAME + "';Password='" + PASSWORD + "'"); [B]C.Open();[/B] } catch(Exception e) { Console.WriteLine(e.ToString()); return null; } return C; } } }
did you port forward 5817 too?Quote:
Can someone help me because when i try and log in i get stuck on the connectiong to accoutn server, i have changed the thing under CoEmu and I have portforwarded.
Check to make sure that the name in the source and server.dat are the same, and that your LoginServer project is pointing to the same IP.Quote:
Can someone help me because when i try and log in i get stuck on the connectiong to accoutn server, i have changed the thing under CoEmu and I have portforwarded.
if(ServerName == "Pixel†Empire")
{
/*if(AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("66.187.101.86", Key1, Key2));
}
else
{
CSocket.Disconnect();
}*/
if (AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("127.0.0.1", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
else if(ServerName == "CoEmu.Nano")
{
if(AuthSocket.Authorize(AccountName, Key, true))
{
CSocket.Send(Packets.AuthResponse("66.187.101.86", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
}
<?xml version="1.0"?> <mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <database name="cq2"> <table_structure name="outenserver"> <field Field="id" Type="smallint(1) unsigned zerofill" Null="NO" Key="PRI" Default="0" Extra="" /> <field Field="ServerName" Type="varchar(32)" Null="YES" Key="" Extra="" /> <field Field="ServerIP" Type="varchar(15)" Null="YES" Key="" Extra="" /> <field Field="ServerPort" Type="int(1) unsigned" Null="YES" Key="" Extra="" /> <field Field="FlashName" Type="varchar(32)" Null="YES" Key="" Extra="" /> <field Field="FlashIcon" Type="varchar(32)" Null="YES" Key="" Extra="" /> <field Field="FlashHint" Type="varchar(128)" Null="YES" Key="" Extra="" /> <field Field="Child" Type="tinyint(1) unsigned zerofill" Null="NO" Key="" Default="0" Extra="" /> <key Table="outenserver" Non_unique="0" Key_name="id" Seq_in_index="1" Column_name="id" Collation="A" Cardinality="97" Null="" Index_type="BTREE" Comment="" /> <options Name="outenserver" Engine="MyISAM" Version="10" Row_format="Dynamic" Rows="97" Avg_row_length="58" Data_length="5644" Max_data_length="281474976710655" Index_length="2048" Data_free="0" Create_time="2008-11-26 08:33:09" Update_time="2008-12-18 08:39:35" Collation="latin1_swedish_ci" Create_options="" Comment="" /> </table_structure> <table_data name="outenserver"> <row> <field name="id">0</field> <field name="ServerName"></field> <field name="ServerIP"></field> <field name="ServerPort">0</field> <field name="FlashName"></field> <field name="FlashIcon"></field> <field name="FlashHint"></field> <field name="Child">1</field> </row> <row> <field name="id">1</field> <field name="ServerName"></field> <field name="ServerIP"></field> <field name="ServerPort">0</field> <field name="FlashName">Group1</field> <field name="FlashIcon">Group11.swf</field> <field name="FlashHint"></field> <field name="Child">1</field> </row> <row> <field name="id">101</field> <field name="ServerName">Pixel†Empire</field> <field name="ServerIP">127.0.0.1</field> <field name="ServerPort">9958</field> <field name="FlashName">Pixel†Empire</field> <field name="FlashIcon">Group3/server2.swf</field> <field name="FlashHint"></field> <field name="Child">0</field> </row> </table_data> </database> </mysqldump>