Update: Three Clients

Today I tested the program with three clients on the server at once. The program functioned fairly well with only one major issue. The bug was in the train data that was being sent from the server to the third client. When collecting the train data I accidentally wrote message = train.getData() instead of message += train.getData() so for 2 trains it works fine but for 3 or more only the newest train was being sent. With this fixed I was able to spawn the trains in the right spots and get things moving in the right way for the most part. There are occasional issues where one train misses a message from the server and so it is no longer simulating the same as the others but this should be easy to fix if I just send the message a few times. Given how low on time I am (Thursday presentations are tomorrow) I think I will not make the change just to prevent any catastrophic issues from occurring right before I have to prepare to present.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

css.php