[HELP] 5095 coemu need help with login

08/06/2009 20:04 Combat00#1
i followed many guide i fix the login server and game server and it lets me creat a character but it dosent leet me log on after i creat the character :\ neeed help psl
08/06/2009 20:37 Santa#2
You didnt fix something on the Game Server.
08/06/2009 20:42 Combat00#3
well i followed many guide and fix stuff in game server and in login server
08/07/2009 02:23 onlyme64#4
Quote:
if(ServerName == "YOUR SERVER NAME HERE")
{

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("YOUR IP HERE", 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 == "LegendCo")
{

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("YOUR IP HERE", Key1, Key2));
}
Try this combination, if it doesnt work then play around with the Ip's and replace them untill you get the right comination o.o
08/07/2009 15:27 n0mansland#5
lol the IPs aren't going to fix ANYTHING once you can login and create a character you're done with IPs.. I had the same problem as you it's easy to fix.. Not sure why it happens though..

1. Go into MySQL

2. Delete the Password for the account you want..

3. Now try logging in with something simple like the password as "a"

4. You can login.. Yay.. Once you can login you can change your password to what you want.. I was making "a' an example.

Note:
You won't have to do this for other accounts..