henpemaz / Rain-Meadow

Rain World multiplayer engine and custom game mode
138 stars 20 forks source link

Story: sync savestate string #289

Open youbitchoc opened 1 month ago

youbitchoc commented 1 month ago

fixes echoes and consumables

savestate string is ~15kb, can be compressed to ~3.7kb (3.4kb if we convert separators to ascii control chars) only has to be synced on worldsession join

may cause duped creature spawns? though this seems to be a symptom of a bigger issue since clients shouldn't be allowed to spawn creatures in the first place

explicitly syncing all the relevant data (consumables, echoes, passages?, no need for creature spawns) thru onlinefields would be more efficient, did some progress in #267 (consumables) and #279 (echoes WIP)

but imo this is safer

6fears7 commented 1 week ago

Can this be closed or still pondering?

youbitchoc commented 1 week ago

it's a good catch-all for dlc and mod compat