You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The game only stores the session on the client side. There needs to be a persistent state of the world.
What needs to be done
Store client data (per IP address) on the server. When a client reconnects, read the data in and load it.
How to do it
When a client first joins, create a new file for storing position. Write to the file periodically, and when the player disconnects. If a player joins and a corresponding IP data file is present, use the data (position) for initialization.
The text was updated successfully, but these errors were encountered:
Background
The game only stores the session on the client side. There needs to be a persistent state of the world.
What needs to be done
Store client data (per IP address) on the server. When a client reconnects, read the data in and load it.
How to do it
When a client first joins, create a new file for storing position. Write to the file periodically, and when the player disconnects. If a player joins and a corresponding IP data file is present, use the data (position) for initialization.
The text was updated successfully, but these errors were encountered: