Welcome to the RaGEZONE - MMORPG development forums.

Thunderstorm [Java][Hibernate][Netty]

This is a discussion on Thunderstorm [Java][Hibernate][Netty] within the Habbo Development forums, part of the Habbo Hotel category; Go with MongoDB :)...

Page 2 of 11 FirstFirst 12345678910 ... LastLast
Results 16 to 30 of 157
  1. #16
    Goodcat.
    Rank
    Member +
    Join Date
    Sep 2011
    Location
    United Kingdom
    Posts
    1,411
    Liked
    532

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Click
    Go with MongoDB :)

  2. #17
    Alpha Member
    Rank
    Alpha Member
    Join Date
    May 2011
    Location
    London
    Posts
    1,539
    Liked
    386
    PSN ID: clardes Steam ID: adilol997

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Mongo seems to connect faster, a lot faster. Gonna run a few benchmarks at home with queries and stuff. Will work on messages as well.

    This will be fun :D
    Posted via Mobile Device

  3. #18
    WJJ
    *lurks*
    Rank
    Alpha Member
    Join Date
    May 2007
    Location
    United Kingdom
    Posts
    1,612
    Liked
    141

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Good luck with this!

    Looking forward to seeing what becomes of it.

    Will


    "It doesn't matter how nice you are, if your face doesn't fit you won't either"


  4. #19
    Alpha Member
    Rank
    Alpha Member
    Join Date
    May 2011
    Location
    London
    Posts
    1,539
    Liked
    386
    PSN ID: clardes Steam ID: adilol997

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Livar offered to code a cms for this ^^
    When I do get home, I'm working on a cms for another project. Will update this though (probably more network stuff and MySQL stuff will be done)
    Posted via Mobile Device

  5. #20
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Oct 2007
    Posts
    2,710
    Liked
    675
    Gamertag: Cake Jake Bake

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Quote Originally Posted by Caustik View Post
    Mongo seems to connect faster, a lot faster. Gonna run a few benchmarks at home with queries and stuff. Will work on messages as well.

    This will be fun :D
    Posted via Mobile Device
    There has been loads of benchmarks for the Mongo driver.
    It has been proving to be faster.
    But it has also been proven to be highly unstable at times.
    Also not a lot of people use Mongo so it may be unique!

    Goodluck Adil.

  6. #21
    Alpha Member
    Rank
    Alpha Member
    Join Date
    May 2011
    Location
    London
    Posts
    1,539
    Liked
    386
    PSN ID: clardes Steam ID: adilol997

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Quote Originally Posted by Zak© View Post
    There has been loads of benchmarks for the Mongo driver.
    It has been proving to be faster.
    But it has also been proven to be highly unstable at times.
    Also not a lot of people use Mongo so it may be unique!

    Goodluck Adil.
    Thanks Zak :D
    MySQL does look like the choice here, cause I ran another small benchmark and it only came out ~150ms slower than Mongo.

  7. #22
    Now 35% cooler!
    Rank
    Subscriber
    Join Date
    Oct 2008
    Location
    C:/
    Posts
    2,329
    Liked
    462
    Gamertag: The Livar

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Quote Originally Posted by Caustik View Post
    Livar offered to code a cms for this ^^
    When I do get home, I'm working on a cms for another project. Will update this though (probably more network stuff and MySQL stuff will be done)
    Posted via Mobile Device
    Yeah, good-luck with this Adil.

  8. #23
    Alpha Member
    Rank
    Alpha Member
    Join Date
    May 2011
    Location
    London
    Posts
    1,539
    Liked
    386
    PSN ID: clardes Steam ID: adilol997

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Just adding some bits to the Encoder.java class, will do Decoder tomorrow or today (depends if I can be bothered).
    Decoder will be using Netty's frameDecoder, of course.

  9. #24
    Heat of the Moment!
    Rank
    Developer
    Join Date
    Dec 2010
    Location
    Essos
    Posts
    2,318
    Liked
    1552

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Quote Originally Posted by Caustik View Post
    Just adding some bits to the Encoder.java class, will do Decoder tomorrow or today (depends if I can be bothered).
    Decoder will be using Netty's frameDecoder, of course.
    Sorry but, this is basically all you need..?

    Code:
    package indigo.network;
    
    import indigo.communication.messages.ServerMessage;
    
    import java.nio.charset.Charset;
    
    import org.jboss.netty.buffer.ChannelBuffers;
    import org.jboss.netty.channel.ChannelHandlerContext;
    import org.jboss.netty.channel.Channels;
    import org.jboss.netty.channel.MessageEvent;
    import org.jboss.netty.channel.SimpleChannelHandler;
    
    
    public class NetworkEncoder extends SimpleChannelHandler {
    	@Override
    	public void writeRequested(ChannelHandlerContext ctx, MessageEvent e) {
    		try {
    			if (e.getMessage() instanceof String)
    			{
    				Channels.write(ctx, e.getFuture(), ChannelBuffers.copiedBuffer((String) e.getMessage(), Charset.forName("UTF-8")));
    			} 
    			else
    			{
    				ServerMessage msg = (ServerMessage) e.getMessage();
    				Channels.write(ctx, e.getFuture(), msg.get());
    			}
    		}
    		catch (Exception ex) {
    			Logging.writeLine("Error occrured in the 'NetworkDecoder' + ex);
    		}
    	}
    }

  10. #25
    Alpha Member
    Rank
    Alpha Member
    Join Date
    May 2011
    Location
    London
    Posts
    1,539
    Liked
    386
    PSN ID: clardes Steam ID: adilol997
    Quote Originally Posted by Quackster View Post
    Sorry but, this is basically all you need..?

    Code:
    package indigo.network;
    
    import indigo.communication.messages.ServerMessage;
    
    import java.nio.charset.Charset;
    
    import org.jboss.netty.buffer.ChannelBuffers;
    import org.jboss.netty.channel.ChannelHandlerContext;
    import org.jboss.netty.channel.Channels;
    import org.jboss.netty.channel.MessageEvent;
    import org.jboss.netty.channel.SimpleChannelHandler;
    
    
    public class NetworkEncoder extends SimpleChannelHandler {
    	@Override
    	public void writeRequested(ChannelHandlerContext ctx, MessageEvent e) {
    		try {
    			if (e.getMessage() instanceof String)
    			{
    				Channels.write(ctx, e.getFuture(), ChannelBuffers.copiedBuffer((String) e.getMessage(), Charset.forName("UTF-8")));
    			} 
    			else
    			{
    				ServerMessage msg = (ServerMessage) e.getMessage();
    				Channels.write(ctx, e.getFuture(), msg.get());
    			}
    		}
    		catch (Exception ex) {
    			Logging.writeLine("Error occrured in the 'NetworkDecoder' + ex);
    		}
    	}
    }
    I've done my network encoder.
    Working on the decoder and client messages now
    Posted via Mobile Device

  11. #26
    Alpha Member
    Rank
    Alpha Member
    Join Date
    May 2011
    Location
    London
    Posts
    1,539
    Liked
    386
    PSN ID: clardes Steam ID: adilol997

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Development might slow down for a bit, working on a web framework for cms's and stuff.
    I'll update though.
    (Integrating DataNucleus (persistence))
    Last edited by Caustik; 12-02-12 at 12:20 PM.

  12. #27
    Alpha Member
    Rank
    Alpha Member
    Join Date
    May 2011
    Location
    London
    Posts
    1,539
    Liked
    386
    PSN ID: clardes Steam ID: adilol997

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Been working on a web framework, finding the realm of habbo a bit 'confusing' :S
    Anyway,

    (paint is open cause I tried making my own logo.)
    Posted via Mobile Device
    Livar likes this.

  13. #28
    Goodcat.
    Rank
    Member +
    Join Date
    Sep 2011
    Location
    United Kingdom
    Posts
    1,411
    Liked
    532

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Really really really hate that design... :(

  14. #29
    Now 35% cooler!
    Rank
    Subscriber
    Join Date
    Oct 2008
    Location
    C:/
    Posts
    2,329
    Liked
    462
    Gamertag: The Livar

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Quote Originally Posted by Caustik View Post
    Been working on a web framework, finding the realm of habbo a bit 'confusing' :S
    Anyway,

    (paint is open cause I tried making my own logo.)
    Posted via Mobile Device
    Isn't this a v1 server? :D

  15. #30
    Alpha Member
    Rank
    Alpha Member
    Join Date
    May 2011
    Location
    London
    Posts
    1,539
    Liked
    386
    PSN ID: clardes Steam ID: adilol997

    Re: jEMU - jokerEMU [v1][Java][Netty & BoneCP]

    Quote Originally Posted by PowahAlert View Post
    Isn't this a v1 server? :D
    Went a bit overboard... I know V1 is just a layout, but meh

 

 
Page 2 of 11 FirstFirst 12345678910 ... LastLast

Posting Permissions

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