1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Login packet

Discussion in 'Development' started by LucGamesDE, May 12, 2017.

  1. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    How can I send $player on $serv1 a login packet from $serv2? I think it could be possible using sockets?!
     
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    What is $serv1 and $serv2?
     
    Muqsit likes this.
  3. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    Nothing. I only wanted to say server 1 and server 2
     
  4. KnownUnown

    KnownUnown Spider Jockey Poggit Reviewer

    Messages:
    47
    GitHub:
    knownunown
    You could, but why would you want to? What would be the purpose of sending the login packet between servers? Do you want to parse it's data?
     
    SOFe likes this.
  5. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    I want to transfer the player
     
  6. moska

    moska Baby Zombie

    Messages:
    105
    GitHub:
    supermaxalex
    Player::transfer(ip, port);
     
  7. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    ...... Using Login and Logout packets
     
  8. TheDiamondYT

    TheDiamondYT Zombie

    Messages:
    298
    GitHub:
    TheDiamondYT1
    Why?
     
  9. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    As a proxy? Better ask someone make it than asking how to do it :D it's too much to say.
     
  10. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    Because the packet is to slow. Couldn't give me someone a little example?
     
  11. moska

    moska Baby Zombie

    Messages:
    105
    GitHub:
    supermaxalex
    For a proxy, it'll take more longer to do, while Player::transfer() is done on a line
     
  12. Miste

    Miste Baby Zombie

    Messages:
    109
    GitHub:
    Misteboss
    :facepalm:
    It's evident, but proxy will transfer the player faster than transfer packet
     
  13. moska

    moska Baby Zombie

    Messages:
    105
    GitHub:
    supermaxalex
    So why Shoghi added this packet lmao :shoghi:
     
  14. 0x15f

    0x15f Baby Zombie

    Messages:
    145
    GitHub:
    0x15f
    Proxy's aren't easy to use for everyone. Sending a TransferPacket could be easier for someone. As for sending a login packet from another server, that is more difficult than a TransferPacket, it would require multi-server communication. I don't believe this could be achieved at the current state of MCPE or PMMP, when you send a TransferPacket the client (MCPE) disconnects from the current server and attempts to connect to another server, when you disconnect a client they aren't expecting another login packet; It would most likely be ignored by the client. I'm now curious and I'll test this and see if it's achievable and if so how effective it is.
     
    corytortoise likes this.
  15. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    Do you think Mojang will speed up the packet?
     
  16. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    It was accomplished before using the SlowTransfer plugin
     
  17. Jack Noordhuis

    Jack Noordhuis Zombie Pigman Poggit Reviewer

    Messages:
    618
    GitHub:
    JackNoordhuis
    You're all forgetting one vital thing here, the LoginPacket is only sent from the client. You could try sending a start game packet or play around with some other packets to see what the client responds with.
     
    0x15f and Thunder33345 like this.
  18. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    And how can I do it with a start game packet?
     
  19. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Just wait for MCPE updates that improve it. MCPE is laggy nowadays anyway, taking several seconds even just to show the settings screen.
     
  20. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Correction: If the settings screen even shows up without crashing the game
     
    SOFe, jasonwynn10, Miste and 3 others like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.