Page 1 of 1

Desync on player join

Posted: Sun Jul 02, 2017 12:11 pm
by Mylon
My scenario seems incompatible with v15.26. Players can't connect at all.

Desync report says there's a different seed and I see fish in different positions.

To recreate:
Host server with scenario.
Choose far spawn
Have another player join server.
Triple desync.

Attached is the scenario, a desync report, and the save.

Edit: I turned off oarc_events.lua and the instant desyncs are gone. Some something in one of those files is causing the issue.

Re: Desync on player join

Posted: Sun Jul 02, 2017 12:35 pm
by Mylon
Found the bug. Calling math.random() outside of of a function:

295: oarc_config.lua

Code: Select all

MAP_SETTINGS_RSO_SEED = math.random(999999999) -- Default is randomized map