Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

Page 1 of 101 1234567891151 ... LastLast
Results 1 to 15 of 1512
  1. #1
    Death from above! The General is offline
    The OmegaRank
    Aug 2011 Join Date
    8,851Posts

    Arcturus Emulator ~ Java - Maven - Netty - HikariCP - Trove


    RaGEZONE Recommends

    RaGEZONE Recommends


    Best thing since sliced bread.

    Arcturus Help

    Important details nobody reads:

    - Maven for easy project management & libraries.
    - Netty for sockets cos default Java IO sucks.
    - HikariCP just the best a man can get.
    - Trove a better Collections API.

    Aim:
    The aim of this project is to provide a high scalable emulator that has features properly implemented and that doesn't crash at 10 online. When implementing a feature we'll check performance, speed and memory usage and try to find the best implementation method. While this isn't a project that wants to have features implemented asap, we strive to give a reliable emulator from which you can expect it gets the job done.

    Characteristics:
    - High speed!
    - Multi Threading.
    - All errors (which never occur xD) are being logged.
    - Awesome features!

    The already finished list which everybody wants to know:
    • Session handling
    • Rooms
    • Freeze
    • Shop (I'd say 95% Gotta do the club gifts page still)
    • Ecotron
    • Marketplace
    • ModTool
    • Bots
    • Instant Messenger
    • Pets (Commands, nests, food, actions, drinks etc..)
    • Horses (+ Jumping)
    • Guilds (Awesome guild gates)
    • Teleporters + Hoppers
    • Wireds (Including the cool super wired!)


    Screenshots (May blow your mind!):
    Spoiler:





    Snippetz (Nothing special )


    Jep its not much in this stage however we feel its quality over quantity.

    Subscribe to the thread if you want to keep being updated when something is new posted. All updates will also be added to this post.

    Arcturus Help
    Last edited by The General; 25-12-15 at 08:20 PM. Reason: http://www.************/
    If you are using Arcturus, contact me
    Skype: wesley.jabbo
    Discord: TheGeneral#0063


  2. #2
    Death from above! The General is offline
    The OmegaRank
    Aug 2011 Join Date
    8,851Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

    Update 20-9-2014:

    Started working on pathfinding and walking. We can walk however the pathfinder is working incorrectly at this moment.

    http://i.gyazo.com/ca33114a46661e6152f7c5b063e7209d.mp4
    If you are using Arcturus, contact me
    Skype: wesley.jabbo
    Discord: TheGeneral#0063

  3. #3
    Death from above! The General is offline
    The OmegaRank
    Aug 2011 Join Date
    8,851Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

    More progress:
    - Placing wall items.
    - Placing floor items.
    - Moving floor items.

    Wanted to have the basic done so I can start implementing the logic as you can see in the screenshot below.

    If you are using Arcturus, contact me
    Skype: wesley.jabbo
    Discord: TheGeneral#0063

  4. #4
    Death from above! The General is offline
    The OmegaRank
    Aug 2011 Join Date
    8,851Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove



    The 4 rooms is due to me pre-loading rooms so the navigator is never empty:

    If you are using Arcturus, contact me
    Skype: wesley.jabbo
    Discord: TheGeneral#0063

  5. #5
    Death from above! The General is offline
    The OmegaRank
    Aug 2011 Join Date
    8,851Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

    The avarage loading time of a website is usually bigger than 500ms.

    - - - Updated - - -

    No more walking through items:


    MP4
    If you are using Arcturus, contact me
    Skype: wesley.jabbo
    Discord: TheGeneral#0063

  6. #6
    Death from above! The General is offline
    The OmegaRank
    Aug 2011 Join Date
    8,851Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

    Update:
    • Sitting
    • Command Handling
    • About / Help
    • Alert
    • Hotel Alert
    • Reload Catalog


    If you are using Arcturus, contact me
    Skype: wesley.jabbo
    Discord: TheGeneral#0063

  7. #7
    Death from above! The General is offline
    The OmegaRank
    Aug 2011 Join Date
    8,851Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

    Managed to get memory usage to as low as 8mb.
    Fixed a memory leak due to the look warderobe component not properly disposing. Oops
    Started on profiling to see if I forgot more stuff and things.


    547MB is the allocated Heap size. I have no parameters set for that so that just grows and shrinks whenever it needs to x)
    If you are using Arcturus, contact me
    Skype: wesley.jabbo
    Discord: TheGeneral#0063

  8. #8
    Death from above! The General is offline
    The OmegaRank
    Aug 2011 Join Date
    8,851Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

    I want to have the basics done first before I start all those special features. Sure at one point I will code them but not now.

    - - - Updated - - -


    http://gyazo.com/17e538e6f74c2453d535964930f87f7d
    If you are using Arcturus, contact me
    Skype: wesley.jabbo
    Discord: TheGeneral#0063

  9. #9
    Death from above! The General is offline
    The OmegaRank
    Aug 2011 Join Date
    8,851Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

    Quote Originally Posted by TheEdit0r View Post
    Code snippets? would love to see coding wise, how its coming along :)
    Dunno what you want to see:

    HotelViewManager.java:
    Spoiler:

    Code:
    package com.eu.habbo.habbohotel.hotelview;
    
    import com.eu.habbo.Emulator;
    
    /**
     * Created on 27-8-2014 09:45.
     */
    public class HotelViewManager {
    
        private HallOfFame hallOfFame;
        private NewsList newsList;
    
        public HotelViewManager()
        {
            this.hallOfFame = new HallOfFame();
            this.newsList = new NewsList();
    
            Emulator.getLogging().logStart("HotelView -> loaded!");
        }
    
        public HallOfFame getHallOfFame()
        {
            return hallOfFame;
        }
    
        public NewsList getNewsList()
        {
            return newsList;
        }
    }


    HallOfFame.java
    Spoiler:

    Code:
    package com.eu.habbo.habbohotel.hotelview;
    
    import com.eu.habbo.Emulator;
    import gnu.trove.set.hash.THashSet;
    
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    
    /**
     * Created on 27-8-2014 09:46.
     */
    public class HallOfFame {
    
        private THashSet<HallOfFameWinner> winners;
        public static final String competitionName = "xmasRoomComp";
    
        public HallOfFame()
        {
            winners = new THashSet<HallOfFameWinner>();
    
            reload();
        }
    
        public void reload()
        {
            THashSet<HallOfFameWinner> users = new THashSet<HallOfFameWinner>();
            try
            {
                this.winners.clear();
    
                PreparedStatement statement = Emulator.getDatabase().prepare("SELECT users.look, users.username, users.id, hotelview_competition.points FROM hotelview_competition INNER JOIN users ON hotelview_competition.user_id = users.id ORDER BY hotelview_competition.points DESC LIMIT 10");
                ResultSet set = statement.executeQuery();
    
                while(set.next())
                {
                    users.add(new HallOfFameWinner(set));
                }
    
                this.winners.addAll(users);
            }
            catch(SQLException e)
            {
                Emulator.getLogging().logSQLException(e);
            }
        }
    
        public THashSet<HallOfFameWinner> getWinners()
        {
            return winners;
        }
    }


    HallOfFameWinner.java
    Spoiler:

    Code:
    package com.eu.habbo.habbohotel.hotelview;
    
    import java.sql.ResultSet;
    import java.sql.SQLException;
    
    /**
     * Created on 27-8-2014 09:47.
     */
    public class HallOfFameWinner {
    
        private int id;
        private String username;
        private String look;
        private int points;
    
        public HallOfFameWinner(ResultSet set) throws SQLException
        {
            this.id = set.getInt("id");
            this.username = set.getString("username");
            this.look = set.getString("look");
            this.points = set.getInt("points");
        }
    
        public int getId()
        {
            return id;
        }
    
        public String getUsername()
        {
            return username;
        }
    
        public String getLook()
        {
            return look;
        }
    
        public int getPoints()
        {
            return points;
        }
    }
    If you are using Arcturus, contact me
    Skype: wesley.jabbo
    Discord: TheGeneral#0063

  10. #10
    Alpha Member Caustik is offline
    Alpha MaleRank
    May 2011 Join Date
    LondonLocation
    1,908Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

    Quote Originally Posted by TheEdit0r View Post
    There's a difference between constructive feedback and just talking plain shit for no reason. js. @Zak
    No one was talking 'plain shit for no reason' from what I remember.

    Anyway, you should look into using JOOQ. It's the middle ground between Hibernate and vanilla JDBC.
    Interested in joining a developer/tech discord? PM me for more information!

  11. #11
    CEO at Hosthis LTD BurakDev is offline
    SubscriberRank
    Mar 2013 Join Date
    ParisLocation
    362Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

    You coded new habbo encryption ?

  12. #12
    Ultimate Member Hoshiko is offline
    MemberRank
    May 2013 Join Date
    194Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

    So many unnecessary objects floating around, ugh.

  13. #13
    Death from above! The General is offline
    The OmegaRank
    Aug 2011 Join Date
    8,851Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

    Quote Originally Posted by BurakDev View Post
    You coded new habbo encryption ?
    I'm on a release from may as I have most packets for that. I'll stick to that untill I've most things done.

    Quote Originally Posted by Caustik View Post
    No one was talking 'plain shit for no reason' from what I remember.

    Anyway, you should look into using JOOQ. It's the middle ground between Hibernate and vanilla JDBC.
    Already tested that but noticed a decrease in speed and increase in memory consumption so I'll stick to the good old queries. It might've been more usefull if MySQL would properly implement CHECK constrains (they're ignored by all servers) so stored procedures would be a better thing.

    Quote Originally Posted by Hoshiko View Post
    So many unnecessary objects floating around, ugh.
    How can you say that from one post of snippets, Guess you should have a look at plus.
    If you are using Arcturus, contact me
    Skype: wesley.jabbo
    Discord: TheGeneral#0063

  14. #14
    Boomshakalaka resize is offline
    True MemberRank
    Dec 2011 Join Date
    290Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

    Looks nice, good luck!

  15. #15
    Moderator Quackster is offline
    ModeratorRank
    Dec 2010 Join Date
    AustraliaLocation
    3,108Posts

    Re: Habbo Emulator ~ Java - Maven - Netty - HikariCP - Trove

    Before you go any further, make sure you document/javadoc all your code, makes it easier later and it allows you to generate something like this.

    http://jd.bukkit.org/rb/apidocs/
    Icarus Emulator source repository
    https://github.com/TheAmazingAussie/Icarus
    The link to the emulator's server development thread can be found here.

    Latest cracked SWF releases: swfhub.com
    Also includes header dumps for easy header updating, and various other game files.




Page 1 of 101 1234567891151 ... LastLast

Advertisement