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
This is a discussion on Thunderstorm [Java][Hibernate][Netty] within the Habbo Development forums, part of the Habbo Hotel category; Go with MongoDB :)...
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
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
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); } } }
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.
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
Really really really hate that design... :(