Saving script variables in "cloud"?
Moderator: English Moderator
- Dommy
- Translator
- Posts: 1866
- Joined: 25 Aug 2011, 21:45
- Manialink: exchange
- Location: Poland
- Contact:
Saving script variables in "cloud"?
So, if you use custom ui library you can customise your interface and it saves all settings. My question is: can we save our own variables like custom ui does? If yes - how?
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
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT
Contact me via GALAXY & PURSUIT DISCORD
- Nerpson
- Translator
- Posts: 1554
- Joined: 27 Sep 2013, 18:02
- Manialink: nerpson
- Location: France
- Contact:
Re: Saving script variables in "cloud"?
I think yes if you can load a page with your content in a GET variable, you will be able to recover it with another link. If you can, don't forget a password in order to let only your server change your variables.
EX:
It's what i would do, not sure it works. In all cases, it's handcrafted method 
EX:
Code: Select all
http://script.my-website.com/variables/send.php?name=variable_name&password=password
http://script.my-website.com/variables/get.php?name=variable_name

Re: Saving script variables in "cloud"?
i think it's rather using the local user profile and not a cloud, did you validate that?
@see
http://forum.maniaplanet.com/viewtopic. ... 79&t=28048
@see
http://forum.maniaplanet.com/viewtopic. ... 79&t=28048
Re: Saving script variables in "cloud"?
Variables declared as "persistent" in a manialink script will be saved in the player profile and that's what the CustomUI library does. These variables will be reloaded after a game restart with their latest value. You can declare persistent variable on various classes: CUser, CMap, CMlScript, CMode.
You can check this topic for some explanations. Or take a look into the CustomUI or EliteStats libraries.
You can check this topic for some explanations. Or take a look into the CustomUI or EliteStats libraries.
- Dommy
- Translator
- Posts: 1866
- Joined: 25 Aug 2011, 21:45
- Manialink: exchange
- Location: Poland
- Contact:
Re: Saving script variables in "cloud"?
okay, so if i fun server with persistent class it will save its variable on my profile, but when im on dedicated one? will this save variable on server account?
anyway can confirm that works, thanks
SETTINGS ON MANIALINKS :O
EDIT: and if i use ingame manialink script i can move variables between servers? such powerfull
(ofc with netwrite/netread too)
anyway can confirm that works, thanks

SETTINGS ON MANIALINKS :O
EDIT: and if i use ingame manialink script i can move variables between servers? such powerfull

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
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT
Contact me via GALAXY & PURSUIT DISCORD
Re: Saving script variables in "cloud"?
Nadeo called this feature "script cloud", I'm interested by this one toodomino54 wrote:EDIT: and if i use ingame manialink script i can move variables between servers? such powerfull(ofc with netwrite/netread too)

Any informations concerning script cloud ?
- djhubertus
- Translator
- Posts: 1097
- Joined: 09 Jul 2012, 18:30
- Location: Poland
- Contact:
Re: Saving script variables in "cloud"?
So, we can't use persistent variables in scripts but only in manialinks, right? That's bad cause I need to build special manialink layer for data transfer(from persistent to global).Eole wrote:Variables declared as "persistent" in a manialink script will be saved in the player profile
My Gamemodes:
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
Re: Saving script variables in "cloud"?
Yes persistent variables are saved in player profile so if you change servers the data is still there.spaii wrote:Nadeo called this feature "script cloud", I'm interested by this one toodomino54 wrote:EDIT: and if i use ingame manialink script i can move variables between servers? such powerfull(ofc with netwrite/netread too)
![]()
Any informations concerning script cloud ?
We have been using this feature in expansion to save custom widget settings of users and it works great
But note that persistent variables can cause the script to slow down sometime you should try and cache the values and check for change every X second.

Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
Re: Saving script variables in "cloud"?
Persistent variables can also be declared in game mode script. Basically a persistent variable will be saved where the script runs :djhubertus wrote:So, we can't use persistent variables in scripts but only in manialinks, right? That's bad cause I need to build special manialink layer for data transfer(from persistent to global).
- On the server if declared in game mode script.
- On the client if declared in ManiaLink script.
- Dommy
- Translator
- Posts: 1866
- Joined: 25 Aug 2011, 21:45
- Manialink: exchange
- Location: Poland
- Contact:
Re: Saving script variables in "cloud"?
Is it possible to use persistent data in ManiaLink (browser)? Would be useful 

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
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT
Contact me via GALAXY & PURSUIT DISCORD
Who is online
Users browsing this forum: No registered users and 1 guest