#How to sync a list<string>variable

1 messages · Page 1 of 1 (latest)

gray cedar
#

I need to sync a list of strings, but i also need to be able to edit the list with a List Add.

muted anvil
#

Painfully and with alot of networking heat

#

Anytime you need to make a change to the variable you must send that change to everyone

#

The most complicated part comes from syncing the list for players who have just joined

gray cedar
#

ill give it a shot

muted anvil
#

What happens if that player is frozen/crashes when that player joins? that data never gets synced and thus the player who joined never receives the data

gray cedar
#

the list doesnt need to be synced with anyone that joins in the future

#

just with the current players

muted anvil
queen valve
trail jacinth
#

Can’t you just use even receivers?

rustic pecan
muted anvil
#

With a synced variable or synced component, the only way to change them is via its chips, eg. a variable being set by the variable, or piston speed being set by Piston Set Speed

But, with a list variable, not only does it need to be synced after setting the variable, it also needs to be synced after modifying it with something like List Add