Hey this ive been workin on this multiplayer game for the past week… Not much to do yet u just walk around and can chat… However i think the classes could be usable by anyone else wanting to make a multiplayer game so thats why im posting it…
At run the client is frozen for 10 seconds as it unsucessfully atempts to connect.
Error: Unable to open TCP connection to server 192.168.2.13 on port 9099
The lack of connection does not terminate the program like it should. The program continues loading and eventually crashes with TypeError: ConnectionWriter.send() argument 2 must be Connection, not NoneType
Thanks for your attempt at contributing however your code is far from ready for the public. (tested on Vista)
Ah my bad left the code specified to my ip… Go to main.py and change the ip to 127.0.0.1 in the assignment of the client class and start the server first
NOTE:the server must already be running on the ip u specify for the client to start
The code is plenty ready for the public… or at least this public…
its just meant to help anybody out who is trying something like this
Not to mention the program is based on a client/server connection so you are going to have to fiddle with the addresses to make it work on your machine
Thank you very much for this! I just tried it out, edited the IP, and works great
Question, why does the chat cancel out when I type T?
Also, I don’t know if it’s just me, but I’m getting like, a 30 second chat lag or greater on local server 127.0.0.1, any idea what that might be?
hey raz,
the chat cancels out when you press ‘t’ cuz i was experimentin with sum stuff… ill post up the updated version soon… for now just dont press t lol… as for the lag i imagine it has sumthin to do with the framerate cuz u are running the server and client
This is a great example and I think that it should be put into the samples however before that the lag needs to be decreased. When running over my wireless network it is a good second before it is updated on other clients and when it is it isn’t smoothly. Maybe you could apply some sort of slow parent to make it look more smooth.