Out of sync & multiplayer mod touching random map

Hey!

I’m new to modding on this game, learning how things works for this game.

Found a way to add what I wanted by making random map to generate a custom trigger that run every 4s to perform action, edited a few random map to include it.

It works locally in skirmish, published, hosted a game, as soon at the game start we got the infamous out of sync error.

While making a custom scenario/map, including the same trigger works just fine, even with friend overseas with 200+ms latency!

If you have any insights, please share

Trigger looks like this:


rule _urdShareResources
minInterval 4
active
runImmediately
{
   if (((xsGetTime() - (cActivationTime / 1000)) >= 2))
   {
     ..my XS code....
   }
}

I’ve picked this from the editor generator trigger that I’ve extracted from the temptrigger file which was working just fine :person_shrugging:

Thanks!