0

I'm trying to make a simple server and client with Lidgren. The server is a C# console application and the client is made using XNA. The problem is when the client receives a message from the server, when it reads 2 floats it reads them as 0 (I'm assuming) even though they aren't sent like that.

Server: http://pastebin.com/s2cmBUf3 Client: http://pastebin.com/nrU7KFs8

RontoKing
  • 49
  • 1
  • 6
  • How do I fix it? The server sends 2 floats containing the position the client sent it before but when the client receives it it's always 0 and because of that the box in the client never moves (it's always drawn at 0,0 coordinates). – RontoKing Jul 10 '14 at 13:17
  • I don't understand what could be wrong here... – RontoKing Jul 11 '14 at 22:04
  • Alright, so I added a Thread.Sleep(10) to the server at the end of the while() loop and the box moves on the client's side, but with a huge delay. How do I fix that? – RontoKing Jul 12 '14 at 18:58

0 Answers0