|
You last visited: Today at 07:47
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.
07/15/2009, 21:12
|
#991
|
elite*gold: 0
Join Date: Jan 2009
Posts: 68
Received Thanks: 5
|
Quote:
Originally Posted by andyd123
Do you mean it says
"could not load server.dat. please reinstall the game."?
If you cannot connect to 127.0.0.1 please use the attached CoEmu.exe and server.dat
|
Okay now it goes to "Connecting to Account Server, please wait..." Idk what I'm doin wrong... Could someone explain D:
|
|
|
07/15/2009, 23:00
|
#992
|
elite*gold: 0
Join Date: Aug 2007
Posts: 44
Received Thanks: 16
|
Quote:
Originally Posted by Crystal134
Okay now it goes to "Connecting to Account Server, please wait..." Idk what I'm doin wrong... Could someone explain D:
|
O.o how you do that?
|
|
|
07/15/2009, 23:33
|
#993
|
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
|
Guys like I said before just mess around with the IPs in your source then DEBUG. It will work if you have the right combination. Server.dat has to be 127.0.0.1 for the IP then change the "Server Name" and "Flash Name" Also an easy way to fix it change back the server.dat to "CoEmu" as server name and you should connect.
|
|
|
07/16/2009, 01:34
|
#994
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
I have to say u are the best Guard at this forum u help whenever u can and will be nice even if others falme.
Full respect to u
|
|
|
07/16/2009, 03:18
|
#995
|
elite*gold: 0
Join Date: Aug 2007
Posts: 44
Received Thanks: 16
|
Quote:
Originally Posted by n0mansland
Guys like I said before just mess around with the IPs in your source then DEBUG. It will work if you have the right combination. Server.dat has to be 127.0.0.1 for the IP then change the "Server Name" and "Flash Name" Also an easy way to fix it change back the server.dat to "CoEmu" as server name and you should connect.
|
i do all you say me in you guied... hear are the info:
Code:
/*
* Created by SharpDevelop.
* User: sams
* Date: 3/8/2009
* Time: 12:38 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using CoEmu_v2_LoginServer.Connections;
using CoEmu_v2_LoginServer.Database;
namespace CoEmu_v2_LoginServer
{
/// <summary>
/// Allows for handling of packets from the client->loginserver or client->gameserver.
/// </summary>
public static class PacketProcessor
{
public static void ProcessPacket(byte[] Data, ClientSocket CSocket)
{
int Type = (Data[3] << 8) + Data[2];
switch(Type)
{
case 1086:
{
RequestLogin(Data, CSocket);
break;
}
default:
{
Console.WriteLine("[LoginServer] Unknown packet type: " + Type);
break;
}
}
}
public static void RequestLogin(byte[] Data, ClientSocket CSocket)
{
string AccountName = "";
string Password = "";
string ServerName = "";
if(Data.Length >= 276)
{
for (int i = 4; i < 0x114; i++)
{
if (i >= 0x14 && i < 0xf9)
{
if(Data[i] != 0x00)
Password += (Convert.ToString(Data[i], 16)).PadLeft(2, '0');
}
if (i < 0x14)
if (Data[i] != 0x00)
AccountName += Convert.ToChar(Data[i]);
if (i > 0xfa)
if (Data[i] != 0x00)
ServerName += Convert.ToChar(Data[i]);
}
}
else
{
return;
}
/* if(AccountName != "dsfreak")
{
CSocket.Disconnect();
return;
}*/
System.Random Random = new System.Random();
Console.WriteLine("[LoginServer] " + AccountName + " logging in to " + ServerName);
string DBPass = Database.Database.Password(AccountName);
//TODO: Check for ban.
if(DBPass != "ERROR")
{
if(DBPass == Password)
{
//OKAY to login!
uint Key = (uint)(Random.Next(10000000) << 32);
Key = Key << 32;
Key = (uint)(Key | (uint)Random.Next(10000000));
byte[] Key1 = new byte[4];
byte[] Key2 = new byte[4];
Key1[0] = (byte)(((ulong)Key & 0xff00000000000000L) >> 56);
Key1[1] = (byte)((Key & 0xff000000000000) >> 48);
Key1[2] = (byte)((Key & 0xff0000000000) >> 40);
Key1[3] = (byte)((Key & 0xff00000000) >> 32);
Key2[0] = (byte)((Key & 0xff000000) >> 24);
Key2[1] = (byte)((Key & 0xff0000) >> 16);
Key2[2] = (byte)((Key & 0xff00) >> 8);
Key2[3] = (byte)(Key & 0xff);
if(ServerName == "MyCo")
{
/*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 == "MyCo")
{
if(AuthSocket.Authorize(AccountName, Key, true))
{
CSocket.Send(Packets.AuthResponse("127.0.0.1", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
}
else if(DBPass == "")
{
Console.WriteLine("[LoginServer](Diagnostic) Set password for " + AccountName);
Database.Database.SetPass(AccountName, Password);
//OKAY to login!
uint Key = (uint)(Random.Next(10000000) << 32);
Key = Key << 32;
Key = (uint)(Key | (uint)Random.Next(10000000));
byte[] Key1 = new byte[4];
byte[] Key2 = new byte[4];
Key1[0] = (byte)(((ulong)Key & 0xff00000000000000L) >> 56);
Key1[1] = (byte)((Key & 0xff000000000000) >> 48);
Key1[2] = (byte)((Key & 0xff0000000000) >> 40);
Key1[3] = (byte)((Key & 0xff00000000) >> 32);
Key2[0] = (byte)((Key & 0xff000000) >> 24);
Key2[1] = (byte)((Key & 0xff0000) >> 16);
Key2[2] = (byte)((Key & 0xff00) >> 8);
Key2[3] = (byte)(Key & 0xff);
if(ServerName == "Myco")
{
/*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 == "MyCo")
{
if(AuthSocket.Authorize(AccountName, Key, true))
{
CSocket.Send(Packets.AuthResponse("127.0.0.1", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
}
else
{
CSocket.Send(Packets.WrongPass());
CSocket.Disconnect();
}
}
else
{
Console.WriteLine("DBPass equals ERROR: " + DBPass);
CSocket.Disconnect();
}
}
}
}
and in the server.dat are:
Code:
<?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">MyCo</field>
<field name="ServerIP">127.0.0.1</field>
<field name="ServerPort">9958</field>
<field name="FlashName">MyCo</field>
<field name="FlashIcon">Group3/server2.swf</field>
<field name="FlashHint"></field>
<field name="Child">0</field>
</row>
</table_data>
</database>
</mysqldump>
you can find some problem with thear?
EDIT:
END EDIT
|
|
|
07/16/2009, 03:37
|
#996
|
elite*gold: 0
Join Date: Jul 2009
Posts: 1
Received Thanks: 0
|
okdsaokdkodaskdosa thx
|
|
|
07/16/2009, 07:22
|
#997
|
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
|
@as3sinas0
u ended the first if too much early ,, copy + past a fresh lines then just change the server name and the IP (PacketProcessor.cs)
|
|
|
07/16/2009, 09:51
|
#998
|
elite*gold: 0
Join Date: Aug 2007
Posts: 68
Received Thanks: 9
|
Dont change the name of your server.. u got 100% chance to not can be connected ... keep them all CoEmu.. or its kind of damaged !
Server Forzen ?
:
|
|
|
07/16/2009, 09:54
|
#999
|
elite*gold: 0
Join Date: Aug 2007
Posts: 68
Received Thanks: 9
|
<?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">MyCo</field>
<field name="ServerIP">127.0.0.1</field>
<field name="ServerPort">9958</field>
<field name="FlashName">MyCo</field>
<field name="FlashIcon">Group3/server2.swf</field>
<field name="FlashHint"></field>
<field name="Child">0</field>
</row>
</table_data>
</database>
</mysqldump>
Maybe that ?
|
|
|
07/16/2009, 11:27
|
#1000
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
|
Quote:
Originally Posted by lesley21
Dont change the name of your server.. u got 100% chance to not can be connected ... keep them all CoEmu.. or its kind of damaged !
Server Forzen ?
:
|
I changed mine and it worked
|
|
|
07/16/2009, 16:00
|
#1001
|
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
|
Quote:
Originally Posted by lesley21
Dont change the name of your server.. u got 100% chance to not can be connected ... keep them all CoEmu.. or its kind of damaged !
Server Forzen ?
:
|
Nope it works after you change it.. Like I SAID do not follow my guide. Just change random IPs until you are able to connect it seems like it's different for everyone. Also what you could do is just change the Flash Name and it shows your servername in the client but you are connecting to CoEmuV2..
|
|
|
07/16/2009, 22:32
|
#1002
|
elite*gold: 0
Join Date: Aug 2007
Posts: 44
Received Thanks: 16
|
Quote:
Originally Posted by samehvan
@as3sinas0
u ended the first if too much early ,, copy + past a fresh lines then just change the server name and the IP (PacketProcessor.cs)
|
that dont run for may ... i think re try too make when some 1 upload a socure auto cofiguration
|
|
|
07/16/2009, 23:26
|
#1003
|
elite*gold: 0
Join Date: Jun 2007
Posts: 145
Received Thanks: 8
|
what is problem???
server dat and server ips is done
|
|
|
07/18/2009, 01:49
|
#1004
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
Time out... make the value higher then maybe u got a slow computer?
|
|
|
07/18/2009, 03:23
|
#1005
|
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
|
Quote:
Originally Posted by ~Yuki~
Time out... make the value higher then maybe u got a slow computer?
|
No, It's nothing to do with his computer..I already explained to him in a thread he made and to one hundred other people who don't look at this thread and see if there's any guides..
|
|
|
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 +2. The time now is 07:47.
|
|