Shark ~ [Java][Hibernate][Netty] ~ [V13]
Shark - A Java emulator written for the v13 client
What is Shark?
Shark is a FUSE environment emulator, written to target the v13 client. It is written in Java, using:
- Netty - For scalable, event driven and non-blocking network IO
- Hibernate - For enterprise level persistence of database objects
- BoneCP - For efficient MySQL connection pooling
- Log4j - For solid and well tested logging
Shark uses Netty for scalable network connectivity. Netty has been written to solve the c10k networking problem, a common problem many face when writing client-server applications.
Shark is based around a server core, with habbo components added in, giving it a modular feel and design. You can easily switch out components as you please.
Screenshots
http://c714091.r91.cf2.rackcdn.com/b...76834a48ff.png
http://c714091.r91.cf2.rackcdn.com/b...0f3d7813a6.png
http://grab.by/fcKw
http://grab.by/fcKC
http://grab.by/hLx4
MailCatcher
http://grab.by/fg3w
Code Snippets
Private Paste - Pastie
Code:
package net.adil.shark.habbo.message.outgoing.user;
import net.adil.shark.habbo.game.GameSession;
import net.adil.shark.habbo.message.ClientMessage;
import net.adil.shark.habbo.message.IMessageEvent;
import net.adil.shark.habbo.message.ServerMessage;
import org.apache.log4j.Logger;
public class UserParams implements IMessageEvent
{
public void invoke(ClientMessage cMessage,GameSession session)
{
session.send(new ServerMessage(5)
.appendString(session.getHabbo().getID().toString())
.appendString(session.getHabbo().getUsername()) //c'mon dude
.appendString(session.getHabbo().getFigure()) //figure
.appendString(session.getHabbo().getGender().toLowerCase()) //gender
.appendString(session.getHabbo().getMotto()) //motto - do .getMotto() here
.appendWireInt(100) //tickets - do .getTickets()
.appendString("") //pool figure - .getPoolFigure()
.appendWireInt(0)); //film - .getFilm()
session.send(new ServerMessage(139)
.appendString("Hello, "+session.getHabbo().getUsername()));
}
}
FAQ
Q: Will this be complete?
A: I can't guarantee anything, but I'll complete it to the best of my ability.
Q: Will this be open source?
A: Sometime soon, probably.
Q: Are you using Github or any other version control system?
A: Yes.
Q: What features are currently implemented?
A: Everything up to navigator.
Q: Will Shark have support for games & the camera?
A: Yes, I do plan on achieving these. If anyone has packetlogs, that would be a massive help!
Notes
Rolecall:
James
Nillus (Woodpecker)
Audun (Chop V2)
Jordan (some help)
Dom (some help)
Alex (some packet stuff)
Changelog
02/08/12 - Rewrote backend, started afresh.
04/08/12 - Managed to get message events/responses implemented.
05/08/12 - Got user login with SSO done, along with messenger serialization, a simple friend request, and credit level serialization.
06/08/12 - Got friend serialization done properly.
07/08/12 - Started planning backend changes (handling of messages, API service, etc).
08/08/12 - Basic CMS started.
Hopefully, I'll be updating soon with more stuff!
Thanks,
~Adil
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
Why you use Bootstrap? Bootstrap makes me cry. :'(
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
Quote:
Originally Posted by
n0minal
Why you use Bootstrap? Bootstrap makes me cry. :'(
Because I'm lazy and I like abusing Bootstrap!
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
This looks really awesome. If you'd like me to create a sort of.. "Old school" feeling site design, lemme know.. I'm pretty advanced with CSS. :):
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
Quote:
Originally Posted by
Leon
This looks really awesome. If you'd like me to create a sort of.. "Old school" feeling site design, lemme know.. I'm pretty advanced with CSS. :):
Will do. :)
Anyway, starting on a rewrite of a couple of things, will keep you updated.
--
https://secure.join.me/876-261-964
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
Very nice development.
Hope it will get finished and nice! ;D
Greetz,
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
Very nice V13 Project good luck!
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
Quote:
Originally Posted by
GertJanA
Very nice development.
Hope it will get finished and nice! ;D
Greetz,
Quote:
Originally Posted by
Nilenz
Very nice V13 Project good luck!
Thanks guys :D.
Anyway, looking into CMS development now. I want to make the CMS simple, just a simplistic login/register system, with an account management panel and an 'updates' page (similar to a community page)
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
Looks cool, might be useful for hipsters.
Good luck!
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
Going to use Rails for the CMS, and I'm adding some stuff to the API so you can add in components :-).
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
But why shall you V13 usen? :P
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
Quote:
Originally Posted by
Nilenz
But why shall you V13 usen? :P
If you meant, why are you going to do v13, I quote:
Quote:
Me: why v7?
Adil: v13 actually, don't let the url fool you
Me: why v13?
Adil: why not?
so yeah.
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
Quote:
Originally Posted by
Nilenz
But why shall you V13 usen? :P
Doing V13 w/ SSO. :-)
Anyway, started on CMS, it will feature Devise for authentication.
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
Adil, mind showing us a snippet of your railsCMS?
Re: Shark ~ [Java][Hibernate][Netty] ~ [V13]
Still in early stages atm (just started it), and I'm busy w/ something else.
--
Might do a join.me later on, sorting out the CMS atm.