HMessage [C#]

Results 1 to 4 of 4
  1. #1
    Valued Member Arachis is offline
    MemberRank
    Aug 2014 Join Date
    United StatesLocation
    132Posts

    HMessage [C#]

    Hello friends, first I would like to say I'm anti-retro. Although I guess with this thread it would make me some sort of hypocrite, since it would help(?) in the development of some of these emulators.

    This is a class in some library I'm working on for both retros, and the original Habbo. With that in-mind comes the question(maybe): "Is it compatible with Pre-shuffle hotel builds?"; Yea man.

    This class is able to construct both Pre/Post shuffle packets, it carries read/write methods, and will detect the type of protocol being used for the packet if not specified.
    PS: By Protocol I mean Pre/Post structures.

    There are also methods in this class to prepend data into the packet, these methods will encode the given value(int,string,bool), and push them to the top of the buffer(byte[]). There probably isn't a real use for these methods, but I thought.. why not?

    I also should mention this class requires other classes/enums that are in the same namespace:
    • Ancient.cs
    • BigEndian.cs
    • ByteUtils.cs
    • Enumerators.cs

    You can merge them into a clusterfuck, or import the namespace into your project, I'd personally just clusterfuck them. I don't know what else I should explain about this, if you have any questions or suggestions on what to add, spill it.

    Ancient/Client Example:
    Spoiler:


    Ancient/Server Example:
    Spoiler:

    There are many more more other ways to initialize this class, with values/chunks. If I were to make an example for each constructor, I'd probably get bored of writing this thread.

    Source/Classes


  2. #2
    x Bifi2000 is offline
    MemberRank
    Aug 2007 Join Date
    GermanyLocation
    215Posts

    Re: HMessage [C#]

    Wow nobody cared?

    Nice work man,
    clean and useful.

  3. #3
    Valued Member Arachis is offline
    MemberRank
    Aug 2014 Join Date
    United StatesLocation
    132Posts

    Re: HMessage [C#]

    Quote Originally Posted by Bifi2000 View Post
    Wow nobody cared?

    Nice work man,
    clean and useful.
    Yea, thanks man. I just thought some of the people on here might be interested in this, since there really isn't any other place where people would find this 'interesting'. I'm still actively updating this library, I also pushed an update onto GitHub concerning this class a couple of hours after this post was made.

    PS: A lot of stuff was internally changed on how the packet is constructed. https://github.com/ArachisH/Sulakore...27d78fd59f3ab2
    You should probably also want to pull BigEndian.cs since that was also updated concerning some 'bug'/fuckup.

  4. #4
    Apprentice surubbe is offline
    MemberRank
    Dec 2013 Join Date
    24Posts

    Re: HMessage [C#]

    Nice work, you are very good



Advertisement