Saving script variables in "cloud"?

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

User avatar
BigBang1112
Posts: 388
Joined: 20 Jul 2015, 12:44
Location: Czech Republic
Contact:

Re: Saving script variables in "cloud"?

Post by BigBang1112 »

Yes, as Domino said, that would be really cool to have.
Is there any way to save data from offline manialinks?
Creator and competent racer. YouTube Discord
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Saving script variables in "cloud"?

Post by Eole »

What are you calling an "offline manialink"? If it's a manialink displayed in the browser as mentioned by Domino, then no, there's no way to save data on the client side reliably.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
Dommy
Translator
Translator
Posts: 1866
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: Saving script variables in "cloud"?

Post by Dommy »

Actually false, as I learned much since I posted this topic, it's possible to save client side data on any manialink. For example, open manialink exchange, type something in the search box and re-open manialink.

Moreover, some important information about persistence:
- You can save only primitive types of data, with exception of Ident.
- Persistent declared for nothing and LocalUser will be accessible from any other script. Persistent declared for Page remain only within a single manialink address.
- Persistent variables are shared only within a title pack.
- On ingame servers, persistent variables declared in the mode can be accessed in mode manialinks, but only for the host.
- On dedicated servers, persistent variables are only available in the mode, and mode manialinks are completely independant.
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 3 guests