Xkore on eAthena servers

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

Message
Author
sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: Xkore on eAthena servers

#11 Post by sli »

vivi, I'm beginning to wonder if a full scrap and rewrite might be best... I'm really not sure at all how that packet is getting mangled.
cs : ee : realist

Motivus
Developers
Developers
Posts: 157
Joined: 04 Apr 2008, 13:33
Noob?: Yes

Re: Xkore on eAthena servers

#12 Post by Motivus »

Checked it out for a bit tonight.

There are two differences, I didn't look in to what causes them yet.

1) 0x0204 login packet <- Kore doesn't support this in any serverType yet, and it should for latest eA servers
2) XKore doesn't close the character select server and open the map server connection, for some reason. I'll get a more in depth packet analysis going on later tonight, or another day to determine what the deal is here. I was under the impression that with XKore1 the client is in charge of opening/closing socket connections and XKore just obeys the request.


Console Log (XKore)

Code: Select all

Jun 2 22:13:52 2008.99] Packet SENT_BY_CLIENT: 0204
[Jun 2 22:13:52 2008.99] Packet SENT_BY_CLIENT: 02B0
[Jun 2 22:13:53 2008.27] Received packet: 0069    [79 bytes]  [Account Info]
Console Log (Kore)

Code: Select all

n 2 22:16:10 2008.77] Sent packet    : 0064    [55 bytes]  [Account Server Login]
[Jun 2 22:16:10 2008.78] Posting anonymous usage statistics to http://www.openkore.com/statistics.php
[Jun 2 22:16:10 2008.92] Received packet: 0069    [79 bytes]  [Account Info]

Console Log XKore

Code: Select all

[Jun 2 22:14:14 2008.87] Packet SENT_BY_CLIENT: 0066 - Char Login
[Jun 2 22:14:14 2008.88] Config 'char' set to 1 (was 1)
[Jun 2 22:14:15 2008.66] Received packet: 0071    [28 bytes]  [Received character ID and Map IP from Game Login Server]
[Jun 2 22:14:15 2008.66] Received character ID and Map IP from Character Server
[Jun 2 22:14:15 2008.67] ----------Game Info----------
Char ID: 89 62 00 00 (25225)
MAP Name: new_zone01.gat
MAP IP: 83.133.124.103
MAP Port: 5121
-----------------------------
It just ends there and eventually disconnects.

Kore:

Code: Select all

[Jun 2 22:16:11 2008.21] Sent packet    : 0066    [ 3 bytes]  [Char Login]
[Jun 2 22:16:11 2008.35] Received packet: 0071    [28 bytes]  [Received character ID and Map IP from Game Login Server]
[Jun 2 22:16:11 2008.35] Received character ID and Map IP from Character Server
[Jun 2 22:16:11 2008.35] ----------Game Info----------
Char ID: 89 62 00 00 (25225)
MAP Name: new_zone01.gat
MAP IP: 83.133.124.103
MAP Port: 5121
-----------------------------
[Jun 2 22:16:11 2008.35] Closing connection to Character Server
[Jun 2 22:16:11 2008.35] Disconnecting (83.133.124.103:6121)...[Jun 2 22:16:11 2008.35] disconnected
so who ever posted "kore doesn't support the latest packet version" is correct, the only sendMasterLogin is in serverType0.pm and it is for 0x64 which would set EA to an older packet version
Oh no.

Cozzie
Spam Generator
Spam Generator
Posts: 499
Joined: 04 Apr 2008, 09:30
Noob?: No
Location: Melbourne, City of beer and awful sushis

Re: Xkore on eAthena servers

#13 Post by Cozzie »

sticky this please.
Make Openkore Awesome. Join the team.

HumanHealer
Plain Yogurt
Plain Yogurt
Posts: 58
Joined: 24 Apr 2008, 00:26
Noob?: No

Re: Xkore on eAthena servers

#14 Post by HumanHealer »

someone from kore-ro forums informed that if by any chances xkore works on kore-ro server report here... so im reporting

i played on kore-ro and i managed to xkore on it using openkore 2.0.0 and field pack 2.0.0

## http://www.kore-ro.com
[KoreRO Private Server]
ip koreserver.info
port 6900
master_version 16
version 20
serverType 8
private 1
serverEncoding Western
charBlockSize 108

and attached is my recvpackets.txt if its relevent
Attachments
recvpackets.txt
i dont remember when i extract it but its working
(5.09 KiB) Downloaded 424 times
im noob, but i know how to read config manual, command manual, macro manual but im still a noob.

User avatar
help_us
Testers Team
Testers Team
Posts: 106
Joined: 04 Apr 2008, 21:53
Noob?: No
Location: Asia
Contact:

Re: Xkore on eAthena servers

#15 Post by help_us »

HumanHealer wrote: i played on kore-ro and i managed to xkore on it using openkore 2.0.0 and field pack 2.0.0
woot! OK 2.0.0 is pretty old version. i dont think its work for latest eAthena.
Image
Image

HumanHealer
Plain Yogurt
Plain Yogurt
Posts: 58
Joined: 24 Apr 2008, 00:26
Noob?: No

Re: Xkore on eAthena servers

#16 Post by HumanHealer »

@help_us

i know OK 2.0.0 is old and field pack 2.0.0 cant support some map. :lol: but as far as i know, i can use it to xkore my crusader with its useselfskills (all the self support skills) "manualAI 1" working properly... i can attack, i can move, on AI off as well as AI on...

just wanna help for those who wanna look into what's wrong with the current xkore error on openkore
im noob, but i know how to read config manual, command manual, macro manual but im still a noob.

pcgrejaldo
Noob
Noob
Posts: 1
Joined: 22 Jul 2008, 06:48
Noob?: Yes

Re: Xkore on eAthena servers

#17 Post by pcgrejaldo »

yep! openkore 2.0.0 works fine with xkore mode. i'm using that with my mage and hunter if i wanna see what's going on. so if kore doesn't support the latest packet version, why is version 2.0.0 working? :idea:

Cozzie
Spam Generator
Spam Generator
Posts: 499
Joined: 04 Apr 2008, 09:30
Noob?: No
Location: Melbourne, City of beer and awful sushis

Re: Xkore on eAthena servers

#18 Post by Cozzie »

okay enough with the "openkore 2.0.0 works". Way to state the obvious guys, so it works and if you guys want xkore use it. Unless you have technical stuff to add please dont reply so the thread stays clean, this is dev corner, not state-the-obvious section.
Make Openkore Awesome. Join the team.

[Lance]
Noob
Noob
Posts: 2
Joined: 22 May 2008, 07:03
Noob?: No

Re: Xkore on eAthena servers

#19 Post by [Lance] »

Client takes control of all connections and X-Kore obeys them - yes.

This works flawlessly only if Kore forwards all packets (even unknown ones) back to the RO client. (or else the RO client will be waiting for the 'magic' packet before disconnecting)

To increase X-Kore's compatibility, what I suggest is sending data to/from Kore be done in parallel with sending them to the server/client, to ensure no packet gets dropped along the way. X-Kore is able to hook client's 'select' and 'recv' function so there's not much problem in sending Kore's packet to the client.

I've yet to dive into the OpenKore source code though. I might be wrong.

- edit - more info -
eA guesses the packet version by what the client sends (to be compatible with different sakexe).

isieo
Kami-Sama Desu~
Kami-Sama Desu~
Posts: 195
Joined: 04 Apr 2008, 09:24
Noob?: Yes
Location: 31th Dimension
Contact:

Re: Xkore on eAthena servers

#20 Post by isieo »

fixed servertype 8

xkore 2 will now work. it's now in svn

get someone to fix Xkore 1 and proxy

deatails:

1) packet 009B is the login for servertype 8

2) character listing packet (map server)
- $output = pack('C20') . $characterinfo;
- pack('C2 v', 0x6B, 0x00, length($output) + 4) . $characterinfo
this means that you need to pad 20 bytes before the character information
take a look at /openkore/src/Base/Ragnarok/CharServer.pl (arround line 127)

/me is too lazy to elaborate, so he's typing in point form.

sli wrote:vivi, I'm beginning to wonder if a full scrap and rewrite might be best... I'm really not sure at all how that packet is getting mangled.

openkore have a built in Ragnarok server, Xkore2 is inheriting the server object, i am not sure about xkore1 and proxy

Post Reply