GigGic Posté(e) le 26 avril 2016 Posté(e) le 26 avril 2016 Bonjour, j'ai un problème avec WildSkript et les fichiers .yml; quand j'affiche un message venant de l'un de ses fichier j'ai le droit à ceci: J'ai la dernière version d'umbaska, skript et wildskript. Merci pour toute aide.
0 Invité Posté(e) le 26 avril 2016 Posté(e) le 26 avril 2016 Tu as dû mettre un symbole erroné pour les couleur/styles. Met çà : &
0 GigGic Posté(e) le 26 avril 2016 Auteur Posté(e) le 26 avril 2016 on load: if folder "plugins/MobCannon" doesn't exists: send "§a[MobCanon] The folder plugins/MobCannon dont exist " to console send "§a[MobCanon] Creation of plugins/MobCannon/" to console create folder "plugins/MobCannon" send "§a[MobCanon] Folder Create" to console if file "plugins/MobCannon/strings.yml" doesn't exists: send "§a[MobCanon] The file strings dont exist!" to console send "§a[MobCanon] Creation of strings.yml" to console create file "plugins/message/config.yml" #Création du fichier wf "Prefix: §7[§a§lMobCannon§7]" to "plugins/MobCannon/strings.yml" wf "help1: §8§m====================§r §6MobCannon §8§m====================" to "plugins/MobCannon/strings.yml" wf "help2: §r - §a/MobCannon §e§n§ogive§r §e§n§o<player>§r §e§n§o<Cannon>§r Give a cannon to specific player." to "plugins/MobCannon/strings.yml" wf "help3:" to "plugins/MobCannon/strings.yml" wf "help4:" to "plugins/MobCannon/strings.yml" wf "help5:" to "plugins/MobCannon/strings.yml" wait 1 tick set {strings.prefix} to value "Prefix" get of "plugins/MobCannon/strings.yml" set {strings.help1} to value "help1" get of "plugins/MobCannon/strings.yml" set {strings.help2} to value "help2" get of "plugins/MobCannon/strings.yml" set {strings.help3} to value "help3" get of "plugins/MobCannon/strings.yml" set {strings.help4} to value "help4" get of "plugins/MobCannon/strings.yml" set {strings.help5} to value "help5" get of "plugins/MobCannon/strings.yml" else: set {strings.prefix} to value "Prefix" get of "plugins/MobCannon/strings.yml" set {strings.help1} to value "help1" get of "plugins/MobCannon/strings.yml" set {strings.help2} to value "help2" get of "plugins/MobCannon/strings.yml" set {strings.help3} to value "help3" get of "plugins/MobCannon/strings.yml" set {strings.help4} to value "help4" get of "plugins/MobCannon/strings.yml" set {strings.help5} to value "help5" get of "plugins/MobCannon/strings.yml" command /mobcannon [<text>]: trigger: if player has permission "mobcannon.help": if arg 1 is not set: send "%{strings.help1}%" send "%{strings.help2}%" send "" else: send "{strings.noperm}"
0 ZeTioZ Posté(e) le 26 avril 2016 Posté(e) le 26 avril 2016 on load: if folder "plugins/MobCannon" doesn't exists: send "§a[MobCanon] The folder plugins/MobCannon dont exist " to console send "§a[MobCanon] Creation of plugins/MobCannon/" to console create folder "plugins/MobCannon" send "§a[MobCanon] Folder Create" to console if file "plugins/MobCannon/strings.yml" doesn't exists: send "§a[MobCanon] The file strings dont exist!" to console send "§a[MobCanon] Creation of strings.yml" to console create file "plugins/message/config.yml" #Création du fichier wf "Prefix: §7[§a§lMobCannon§7]" to "plugins/MobCannon/strings.yml" wf "help1: §8§m====================§r §6MobCannon §8§m====================" to "plugins/MobCannon/strings.yml" wf "help2: §r - §a/MobCannon §e§n§ogive§r §e§n§o<player>§r §e§n§o<Cannon>§r Give a cannon to specific player." to "plugins/MobCannon/strings.yml" wf "help3:" to "plugins/MobCannon/strings.yml" wf "help4:" to "plugins/MobCannon/strings.yml" wf "help5:" to "plugins/MobCannon/strings.yml" wait 1 tick set {strings.prefix} to value "Prefix" get of "plugins/MobCannon/strings.yml" set {strings.help1} to value "help1" get of "plugins/MobCannon/strings.yml" set {strings.help2} to value "help2" get of "plugins/MobCannon/strings.yml" set {strings.help3} to value "help3" get of "plugins/MobCannon/strings.yml" set {strings.help4} to value "help4" get of "plugins/MobCannon/strings.yml" set {strings.help5} to value "help5" get of "plugins/MobCannon/strings.yml" else: set {strings.prefix} to value "Prefix" get of "plugins/MobCannon/strings.yml" set {strings.help1} to value "help1" get of "plugins/MobCannon/strings.yml" set {strings.help2} to value "help2" get of "plugins/MobCannon/strings.yml" set {strings.help3} to value "help3" get of "plugins/MobCannon/strings.yml" set {strings.help4} to value "help4" get of "plugins/MobCannon/strings.yml" set {strings.help5} to value "help5" get of "plugins/MobCannon/strings.yml" command /mobcannon [<text>]: trigger: if player has permission "mobcannon.help": if arg 1 is not set: send "%{strings.help1}%" send "%{strings.help2}%" send "" else: send "{strings.noperm}" Voila j'ai corrigé le code essaye comme ça ;) (les symboles pour la couleur était mauvais) on load: if folder "plugins/MobCannon" doesn't exists: send "&a[MobCanon] The folder plugins/MobCannon dont exist " to console send "&a[MobCanon] Creation of plugins/MobCannon/" to console create folder "plugins/MobCannon" send "&a[MobCanon] Folder Create" to console if file "plugins/MobCannon/strings.yml" doesn't exists: send "&a[MobCanon] The file strings dont exist!" to console send "&a[MobCanon] Creation of strings.yml" to console create file "plugins/message/config.yml" #Création du fichier wf "Prefix: &7[&a&lMobCannon&7]" to "plugins/MobCannon/strings.yml" wf "help1: &8&m====================&r &6MobCannon &8&m====================" to "plugins/MobCannon/strings.yml" wf "help2: &r - &a/MobCannon &e&n&ogive&r &e&n&o<player>&r &e&n&o<Cannon>&r Give a cannon to specific player." to "plugins/MobCannon/strings.yml" wf "help3:" to "plugins/MobCannon/strings.yml" wf "help4:" to "plugins/MobCannon/strings.yml" wf "help5:" to "plugins/MobCannon/strings.yml" wait 1 tick set {strings.prefix} to value "Prefix" get of "plugins/MobCannon/strings.yml" set {strings.help1} to value "help1" get of "plugins/MobCannon/strings.yml" set {strings.help2} to value "help2" get of "plugins/MobCannon/strings.yml" set {strings.help3} to value "help3" get of "plugins/MobCannon/strings.yml" set {strings.help4} to value "help4" get of "plugins/MobCannon/strings.yml" set {strings.help5} to value "help5" get of "plugins/MobCannon/strings.yml" else: set {strings.prefix} to value "Prefix" get of "plugins/MobCannon/strings.yml" set {strings.help1} to value "help1" get of "plugins/MobCannon/strings.yml" set {strings.help2} to value "help2" get of "plugins/MobCannon/strings.yml" set {strings.help3} to value "help3" get of "plugins/MobCannon/strings.yml" set {strings.help4} to value "help4" get of "plugins/MobCannon/strings.yml" set {strings.help5} to value "help5" get of "plugins/MobCannon/strings.yml" command /mobcannon [<text>]: trigger: if player has permission "mobcannon.help": if arg 1 is not set: send "%{strings.help1}%" send "%{strings.help2}%" send "" else: send "{strings.noperm}"
0 GigGic Posté(e) le 26 avril 2016 Auteur Posté(e) le 26 avril 2016 Y'a un prob' dans la fichier strings.yml il s'écrit des § au lieu des & et même en les remplaçant, rien ne change
0 Aeden Posté(e) le 26 avril 2016 Posté(e) le 26 avril 2016 Le symbole " § " se nomme " section ". C'est le symbole par défaut pour les couleurs de Minecraft. Quand vous tapez un " & " il est automatiquement convertit en " § ". La vraie question et le problème que j'ai également rencontré avec le scoreboard c'est pourquoi le symbole section " § " apparaît au lieu de simplement être convertit en couleur avec son code.
0 > NoaGamingFR Posté(e) le 27 avril 2016 Posté(e) le 27 avril 2016 Essaie avec <anglaiscolor> alors.
0 GigGic Posté(e) le 27 avril 2016 Auteur Posté(e) le 27 avril 2016 Essaie avec <anglaiscolor> alors. Non, rien ne change.
Question
GigGic
Bonjour, j'ai un problème avec WildSkript et les fichiers .yml;
quand j'affiche un message venant de l'un de ses fichier j'ai le droit à ceci:
J'ai la dernière version d'umbaska, skript et wildskript.
Merci pour toute aide.
9 réponses à cette question
Messages recommandés