IndigoEMU - Java - r63 - MySQL

Page 1 of 7 1234567 LastLast
Results 1 to 15 of 103
  1. #1
    Developer Quackster is online now
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,474Posts

    IndigoEMU - Java - r63 - MySQL



    License:-

    Indigo is under a "Don't be a dick" license (Don't be a Dick Public License�|�Phil Sturgeon) meaning any breaking the instances found in this license meaning you are a dick and we have proof of you being a dick.



    The website page!

    Project Indigo



    Introduction:-


    Project Indigo supports the Habbo client revision 63A flash. It uses MySQL for storage and relies on Netty as framework.


    Taken from Netty - the Java NIO Client Server Socket Framework - JBoss Community
    Code:
    "Netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP socket server."
    Features:-

    • Netty
    • MySQL


    Server features:-

    Code:
    Client;
     - Handshake
    
    SSO;
     - Logging user in succesfully if SSO is correct
     - Sends user object which shows your figure, motto and sex.
    
    Navigator;
     - View your own rooms
     - When logged in, your own rooms are cached, so room display isn't hardcoded.
     - Room count
     - View public rooms
    
    Private rooms
     - Create own rooms
     - Edit room thumbnail
     - Walk in room
     - Place furni in room
     - Pickup furni in room
     - Apply decorations
     - Chatting
     - Commands
    Catalogue
     - Load catalogue index.
     - Get catalogue pages
    
    Console
     - View friends
     - View offline friends
     - Dynamic offline or online when connecting or disconnecting.
     - Search for people (if friend, not friend, online or not)
     - Request friends
     - Accept friends.
    
    Public rooms
     - Chat in public rooms
     - See other users
     - Load public rooms
     - Set starting position
     - Leaving from a public room

    Credits:-

    - Matty ; for helping me getting a grasp with Netty
    - Jak ; the thread logo
    - Wikipedia ; JDBC article for MySQL
    - Maarten ; support
    - Tren ; support
    - Merijn ; support

    Pictures:-













    Code:
    package indigo.communication.messages.roomuser;
    
    import indigo.communication.MessageEvent;
    import indigo.communication.messages.ClientMessage;
    import indigo.communication.messages.ServerMessage;
    import indigo.game.furni.RoomFloorData;
    import indigo.network.clients.Session;
    
    public class getChangeItemPos implements MessageEvent
    {
    
    	@Override
    	public void parse(Session Session, ClientMessage Request)
    	{
    		if (Session.getPrivateRoom() == null)
    			return;
    		
    		// Get Id received.
    		int Id = Request.PopWiredInt32();
    		
    		
    		if (Id > 0)
    		{
    			// Get the floor data item
    			RoomFloorData Item = Session.getPrivateRoom().getFloorById(Id);
    			
    			// Get the received X coordinate
    	        int X = Request.PopWiredInt32();
    	        
    	        // Get the received y coordinate
    	        int Y = Request.PopWiredInt32();
    	        
    	        // Get the received rotation coordinate
    	        int Rotation = Request.PopWiredInt32();
    	        
    	        // Update with MySQL if the server crashes, obviously.
    	        Session.getStorage().ExecuteQuery("UPDATE flat_items SET posx = '" + X + "', posy = '" + Y + "', posz = '" + Rotation + "' WHERE id = '" + Id + "'");  
    	        
    	        // Update cache
    	        Item.X = X;
    	        Item.Y = Y;
    	        Item.Rot = Rotation;
    	        
    	        // Send update
    	        ServerMessage Response = new ServerMessage(95); // "A_"
    	        {
    	    		Response.AppendInt32(Id);
    	    		Response.AppendInt32(Item.SpriteId);
    	    		Response.AppendInt32(X);
    	    		Response.AppendInt32(Y);
    	    		Response.AppendInt32(Rotation);
    	    		Response.AppendStringWithBreak("0.0");
    	    		Response.AppendBoolean(false);
    	    		Response.AppendStringWithBreak("1");
    	    		Response.AppendInt32(-1);
    	    		Response.AppendBoolean(true);
                    Session.sendRoom(Response);
    	        }
    		}
            
    	}
    
    }
    Last edited by Quackster; 01-03-12 at 06:38 AM.


  2. #2
    i didnt do this. Donkjam is offline
    MemberRank
    Jul 2007 Join Date
    4,494Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    Re-Post approved, keep clean please
    Posted via Mobile Device

  3. #3
    Account Upgraded | Title Enabled! George2000 is offline
    MemberRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    Stay with 1 version please!! Trololl

    I hope this one will be good and with a good pathfinder and will be released. Good luck :)

    Greetz,

  4. #4
    Enthusiast Xenous is offline
    MemberRank
    Jan 2012 Join Date
    AustraliaLocation
    44Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    I said it last time and I'll say it again, Goodluck alex!

  5. #5
    Developer Quackster is online now
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,474Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    Quote Originally Posted by George2000 View Post
    Stay with 1 version please!! Trololl

    I hope this one will be good and with a good pathfinder and will be released. Good luck :)

    Greetz,
    Quote Originally Posted by Xenous View Post
    I said it last time and I'll say it again, Goodluck alex!
    Thank you guys!

    Currently working on unloading when you disconnect. I like experiencing errors that are totally new to you ;D

  6. #6
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    new thread? lolwat, good-luck alex.

  7. #7
    hi i'm robbie Roper is offline
    MemberRank
    Oct 2008 Join Date
    /home/roperLocation
    2,283Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    Good luck Alex, please try to stick with this version and not keep changing.

  8. #8
    *lurks* WJJ is offline
    MemberRank
    May 2007 Join Date
    United KingdomLocation
    1,589Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    Good luck!

    Looking good so far!

    Will

  9. #9
    ส็็็็็็็ Bloodraven is offline
    MemberRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    Alex, can you do Friend stream, use the last swfs before the new crypto which has friend stream.

    Good luck

  10. #10
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    Quack quack, quacky quack quack quack quack.

    Translation: Good luck, don't change the version again!

  11. #11
    Account Upgraded | Title Enabled! Grant is offline
    MemberRank
    Sep 2009 Join Date
    Scotland, UK.Location
    728Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    Quote Originally Posted by Hejula View Post
    Quack quack, quacky quack quack quack quack.

    Translation: Good luck, don't change the version again!
    i saw wut u did ther!!!

    --

    Anyway's, Good luck. Hopefully we stay at this version now?

  12. #12
    Web & Interaction Design Gangnam is offline
    MemberRank
    Dec 2010 Join Date
    Lincoln, UKLocation
    1,983Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    YUS, did my nagging help sway you towards r63, AGAIN?

  13. #13
    Developer Quackster is online now
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,474Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    Room unloading is done when the user is disconnected.
    And.. I forgot to add the [Development] tag, silly me

    -

    @Jak, @WJJ, @Grant, @Xudos, @Hejula, @Livar - Thank you!

    @-Jordan-, Will try my hardest ;)

    --

    And no more swf release changes, otherwise that would say that I am unreliable.

    --

    Finished public room items. I should parse then all in a database (row by row) and not have them static coded, ah well, who edits the position of public room items anyway? :D


  14. #14
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    Why don't you tell the Community what my idea was on msn?

  15. #15
    Developer Quackster is online now
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,474Posts

    Re: IndigoEMU [Java, MySQL, R63A+]

    Quote Originally Posted by ησвяαιη View Post
    Why don't you tell the Community what my idea was on msn?
    Because it hasn't been implemented yet! :D



Page 1 of 7 1234567 LastLast

Advertisement