Hey! i need some help
I am currently having some issues due to storage in skript.
What i am trying to achieve is to have 1 million+ variables loaded in to skript but i realised if i have that many variables the server won't even complete the startup .
So i am creating a work around. These variables are all temperary variables generated by a formula but need to be able to be called at any given moment without a big delay. So i want to store them in variables. So i have edited the skript config to have an additional CSV file for this and wenn the script gets loaded it will define all the variables in the additional CSV file. so the server can startup. But here is the problem the file where all these variables are in needs to be deleted or else the server won't launch with skript i can only recieve an event wenn all variables are already loaded as you can see here:
so does anyone have a idea to be able to delete this file before skript loading.
i have seen this in the config of skript i don't understand it but maby one of you might.
I am currently having some issues due to storage in skript.
What i am trying to achieve is to have 1 million+ variables loaded in to skript but i realised if i have that many variables the server won't even complete the startup .
So i am creating a work around. These variables are all temperary variables generated by a formula but need to be able to be called at any given moment without a big delay. So i want to store them in variables. So i have edited the skript config to have an additional CSV file for this and wenn the script gets loaded it will define all the variables in the additional CSV file. so the server can startup. But here is the problem the file where all these variables are in needs to be deleted or else the server won't launch with skript i can only recieve an event wenn all variables are already loaded as you can see here:
code_language.skript:
> [12:06:44 INFO]: [Skript] Loading variables...
> [12:06:44 INFO]: [Skript] Loaded 1 variables in 0.0 seconds
> [12:06:45 INFO]: NOW!!!
so does anyone have a idea to be able to delete this file before skript loading.
i have seen this in the config of skript i don't understand it but maby one of you might.
code_language.skript:
# PS: If you don't want some variables to be saved in any database (e.g. variables that contain an %entity% which usually despawn when the server is shut down)
# you can modify the last database's pattern to not match all variables, e.g. use '(?!x_).*' to match all variables that don't start with 'x_'.
# Be very cautious when doing this however as unsaved variables cannot be recovered after the server has been stopped.
# I recommend to use a single character to denote unsaved variables (similar to local variables' '_'), e.g. '-', in which case the last database's pattern should be '(?!-).*'.