How does post login work?
Hello.
I wanted to ask, what exactly is happening after post-login? I'm currently trying to learn everything about packets, etc, and I'm trying to make a v40b source (Even though my knowledge on packets is not great, I'm still trying to learn about it, so please don't flame and tell me to give up).
So basically, what I got now is, handshake done, login button handler done, but I want to know.. after the login is success - how do I get to show the worlds? Now it just disconnects and crashes, so I want to know, what exactly packets do I send or what do I do to show the world?
A detailed expalination about how the whole login process works would be nice, thank you very much.
- king 456654 aka A.M
Re: How does post login work?
Re: How does post login work?
Try to not look at this as a stream of events, but rather small snippets of connected code.
Handshake all the way to login sent -> One connection, then the connection is lost and re-established with another part of the server. This is redone often in the program for example when you switch channels or when you go to cash shop.
If you set up debug mode (Follow the guide in the tutorials section) and put a breakpoint at packetrecieved / packetsent, or just somewhere around in MapleServerHandler you'll really notice how loose the connections are.
Re: How does post login work?
Quote:
Originally Posted by
Joakim432710
Try to not look at this as a stream of events, but rather small snippets of connected code.
Handshake all the way to login sent -> One connection, then the connection is lost and re-established with another part of the server. This is redone often in the program for example when you switch channels or when you go to cash shop.
If you set up debug mode (Follow the guide in the tutorials section) and put a breakpoint at packetrecieved / packetsent, or just somewhere around in MapleServerHandler you'll really notice how loose the connections are.
Thank you for the reply, but my question was how exactly the post-login works, as in, after the user connects, and the packet structure of his login is sent, what then? How do I show the worlds? What packets are sent? I want to know this without looking at odin ms (and well, I can't, because I'm at v40b, and the structure / opcodes are different).