Desync on player join

This subforum contains all the issues which we already resolved.
User avatar
Mylon
Filter Inserter
Filter Inserter
Posts: 525
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

Desync on player join

Post 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.
Attachments
factoriorpg 1.1.0.zip
(1.51 MiB) Downloaded 40 times
User avatar
Mylon
Filter Inserter
Filter Inserter
Posts: 525
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

Re: Desync on player join

Post 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
Post Reply

Return to “Resolved Problems and Bugs”