Skript broken / not working

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Jul 16, 2020
30
2
8
18
Like, skript wont like load the skripts... Its so annoying
Code:
[16:40:44 INFO]: GamerProPlaysYT issued server command: /sk reload core
[16:40:44 ERROR]: #!#!
[16:40:44 ERROR]: #!#! [Skript] Severe Error:
[16:40:44 ERROR]: #!#! Could not load core.sk
[16:40:44 ERROR]: #!#!
[16:40:44 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[16:40:44 ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/
[16:40:44 ERROR]: #!#! and check whether this error has already been reported.
[16:40:44 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,
[16:40:44 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[16:40:44 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[16:40:44 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[16:40:44 ERROR]: #!#!
[16:40:44 ERROR]: #!#! Stack trace:
[16:40:44 ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for lambda
[16:40:44 ERROR]: #!#!     at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:242)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1375)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1096)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:216)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:171)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:316)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:398)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1117)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1108)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1069)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1108)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1069)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:216)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:171)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.lang.Statement.parse(Statement.java:60)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:650)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:510)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:268)
[16:40:44 ERROR]: #!#!     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:155)
[16:40:44 ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[16:40:44 ERROR]: #!#!     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
[16:40:44 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
[16:40:44 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162)
[16:40:44 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[16:40:44 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[16:40:44 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[16:40:44 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[16:40:44 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[16:40:44 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[16:40:44 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[16:40:44 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[16:40:44 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[16:40:44 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[16:40:44 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[16:40:44 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:823)
[16:40:44 ERROR]: #!#!
[16:40:44 ERROR]: #!#! Version Information:
[16:40:44 ERROR]: #!#!   Skript: 2.2-SNAPSHOT
[16:40:44 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[16:40:44 ERROR]: #!#!   Minecraft: 1.8.8
[16:40:44 ERROR]: #!#!   Java: 1.8.0_265 (Eclipse OpenJ9 VM openj9-0.21.0)
[16:40:44 ERROR]: #!#!   OS: Linux amd64 5.4.0-53-generic
[16:40:44 ERROR]: #!#!
[16:40:44 ERROR]: #!#! Running CraftBukkit: false
[16:40:44 ERROR]: #!#!
[16:40:44 ERROR]: #!#! Current node: play raw sound "note.pling" at player with pitch 0.5 volume 2 (core.sk, line 9)
[16:40:44 ERROR]: #!#! Current item: null
[16:40:44 ERROR]: #!#!
[16:40:44 ERROR]: #!#! Thread: Server thread
[16:40:44 ERROR]: #!#!
[16:40:44 ERROR]: #!#! End of Error.
[16:40:44 ERROR]: #!#!
[doublepost=1605283810,1605282124][/doublepost]Why is it always that I NEVER GET HELP ON EVERYTHING
 
Could you run through the code or could you paste "core.sk" in the description? Ty.
 
Its like 2000 lines of code...
Btw, wverytime I try skript and try to make something on a custom server, it never works
Could we have a look at the code? or a paste bin of the entire code? what part isn't working?
What did you do that caused this to occur?
 
1. Sure 2. Every part 3. Nothing
I use the same skript on a playerserver on cubedcraft and it works on cubedcraft
[doublepost=1605545886,1605545798][/doublepost]https://pastebin.com/Rv2zHNTn
Use skquery or update your skquery.

Also the code 'stop' should really be replaced with cancel event.
Code:
on portal enter:
    if "%player's world%" is "bedwars":
        stop
This code should be replaced.
Code:
on click:
    if name of event-item is "&cProfile":
        if "%player's world%" is not "bedwars":
            message "&fUnknown command. Type ""/help"" for help." to player
        else:
            player command "profile"
(Replace the message with remove item or something idk)
 
1. Sure 2. Every part 3. Nothing
I use the same skript on a playerserver on cubedcraft and it works on cubedcraft
[doublepost=1605545886,1605545798][/doublepost]https://pastebin.com/Rv2zHNTn
If the code above (with skquery) doesn't work, then it might be your current skript version.

What skript version do you have and what addons and their versions?
[doublepost=1606035136][/doublepost]It seems like a great skript. But I have few pieces of advice for you.

1. Split the skripts up in different files. Unless you're just showing them in one Pastebin :emoji_wink:
2. You have MANY every second loop all players. That can cause a lot of lag. Unnecessary lag.
  • 1. I see you have play time. Use time instead.

Code:
set {firsttimeplayed.%uuid of player%} to now
wait 10 seconds
send "time played: %difference between now and {firsttimeplayed.%uuid of player%}%"

#Outputs 'time played: 10 seconds'
  • 2. Change updates to functions (If u know functions) or at least put the code at the event. e.g at on break of iron ore:
3. Use better variables. Change from %player% and %loop-player% to uuid of loop-player.
Use more specific variable names:
From e.g {h.%uuid of loop-player%} to {playerinfo.%uuid of loop-player%.playtime.hours} and {playerinfo.%uuid of loop-player%.playtime.minutes} and so on
 
Trailing off what Marsbar said, i believe you can use an expression for the playtime of a player. I believe the correct usage is "player's time played"

Also related to the question, the skript and server version are in the stack trace
Code:
[16:40:44 ERROR]: #!#!   Skript: 2.2-SNAPSHOT
[16:40:44 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[16:40:44 ERROR]: #!#!   Minecraft: 1.8.8
 
Trailing off what Marsbar said, I believe you can use an expression for the playtime of a player. I believe the correct usage is "player's time played"

Also related to the question, the skript and server version are in the stack trace
Code:
[16:40:44 ERROR]: #!#!   Skript: 2.2-SNAPSHOT
[16:40:44 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[16:40:44 ERROR]: #!#!   Minecraft: 1.8.8
Oh, yea. I meant the specific skript version. Like skript 2.2 dev 36. It's because I've had errors with the wrong plugin. But my friend gave me another working skript 2.2 dev 36.
 
The version of skript if you're using a 1.8 server, should be skript 2.2dev36, update to that and try using skquery. If that doesn't work there's something wrong with your skript plugin.
 
Status
Not open for further replies.