So I decided to make a simple 2d mmorpg just for the lulz. Don't tell me it's hard. Don't tell me noone will play it. I am making it for myself and the fun of it.
Now comes the problem. I am using Slick2d for the client and I have a W-key pressed event which sends the server a request to move.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | @Override |
| 1 2 3 4 5 6 | public MoveRequestHandler(Client client, float x, float y) { |
Now when the server received the MoveRequest packet it does a few checks and sends back an answer.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | public void received(Connection c, Object o) { |
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | public MoveRequestHandler(Connection c, Object o) { |
Here is the client received() code. I even made a log for ANY class that is received. No sign of any packet...
| 1 2 3 4 5 6 7 8 9 | public void received (Connection connection, Object object) { |
here is my client code
here is my server code
here is the NetworkListener class. there is an exact copy of that for client too
What is amazing me is that LoginRequest and LoginAnswer packets are working without any sign of problem, yet MoveAnswer is not received even they are written the same way.
Hope anyone can enlighten me.
EDIT: Forgot about the debug logs, sorry. here they are.
server log
clientlog


