Closed Luckyme66 closed 5 years ago
are you saying this is a problem?
I know, but it doesn't allow the four to then talk to it.
In my chat app, 4 can connect and talk fine
Yeah, it's because I changed some stuff
If you run it in powershell instead of the python terminal, then it doesn't end the script but the '4players' message still doesn't send.
Looking at the gameserver code now, I feel like I can see multiple errors that prevent it from running
Surely it doesn't send the 4players message because it runs into an error before that
Yup. I haven't really tried to solve the problem in more ways than messing around with a few things. It's nearly solved now (I hope).
I don't know what you've updated offline, if len(clients) >= 4: else: for sock in clients: sock.send(bytes('PickOrder,askinput','utf8')) order = sock.recv(buffer).decode(utf8) break Client.broadcast('4players','event')
but the indentation is messed up
I was midway through editing that. Yeah, that was broken. The next time I commit that should be fixed.
When four connections are made, the server tops listening: for new connections or for messages from the old ones. It stops sending as well. I just shuts down.