Aller au contenu
  • 0

Problème de fonction dans un GUI avec Tuske


Question

Posté(e) (modifié)

Bonjour je fait ce post suite a un soucis avec Tuske que je rencontre lorsque je veux créer un skript qui ouvre un gui et lorsque que la personne clique sur un items cela utilise une fonction .

 

Version des Plugins :

Skript : 2-2-dev27

Tuske : 1.82

 

J’utilise un serveur en local avec spigot 1.8.8

 

Code :

 

command /kit [<text>]:
   trigger:
       open virtual chest inventory with 4 row named "&1Menu Des Kits  to player
       wait 1 ticks
       make a gui slot 1 of player with grass named "" to do nothing
       make a gui slot 7 of player with stone named "" to do nothing
       make a gui slot 0 of player with blue stained glass pane named " " to do nothing
       make a gui slot 2 of player with blue stained glass pane named " " to do nothing
       make a gui slot 3 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 4 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 5 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 6 of player with blue stained glass pane named " " to do nothing
       make a gui slot 0 of player with blue stained glass pane named " " to do nothing
       make a gui slot 1 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 2 of player with blue stained glass pane named " " to do nothing
       make a gui slot 3 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 4 of player with blue stained glass pane named " " to do nothing
       make a gui slot 5 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 6 of player with blue stained glass pane named " " to do nothing
       make a gui slot 7 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 8 of player with blue stained glass pane named " " to do nothing
       make a gui slot 9 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 10 of player with blue stained glass pane named " " to do nothing
       make a gui slot 11 of player with yellow stained glass pane named "" to nothing
       make a gui slot 12 of player with blue stained glass pane named " " to do nothing
       make a gui slot 13 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 14 of player with blue stained glass pane named " " to do nothing
       make a gui slot 15 of player with grass named "&9Kits" to close then run function menuKit()
       make a gui slot 16 of player with blue stained glass pane named " " to do nothing
       make a gui slot 17 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 18 of player with blue stained glass pane named " " to do nothing
       make a gui slot 19 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 20 of player with blue stained glass pane named " " to do nothing 
       make a gui slot 21 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 22 of player with blue stained glass pane named " " to do nothing
       make a gui slot 23 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 24 of player with blue stained glass pane named " " to do nothing
       make a gui slot 25 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 26 of player with blue stained glass pane named " " to do nothing
       make a gui slot 27 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 28 of player with blue stained glass pane named " " to do nothing
       make a gui slot 29 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 30 of player with blue stained glass pane named " " to do nothing
       make a gui slot 31 of player with barrier named "&4Close Warp Menu" to close
       make a gui slot 32 of player with blue stained glass pane named " " to do nothing
       make a gui slot 33 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 34 of player with blue stained glass pane named " " to do nothing
       make a gui slot 35 of player with yellow stained glass pane named " " to do nothing

function menuKit():
   broadcast "TEST"

 

J'ai mis juste un message de test pour voir si cela marche , mais cela ne marche pas non plus .

 

Erreur dans la console :

[22:43:36 INFO]: TheKePaag [89e32463-5f63-4035-b751-611116469266]: /kit

[22:43:36 ERROR]: #!#!

[22:43:36 ERROR]: #!#! [skript] Severe Error:

[22:43:36 ERROR]: #!#!

[22:43:36 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.

[22:43:36 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/

[22:43:36 ERROR]: #!#! and check whether this error has already been reported.

[22:43:36 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),

[22:43:36 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.

[22:43:36 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.

[22:43:36 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.

[22:43:36 ERROR]: #!#!

[22:43:36 ERROR]: #!#! Stack trace:

[22:43:36 ERROR]: #!#! java.lang.ArrayIndexOutOfBoundsException: 0

[22:43:36 ERROR]: #!#! at ch.njol.skript.lang.function.Function.getParameter(Function.java:55)

[22:43:36 ERROR]: #!#! at com.github.tukenuke.tuske.util.EvalFunction.getParemetersValues(EvalFunction.java:85)

[22:43:36 ERROR]: #!#! at com.github.tukenuke.tuske.sections.gui.EffFormatGUI.execute(EffFormatGUI.java:135)

[22:43:36 ERROR]: #!#! at com.github.tukenuke.tuske.util.EffectSection.check(EffectSection.java:54)

[22:43:36 ERROR]: #!#! at ch.njol.skript.lang.Condition.run(Condition.java:56)

[22:43:36 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)

[22:43:36 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)

[22:43:36 ERROR]: #!#! at ch.njol.skript.effects.Delay$1.run(Delay.java:94)

[22:43:36 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)

[22:43:36 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)

[22:43:36 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:722)

[22:43:36 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)

[22:43:36 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:653)

[22:43:36 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:556)

[22:43:36 ERROR]: #!#! at java.lang.Thread.run(Unknown Source)

[22:43:36 ERROR]: #!#!

[22:43:36 ERROR]: #!#! Version Information:

[22:43:36 ERROR]: #!#! Skript: 2.2-dev27

[22:43:36 ERROR]: #!#! Bukkit: 1.8.8-R0.1-SNAPSHOT

[22:43:36 ERROR]: #!#! Minecraft: 1.8.8

[22:43:36 ERROR]: #!#! Java: 1.8.0_162 (Java HotSpot 64-Bit Server VM 25.162-b12)

[22:43:36 ERROR]: #!#! OS: Windows 10 amd64 10.0

[22:43:36 ERROR]: #!#!

[22:43:36 ERROR]: #!#! Running CraftBukkit: false

[22:43:36 ERROR]: #!#!

[22:43:36 ERROR]: #!#! Current node: null

[22:43:36 ERROR]: #!#! Current item: format a gui slot [[long:15]] of the player with ([[itemtype:grass_block]] named "º9Kits" >> ch.njol.skript.classes.data.DefaultConverters$13@6f075548: ch.njol.skript.aliases.ItemType->org.bukkit.inventory.ItemStack)

[22:43:36 ERROR]: #!#!

[22:43:36 ERROR]: #!#! Thread: Server thread

[22:43:36 ERROR]: #!#!

[22:43:36 ERROR]: #!#! End of Error.

[22:43:36 ERROR]: #!#!

 

 

Le gui ne ce génère pas en entier comme si le skript ce stopper à la ligne :

make a gui slot 15 of player with grass named "&9Kits" to close then run function menuKit()

 

1524948416-mc-problem.png

a>

2018-17-6-1524948416-mc-problem.png

Je remercie d'avance tout ceux qui prendront le temps de lire mon post et de m'aider .

Cordialement TheKePaag.

Modifié par TheKePaag

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Bonjour je fait ce post suite a un soucis avec Tuske que je rencontre lorsque je veux créer un skript qui ouvre un gui et lorsque que la personne clique sur un items cela utilise une fonction .

 

Version des Plugins :

Skript : 2-2-dev27

Tuske : 1.82

 

J’utilise un serveur en local avec spigot 1.8.8

 

Code :

 

command /kit [<text>]:
   trigger:
       open virtual chest inventory with 4 row named "&1Menu Des Kits  to player
       wait 1 ticks
       make a gui slot 1 of player with grass named "" to do nothing
       make a gui slot 7 of player with stone named "" to do nothing
       make a gui slot 0 of player with blue stained glass pane named " " to do nothing
       make a gui slot 2 of player with blue stained glass pane named " " to do nothing
       make a gui slot 3 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 4 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 5 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 6 of player with blue stained glass pane named " " to do nothing
       make a gui slot 0 of player with blue stained glass pane named " " to do nothing
       make a gui slot 1 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 2 of player with blue stained glass pane named " " to do nothing
       make a gui slot 3 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 4 of player with blue stained glass pane named " " to do nothing
       make a gui slot 5 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 6 of player with blue stained glass pane named " " to do nothing
       make a gui slot 7 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 8 of player with blue stained glass pane named " " to do nothing
       make a gui slot 9 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 10 of player with blue stained glass pane named " " to do nothing
       make a gui slot 11 of player with yellow stained glass pane named "" to nothing
       make a gui slot 12 of player with blue stained glass pane named " " to do nothing
       make a gui slot 13 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 14 of player with blue stained glass pane named " " to do nothing
       make a gui slot 15 of player with grass named "&9Kits" to close then run function menuKit()
       make a gui slot 16 of player with blue stained glass pane named " " to do nothing
       make a gui slot 17 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 18 of player with blue stained glass pane named " " to do nothing
       make a gui slot 19 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 20 of player with blue stained glass pane named " " to do nothing
       make a gui slot 21 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 22 of player with blue stained glass pane named " " to do nothing
       make a gui slot 23 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 24 of player with blue stained glass pane named " " to do nothing
       make a gui slot 25 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 26 of player with blue stained glass pane named " " to do nothing
       make a gui slot 27 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 28 of player with blue stained glass pane named " " to do nothing
       make a gui slot 29 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 30 of player with blue stained glass pane named " " to do nothing
       make a gui slot 31 of player with barrier named "&4Close Warp Menu" to close
       make a gui slot 32 of player with blue stained glass pane named " " to do nothing
       make a gui slot 33 of player with yellow stained glass pane named " " to do nothing
       make a gui slot 34 of player with blue stained glass pane named " " to do nothing
       make a gui slot 35 of player with yellow stained glass pane named " " to do nothing

function menuKit():
   broadcast "TEST"

 

J'ai mis juste un message de test pour voir si cela marche , mais cela ne marche pas non plus .

 

Erreur dans la console :

 

 

 

Le gui ne ce génère pas en entier comme si le skript ce stopper à la ligne :

make a gui slot 15 of player with grass named "&9Kits" to close then run function menuKit()

 

1524948416-mc-problem.png

a>

2018-17-6-1524948416-mc-problem.png

Je remercie d'avance tout ceux qui prendront le temps de lire mon post et de m'aider .

Cordialement TheKePaag.

 

Bon première chose avec Tuske tu peut faire ça :

make a gui slot 3, 4, 5, 1, 3 and 5 of player with yellow stained glass pane named " " to do nothing

donc réduit la taille de ton code...

et ensuite essaye:

make a gui slot 15 of player with 1 grass named "&9Kits" to close then run:
   menuKit()

  • J'aime 2
  • 0
Posté(e)

Bonjour , je te remercie de prendre de ton temps pour m'aider .

 

J'ai bien modifier le code comme tu me l'avais dis :

command /kit [<text>]:
   trigger:
       open virtual chest inventory with 4 row named "&1Menu Des Kits " to player
       wait 1 ticks
       make a gui slot 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32 and 34 of player with blue stained glass pane named " " to do nothing
       make a gui slot 1, 3, 5, 7, 9, 11, 13, 17, 19, 21, 23, 25, 27, 29, 33 and 35 of player with yellow stained glass pane named "" to do nothing
       make a gui slot 15 of player with 1 grass named "&9Kits" to close then run:
           menuKit()
       make a gui slot 31 of player with barrier named "&4Close Warp Menu" to close


function menuKit():
   broadcast "TEST"

 

J'ai l'erreur suivante quand je reload le skript :

1524988503-mc-problem2.png

 

J'ai donc essayer de modifier et de faire ceci :

 

command /kit [<text>]:
   trigger:
       open virtual chest inventory with 4 row named "&1Menu Des Kits " to player
       wait 1 ticks
       make a gui slot 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32 and 34 of player with blue stained glass pane named " " to do nothing
       make a gui slot 1, 3, 5, 7, 9, 11, 13, 17, 19, 21, 23, 25, 27, 29, 33 and 35 of player with yellow stained glass pane named "" to do nothing
       make a gui slot 15 of player with 1 grass named "&9Kits" to close then run: menuKit()
       make a gui slot 31 of player with barrier named "&4Close Warp Menu" to close


function menuKit():
   broadcast "TEST"

Et j'ai eu cette erreur :

1524988645-mc-problem3.png

  • 0
Posté(e) (modifié)
Bonjour , je te remercie de prendre de ton temps pour m'aider .

 

J'ai bien modifier le code comme tu me l'avais dis :

command /kit [<text>]:
   trigger:
       open virtual chest inventory with 4 row named "&1Menu Des Kits " to player
       wait 1 ticks
       make a gui slot 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32 and 34 of player with blue stained glass pane named " " to do nothing
       make a gui slot 1, 3, 5, 7, 9, 11, 13, 17, 19, 21, 23, 25, 27, 29, 33 and 35 of player with yellow stained glass pane named "" to do nothing
       make a gui slot 15 of player with 1 grass named "&9Kits" to close then run:
           menuKit()
       make a gui slot 31 of player with barrier named "&4Close Warp Menu" to close


function menuKit():
   broadcast "TEST"

 

J'ai l'erreur suivante quand je reload le skript :

1524988503-mc-problem2.png

 

J'ai donc essayer de modifier et de faire ceci :

 

command /kit [<text>]:
   trigger:
       open virtual chest inventory with 4 row named "&1Menu Des Kits " to player
       wait 1 ticks
       make a gui slot 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32 and 34 of player with blue stained glass pane named " " to do nothing
       make a gui slot 1, 3, 5, 7, 9, 11, 13, 17, 19, 21, 23, 25, 27, 29, 33 and 35 of player with yellow stained glass pane named "" to do nothing
       make a gui slot 15 of player with 1 grass named "&9Kits" to close then run: menuKit()
       make a gui slot 31 of player with barrier named "&4Close Warp Menu" to close


function menuKit():
   broadcast "TEST"

Et j'ai eu cette erreur :

1524988645-mc-problem3.png

 

Essaye :

make a gui slot 15 of player with 1 grass named "&9Kits" to run:
   close player's inventory
   menuKit()

Modifié par Invité
  • J'aime 1
Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.