SUPPORT ACCOUNT CLANS
Welcome, Unregistered.
 

Thread: [Docs] HoN Chat Protocol

Results 1 to 11 of 11
  1. #1

    [Docs] HoN Chat Protocol

    Hello guys,
    I assume some of you are already working on a custom chat client (like the guy in this thread). I saw that thread today and I was doing the same thing (analyzing the chat protocol). I think it's a good idea if we all work together and share our information. I would like to use this thread to collect information about the chat protocol so we don't have to do all the same work (although it's fun!).
    With this information we can develop a client that connects to the chat server. This can be useful in several scenarios e.g. pimp your IM and let it tell you when your buddies play HoN.

    For a good start I suggest we work on some basic things like:
    • Login/Logout
    • Sending/Receiving channel msgs
    • Sending/Receiving private msgs
    • Receiving buddy information (e.g. joined a game)
    • Joining/Leaving a channel
    • Keeping track of other players joining/leaving a channel


    At the beginning this thread should be enough but while we go on the list of packets will increase and we might need another place where we can set up the information.

    I'll try to keep the post as much updated as I can. Feel free to help us out and do some research I will be glad to add it!

    So, I'll start with some mentioned basic stuff:

    Login:
    Code:
    C->S 
    ID: 0xFF
    DWORD: Account ID
    STRING: Cookie (always 32 byte?)
    DWORD: 0x02 (always 0x02?)
    
    S->C
    ID: 0x01
    DWORD: 0x00 = No error
    Join channel:
    Code:
    C->S
    ID: 0x1E
    STRING: Name of the channel to join
    
    S->C
    ID: 0x18
    DWORD: 0x04 = Channel join ok???
    STRING: Name of the joined channel
    DWORD: Channel ID
    Last 15 bytes: ????
    Leave channel
    Code:
    C->S
    ID: 0x22
    STRING: Channel name
    
    S->C
    ??
    Sending message to a channel:
    Code:
    C->S
    ID: 0x03
    STRING: Message
    DWORD: Channel ID
    
    S->C
    ??
    More will come really soon!

  2. #2
    Offline
    Account Icon
    Join Date
    Jul 2009
    Posts
    61
    Best of luck to the people who will be developing this software..

  3. #3
    The entire chat protocol is basically all done for you in theli's source. Not saying that you should not investigate more, just saying there is no point in you doing all the work to find out something that theli has already got. I'd suggest looking at this source and then maybe adding to it.

    The only real problem is, the cookie. You can't use both hon and something else that connects to the chat server unless you got the cookie from hon. Which I bet they made impossible but that would allow you to hijack someones account.

    - Steve
    Last edited by Dub; 09-13-2009 at 09:31 PM.
    I <3

  4. #4
    Quote Originally Posted by Dub View Post
    The entire chat protocol is basically all done for you in theli's source. Not saying that you should not investigate more, just saying there is no point in you doing all the work to find out something that theli has already got. I'd suggest looking at this source and then maybe adding to it.

    - Steve
    Actually, while Theli did do a lot of work - there are still many bugs in his code, and it's written quite poorly. (Sorry for the hate Theli lol, you did a lot of great work; certainly more than I could do, but its just not very .. public friendly :P) But yes, it would be a great place to start and build off of.

    We really could use a WELL documented protocol, and it would certainly be much easier if it was a community effort.

    I developed a chat program (C# .NET) for HoN using Theli's code, but due to the issues I ran into with his HoNChat class, I wasn't able to finish it. If I could get past that then I could easily finish up the project. Sadly I don't know enough about networking to do all that protocol work myself.

  5. #5
    Offline
    Account Icon
    Join Date
    Aug 2009
    Posts
    125
    The three of you guys should work together

  6. #6
    So, apparently, the the packet to request the packet list is 0x1F

    The server responds with quite a few packets after that

    EDIT: Also, when you send a message to a channel, you just get a simple TCP ACK packet back.

    EDIT: I got a different response from the server when joining a channel:

    Code:
    S->C
    
    ID: 0x9C (this looks to be different every time I join a channel, I got 0x6A in another channel)
    Int32: 00 00 00 04 (Channel Join OK? like yours?)
    STRING: Channel name
    Int32: Channel ID
    //Repeating for every member in channel:
    Int64: UserID?
    String: Member Name
    Channel Leave
    Code:
    S-> C (13 bytes)
    
    ID: 0x09
    Int32: 00 00 00 06 (Confirm?)
    8 Bytes: Channel ID?  it could be two Int32, or one Int64
    Last edited by Kylegar; 09-15-2009 at 04:41 AM.

  7. #7
    I PM'd this to T3rm1 but never got a response.
    It would be a lot easier to talk and collaborate with instant messaging rather than forums.
    I suggested IRC:
    Server: irc.synirc.net
    Channel: #honchat

    Anyone?

  8. #8
    Quote Originally Posted by Jiggaboo View Post
    I PM'd this to T3rm1 but never got a response.
    It would be a lot easier to talk and collaborate with instant messaging rather than forums.
    I suggested IRC:
    Server: irc.synirc.net
    Channel: #honchat

    Anyone?
    lol. you sent me a pm yesterday. I can't be online 24/7.

    I talked to S2Jason and he said he is going to release a documentation about the chat protocol. I'm not sure when this will happen so go to IRC and spam him he should finish the document asap
    Last edited by T3rm1; 09-15-2009 at 01:34 PM.

  9. #9
    Quote Originally Posted by T3rm1 View Post
    lol. you sent me a pm yesterday. I can't be online 24/7.

    I talked to S2Jason and he said he is going to release a documentation about the chat protocol. I'm not sure when this will happen so go to IRC and spam him he should finish the document asap
    Aw, that takes all the fun out of it

  10. #10
    Offline
    Account Icon
    Join Date
    Aug 2009
    Posts
    125
    bump

  11. #11
    http://honlabs.com/forum/showthread.php?p=1

    NOTE: The recieve is still being worked on. And it is not accurate. Actually, it's totally wrong.

    - Steve
    I <3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •