Multiplayer icon indicating copy to clipboard operation
Multiplayer copied to clipboard

Public execution causes desync

Open FSanta opened this issue 3 years ago • 2 comments

As soon as the public execution dialog is opened, remote clients desync.

Playing with: Harmony Core Royalty Ideology Multiplayer HugsLib Stack XXL CM Color Coded Mood Bar [1.1+]

Thank you for any help!

FSanta avatar Sep 23 '22 21:09 FSanta

I think I see where the issue may lay. Seems that execution is using PreceptComp_UnwillingToDo_Chance, which is using RNG inside of the Dialog_BeginRitual. Seems it will need to become seeded. Looking into it right now.

I believe patching the constructor for Dialog_BeginRitual should be the way to handle this, as other mods may possibly use RNG inside of their PreceptComps - which is what may be happening with Alpha Memes and the funerals it added (just a speculation here).

SokyranTheDragon avatar Oct 14 '22 20:10 SokyranTheDragon

More info - this only happens if any valid pawn has any of those 2 precepts:

Marriage name: Usually woman's Marriage name: Usually man's

SokyranTheDragon avatar Oct 14 '22 23:10 SokyranTheDragon

Fixed by #307

SokyranTheDragon avatar Oct 31 '22 15:10 SokyranTheDragon