|
You last visited: Today at 13:47
Advertisement
Login error 5165
Discussion on Login error 5165 within the CO2 Private Server forum part of the Conquer Online 2 category.
02/20/2010, 22:22
|
#1
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
Login error 5165
Alright I got my host today. I downloaded appserv, my 5165 source and yeah. I tried putting it on but error, so I was like "oh I forgot net framework" then i installed it and it goes online. But now, when I try to login from my pc, it shows this error and the loading bar gets stuck on my client. Here's a screeny.
Closer image:
Any suggestions?
|
|
|
02/20/2010, 22:25
|
#2
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
post your gameworker.cs line 32 and around
|
|
|
02/20/2010, 22:25
|
#3
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
seems u messed up the pointers and its writing invalid bytes to the ram
|
|
|
02/20/2010, 22:29
|
#4
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
This is line 32 and around:
Code:
{
GameClient C = new GameClient(false);
C.Soc = S.Sock;
[B]S.Wrapper = C;[/B]
C.AddSend(Packets.DHKeyPacket(C.KeyExchance.PublicKey.ToHexString(), C.NewServerIV, C.NewClientIV));
C.EndSend();
}
|
|
|
02/20/2010, 22:34
|
#5
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
Try replacing your blowfish.cs with tht one:
PHP Code:
using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace NewestCoServer { public class GameCrypto { Blowfish _blowfish; public GameCrypto(byte[] key) { _blowfish = new Blowfish(BlowfishAlgorithm.CFB64); _blowfish.SetKey(key); } public void Decrypt(byte[] packet) { byte[] buffer = _blowfish.Decrypt(packet); System.Buffer.BlockCopy(buffer, 0, packet, 0, buffer.Length); } public void Encrypt(byte[] packet) { byte[] buffer = _blowfish.Encrypt(packet); System.Buffer.BlockCopy(buffer, 0, packet, 0, buffer.Length); } public Blowfish Blowfish { get { return _blowfish; } } } public enum BlowfishAlgorithm { ECB, CBC, CFB64, OFB64, }; public class Blowfish : IDisposable { [StructLayout(LayoutKind.Sequential)] struct bf_key_st { [MarshalAs(UnmanagedType.ByValArray, SizeConst = 18)] public UInt32[] P; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)] public UInt32[] S; } private BlowfishAlgorithm _algorithm; private IntPtr _key; private byte[] _encryptIv; private byte[] _decryptIv; private int _encryptNum; private int _decryptNum; public Blowfish(BlowfishAlgorithm algorithm) { _algorithm = algorithm; _encryptIv = new byte[8] { 0, 0, 0, 0, 0, 0, 0, 0 }; _decryptIv = new byte[8] { 0, 0, 0, 0, 0, 0, 0, 0 }; bf_key_st key = new bf_key_st(); key.P = new UInt32[16 + 2]; key.S = new UInt32[4 * 256]; _key = Marshal.AllocHGlobal(key.P.Length * sizeof(UInt32) + key.S.Length * sizeof(UInt32)); Marshal.StructureToPtr(key, _key, false); _encryptNum = 0; _decryptNum = 0; } public void Dispose() { Marshal.FreeHGlobal(_key); } public void SetKey(byte[] data) { _encryptNum = 0; _decryptNum = 0; Native.BF_set_key(_key, data.Length, data); } public byte[] Encrypt(byte[] buffer) { byte[] ret = new byte[buffer.Length]; switch (_algorithm) { case BlowfishAlgorithm.ECB: Native.BF_ecb_encrypt(buffer, ret, _key, 1); break; case BlowfishAlgorithm.CBC: Native.BF_cbc_encrypt(buffer, ret, buffer.Length, _key, _encryptIv, 1); break; case BlowfishAlgorithm.CFB64: Native.BF_cfb64_encrypt(buffer, ret, buffer.Length, _key, _encryptIv, ref _encryptNum, 1); break; case BlowfishAlgorithm.OFB64: Native.BF_ofb64_encrypt(buffer, ret, buffer.Length, _key, _encryptIv, out _encryptNum); break; } return ret; } public byte[] Decrypt(byte[] buffer) { byte[] ret = new byte[buffer.Length]; switch (_algorithm) { case BlowfishAlgorithm.ECB: Native.BF_ecb_encrypt(buffer, ret, _key, 0); break; case BlowfishAlgorithm.CBC: Native.BF_cbc_encrypt(buffer, ret, buffer.Length, _key, _decryptIv, 0); break; case BlowfishAlgorithm.CFB64: Native.BF_cfb64_encrypt(buffer, ret, buffer.Length, _key, _decryptIv, ref _decryptNum, 0); break; case BlowfishAlgorithm.OFB64: Native.BF_ofb64_encrypt(buffer, ret, buffer.Length, _key, _decryptIv, out _decryptNum); break; } return ret; } public byte[] EncryptIV { get { return _encryptIv; } set { System.Buffer.BlockCopy(value, 0, _encryptIv, 0, 8); } } public byte[] DecryptIV { get { return _decryptIv; } set { System.Buffer.BlockCopy(value, 0, _decryptIv, 0, 8); } } } }
|
|
|
02/20/2010, 22:35
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Please refer to the 5165 thread before asking questions, the answer is in the FAQ.
|
|
|
02/20/2010, 22:38
|
#7
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
gtfo arco im trying to help here <3
|
|
|
02/20/2010, 22:41
|
#8
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by ~Yuki~
gtfo arco im trying to help here <3
|
Uhoh didn't mean to type that link that has a fix for this already...
|
|
|
02/20/2010, 23:15
|
#9
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
omg arco i dont see the 2nd part in Korvac's guide
Quote:
Select the "Projects and Solutions" node in the tree.
|
|
|
|
02/21/2010, 00:09
|
#10
|
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
|
Can anyone help because we are trying to get our server up and running?
|
|
|
02/21/2010, 00:25
|
#11
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by Decker_
Can anyone help because we are trying to get our server up and running?
|
I posted a link, its not anyone's fault you can't follow the great guide korvacs made.
|
|
|
02/21/2010, 02:10
|
#12
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
its called my visual studio express 2008 doesnt let me do it, arco.
|
|
|
02/21/2010, 02:13
|
#13
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by copz1337
its called my visual studio express 2008 doesnt let me do it, arco.
|
Lol I HIGHLY doubt that, its not like the one you downloaded just so happens to be missing the feature korvacs explained.
|
|
|
02/21/2010, 03:06
|
#14
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
Quote:
Originally Posted by .Arco
Lol I HIGHLY doubt that, its not like the one you downloaded just so happens to be missing the feature korvacs explained.
|
teamview me and i'll prove you wrong.
|
|
|
02/21/2010, 03:40
|
#15
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
so much for 'help'
|
|
|
|
|
Similar Threads
|
5165 Login Bug.
07/30/2010 - CO2 Private Server - 5 Replies
alright so I got a new dumbass bug...in my source when I make a new acc and try to login it gives me "Error! disconnected from gameserver, please re-login later!"...and in da console it gives me dis:
SystemArguementException: Item has already been added. key in dictionary "0" Key being added "0"
at ...\Database.cs line 1331 in da LoadCharacter void...and all I have there is dis
C.Skills.Add(S.ID, S);
and I really dont get wat it's tryin to tel me here...call me a nub or noob but I...
|
Login Error (5165 Source)
06/29/2010 - CO2 Private Server - 2 Replies
So, I picked up a random source. followed the guide. got it turned on.. Went to login & it loads then freeze's & then it directly opens up the source & go's to this line giving an error.
|
5165 Login crash
01/31/2010 - CO2 Private Server - 3 Replies
#Closed, Sorry guys found a solution i didnt look as thorougly as i thought
|
Login Frozen (5165)
01/17/2010 - CO2 Private Server - 7 Replies
Hi.. i try to do a pserver... source 5165
All work good but when i try to log in game... i got login frozen..
I think i changed source like 3 times.. and still got this problem
Can someone help me with this problem please?
After i close client... i got this error on "Newest Co Server" Please Help..
ThX
|
Login-Error: Cannot login to Server
04/10/2009 - Aion - 8 Replies
It works fine but 1 hour ago gameguard was updated with ggscan.des or something like this and now i have every time following error while login:
"Cannot connect to the authorization server"
can someone help me?
|
All times are GMT +2. The time now is 13:47.
|
|