GithubHelp home page GithubHelp logo

Comments (16)

TeddyC400 avatar TeddyC400 commented on July 2, 2024 1

You could make a simple command that reloads all scripts one by one for now until there is a fix.

from tuske.

jaylawl avatar jaylawl commented on July 2, 2024 1

@whitec4 that's super smart, just did that. thanks for the heads up!

In case anyone else could use this (requires SkUtilities):

options:
    directory : /home/elseland/servers/jaygrounds/plugins/Skript/scripts

command /srs:
    trigger:
        loop files in dir including sub dirs "{@directory}":
            "%loop-value%" contains ".sk"
            set {_file} to "%loop-value%"
            replace "{@directory}" in {_file} with ""
            make player execute command "skript reload %{_file}%"

from tuske.

Tuke-Nuke avatar Tuke-Nuke commented on July 2, 2024 1

Fixed it in latest dev build, please test it first to make sure it is really fixed (or any new issue).

from tuske.

Blueyescat avatar Blueyescat commented on July 2, 2024

βœ… Confirmed with latest 1.12.1 PaperSpigot, Skript 2.2-dev29 and TuSKe 1.8.2 dev.4.
/sk reload scripts (/sk reload all does the same) breaks it. Tried with more than one skript files or just 1 skript, still reloading all scripts breaks it. There is no problem with reloading aliases or config. But still you shouldn't use /sk reload all/scripts πŸ™‚ /sk reload <skript name>

By the way, your TuSKe version is old.

from tuske.

jaylawl avatar jaylawl commented on July 2, 2024

@Blueyescat but i tested it with both TuSKe latest stable (1.8.1) and the dev-4 ^^ is there any other version i haven't discovered yet?

"skript reload all" is super handy though ^^ can't really live without it, could you?

from tuske.

JRoy avatar JRoy commented on July 2, 2024

@jaylawl just reload one skript at a time, no big deal....

from tuske.

jaylawl avatar jaylawl commented on July 2, 2024

@WheezyGold7931 it kinda is because having to type out all the script names can be very time consuming if your scripts are sorted into various sub-folders (which is inevitable with growing amounts)

just got this error while further messing around with the issue:

[15:56:49 ERROR]: #!#! at ch.njol.skript.SkriptEventHandler.check(Skrip
[15:56:49 ERROR]: #!#! at ch.njol.skript.SkriptEventHandler$1.execute(S
[15:56:49 ERROR]: #!#! at co.aikar.timings.TimedEventExecutor.execute(T
[15:56:49 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEven
[15:56:49 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.fireEve
[15:56:49 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEve
[15:56:49 ERROR]: #!#! at org.bukkit.craftbukkit.v1_12_R1.event.CraftEv
[15:56:49 ERROR]: #!#! at net.minecraft.server.v1_12_R1.EntityPlayer.cl
[15:56:49 ERROR]: #!#! at org.bukkit.craftbukkit.v1_12_R1.entity.CraftH
[15:56:49 ERROR]: #!#! at ch.njol.skript.effects.EffOpenInventory.execu
[15:56:49 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52
[15:56:49 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerI
[15:56:49 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerI
[15:56:49 ERROR]: #!#! at com.github.tukenuke.tuske.util.EffectSection.
[15:56:49 ERROR]: #!#! at com.github.tukenuke.tuske.sections.gui.EffMak
[15:56:49 ERROR]: #!#! at com.github.tukenuke.tuske.manager.gui.v2.GUII
[15:56:49 ERROR]: #!#! at com.github.tukenuke.tuske.listeners.GUIListen
[15:56:49 ERROR]: #!#! at com.github.tukenuke.tuske.manager.gui.v2.Skri
[15:56:49 ERROR]: #!#! at ch.njol.skript.SkriptEventHandler.check(Skrip
[15:56:49 ERROR]: #!#! at ch.njol.skript.SkriptEventHandler$1.execute(S
[15:56:49 ERROR]: #!#! at co.aikar.timings.TimedEventExecutor.execute(T
[15:56:49 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEven
[15:56:49 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.fireEve
[15:56:49 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEve
[15:56:49 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnectio
[15:56:49 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PacketPlayInWin
[15:56:49 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PacketPlayInWin
[15:56:49 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnectio
[15:56:49 ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapte
[15:56:49 ERROR]: #!#! at java.util.concurrent.FutureTask.run(FutureTas
[15:56:49 ERROR]: #!#! at net.minecraft.server.v1_12_R1.SystemUtils.a(S
[15:56:49 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer
[15:56:49 ERROR]: #!#! at net.minecraft.server.v1_12_R1.DedicatedServer
[15:56:49 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer
[15:56:49 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer
[15:56:49 ERROR]: #!#! at java.lang.Thread.run(Thread.java:748)
[15:56:49 ERROR]: #!#!
[15:56:49 ERROR]: #!#! Version Information:
[15:56:49 ERROR]: #!#! Skript: 2.2-dev30d
[15:56:49 ERROR]: #!#! Bukkit: 1.12.1-R0.1-SNAPSHOT
[15:56:49 ERROR]: #!#! Minecraft: 1.12.1
[15:56:49 ERROR]: #!#! Java: 1.8.0_131 (Java HotSpot(TM) 64-Bit Server VM
[15:56:49 ERROR]: #!#! OS: Linux amd64 4.10.0-20-generic
[15:56:49 ERROR]: #!#!
[15:56:49 ERROR]: #!#! Running CraftBukkit: false
[15:56:49 ERROR]: #!#! Running Spigot (or compatible): true
[15:56:49 ERROR]: #!#! Running Paper (or compatible): true
[15:56:49 ERROR]: #!#!
[15:56:49 ERROR]: #!#! Current node: null
[15:56:49 ERROR]: #!#! Current item: delete/clear last gui
[15:56:49 ERROR]: #!#! Thread: Server thread
[15:56:49 ERROR]: #!#!
[15:56:49 ERROR]: #!#! Language: english
[15:56:49 ERROR]: #!#! Link parse mode: DISABLED
[15:56:49 ERROR]: #!#!
[15:56:49 ERROR]: #!#! End of Error.
[15:56:49 ERROR]: #!#!

from tuske.

Tuke-Nuke avatar Tuke-Nuke commented on July 2, 2024

Since when you noticed that issue? After updating tuske, server, skript...?

from tuske.

Spiralexe avatar Spiralexe commented on July 2, 2024

I reported this via pm's but v25 of skript issue doesn't exist I updated to v29 of skript and server version 1.12 and 1.12.1 the issue exists and also affects skquery gui's

[18:39:56 INFO]: TuSKe version 1.8.1,
I will try the latest version of tuske now

from tuske.

Spiralexe avatar Spiralexe commented on July 2, 2024

O wow this is intresting after ./skript reload all
it seems all your syntax of tuske have been unregistered

because now the console just tells me cant understand all your gui manger syntaxs

when I had 0 errors befor the reload all

same with skquerys gui stuff

[18:51:26 INFO]: TuSKe version 1.8.2-dev.4
minecraft 1.12.1
skript v29

from tuske.

jaylawl avatar jaylawl commented on July 2, 2024

i didnt update between minecraft versions 1.10 and now, 1.12.1 and their respective plugin versions - that's propably not helping the cause

from tuske.

Spiralexe avatar Spiralexe commented on July 2, 2024

what was the issue? b/c skquery will need to fix it aswell

from tuske.

Spiralexe avatar Spiralexe commented on July 2, 2024

it seems fixed nice

from tuske.

Tuke-Nuke avatar Tuke-Nuke commented on July 2, 2024

It looks like the issue is not related to new Skript updates, I think it should be there since gui manager remake. I don't know SkQuery's code but that's certainly a thing that won't be fixed.
The issue was that the gui listener was registered only once it was first used, but when you run /sk reload all/scripts, it disables that listener and doesn't register it again cause it thinks it still working.
I just used some Skript API methods to let me know when Skript will reload all scripts, so I can properly handle that.

from tuske.

jaylawl avatar jaylawl commented on July 2, 2024

Using dev6 this issue appears to be fully fixed, thanks for your time TukeNuke its appreciated! :)

from tuske.

Tuke-Nuke avatar Tuke-Nuke commented on July 2, 2024

Closing since it is fixed, thank's for reporting.

from tuske.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.