All I did so far is taking client and server files from this network tutorial and include them.
It seems to work and the client seems to connect to server although something looks like not working well.
I have no idea what I am doing wrong, so here is the code. I hate to be this newbie but- what am I doing wrong?
It doesn't seem to send nor receive any data. It should print players connected and the total amount for server and client (#world) but it stays zero no matter how many connect.
Something looks like not working well?
I can't understand the problem. I'm sure if you describe your situation in further detail, the members of this forum can help you out, though.
(Off topic: Oh god. 69th post.)
"I view Python for game usage about the same as going fishing with a stick of dynamite. It will do the job but it's big, noisy, you'll probably get soaking wet and you've still got to get the damn fish out of the water." -taylor
NightKawata wrote:Something looks like not working well?
I can't understand the problem. I'm sure if you describe your situation in further detail, the members of this forum can help you out, though.
I'm not familiar with UDP, but as much as i know, it's not very good to games because there is the risk of data loss, i think you should use TCP instead...
But out of this discussion of tcp vs udp, you only do settimeout(0) after the connection, otherwise it will not connect.
batatinha wrote:I'm not familiar with UDP, but as much as i know, it's not very good to games because there is the risk of data loss, i think you should use TCP instead...
But out of this discussion of tcp vs udp, you only do settimeout(0) after the connection, otherwise it will not connect.
tl;dr: TCP has huge disadvantages for realtime game networking. You'll typically want UDP with a layer on top so you can optionally send reliable/ordered packets when needed (which may be less often than you think.)
batatinha wrote:I'm not familiar with UDP, but as much as i know, it's not very good to games because there is the risk of data loss, i think you should use TCP instead...
But out of this discussion of tcp vs udp, you only do settimeout(0) after the connection, otherwise it will not connect.
But it does connectithink cause if I connect and close the server it gives a connection lost error.