Re: [Solved] [Persitent] Keeping player data across ALL serv
Posted: 18 Jun 2015, 07:51
Declaring a persistent variable for Page or LocalUser will save the value until title pack where its used is uninstalled or profile GBX file is deleted.
Don't use persistent to share statistics across servers directly in mode script, it will save value to server profile on its file system only. Use manialink instead - manialinks are executed on client side, which allows you to store persistent on user side.
Pro tip - in single player both server host and manialink user are using the same profile, so persistent values can be used instead netwrite/netread to share variable between solo mode script and manialink instantly.
Offtop:
@olivierde8: In your script I saw setting variable value with class:
Is it working? I wasn't able to check this ^^.
Don't use persistent to share statistics across servers directly in mode script, it will save value to server profile on its file system only. Use manialink instead - manialinks are executed on client side, which allows you to store persistent on user side.
Pro tip - in single player both server host and manialink user are using the same profile, so persistent values can be used instead netwrite/netread to share variable between solo mode script and manialink instantly.
Offtop:
@olivierde8: In your script I saw setting variable value with class:
Code: Select all
declare Boolean[Text] UserSettings = Boolean[Text];