SteamWorks - Sometimes players get kicked

I enjoy playing this game with my friends through steam. But sometimes, when we build too massive armies, one of the players gets kicked. This happens until only the host is left, and then he wins. I was wondering where I could improve on the game so that players would not be kicked. Is there a limit to the number of game objects that can be present? If so, is the problem with SteamWorks, Mirror or Unity.
I would like to know so that I can fix it. I would like to have lots of units with lots of projectiles.
Thank you for your time.
Jonathan

Hey there, glad your are enjoying the game you made! Your question is interesting, it’s always hard to figure out the exact cause of something like this, as everyone’s internet connection is a little different.
Let’s assume for a second that heavy network traffic is the cause here, so the goal would be to reduce the amount of data transfer over the network.

First of all, make sure any networked objects that are no longer being used are destroyed. So dead units and projectiles etc.
The next thing I would look at, is how often each object is trying to send data. In the RTSNetworkManager, there is a value for Server Tick Rate, which tells the network how often to update. You can try playing with that.
On your transport (KCP has a value called Interval that controls latency as well) there are usually options. I don’t see any options on the FizzySteamWorks object, but maybe you are using a newer version than I that has options.

On your Units, projectiles etc. try playing with the network transform settings. Changing the sensitivity values and sync interval. Again, less data less load on the network.

The final X factor here might be that in the course we are using the development Steam App Id. It’s possible that the game this is tied to has network settings or limitations that cause the games to drop when the traffic is too large. I’m not sure what options there are in this regard. There is a cost to setting up your own Steam App Id. This could be something to look into though.

Finally, I think for this type of issue you might have more luck checking out the Mirror discord channel. People there are more in the weeds of mirror and would be more likely to give you a better answer.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms