Roles

The role someone has on TruckersMP heavily influences the data we collect. Therefore, we've implemented a new system to detect role changes automatically.

The Old System

Our old system required us to manually add/update roles using a web form. This system was slow and in effective as it required someone to manually review the forum for role changes and then to use the form to perform an update.

The New System

Our new system checks roles when someone leaves a server. This system, therefore, means that, providing players play, we'll always know exactly what role they have. This new system does come with limitations. Specifically, we can only check player roles upon a player leaving a server. It'd be inefficient to examine roles regularly as a player plays, as that'd lead to regular API requests in excess of 6,000. Additionally, this system relies on people connecting to a server at least once. Meaning we're unable to automatically track those players who don't connect - though, this is a low number. This system is designed to detect team changes, and not to track general players. As such, the roles of normal players will not be stored nor tracked beyond what is necessary for other trackers. Roles may be cached for polling purposes - regardless of role. Cached roles & steam ids are deleted upon the player/user disconnecting from a server. We, via this tracker, will collect and store your information if any of the following circumstances occur:

  • You've recently been promoted to a new role

  • You've recently been demoted (but still remain in the team)

We, via this tracker, will delete any record of you used in conjunction with this track if any of the following circumstances occur:

  • You've recently been removed from the staff team

  • You've recently left the staff team entirely

We use the data collected to provide our admin-oriented statistics, know who is currently a staff member and populate our "currently online" lists/tables.

Cycles - how often the service/system runs

Our system completes one cycle every 10 seconds. This would mean that our system completes 60 cycles a minute and 3,600 cycles an hour. At peak times, the time between cycles may increase.

Last updated