Hello everyone!
In order to improve my skills in C/C++ (which i plan to use for mangos ) i gave myself the goal to program a logonserver and a worldserver, but only till the point where the characters are displayed. Dont have enough time to get further.
Until yet everything worked perfectly, logonserver does what it should (and yes, it does it effective ), same to the worldserver, but - if you belive or not - i get stucked at cmsg_char_enum . That means just one step before i would have got my goal :mellow:.
So, why do i get stucked? Actually i cant really tell you in detail, but after i haved decrypted cmsg_char_enum (there the decryption still works perfectly) all the cryptingstuff messes up. I cant even decrypt the clients ping-packets.
So if i dont let the client get to cmsg_char_enum (e.g. if i dont send the smsg_addon_info) all is in perfect order, cmsg_ping is handled. And if i go one step further everything gets out of control. Serverpackets have no effect, clientpackets are nonsense.
My first thinking was, that i may have messed up with the key of AuthCrypt, but this one stays the same all the time, so it cant be, that i changed it. Im working on that shit now since about 1 week and i still have no clue, why this all is happening.
Here is what i do:
---Logonserver:
- authenticating and saving the sessionkey
- displaying the realms
--World
- sending auth_challenge with random seed
- handling cmsg_auth_session
- asking logonserver for sessionkey
- initalising AuthCrypt
- sending smsg_auth_session
- sending smsg_addon_info
- handling cmsg_char_enum (that is decrypted well)
- ??
It would be really nice, if someone could help me out with that last little step.
Greetings
Cromon