minlexx / l2packets

Automatically exported from code.google.com/p/l2packets
0 stars 3 forks source link

l2packets need update for official Godess of Destruction Servers #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It seems like NCSoft has changed their Login Server. 

Running the test_l2_app gives:

root@developer:~/test_l2_app# ./testl2app
Login: trolololol
Pass: tralalala
Socket created...
Connecting... .Connected.
Recv init: rcvd 194 bytes
Warning: Init packet len != 186!
Init parse error!
Login protocol version: 00000000 (0)
Login sessionId: 00 00 00 00
Login protocol version invalid!: Operation now in progress
*** glibc detected *** ./testl2app: free(): invalid pointer: 0x0000000000963bc0 
***
======= Backtrace: =========

I tried to play a little bit around with the code, but couldn't find what has 
changed on their servers...

Original issue reported on code.google.com by fpfeif...@gmail.com on 4 Feb 2012 at 2:33

GoogleCodeExporter commented 9 years ago
ok, my fault... was a linking issue to the library :/

works better now...

Login protocol version: 0000c621 (50721)
Login sessionId: d6 8e 13 00
RequestGGAuth: Sent 42 bytes
Recv GGAuthResponse: rcvd 42 bytes
Unknown response to RequestAuthLogin: 0B
SessionKey1: 01 00 00 00 CD 7F 00 00
Sent 34 bytes: RequestServerList
Received 0 bytes: ServerList
Recv ServerList: Connection reset by peer

Original comment by fpfeif...@gmail.com on 4 Feb 2012 at 4:33

GoogleCodeExporter commented 9 years ago
works :D

i had to change 
p_ggar->ggAuthResponse
to
p_ggar->read_Response()
in the test_l2_app

in the l2packets library, only the size check in
L2Login_Init::parse
had to be changed from
if( getPacketSize() != 186 )
to
if( getPacketSize() != 194 )

Original comment by fpfeif...@gmail.com on 4 Feb 2012 at 4:53