Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

Page 8 of 15 FirstFirst 123456789101112131415 LastLast
Results 106 to 120 of 224
  1. #106
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    Quote Originally Posted by Makarov View Post
    You rarely ever see any new css elements teaming with the client page. The header is definitely a great touch.

    Why don't you get on msn anymore!
    ^HabRockz have a Header on the client, they've had it for some time, so this couldn't be a brand new idea,

    and, Crossroads,

    why are the screenies r36, thought it was r63.

    Posted via Windows 8 Hacker Edition

  2. #107
    Member Crossroads is offline
    MemberRank
    Dec 2011 Join Date
    59Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    Quote Originally Posted by PowahAlert View Post
    ^HabRockz have a Header on the client, they've had it for some time, so this couldn't be a brand new idea,

    and, Crossroads,

    why are the screenies r36, thought it was r63.

    Posted via Windows 8 Hacker Edition
    There an early build of r63 I'll update my client when I get a chance or patch the hosts check on the latest client.

    Like a baws


    Pow


    Bam sending messages and updates (online / offline etc)


    Updated first post with screens and change log.

  3. #108
    Custom Title Enabled James is online now
    LegendRank
    Jan 2007 Join Date
    DenverLocation
    2,288Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    Quote Originally Posted by Crossroads View Post
    There an early build of r63 I'll update my client when I get a chance or patch the hosts check on the latest client.

    Like a baws


    Pow


    Bam sending messages and updates (online / offline etc)

    Updated first post with screens and change log.
    I'm helpin with this now, so you guys can all be ensured it'll be really buggy and very unstable Just like we like em' here in habboz

  4. #109
    Member Crossroads is offline
    MemberRank
    Dec 2011 Join Date
    59Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    Implemented search


    User input (search, im etc) is now filtered!

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

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    Looks great, keep it going.

  6. #111
    are you ******* kidding!! capostrike93 is offline
    MemberRank
    Jan 2011 Join Date
    366Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    Quote Originally Posted by DominicGunn View Post
    y read 3 bytes wen onli 1 needed to check policy also i have a feeling the above snippet will fail at reading messages properly if the client sends multiple msg ids in one packet
    you need read 4 bytes (int32) the policy send something like <policy... so you get a big int if try parse.. or checking the first byte "<" (i do this..)

    my actual code for parse is..
    PHP Code:

        
    private List<byte[]> readIncomingMessage(SocketChannel keyByteBuffer readBufferthrows Exception
        

            List<
    byte[]> result = new ArrayList<byte[]>();
            
            
    Crypto crypto = ...;
            
            
    byte[] msg;
            do
            {
                
    msg readMessage(keyreadBuffercrypto);
                if(
    msg != null)
                    
    result.add(msg);
                else
                    break;
            }
            while (
    true);
            
             return 
    result;
        }
        
        private 
    byte[] readMessage(SocketChannel keyByteBuffer readBufferCrypto crypto)
        {
            
    int bytesToRead
            if (
    readBuffer.remaining()>4)
            {
                
    byte[] lengthBytes = new byte[4];
                
    readBuffer.get(lengthBytes);
                if(
    crypto != null)
                {
                    
    crypto.parse(lengthBytes);
                }
                
    bytesToRead ByteMessage.Int32(lengthBytes0);
                if (
    readBuffer.remaining()>=bytesToRead)
                {
                    
    byte[] resultMessage = new byte[bytesToRead];
                    
    readBuffer.get(resultMessage); 
                    if(
    crypto != null)
                    {
                        
    crypto.parse(resultMessage);
                    }
                    
                    
    // remove message
                    
    int remaining readBuffer.remaining();
                    
    System.arraycopy(readBuffer.array(), readBuffer.position(), readBuffer.array(), 0remaining);
                    
    readBuffer.clear().limit(remaining).position(0);
                    
                    return 
    resultMessage;
                }
                if(
    crypto == null && lengthBytes[0] == 60)
                {
                    
    readBuffer.clear();
                    
    write(keycrossdomaintrue);
                    return 
    null;
                }
                
    readBuffer.position(0);
            }
            return 
    null
        } 
    so i have a List<byte[]> with the packets separated >P

  7. #112
    Member Crossroads is offline
    MemberRank
    Dec 2011 Join Date
    59Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    Quote Originally Posted by capostrike93 View Post
    you need read 4 bytes (int32) the policy send something like <policy... so you get a big int if try parse.. or checking the first byte "<" (i do this..)

    my actual code for parse is..
    PHP Code:

        
    private List<byte[]> readIncomingMessage(SocketChannel keyByteBuffer readBufferthrows Exception
        

            List<
    byte[]> result = new ArrayList<byte[]>();
            
            
    Crypto crypto = ...;
            
            
    byte[] msg;
            do
            {
                
    msg readMessage(keyreadBuffercrypto);
                if(
    msg != null)
                    
    result.add(msg);
                else
                    break;
            }
            while (
    true);
            
             return 
    result;
        }
        
        private 
    byte[] readMessage(SocketChannel keyByteBuffer readBufferCrypto crypto)
        {
            
    int bytesToRead
            if (
    readBuffer.remaining()>4)
            {
                
    byte[] lengthBytes = new byte[4];
                
    readBuffer.get(lengthBytes);
                if(
    crypto != null)
                {
                    
    crypto.parse(lengthBytes);
                }
                
    bytesToRead ByteMessage.Int32(lengthBytes0);
                if (
    readBuffer.remaining()>=bytesToRead)
                {
                    
    byte[] resultMessage = new byte[bytesToRead];
                    
    readBuffer.get(resultMessage); 
                    if(
    crypto != null)
                    {
                        
    crypto.parse(resultMessage);
                    }
                    
                    
    // remove message
                    
    int remaining readBuffer.remaining();
                    
    System.arraycopy(readBuffer.array(), readBuffer.position(), readBuffer.array(), 0remaining);
                    
    readBuffer.clear().limit(remaining).position(0);
                    
                    return 
    resultMessage;
                }
                if(
    crypto == null && lengthBytes[0] == 60)
                {
                    
    readBuffer.clear();
                    
    write(keycrossdomaintrue);
                    return 
    null;
                }
                
    readBuffer.position(0);
            }
            return 
    null
        } 
    so i have a List<byte[]> with the packets separated >P
    With the old protocol you need the first three bytes the first is used to check if it's a policy request and then the three are used to get the Base64 encoded header.

  8. #113
    are you ******* kidding!! capostrike93 is offline
    MemberRank
    Jan 2011 Join Date
    366Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    Quote Originally Posted by Crossroads View Post
    With the old protocol you need the first three bytes the first is used to check if it's a policy request and then the three are used to get the Base64 encoded header.
    oh are talking of the old protocol.. i think are talking of the new..

    so.. ignore my last message xd

  9. #114
    Apprentice Pedobear is offline
    MemberRank
    Feb 2012 Join Date
    The NetherlandsLocation
    6Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    Really like the idea but why did you start using the name of the Dutch hotel manager no bad thing because your stuff really loosk good from here.

  10. #115
    Member Crossroads is offline
    MemberRank
    Dec 2011 Join Date
    59Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    Quote Originally Posted by Pedobear View Post
    Really like the idea but why did you start using the name of the Dutch hotel manager no bad thing because your stuff really loosk good from here.
    Has nothing todo with Habbo it's a long story ;)

  11. #116
    Alpha Member Caustik is offline
    MemberRank
    May 2011 Join Date
    LondonLocation
    1,837Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    Any updates on the cms side of things? Really interested in Rails, started learning it today :D
    Posted via Mobile Device

  12. #117
    Member Crossroads is offline
    MemberRank
    Dec 2011 Join Date
    59Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    I wont be able to update until Tuesday at the earliest.

    Made a few small changes last online should now work. Back properly tuesday / wednesday.

    Pushed a working db and changed mapping of user class.

  13. #118
    Member Crossroads is offline
    MemberRank
    Dec 2011 Join Date
    59Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    So I'm back once I get home I'll finish off the messenger accept/remove friend and probably implement a ping/pong system.

  14. #119
    Member Crossroads is offline
    MemberRank
    Dec 2011 Join Date
    59Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    Did some work on CrowleyWeb everything now uses i18n so you can localise it easily user sign in / sign up is done displaying your Habbo's is nearly done I'll wok on creating a Habbo soon.

  15. #120
    Member Crossroads is offline
    MemberRank
    Dec 2011 Join Date
    59Posts

    Re: Crowley - r63 - Java - Hibernate/BoneCP (MySQL)

    So yeah Habbo selector:



Advertisement