Aller au contenu
  • 0

Erreur skript dans la console


Question

Posté(e)

Version: 1.12.2

Addons skript: TuSKe, SkRayFall, SkQuery, Skelett, MundoSK

Versionn skript: Dev37c

Erreur dans la console:

[19:07:19] [Server thread/INFO] []: --------------------------------------------
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! 
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! [Skript] Severe Error:
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! 
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! Something went horribly wrong with Skript.
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! Here is full list of them:
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! skRayFall (http://sk.rayfall.net/) TuSKe (github.com/Tuke-Nuke/TuSKe) MundoSK (https://forums.skunity.com/resources/mundosk.69/) Skellett (https://forums.skunity.com/resources/skellett-the-addon-with-a-beast-name.24/) SkQuery 
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! In that case, you will be given instruction on how should you report it.
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! Only if the author tells you to do so, report it as Skript issue (url below)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues (only if you know what you're doing!)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! 
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! Stack trace:
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! java.lang.NullPointerException
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at com.gmail.thelimeglass.Expressions.ExprNearbyEntities.get(ExprNearbyEntities.java:61)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at com.gmail.thelimeglass.Expressions.ExprNearbyEntities.get(ExprNearbyEntities.java:1)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:102)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.iterator(SimpleExpression.java:314)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at ch.njol.skript.lang.Loop.walk(Loop.java:79)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at ch.njol.skript.lang.function.ScriptFunction.execute(ScriptFunction.java:93)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at ch.njol.skript.lang.function.Function.execute(Function.java:119)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at ch.njol.skript.lang.function.FunctionReference.execute(FunctionReference.java:204)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at ch.njol.skript.lang.function.EffFunctionCall.execute(EffFunctionCall.java:53)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at ch.njol.skript.effects.Delay$1.run(Delay.java:109)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:80)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:361)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:663)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:385)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:614)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:505)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!     at java.lang.Thread.run(Thread.java:745)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! 
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! Version Information:
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!   Skript: 2.2-dev37c
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!   Bukkit: 1.12.2-R0.1-SNAPSHOT
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!   Minecraft: 1.12.2
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!   Java: 1.8.0_72 (Java HotSpot(TM) 64-Bit Server VM 25.72-b15)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#!   OS: Linux amd64 4.9.0-0.bpo.6-amd64
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! 
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! Server platform: Spigot
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! 
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! Current node: null
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! Current item: loop [skellett] [(the|all)] [of] [the] [nearby] entit(y|ies) (within|in) [a] radius [of] %number%[(,| and) %number%(,| and) %number%] (within|around|near) %location%
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! Current trigger: function bg_resetarena (simple event) (BG.sk, line -1)
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! 
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! Thread: Server thread
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! 
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! Language: english
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! Link parse mode: DISABLED
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! 
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! End of Error.
[19:07:19] [Server thread/ERROR] [Minecraft]: #!#! 

Bonjour j'ai un problème (une erreur) dans ma console consernant skript

est je voudrait savoir comment régler cette erreur.

 

  • Bruh 1

15 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Voila

function bg_resetarena(arena: text):
	loop {bg.arena.%{_arena}%.ninjas::*} and {bg.arena.%{_arena}%.bad-ninjas::*}:
		loop "fly", "arena" and "state":
			delete {bg.player::%uuid of loop-value-1%.%loop-value-2%}	
		bg_clear_player(loop-value-1)
		bg_deleteBoard(loop-value-1)
		set loop-value-1's gamemode to spectator
		push loop-value-1 upwards at speed 0.5
		teleport loop-value-1 to {bg.lobby}
		set loop-value-1's gamemode to survival
		#need to be removed
		lobby(loop-value-1)
	loop {bg.arena.%{_arena}%.CHESTS::*}:
		clear inventory of block at loop-value
	loop {bg.arena.%{_arena}%.KILL-ME-PLS::*}:
		set block at loop-value to air
		remove loop-value from {bg.arena.%{_arena}%.KILL-ME-PLS::*}
	delete {bg.arena.%{_arena}%.KILL-ME-PLS::*}		
	delete {bg.arena.%{_arena}%.ninjas::*} and {bg.arena.%{bg.player::%{_uuid}%.arena}%.bad-ninjas::*}
	delete {bg.arena.%{_arena}%.CHESTS::*}
	set {bg.arena.%{_arena}%.border.status} to ""
	loop all entities in radius 50000 around {bg.arena.%{_arena}%.center}:
		clear loop-entity						
	set {bg.arena.%{_arena}%.seconds} to yaml value "TIMERS.WAITING" from file "plugins/Battlegrounds/config.yml"
	set {bg.arena.%{_arena}%.status} to "WAITING"

 

  • 0
Posté(e) (modifié)

Tu loop les 50 000 entités autour du centre de l'arène ?  Tu devrais vraiment éviter de faire ça, tu vas faire générer énormément de chuncks au serveur d'un seul coup 😕

Edit: Finalement ça provient peut-être vraiment du loop des entités. Essaies de modifier la valeur par 100 par exemple et dis-nous si ça marche.😁

Modifié par Ethnae
  • 0
Posté(e)
il y a 31 minutes, superrtutur2 a dit :

Non sa a rien changer

Et si tu mets ton loop des entités en commentaire, le problème est toujours là ? 

  • 0
Posté(e) (modifié)

En commentaire ???

Tu veut ire en message?

Et non le problème est bien

loop all entities in radius 50000 around {bg.arena.%{_arena}%.center}

 

Modifié par superrtutur2
  • 0
Posté(e)

 

il y a 5 minutes, superrtutur2 a dit :

En commentaire ???

Oui, histoire d'être sûr d'où vient la source du problème. Si tu enlèves la boucle qui recherche les entités et que ça marche alors le problème vient bien de celle-ci. Ensuite si le problème vient bien de cette ligne, pourrais-tu me dire comment tu as défini {bg.arena.%{_arena}%.center} ?

 Tu peux essayer d'autres syntaxes aussi, celle-ci par exemple (c'est exactement la même chose, je sais, on ne sait jamais... sur un malentendu) :

# Syntaxe : loop [skellett] [(the|all)] [of] [the] [nearby] entit(y|ies) (within|in) [a] radius [of] %number%[(,| and) %number%(,| and) %number%] (within|around|near) %location%
# donc...
loop the nearby entities in a radius of 200 around {bg.arena.%{_arena}%.center}:
	clear loop-entity
    
# OU
loop all of the entities in a raidus of 200 around...

Et je tiens à rappeler qu'on vient aider bénévolement, en aucun cas on ne s'engage à faire marcher tes scripts, donc évite de parler à ceux qui t'aident comme des chiens.

  • 0
Posté(e)

if arg 1 is "setcenter":    
                if player has permission "bg.admin":
                    set {bg.arena.%arg-2%.center} to location of player
                    send "%{BG::CONFIG::MESSAGES.PREFIX}% &aCenter set."    

  • 0
Posté(e)

Hum résolu ? Quand tu met 

Le 20/04/2019 à 19:29, superrtutur2 a dit :

loop all entities in radius 50000 around {bg.arena.%{_arena}%.center}: clear loop-entity

en commentaire ?

  • 0
Posté(e)
Il y a 14 heures, romax7 a dit :

Hum résolu ? Quand tu met 

en commentaire ?

C'est ce que je lui ai demandé de faire mais il n'a pas l'air de comprendre/vouloir le faire... 😕

  • 0
Posté(e) (modifié)

non en commentaire c'est que tu mets ton code entre des balises commentaire pour qu'il ne soit pas exécuté.

Renseigne toi sur le fait de mettre du code en commentaire c'est très utile !

Modifié par romax7
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.