Thread: How do you login to a netty framework?

Results 1 to 7 of 7
  1. #1 How do you login to a netty framework? 
    Registered Member
    Join Date
    Jul 2015
    Posts
    150
    Thanks given
    0
    Thanks received
    7
    Rep Power
    0
    So... I lost the post to this but I downloaded a netty server and basically it had just enough code to show that you can receive a connection from a client however the game black screens and never allows you to login? I figured I would need to send a map region and that gave me a loading screen but the server continually receives idle packets before dropping the client and trying to reconnect the player... I'm not sure what I need to do next. I can't find any tutorials that actually get you to the point where you can fully login and I'm trying to understand how netty works so I can write my own framework. Any insights appreciated.
    Reply With Quote  
     

  2. #2  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Sounds like you have most of networking already done.
    Have you made sure to send the appearance on login? (Player updating, masks)
    If the client basically allows you to login, the only things that could crash are incorrect packets & player/npc updating being incorrect.
    Attached image
    Reply With Quote  
     

  3. #3  
    Banned How do you login to a netty framework? Market Banned


    Join Date
    Jan 2011
    Age
    26
    Posts
    3,112
    Thanks given
    1,198
    Thanks received
    1,479
    Rep Power
    0
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2015
    Posts
    150
    Thanks given
    0
    Thanks received
    7
    Rep Power
    0
    The client doesn't allow me to login the black screen comes up then loading text because I sent a region packet I never actually saw the game world which is the only thing I'm interested in. Would adding updating allow me to see the world? At current there is no entity updating.

    Apollo is a bad example. It is a heavily developed engine and as such is extremely difficult to follow. I tried this and ended up running in circles for at least a half hour before giving up and that was just rapidly control clicking with eclipse >...<
    Reply With Quote  
     

  5. #5  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    No. Region packet should be all you need to send to see the actual area. Are you sending it correctly?
    Attached image
    Reply With Quote  
     

  6. #6  
    Registered Member
    bracket's Avatar
    Join Date
    Aug 2009
    Posts
    5,278
    Thanks given
    1,059
    Thanks received
    1,465
    Rep Power
    5000
    Keep in mind that you have to set the players position before you send the region packet upon login.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jul 2015
    Posts
    150
    Thanks given
    0
    Thanks received
    7
    Rep Power
    0
    Quote Originally Posted by Kris View Post
    No. Region packet should be all you need to send to see the actual area. Are you sending it correctly?
    I believe I sent the region packet 73 right? I didn't set the players position I just sent a random set of region coordinates (8,8)

    Code:
    sendMapRegion(8, 8);
    public PacketSender sendMapRegion(int x, int y) {
    		StreamBuffer.OutBuffer out = StreamBuffer.newOutBuffer(6);
    		out.writeHeader(player.getOutCipher(), 73);
    		out.writeShort(x, StreamBuffer.ValueType.A);
    		out.writeShort(y);
    		player.send(out.getBuffer());
    		return this;
    	}
    Result (The console shows packet activity (Incoming, Server), The right image displays what happens on login and for 15 or so seconds after, The left bottom image shows what happens around the time the white text appears. The packets then enter a repeating pattern and the lost connection message stays.):
    Attached image
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. How Do You Like To Masturbate?
    By Anti-Conformist in forum Spam
    Replies: 18
    Last Post: 10-05-2013, 07:45 AM
  2. Replies: 5
    Last Post: 03-21-2011, 08:25 PM
  3. Replies: 4
    Last Post: 07-19-2010, 01:24 PM
  4. Replies: 9
    Last Post: 07-22-2008, 11:38 PM
  5. how do you make client to go only your ip
    By zedex ranger in forum Tutorials
    Replies: 4
    Last Post: 04-26-2008, 05:28 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •