Hornet Emulator - Javascript

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    Apprentice Ubbel is offline
    MemberRank
    Aug 2016 Join Date
    18Posts

    Hornet Emulator - Javascript

    Hi.

    First of all, i'm spanish and my english is very bad, I used Google Translate.

    This is a emulator that will try to emulate the basic features of Habbo.

    Features in-Game (Finished):
    • Loading room layouts.
    • Basic walking and path finding
    • Chatting works, we just need add the chat commands and the filter.
    • Loading profile information
    • The ability to change your look and Motto.
    • The HotelView


    Features of the emulator:
    • Cache System
    • Thread Pool
    • Stable sockets


    Things that still need to be done:
    • Navigator
    • Console
    • Catalog
    • Inventory


    Screenshots
    Spoiler:













    Spoiler:



    Thank's to @BurakDev for base that we are remodeling and adding things.
    Last edited by Ubbel; 01-03-17 at 06:33 PM.


  2. #2
    Account Upgraded | Title Enabled! streamhotel is offline
    MemberRank
    Apr 2012 Join Date
    EarthLocation
    511Posts

    Re: HornetEmulator JavascriptRelease

    Looks interesting! Could you provide some code snippets of your Javascript code?

  3. #3
    Apprentice Ubbel is offline
    MemberRank
    Aug 2016 Join Date
    18Posts

    Re: HornetEmulator JavascriptRelease

    Quote Originally Posted by streamhotel View Post
    Looks interesting! Could you provide some code snippets of your Javascript code?
    What do you want to see? PD: the code is typescript transpile to js and nodejs execute this.

    PD2: Look at point(
    )

    PD3: I would like to set up a hotel test to test with real users

  4. #4
    Proficient Member B3T4T3ST3 is offline
    MemberRank
    Dec 2013 Join Date
    158Posts

    Re: HornetEmulator JavascriptRelease

    looks so good, maybe share a github? :B

  5. #5
    Account Upgraded | Title Enabled! streamhotel is offline
    MemberRank
    Apr 2012 Join Date
    EarthLocation
    511Posts

    Re: HornetEmulator JavascriptRelease

    Quote Originally Posted by Ubbel View Post
    What do you want to see? PD: the code is typescript transpile to js and nodejs execute this.

    PD2: Look at point(
    )

    PD3: I would like to set up a hotel test to test with real users
    Some part of your typescript code like socket listener for example or a class like the User class. I was wondering how clean your code is. Thanks!

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

    Re: HornetEmulator JavascriptRelease

    I'd like to see some code as well; just out of curiosity. Love the idea. And yes, a test hotel would be cool.

  7. #7
    Enthusiast Kyess is offline
    MemberRank
    Jan 2014 Join Date
    37Posts

    Re: HornetEmulator JavascriptRelease

    More than a year ago, a public user a project called TigerEmulator this was developed in NodeJS. I think this project is a bit more like Tiger.


    I would miss seeing the project in a repository to confirm it.

  8. #8
    Apprentice Ubbel is offline
    MemberRank
    Aug 2016 Join Date
    18Posts

    Re: HornetEmulator JavascriptRelease

    Some structures, such as the way to make a query, I make them as arcturus, basically because we like that way.

    This is the way in which I get the item through its pageId *and realized the consult*



    And the constructor.



    The socket is the one made by Burak.
    Gameserver - Pastebin.com.

    As I said before, the burak base is still being remodeled, some things, obviously not because it would be better
    @Glaceon when i finish the buy and place furniture in rooms, I will try to open a hotel test, but I assure you nothing because I do not have a vps
    Sorry for my bad english :(
    Last edited by Ubbel; 03-03-17 at 08:45 PM.

  9. #9
    Proficient Member Boraida is offline
    MemberRank
    May 2011 Join Date
    The NetherlandsLocation
    161Posts

    Re: HornetEmulator JavascriptRelease

    Quote Originally Posted by Ubbel View Post
    Some structures, such as the way to make a query, I make them as arcturus, basically because we like that way.

    This is the way in which I get the item through its pageId *and realized the consult*



    And the constructor.



    The socket is the one made by Burak.
    Gameserver - Pastebin.com.

    As I said before, the burak base is still being remodeled, some things, obviously not because it would be better
    @Glaceon when i finish the buy and place furniture in rooms, I will try to open a hotel test, but I assure you nothing because I do not have a vps
    Sorry for my bad english :(
    Very nice, but you don't have to use a ternary operator for variables like this.isLimited.
    Instead of:
    Code:
    this.isLimited = <number>row.is_limited == 1 ? true : false;
    save yourself some time by just doing this:
    Code:
    this.isLimited = <number>row.is_limited == 1;

  10. #10
    Apprentice Ubbel is offline
    MemberRank
    Aug 2016 Join Date
    18Posts

    Re: HornetEmulator JavascriptRelease

    Quote Originally Posted by Boraida View Post
    Very nice, but you don't have to use a ternary operator for variables like this.isLimited.
    Instead of:
    Code:
    this.isLimited = <number>row.is_limited == 1 ? true : false;
    save yourself some time by just doing this:
    Code:
    this.isLimited = <number>row.is_limited == 1;
    Haha is the custom and @Kyess this is not Tiger

  11. #11
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: HornetEmulator JavascriptRelease

    Looks like you're trying to mimic the Arcturus emulator structure. Invent your own shit.

    Also your code is inconsistent.

    Also defining if an item is tradable should not be done in the catalog_items table. Same goes for recycling and stackable. Don't think you understand concepts...

    I think it is cool when people have a go at creating their own emulator but it is definitely NOT OK to just copy someone elses emulator structure.

  12. #12
    topkek amirite?? Leon is offline
    MemberRank
    May 2009 Join Date
    919Posts

    Re: HornetEmulator JavascriptRelease

    Quote Originally Posted by The General View Post
    Looks like you're trying to mimic the Arcturus emulator structure. Invent your own shit.

    Also your code is inconsistent.

    Also defining if an item is tradable should not be done in the catalog_items table. Same goes for recycling and stackable. Don't think you understand concepts...

    I think it is cool when people have a go at creating their own emulator but it is definitely NOT OK to just copy someone elses emulator structure.
    Ahahahaha

    - - - Updated - - -

    Arcturus looks just like any other emulator you can find here, you're a funny lad Wesley.

  13. #13
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: HornetEmulator JavascriptRelease

    Honestly I really wonder what youtube tutorial you followed...

    OP why you use Emulator.getGameEnvironment().getItemsManager() in LoadCatalogItems which is called from the ItemsManager CONSTRUCTOR the while you are in the itemmanager class? Basically calling an object that technically has not been initialised yet?

    Why does GetItemCategoryById return a list of catalogitems even though the method name implies that it will return a category?

    Why do you make a temporary variable row in LoadCatalogItems()? Why don't you use for in on the resultset?

    If your Items member variable is public, why add a putCatalogItems method in the ItemsManager class?

    Why do you have a CatalogItem and CatalogItems class? Easy to make mistakes and it is confusing if others read your code.

    You are mixing camelCase and PascalCase resulting in an inconsistent codebase.

    Why name a variable singular while it denotes a list of CatalogItems ? (Line 31 ItemManager)

    Why name a variable plural while it donates a single Item? (Line 32 ItemManager)

    This is less than 100 lines of code.

    Quote Originally Posted by Leon View Post
    Ahahahaha

    - - - Updated - - -

    Arcturus looks just like any other emulator you can find here, you're a funny lad Wesley.
    Oh yeah?

    What other emulator uses an Emulator class?
    So what other emulator is using Emulator.getGameEnvironment?
    What other emulator uses Emulator.getDatabase().getPool().prepare?

    Also not to mention its based on @BurakDev his emulator which he based on Arcturus (Ask it himself Oh look).
    Last edited by The General; 04-03-17 at 03:54 PM.

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

    Re: HornetEmulator JavascriptRelease

    @The General I hope you're not saying people can't use Emulator class anymore... but I get your point kinda. Still, I don't think you can hate on somebody for using a "similar"(/same) emulator structure. Also you meant to say BloonJS is PORTED from Arcturus. It can't be BASED on Arcturus since those are 2 different languages. Just saying.

    But let the OP do his development and if you don't like it, don't visit it. No need for all the hate here.

    I do agree with you on the consistency part though.
    @Ubbel I agree with The General on the consistency part. You should really keep your code consistent.

  15. #15
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: HornetEmulator JavascriptRelease

    If OP could write proper code there would be no need to copy Bloon. And structure wise it can well be based. But I hope you see my point that OP doesn't seem to be competent to code and only copies as he goes.



Page 1 of 2 12 LastLast

Advertisement