-
-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.14 - Local variables disappear in the same trigger #2316
Comments
Skript is not designed to work asynchronously from the main thread. Skungee has the same issue. You have to either set it again from an effect of the addon (which is what Skungee does to handle local variables asynchronously) or use global variables (the ones without the _) This is not a new bug either, as this has been present since the Could be fixed by a database recode which bensku and the team have been meaning to do for awhile. Maybe we could use H2 over SQLite for multi threading potential. |
Yes it is new and started after 237b3dd. Skript devs know about this, addons has to fix that issue themselves. See btk5h/skript-db#14 |
Thank you very much for your quick answer, If I understand correctly it is skript-bd who must solve the problem on his side? |
Kind of duplicate of #1817. This pretty much needs a new variable system to solve. |
Description
Hello, I'm using the skript-bd add-on to be able to use MySql requests in Skript.
But since Skript 2.4 in 1.14, the local variables disappear when I use a skript-bd's syntax.
This is a Skript issue, because it work fine in Skript 2.2 in 1.12.2. I juste updated Skript and it does not work anymore!
Furthermore, I reported this bug to @btk5h, the skript-bd addon developer. He told me that it is a Skript issue.
I think it is related to thread desynchronization but I don't know myself.
Steps to Reproduce
Expected Behavior
The local value {_test} still has its value, "test" after the SQL request.
Errors / Screenshots
After the request, the value of test {_test} variable is deleted, as you can see:
Server Information
Additional Context
Please fix this bug because it break all my scripts with these syntax.
The text was updated successfully, but these errors were encountered: