Basically, I am trying to accomplish a store that rotates/rolls items every 'n’th in-game day. And I would like the items to be consistent across all servers.
My thought is using messaging service to relay the changes to all servers, and then use DS to save the stores chosen items. All good.
But, what i can’t get past is that I would probably need some dedicated/chosen server (the first server?) that would be checking to see if it is time to roll the store’s items/save them/and then relay to other servers.
This is impractical, it has been proven os.time is not always accurate and keeping all servers in sync is a lot more resources then its worth, given different servers will be lagging differently and therefor will =be naturally out of sync. Your best bet is to preroll stores every IRL hour since thats in sync for everyone.
Right now, no the times are not all synced, but the plan is to move towards that. The plan is to have the ‘chosen’ server save the IRL time and use that as the start of the day (and every subsequent in-game day?), via http request. All other servers would load that time on start up, and make an http request and calculate the time of day based off those two times.