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

Page 11 of 15 FirstFirst ... 3456789101112131415 LastLast
Results 151 to 165 of 224
  1. #151
    Chasing 99 Red Balloons Jordan is offline
    MemberRank
    Jan 2008 Join Date
    UKLocation
    1,763Posts

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

    Quote Originally Posted by Near View Post
    Thanks, that worked. But, I still can't compile because this import in GenericDAOImpl.java seems to be causing trouble on the following line:
    PHP Code:
    import com.sun.xml.internal.bind.v2.model.core.ID
    It seems it can't find that package.
    Pull the latest build I removed those files

  2. #152
    son, i am dissapoint Near is offline
    MemberRank
    Sep 2009 Join Date
    The NetherlandsLocation
    491Posts

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

    Quote Originally Posted by Jordan View Post
    Pull the latest build I removed those files
    Do you mean ebe12b1? I'm using that one. I'm going to use Crowley for a v13 server. It's stable enough for that right?

    EDIT: I've got it to compile by removing those 2 GenericDAO files but I still can't run the jar with "java -cp server.jar net.hybridcore.crowley.Crowley" while I'm in the target folder with cmd. I'm again getting the NoClassDefFoundError. But this time the class it can't find is different I just noticed. It seems to be org.jboss.netty.channel.ChannelException.
    Last edited by Near; 06-03-12 at 06:15 PM.

  3. #153
    Chasing 99 Red Balloons Jordan is offline
    MemberRank
    Jan 2008 Join Date
    UKLocation
    1,763Posts

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

    Quote Originally Posted by Near View Post
    Do you mean ebe12b1? I'm using that one. I'm going to use Crowley for a v13 server. It's stable enough for that right?

    EDIT: I've got it to compile by removing those 2 GenericDAO files but I still can't run the jar with "java -cp server.jar net.hybridcore.crowley.Crowley" while I'm in the target folder with cmd. I'm again getting the NoClassDefFoundError. But this time the class it can't find is different I just noticed. It seems to be org.jboss.netty.channel.ChannelException.
    You can copy the contents of target/dependency into your classpath or specifying it at runtime or try
    mvn exec:java -Dexec.mainClass="net.hybridcore.crowley.Crowley"
    however you may get errors about mapping files.

    It should be very stable :)

    I know what's up with resources i'll fix it in a few minutes

    Pushed changes use that maven command to run the server.

  4. #154
    son, i am dissapoint Near is offline
    MemberRank
    Sep 2009 Join Date
    The NetherlandsLocation
    491Posts

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

    Woot, I got it running. Now on to making it v13..

    Jordan, I'm trying to work with it, but I don't understand everything. Would you mind answering some of the questions I have on Skype/MSN? If you would like to help me out, please send me a PM with your details as I can't send you a PM.
    Last edited by Near; 06-03-12 at 09:46 PM.

  5. #155
    Chasing 99 Red Balloons Jordan is offline
    MemberRank
    Jan 2008 Join Date
    UKLocation
    1,763Posts

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

    Quote Originally Posted by Near View Post
    Woot, I got it running. Now on to making it v13..

    Jordan, I'm trying to work with it, but I don't understand everything. Would you mind answering some of the questions I have on Skype/MSN? If you would like to help me out, please send me a PM with your details as I can't send you a PM.
    In GameSession goto the start function "sendMessage(new ServerMessage(0));" as v13 had a hello message.

  6. #156
    son, i am dissapoint Near is offline
    MemberRank
    Sep 2009 Join Date
    The NetherlandsLocation
    491Posts

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

    What do you mean with that?

    I'm actually starting to understand everything! This feels good, haha. On to bed, I'll continue tomorrow!
    Last edited by Near; 06-03-12 at 10:24 PM.

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

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

    Jordan:

    View HuI6gN.png on ScreenSnapr

    Took an idea on using the hotel view.

  8. #158
    son, i am dissapoint Near is offline
    MemberRank
    Sep 2009 Join Date
    The NetherlandsLocation
    491Posts

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

    Could you give me some information about how the messages work? What are those handlers in the MessageHandler class used for? Could I use the RC4 from the v13 version? Man.. I need to have some help!

  9. #159
    Chasing 99 Red Balloons Jordan is offline
    MemberRank
    Jan 2008 Join Date
    UKLocation
    1,763Posts

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

    Quote Originally Posted by Near View Post
    Could you give me some information about how the messages work? What are those handlers in the MessageHandler class used for? Could I use the RC4 from the v13 version? Man.. I need to have some help!
    Take a look at the MessageHandler in the last v13 build and the outgoing messages back then, and that class just maps in ID of incoming messages to the class that understands it and can respond correctly.

  10. #160
    son, i am dissapoint Near is offline
    MemberRank
    Sep 2009 Join Date
    The NetherlandsLocation
    491Posts

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

    Thanks mate, I'm understanding more and more.

    How would I start a new thread to start the PingCheckListener? Just by doing new Thread()? Because you're using Netty I'm not sure.
    Last edited by Near; 09-03-12 at 01:01 PM.

  11. #161
    Chasing 99 Red Balloons Jordan is offline
    MemberRank
    Jan 2008 Join Date
    UKLocation
    1,763Posts

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

    Quote Originally Posted by Near View Post
    Thanks mate, I'm understanding more and more.

    How would I start a new thread to start the PingCheckListener? Just by doing new Thread()? Because you're using Netty I'm not sure.
    Yeah just a normal thread (i would use one thread and just loop over users in it a thread per user is too much overhead).

  12. #162
    son, i am dissapoint Near is offline
    MemberRank
    Sep 2009 Join Date
    The NetherlandsLocation
    491Posts

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

    Quote Originally Posted by Jordan View Post
    Yeah just a normal thread (i would use one thread and just loop over users in it a thread per user is too much overhead).
    Yeah was planning to do that! But how do I loop over the sessions because they are listen in a Map.

  13. #163
    Chasing 99 Red Balloons Jordan is offline
    MemberRank
    Jan 2008 Join Date
    UKLocation
    1,763Posts

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

    Quote Originally Posted by Near View Post
    Yeah was planning to do that! But how do I loop over the sessions because they are listen in a Map.
    Add something like to SessionManager (change it to extend Runnable):
    PHP Code:
        private boolean pongThread;
        public 
    void run() {
            
    pongThread true;
            while (
    pongThread) {
                for (
    GameSession gameSession this.habbos.values()) {
                    if (
    gameSession.hasPonged()) {
                        
    // ponged
                    
    } else {
                        
    // not replied to pong d/c
                    
    }
                }
            }
        } 
    And this to GameSession:
    PHP Code:
        private boolean ponged;

        public 
    boolean hasPonged() {
            return 
    ponged;
        }

        public 
    void setPonged(boolean ponged) {
            
    this.ponged ponged;
        } 
    Then you can just "Crowley.getHabbo().getSessions().start()"

  14. #164
    son, i am dissapoint Near is offline
    MemberRank
    Sep 2009 Join Date
    The NetherlandsLocation
    491Posts

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

    Thanks, seem to have implemented that. But, where would I put the thread start?

    PHP Code:
    Thread thread = new Thread(Crowley.getHabbo().getSessions());
    thread.start(); 
    Also, I can't even get the server to get to the register screen.. Those packets are f*ckn me over...

  15. #165
    Chasing 99 Red Balloons Jordan is offline
    MemberRank
    Jan 2008 Join Date
    UKLocation
    1,763Posts

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

    You just need to call tge function I mentioned above as it extends Runnable.



Advertisement