Solved error with size of variable

  • 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.

cheatchki

Supporter ++
Jun 26, 2017
49
1
8
24
for some reason whenever I attempt to use "size of {x::*}" in any scenario it is always failing I've tried with number list, string list, mixed list. I've tried using various variable names both temporary and permanent ones, but for some reason the size function is not working. along side that the alternate ways you can use it such as amount of are also failing to work. It says their is an internal error and this comes out in console
7:56:32 AM

Cheatchki issued server command: /temp
7:56:32 AM

Cheatchki [f4af4750-eadf-4fb3-8557-fdb3684da9d8]: /temp
7:56:32 AM [SEVERE] #!#!
7:56:32 AM [SEVERE] #!#! [Skript] Severe Error:
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! Something went horribly wrong with Skript.
7:56:33 AM [SEVERE] #!#! This issue is NOT your fault! You can't probably fix it yourself, either.
7:56:33 AM [SEVERE] #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
7:56:33 AM [SEVERE] #!#! Here is full list of them:
7:56:33 AM [SEVERE] #!#! skRayFall (http://sk.rayfall.net/) SkMorkaz skDragon skUtilities (https://tim740.github.io/) SkStuff MundoSK (https://forums.skunity.com/resources/mundosk.69/) SkQuery Skellett (https://forums.skunity.com/resources/skellett-the-addon-with-a-beast-name.24/) Umbaska SharpSK TuSKe (github.com/Tuke-Nuke/TuSKe)
7:56:33 AM [SEVERE] #!#! We could not identify which of those are specially related, so this might also be Skript issue.
7:56:33 AM [SEVERE] #!#! You should try disabling those plugins one by one, trying to find which one causes it.
7:56:33 AM [SEVERE] #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
7:56:33 AM [SEVERE] #!#! In that case, you will be given instruction on how should you report it.
7:56:33 AM [SEVERE] #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
7:56:33 AM [SEVERE] #!#! Only if the author tells you to do so, report it as Skript issue (url below)
7:56:33 AM [SEVERE] #!#! Issue tracker: https://github.com/bensku/Skript/issues (only if you know what you're doing!)
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! Stack trace:
7:56:33 AM [SEVERE] #!#! ch.njol.skript.SkriptAPIException: Invalid call to getSingle
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.Variable.getSingle(Variable.java:563)
7:56:33 AM [SEVERE] #!#! at com.pie.tlatoani.WorldBorder.ExprPropertyOfBorder.get(ExprPropertyOfBorder.java:69)
7:56:33 AM [SEVERE] #!#! at com.pie.tlatoani.WorldBorder.ExprPropertyOfBorder.get(ExprPropertyOfBorder.java:16)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:104)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.VariableString.toUnformattedString(VariableString.java:470)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.VariableString.getMessageComponents(VariableString.java:485)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.effects.EffMessage.execute(EffMessage.java:86)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:220)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:182)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.command.Commands.handleCommand(Commands.java:269)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:164)
7:56:33 AM [SEVERE] #!#! at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
7:56:33 AM [SEVERE] #!#! at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
7:56:33 AM [SEVERE] #!#! at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
7:56:33 AM [SEVERE] #!#! at java.lang.reflect.Method.invoke(Unknown Source)
7:56:33 AM [SEVERE] #!#! at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
7:56:33 AM [SEVERE] #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
7:56:33 AM [SEVERE] #!#! at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499)
7:56:33 AM [SEVERE] #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1384)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1227)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13)
7:56:33 AM [SEVERE] #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
7:56:33 AM [SEVERE] #!#! at java.util.concurrent.FutureTask.run(Unknown Source)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
7:56:33 AM [SEVERE] #!#! at java.lang.Thread.run(Unknown Source)
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! Version Information:
7:56:33 AM [SEVERE] #!#! Skript: 2.2-dev31c (latest)
7:56:33 AM [SEVERE] #!#! Bukkit: 1.12.2-R0.1-SNAPSHOT
7:56:33 AM [SEVERE] #!#! Minecraft: 1.12.2
7:56:33 AM [SEVERE] #!#! Java: 1.8.0_111 (Java HotSpot(TM) 64-Bit Server VM 25.111-b14)
7:56:33 AM [SEVERE] #!#! OS: Windows 7 amd64 6.1
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! Running CraftBukkit: false
7:56:33 AM [SEVERE] #!#! Running Spigot (or compatible): true
7:56:33 AM [SEVERE] #!#! Running Paper (or compatible): false
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! Current node: null
7:56:33 AM [SEVERE] #!#! Current item: send "%diameter of {temp::*}%" to event-player/console
7:56:33 AM [SEVERE] #!#! Thread: Server thread
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! Language: english
7:56:33 AM [SEVERE] #!#! Link parse mode: DISABLED
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! End of Error.
7:56:33 AM [SEVERE] #!#!


I'm not sure if it is an error with my versions, however I have updated both skript and spigot today to the latest versions. Or it could be that one of the addons I am using is causing this error to be thrown up. here is the example skript I am attempting to use but its not working either

code_language.skript:
command /temp:
    trigger:
        set {temp::*} to 1,2,3,4,5,6 and 7
        message "%size of {temp::*}%"
        delete {temp::*}
Anyone else having this issue? or should I go make a bug report on github

 
for some reason whenever I attempt to use "size of {x::*}" in any scenario it is always failing I've tried with number list, string list, mixed list. I've tried using various variable names both temporary and permanent ones, but for some reason the size function is not working. along side that the alternate ways you can use it such as amount of are also failing to work. It says their is an internal error and this comes out in console
7:56:32 AM

Cheatchki issued server command: /temp
7:56:32 AM

Cheatchki [f4af4750-eadf-4fb3-8557-fdb3684da9d8]: /temp
7:56:32 AM [SEVERE] #!#!
7:56:32 AM [SEVERE] #!#! [Skript] Severe Error:
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! Something went horribly wrong with Skript.
7:56:33 AM [SEVERE] #!#! This issue is NOT your fault! You can't probably fix it yourself, either.
7:56:33 AM [SEVERE] #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
7:56:33 AM [SEVERE] #!#! Here is full list of them:
7:56:33 AM [SEVERE] #!#! skRayFall (http://sk.rayfall.net/) SkMorkaz skDragon skUtilities (https://tim740.github.io/) SkStuff MundoSK (https://forums.skunity.com/resources/mundosk.69/) SkQuery Skellett (https://forums.skunity.com/resources/skellett-the-addon-with-a-beast-name.24/) Umbaska SharpSK TuSKe (github.com/Tuke-Nuke/TuSKe)
7:56:33 AM [SEVERE] #!#! We could not identify which of those are specially related, so this might also be Skript issue.
7:56:33 AM [SEVERE] #!#! You should try disabling those plugins one by one, trying to find which one causes it.
7:56:33 AM [SEVERE] #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
7:56:33 AM [SEVERE] #!#! In that case, you will be given instruction on how should you report it.
7:56:33 AM [SEVERE] #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
7:56:33 AM [SEVERE] #!#! Only if the author tells you to do so, report it as Skript issue (url below)
7:56:33 AM [SEVERE] #!#! Issue tracker: https://github.com/bensku/Skript/issues (only if you know what you're doing!)
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! Stack trace:
7:56:33 AM [SEVERE] #!#! ch.njol.skript.SkriptAPIException: Invalid call to getSingle
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.Variable.getSingle(Variable.java:563)
7:56:33 AM [SEVERE] #!#! at com.pie.tlatoani.WorldBorder.ExprPropertyOfBorder.get(ExprPropertyOfBorder.java:69)
7:56:33 AM [SEVERE] #!#! at com.pie.tlatoani.WorldBorder.ExprPropertyOfBorder.get(ExprPropertyOfBorder.java:16)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:104)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.VariableString.toUnformattedString(VariableString.java:470)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.VariableString.getMessageComponents(VariableString.java:485)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.effects.EffMessage.execute(EffMessage.java:86)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:220)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:182)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.command.Commands.handleCommand(Commands.java:269)
7:56:33 AM [SEVERE] #!#! at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:164)
7:56:33 AM [SEVERE] #!#! at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
7:56:33 AM [SEVERE] #!#! at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
7:56:33 AM [SEVERE] #!#! at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
7:56:33 AM [SEVERE] #!#! at java.lang.reflect.Method.invoke(Unknown Source)
7:56:33 AM [SEVERE] #!#! at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
7:56:33 AM [SEVERE] #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
7:56:33 AM [SEVERE] #!#! at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499)
7:56:33 AM [SEVERE] #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1384)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1227)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13)
7:56:33 AM [SEVERE] #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
7:56:33 AM [SEVERE] #!#! at java.util.concurrent.FutureTask.run(Unknown Source)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
7:56:33 AM [SEVERE] #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
7:56:33 AM [SEVERE] #!#! at java.lang.Thread.run(Unknown Source)
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! Version Information:
7:56:33 AM [SEVERE] #!#! Skript: 2.2-dev31c (latest)
7:56:33 AM [SEVERE] #!#! Bukkit: 1.12.2-R0.1-SNAPSHOT
7:56:33 AM [SEVERE] #!#! Minecraft: 1.12.2
7:56:33 AM [SEVERE] #!#! Java: 1.8.0_111 (Java HotSpot(TM) 64-Bit Server VM 25.111-b14)
7:56:33 AM [SEVERE] #!#! OS: Windows 7 amd64 6.1
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! Running CraftBukkit: false
7:56:33 AM [SEVERE] #!#! Running Spigot (or compatible): true
7:56:33 AM [SEVERE] #!#! Running Paper (or compatible): false
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! Current node: null
7:56:33 AM [SEVERE] #!#! Current item: send "%diameter of {temp::*}%" to event-player/console
7:56:33 AM [SEVERE] #!#! Thread: Server thread
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! Language: english
7:56:33 AM [SEVERE] #!#! Link parse mode: DISABLED
7:56:33 AM [SEVERE] #!#!
7:56:33 AM [SEVERE] #!#! End of Error.
7:56:33 AM [SEVERE] #!#!


I'm not sure if it is an error with my versions, however I have updated both skript and spigot today to the latest versions. Or it could be that one of the addons I am using is causing this error to be thrown up. here is the example skript I am attempting to use but its not working either

code_language.skript:
command /temp:
    trigger:
        set {temp::*} to 1,2,3,4,5,6 and 7
        message "%size of {temp::*}%"
        delete {temp::*}
Anyone else having this issue? or should I go make a bug report on github



it has some interferance with mundosk with the expression: https://www.skunity.com/search?search=Border+Size+of+World#

@Tlatoani can you change your syntax?

 
Didn't realize this was an issue, but after bringing it to the skript bug report, I learnt that Tlatoani has already updated you can find the update link on his post here OR if you have issues finding it here is a link to the beta release made by Tlatoani that adds an option in /plugins/MundoSK/config.yml where you change "border_disable_size_syntax:" from false to true and it will disable the conflict MundoSK brings
 
Didn't realize this was an issue, but after bringing it to the skript bug report, I learnt that Tlatoani has already updated you can find the update link on his post here OR if you have issues finding it here is a link to the beta release made by Tlatoani that adds an option in /plugins/MundoSK/config.yml where you change "border_disable_size_syntax:" from false to true and it will disable the conflict MundoSK brings

:emoji_grinning:
 
Status
Not open for further replies.