PHP Code:
Client Hangs on black screen with no loading bar.
This problem occurs on patches 5174 and higher that use the RC5 seed packet (1059). If the client hangs here and the server is not receiving any packets, that's because the client is waiting on the 1059 packet. It needs the packet to correctly encrypt the password (in patches before 5532). The packet is still sent on the current patch for no reason.
PHP Code:
Client hangs on "Logging into the game server".
If the client hangs here, then the DH Key Exchange wasn't handled correctly, and packet 1052 was never received. This might also be a problem with the game cipher. If you first receive a packet other than the authentication receive packet (1052) after receiving the exchange data, then most likely, your game cipher or exchange is invalid or out of date. This could also be the result of not sending "ANSWER_OK" to the client. It's waiting for that message.