Anyways cutting to conclusion, I've recently came back to maybe try and learn a "bit" of the C# language by using trial/error and building up a source released here in the forums. Yes, it is a 5700+ source. I know what you think, why start at such a high patch and why not a lower patch? Well, simply because I've been developing lower patches since the day I started here lol. I also wanted to get "in sync" with the conquer world as I have felt "left out of it".
Anyways... I have here a decent but buggy source that is aimed around patch 5730 or 5733. I am having the problem of the source not logging characters back in the game after they have logged out successfully. The usual error I get in the client is this:
I am not going to lie, I have been trying to figure out how to do this but I just can't seem to figure out why. Please bare with me as I have lost most, if not, all of my knowledge in C# being gone all this time. I am going to put here my AuthState.cs:Quote:
Error: Disconnected with game server. Please login again!
Code:
using System;
using Conquer_Online_Server.Network.Cryptography;
using System.Net.Sockets;
using System.Collections.Generic;
using Conquer_Online_Server.Network.Sockets;
using System.Collections.Concurrent;
using Conquer_Online_Server.Network.GamePackets;
namespace Conquer_Online_Server.Client
{
public class AuthState
{
private bool Alive = false;
public Network.AuthPackets.Authentication Info;
public Database.AccountTable Account;
public Network.Cryptography.AuthCryptography Cryptographer;
//public int PasswordSeed;
public WinSocket _socket;
public AuthState(WinSocket socket)
{
_socket = socket;
Alive = true;
}
public void Send(byte[] buffer)
{
if (Alive)
{
byte[] _buffer = new byte[buffer.Length];
Buffer.BlockCopy(buffer, 0, _buffer, 0, buffer.Length);
lock (Cryptographer)
{
Cryptographer.Encrypt(_buffer);
try
{
_socket.Send(_buffer);
}
catch (Exception e)//posible proxy/food with proxy
{
Console.WriteLine(e.ToString());
Program.SaveException(e);
this.Disconnect();
}
}
}
}
public void Send(Interfaces.IPacket buffer)
{
Send(buffer.ToArray());
}
public void Disconnect()
{
if (Alive)
{
Alive = false;
_socket.Disconnect(false);
}
}
public static uint nextID = 0;
public int PasswordSeed = 0;
}
}
Thanks a lot!






