[PHP] [CLASS] vl64 & b64 ~ ADDED NEW HABBO ENCODING CLASS

Results 1 to 15 of 15
  1. #1
    Developer BurakDev is offline
    MemberRank
    Mar 2013 Join Date
    ParisLocation
    376Posts

    idea [PHP] [CLASS] vl64 & b64 ~ ADDED NEW HABBO ENCODING CLASS

    Hey, this is vl64 and b64 coded in PHP (useful for php emulator, or php bot)

    vl64 : [PHP] habbo vl64 by burak - Pastebin.com
    b64 : [PHP] habbo b64 by burak - Pastebin.com

    New Habbo Encoding for R63B project :
    [PHP] habboencoding class php by burak - Pastebin.com

    PS : Stop say "don't use php for emulator", PHP support multithreading. (http://i.imgur.com/ywXqKng.png)
    Last edited by BurakDev; 27-03-13 at 11:11 AM.


  2. #2
    I am a Conqueror Explicable is offline
    MemberRank
    Mar 2013 Join Date
    CanadaLocation
    251Posts

    Re: [PHP] [CLASS] vl64 & b64

    Sorry If I've never heard of this but vl64 and b64? What is that?

  3. #3
    Alpha Member Moogly is offline
    MemberRank
    Feb 2008 Join Date
    Pool LidoLocation
    2,322Posts

    Re: [PHP] [CLASS] vl64 & b64

    If you use Phalanger you can use .NET to code a PHP Emulator that runs on the same platform as C#. PHP is still a shit language. Can't say shit against this. :) Also obviously PHP runs multiple threads, doesn't mean you coded any threads. Plus PHP isn't designed to keep sockets open efficiently, the sockets are meant to be opened and closed, if you leave PHP running a server (which it's not designed for, unless as I said you use Phalanger) you're going to rape CPU / Ram (as has been the case). PHP is simply not for servers, unless you use an implementation of PHP that runs on top of a platform that is capable.

    However, why not just use Perl instead? :)

    http://en.wikibooks.org/wiki/Perl_6_Programming

    Perl is what PHP is sort of based out of, it's another piece of shit language but it could easily do more than PHP could fantasize about. It's a true scripting language as well.
    Last edited by Moogly; 26-03-13 at 09:33 PM.

  4. #4
    Apprentice Ethis is offline
    MemberRank
    Feb 2012 Join Date
    Dijon, FranceLocation
    9Posts

    Re: [PHP] [CLASS] vl64 & b64

    Burak i'm Ethis (Dylan FAYANT) i saw you when you work in Bloon Dev ! Do you have a skype ?

    Salut burak c'est Ethis je ne sais pas si tu te souviens mais je mattais comment tu développais bloon, tu as skype ?

  5. #5
    Account Upgraded | Title Enabled! JaydenC is offline
    MemberRank
    Feb 2012 Join Date
    993Posts

    Re: [PHP] [CLASS] vl64 & b64

    This is actually really good, but its basically taken right out of the C# source and the functions changed.. Oh well, nice i guess.

    inb4 not useful

  6. #6
    Alpha Member Moogly is offline
    MemberRank
    Feb 2008 Join Date
    Pool LidoLocation
    2,322Posts

    Re: [PHP] [CLASS] vl64 & b64

    Quote Originally Posted by jaydenn View Post
    This is actually really good, but its basically taken right out of the C# source and the functions changed.. Oh well, nice i guess.

    inb4 not useful
    The C# implementation is ported from the Visual Basic 6 implementation by Jeax, the original was done by JoeH, I posted it in C++, C# and ASM in my 'Elite Four' thread. It's always useful to have the encoding readily available, especially in scripting languages, using these PHP functions we could easily document the old protocol efficiently with examples that use the actual encoding.

  7. #7
    Account Upgraded | Title Enabled! JaydenC is offline
    MemberRank
    Feb 2012 Join Date
    993Posts

    Re: [PHP] [CLASS] vl64 & b64

    Quote Originally Posted by Moogly View Post
    The C# implementation is ported from the Visual Basic 6 implementation by Jeax, the original was done by JoeH, I posted it in C++, C# and ASM in my 'Elite Four' thread. It's always useful to have the encoding readily available, especially in scripting languages, using these PHP functions we could easily document the old protocol efficiently with examples that use the actual encoding.
    yes..?

    i was just saying this was basically taken from whatever emulator and ported to php, moogly.

  8. #8
    Developer BurakDev is offline
    MemberRank
    Mar 2013 Join Date
    ParisLocation
    376Posts

    Re: [PHP] [CLASS] vl64 & b64

    Thanks for your reply.

    For make this class I converted this : http://forum.ragezone.com/f353/java-...coding-569722/ to PHP (thanks Jordan for java version)
    @Moogly : I don't use Phalanger. I never tested it (EDIT: I have tested it, don't multithread php)

    @Ethis : My skype is burak.karamahmut
    Last edited by BurakDev; 27-03-13 at 10:46 AM.

  9. #9
    Demi-god on these 'ere wa DominicGunn is offline
    MemberRank
    Jun 2011 Join Date
    347Posts

    Re: [PHP] [CLASS] vl64 & b64

    Quote Originally Posted by Moogly View Post
    The C# implementation is ported from the Visual Basic 6 implementation by Jeax, the original was done by JoeH, I posted it in C++, C# and ASM in my 'Elite Four' thread. It's always useful to have the encoding readily available, especially in scripting languages, using these PHP functions we could easily document the old protocol efficiently with examples that use the actual encoding.
    Not strictly true. JoeH's was released a while after Jeax's, or any of the Vb6 versions. The _original_ did not even use a Math based algorithm, and just had values "@A", "@B" assigned to corresponding numbers. Some lad did wrote them all from 1 to ~1024. Was great at the time.

    Also, dat hate for PHP. it is so strong

  10. #10
    Developer BurakDev is offline
    MemberRank
    Mar 2013 Join Date
    ParisLocation
    376Posts

    Re: [PHP] [CLASS] vl64 & b64

    Quote Originally Posted by DominicGunn View Post
    Not strictly true. JoeH's was released a while after Jeax's, or any of the Vb6 versions. The _original_ did not even use a Math based algorithm, and just had values "@A", "@B" assigned to corresponding numbers. Some lad did wrote them all from 1 to ~1024. Was great at the time.

    Also, dat hate for PHP. it is so strong
    Before I have this class, I used shit method ("@A", "@B" assigned to corresponding numbers)

    I'm going to release new habbo encoding class coded in PHP for R63B emulator (I used C# version)

    EDIT : New habbo encoding was added.
    Last edited by BurakDev; 27-03-13 at 11:12 AM.

  11. #11
    Alpha Member Emily is offline
    MemberRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: [PHP] [CLASS] vl64 & b64 ~ ADDED NEW HABBO ENCODING CLASS

    Hmm. I knew this. Great times, especially at the time tabs and breaks were used at a shockwave protocol, good to see somebody took time for these classes.

    Also, no hate for PHP. PHP is a good scripting language and since it can support multi-threading it can be used for an emulator.
    But no offence, in my opinion it can't replace C#, Java etc..

  12. #12
    Developer BurakDev is offline
    MemberRank
    Mar 2013 Join Date
    ParisLocation
    376Posts

    Re: [PHP] [CLASS] vl64 & b64 ~ ADDED NEW HABBO ENCODING CLASS

    Why people hate PHP ? Because don't know how multithread PHP

    PHP can't replace C#, Java but can run emulator without problem.

  13. #13
    I don't even know azaidi is offline
    MemberRank
    Apr 2010 Join Date
    the NetherlandsLocation
    2,065Posts

    Re: [PHP] [CLASS] vl64 & b64 ~ ADDED NEW HABBO ENCODING CLASS

    Quote Originally Posted by BurakDev View Post
    Why people hate PHP ? Because don't know how multithread PHP

    PHP can't replace C#, Java but can run emulator without problem.
    It can't multithread, however I've made some scripts multiple times which will give you the ability to fake it if you don't stop (while loop/sleep?) in one function somewhere.

    And Burak I really like your work and your ideas, I'm a PHP lover too but I'm working on some C# projects when I have time now. (PHP isn't going to hold 2000 users, C# SocketAsyncEventArgs could)

  14. #14
    Account Upgraded | Title Enabled! JaydenC is offline
    MemberRank
    Feb 2012 Join Date
    993Posts

    Re: [PHP] [CLASS] vl64 & b64 ~ ADDED NEW HABBO ENCODING CLASS

    Quote Originally Posted by azaidi View Post
    It can't multithread, however I've made some scripts multiple times which will give you the ability to fake it if you don't stop (while loop/sleep?) in one function somewhere.

    And Burak I really like your work and your ideas, I'm a PHP lover too but I'm working on some C# projects when I have time now. (PHP isn't going to hold 2000 users, C# SocketAsyncEventArgs could)
    thats where your wrong, multithreading is totally possible using curl

    take a look here
    Easy Parallel Processing in PHP | PHP Everywhere
    and here
    Curl multithreading with PHP | Codes Tips

    its not completely orthodox, but will work if done properly.

  15. #15
    Developer BurakDev is offline
    MemberRank
    Mar 2013 Join Date
    ParisLocation
    376Posts

    Re: [PHP] [CLASS] vl64 & b64 ~ ADDED NEW HABBO ENCODING CLASS

    Real multithreading is possible !
    https://github.com/krakjoe/pthreads/

    Just add extension to PHP and you can multithread your PHP class. 100% work, real multi-threading.



Advertisement