Solved Skript 1.13 gui error

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

SoMuchWessel

Active Member
Apr 3, 2017
147
3
18
46
Hi guys,
I am trying to format my code from a 1.12 server to a 1.13 server using the last versions of the addons and skript.
The addon i used for my gui's is SkQuery-Lime.

Now if i run the command which would give me a gui, i get a empty gui with an internal server error.
This is my code:
code_language.skript:
command /maps [<text>]:
    permission message:^&aDenied.
    trigger:
        if arg-1 is set:
            if arg-1 is "official":
                open chest with 6 rows named "&bOfficial maps" to player
                format slot 0 of player with light green clay named "&cCave1" with lore "&7Made by BorisdeGoede||&7Min. 8 players||&76 Rooms" to close then run [make console execute command "warp WIDM1 %player%"]       
                format slot 1 of player with light green clay named "&cWestern" with lore "&7Made by xMegs||&7Min. 8 players||&78 Rooms" to close then run [make console execute command "warp WIDM2 %player%"]           
                format slot 2 of player with light green clay named "&cDungeon" with lore "&7Made by rickvander & SoMuchWessel||&7Min. 8 players||&76 Rooms" to close then run [make console execute command "warp WIDM3.5 %player%"]       
                format slot 3 of player with light green clay named "&cElements" with lore "&7Made by rickvander & SoMuchWessel||&7Min. 8 players||&78 Rooms" to close then run [make console execute command "warp WIDM4 %player%"]
                format slot 4 of player with light green clay named "&cCastle" with lore "&7Made by SoMuchWessel & BorisdeGoede||&7Min. 8 players||&78 Rooms" to close then run [make console execute command "warp WIDM5 %player%"]
                format slot 5 of player with light green clay named "&cNature" with lore "&7Made by rickvander & SoMuchWessel||&7Min. 8 players||&76 Rooms" to close then run [make console execute command "warp WIDM6 %player%"]
                format slot 6 of player with red clay named "&cPirates" with lore "&7Made by rickvander||&7Min. 8 players||&77 Rooms||&4ONDERHOUD" to close then run [make console execute command "warp WIDM7 %player%"]
                format slot 7 of player with light green clay named "&cCalici" with lore "&7Made by SoMuchWessel||&7Min. 8 players||&79 Rooms" to close then run [make console execute command "warp WIDM8 %player%"]
                format slot 8 of player with light green clay named "&cCastleBlack" with lore "&7Made by rickvander||&7Max. 6 players||&78 Rooms" to close then run [make console execute command "warp WIDM9 %player%"]
                format slot 9 of player with light green clay named "&cFantasy" with lore "&7Made by rickvander||&7Min. 8 players||&79 Rooms" to close then run [make console execute command "warp WIDM11 %player%"]
                format slot 10 of player with light green clay named "&cFort Sylveon" with lore "&7Made by rickvander||&7Min. 8 players||&78 Rooms" to close then run [make console execute command "warp WIDM12 %player%"]
                format slot 11 of player with light green clay named "&cNetherCastle" with lore "&7Made by SoMuchWessel||&7Min. 8 players||&7Unknown amount of Rooms" to close then run [make console execute command "warp WIDM14 %player%"]       
        
                format slot 45 of player with cyan clay named "&c???" with lore "&7Made by Theration||&7Max. 8 players||&76 Rooms" to close then run [make console execute command "warp OudWidm1 %player%"]   
                format slot 46 of player with cyan clay named "&c???" with lore "&7Made by Elagius||&7Max. 8 players||&77 Rooms" to close then run [make console execute command "warp OudWidm2 %player%"]       
                format slot 47 of player with cyan clay named "&cOld Castle" with lore "&7Made by SoMuchWessel & BorisdeGoede||&7Max. 8 players||&78 Rooms" to close then run [make console execute command "warp OudWidm3 %player%"]   
                format slot 48 of player with cyan clay named "&c???" with lore "&7Made by SoMuchWessel & BorisdeGoede||&7Min. 8 players||&78 Rooms" to close then run [make console execute command "warp OudWidm4 %player%"]


Is there a way to fix this problem? Or is there a other addon that can do the same and work on 1.13?
 
add
code_language.skript:
wait a tick
after
code_language.skript:
open chest with 6 rows named "&bOfficial maps" to player
 
yeah, use Tuske GUIs instead. SkQuery's GUIs are terrible and have a lot of issues in 1.12.2 and newer
I tried using Tuske, but there are even more problems to it. Like with Tuske i cant even see a Gui opening and i get a internal server error.

code_language.skript:
command /maps3 [<text>]:
    trigger:
        if arg-1 is set:
            if arg-1 is "official":
                create a gui with virtual chest named "maps" with 6 rows:
                    make gui slot 0 to light green clay named "&cCave1" with lore "&7Made by BorisdeGoede||&7Min. 8 players||&76 Rooms":
                        execute console command "/warp WIDM1 %player%"   
                open last gui to player

When i use this code, i get a empty gui without items:

code_language.skript:
        else if arg-1 is "items":
            open chest with 6 rows named "&3items" to player
            wait a tick
            add a enchanted book named "&5Mystery book" with lore "&7Get a random special book||&7Right-click to use" to player's current inventory

I also get this error in the console with the last code:
987vbc.jpg
 
if you are using tuske you need to use Pikachu's fork called Tuske-PikachuPatch 3
he continues to patch it in the hopes it'll keep working on all skript versions, since its truly the best way to handle GUIs

i just tried to use it with Tuske PikachuPatch, but i get a internal server error and a massive error code in the console with this code:

code_language.skript:
command /maps3 [<text>]:
    trigger:
        if arg-1 is set:
            if arg-1 is "official":
                create a gui with virtual chest named "maps" with 6 rows:
                    make gui slot 0 to light green clay named "&cCave1" with lore "&7Made by BorisdeGoede||&7Min. 8 players||&76 Rooms":
                        execute console command "/warp WIDM1 %player%"   
                open last gui to player
The gui also wont work/open.


the lore expression(from skquery) not work on skript 2.3.
What do you mean?
 
I just loaded up a test server, with the latest skript (2.3 Beta1) and Tuske (Pikachu patch 3)
I reformatted your code to work on tuske, and it works no problem
Screen Shot 2018-11-12 at 2.23.43 pm.png


Code (the lore is different now, but this is just to show tuske works)
code_language.skript:
command /maps [<text>]:
    permission: perm.perm
    permission message:^&aDenied.
    trigger:
        if arg-1 is set:
            if arg-1 is "official":
                open virtual chest inventory with 6 rows named "&bOfficial maps" to player
                format gui slot 0 of player with light green clay named "&cCave1" with lore "&7Made by BorisdeGoede||&7Min. 8 players||&76 Rooms" to close then execute console command "warp WIDM1 %player%"   
                format gui slot 1 of player with light green clay named "&cWestern" with lore "&7Made by xMegs||&7Min. 8 players||&78 Rooms" to close then execute console command "warp WIDM2 %player%"         
                format gui slot 2 of player with light green clay named "&cDungeon" with lore "&7Made by rickvander & SoMuchWessel||&7Min. 8 players||&76 Rooms" to close then execute console command "warp WIDM3.5 %player%"     
                format gui slot 3 of player with light green clay named "&cElements" with lore "&7Made by rickvander & SoMuchWessel||&7Min. 8 players||&78 Rooms" to close then execute console command "warp WIDM4 %player%"
                format gui slot 4 of player with light green clay named "&cCastle" with lore "&7Made by SoMuchWessel & BorisdeGoede||&7Min. 8 players||&78 Rooms" to close then execute console command "warp WIDM5 %player%"
                format gui slot 5 of player with light green clay named "&cNature" with lore "&7Made by rickvander & SoMuchWessel||&7Min. 8 players||&76 Rooms" to close then execute console command "warp WIDM6 %player%"
                format gui slot 6 of player with red clay named "&cPirates" with lore "&7Made by rickvander||&7Min. 8 players||&77 Rooms||&4ONDERHOUD" to close then execute console command "warp WIDM7 %player%"
                format gui slot 7 of player with light green clay named "&cCalici" with lore "&7Made by SoMuchWessel||&7Min. 8 players||&79 Rooms" to close then execute console command "warp WIDM8 %player%"
                format gui slot 8 of player with light green clay named "&cCastleBlack" with lore "&7Made by rickvander||&7Max. 6 players||&78 Rooms" to close then execute console command "warp WIDM9 %player%"
                format gui slot 9 of player with light green clay named "&cFantasy" with lore "&7Made by rickvander||&7Min. 8 players||&79 Rooms" to close then execute console command "warp WIDM11 %player%"
                format gui slot 10 of player with light green clay named "&cFort Sylveon" with lore "&7Made by rickvander||&7Min. 8 players||&78 Rooms" to close then execute console command "warp WIDM12 %player%"
                format gui slot 11 of player with light green clay named "&cNetherCastle" with lore "&7Made by SoMuchWessel||&7Min. 8 players||&7Unknown amount of Rooms" to close then execute console command "warp WIDM14 %player%"     
                format gui slot 45 of player with cyan clay named "&c???" with lore "&7Made by Theration||&7Max. 8 players||&76 Rooms" to close then execute console command "warp OudWidm1 %player%" 
                format gui slot 46 of player with cyan clay named "&c???" with lore "&7Made by Elagius||&7Max. 8 players||&77 Rooms" to close then execute console command "warp OudWidm2 %player%"     
                format gui slot 47 of player with cyan clay named "&cOld Castle" with lore "&7Made by SoMuchWessel & BorisdeGoede||&7Max. 8 players||&78 Rooms" to close then execute console command "warp OudWidm3 %player%" 
                format gui slot 48 of player with cyan clay named "&c???" with lore "&7Made by SoMuchWessel & BorisdeGoede||&7Min. 8 players||&78 Rooms" to close then execute console command "warp OudWidm4 %player%"
[doublepost=1542062004,1542061508][/doublepost]I re-formatted again to fix the lore
Screen Shot 2018-11-12 at 2.28.38 pm.png


code_language.skript:
command /maps [<text>]:
    permission: perm.perm
    permission message:^&aDenied.
    trigger:
        if arg-1 is set:
            if arg-1 is "official":
                open virtual chest inventory with 6 rows named "&bOfficial maps" to player
                format gui slot 0 of player with light green clay named "&cCave1" with lore "&7Made by BorisdeGoede", "&7Min. 8 players" and "&76 Rooms" to close then execute console command "warp WIDM1 %player%"   
                format gui slot 1 of player with light green clay named "&cWestern" with lore "&7Made by xMegs", "&7Min. 8 players" and "&78 Rooms" to close then execute console command "warp WIDM2 %player%"         
                format gui slot 2 of player with light green clay named "&cDungeon" with lore "&7Made by rickvander & SoMuchWessel", "&7Min. 8 players" and "&76 Rooms" to close then execute console command "warp WIDM3.5 %player%"     
                format gui slot 3 of player with light green clay named "&cElements" with lore "&7Made by rickvander & SoMuchWessel", "&7Min. 8 players" and "&78 Rooms" to close then execute console command "warp WIDM4 %player%"
                format gui slot 4 of player with light green clay named "&cCastle" with lore "&7Made by SoMuchWessel & BorisdeGoede", "&7Min. 8 players" and "&78 Rooms" to close then execute console command "warp WIDM5 %player%"
                format gui slot 5 of player with light green clay named "&cNature" with lore "&7Made by rickvander & SoMuchWessel", "&7Min. 8 players" and "&76 Rooms" to close then execute console command "warp WIDM6 %player%"
                format gui slot 6 of player with red clay named "&cPirates" with lore "&7Made by rickvander", "&7Min. 8 players", "&77 Rooms" and "&4ONDERHOUD" to close then execute console command "warp WIDM7 %player%"
                format gui slot 7 of player with light green clay named "&cCalici" with lore "&7Made by SoMuchWessel", "&7Min. 8 players" and "&79 Rooms" to close then execute console command "warp WIDM8 %player%"
                format gui slot 8 of player with light green clay named "&cCastleBlack" with lore "&7Made by rickvander", "&7Max. 6 players" and "&78 Rooms" to close then execute console command "warp WIDM9 %player%"
                format gui slot 9 of player with light green clay named "&cFantasy" with lore "&7Made by rickvander", "&7Min. 8 players" and "&79 Rooms" to close then execute console command "warp WIDM11 %player%"
                format gui slot 10 of player with light green clay named "&cFort Sylveon" with lore "&7Made by rickvander", "&7Min. 8 players" and "&78 Rooms" to close then execute console command "warp WIDM12 %player%"
                format gui slot 11 of player with light green clay named "&cNetherCastle" with lore "&7Made by SoMuchWessel", "&7Min. 8 players" and "&7Unknown amount of Rooms" to close then execute console command "warp WIDM14 %player%"     
                format gui slot 45 of player with cyan clay named "&c???" with lore "&7Made by Theration", "&7Max. 8 players" and "&76 Rooms" to close then execute console command "warp OudWidm1 %player%" 
                format gui slot 46 of player with cyan clay named "&c???" with lore "&7Made by Elagius", "&7Max. 8 players" and "&77 Rooms" to close then execute console command "warp OudWidm2 %player%"     
                format gui slot 47 of player with cyan clay named "&cOld Castle" with lore "&7Made by SoMuchWessel & BorisdeGoede", "&7Max. 8 players" and "&78 Rooms" to close then execute console command "warp OudWidm3 %player%" 
                format gui slot 48 of player with cyan clay named "&c???" with lore "&7Made by SoMuchWessel & BorisdeGoede", "&7Min. 8 players" and "&78 Rooms" to close then execute console command "warp OudWidm4 %player%"
 
I just loaded up a test server, with the latest skript (2.3 Beta1) and Tuske (Pikachu patch 3)
I reformatted your code to work on tuske, and it works no problem
View attachment 2925

Code (the lore is different now, but this is just to show tuske works)
code_language.skript:
command /maps [<text>]:
    permission: perm.perm
    permission message:^&aDenied.
    trigger:
        if arg-1 is set:
            if arg-1 is "official":
                open virtual chest inventory with 6 rows named "&bOfficial maps" to player
                format gui slot 0 of player with light green clay named "&cCave1" with lore "&7Made by BorisdeGoede||&7Min. 8 players||&76 Rooms" to close then execute console command "warp WIDM1 %player%" 
                format gui slot 1 of player with light green clay named "&cWestern" with lore "&7Made by xMegs||&7Min. 8 players||&78 Rooms" to close then execute console command "warp WIDM2 %player%"       
                format gui slot 2 of player with light green clay named "&cDungeon" with lore "&7Made by rickvander & SoMuchWessel||&7Min. 8 players||&76 Rooms" to close then execute console command "warp WIDM3.5 %player%"   
                format gui slot 3 of player with light green clay named "&cElements" with lore "&7Made by rickvander & SoMuchWessel||&7Min. 8 players||&78 Rooms" to close then execute console command "warp WIDM4 %player%"
                format gui slot 4 of player with light green clay named "&cCastle" with lore "&7Made by SoMuchWessel & BorisdeGoede||&7Min. 8 players||&78 Rooms" to close then execute console command "warp WIDM5 %player%"
                format gui slot 5 of player with light green clay named "&cNature" with lore "&7Made by rickvander & SoMuchWessel||&7Min. 8 players||&76 Rooms" to close then execute console command "warp WIDM6 %player%"
                format gui slot 6 of player with red clay named "&cPirates" with lore "&7Made by rickvander||&7Min. 8 players||&77 Rooms||&4ONDERHOUD" to close then execute console command "warp WIDM7 %player%"
                format gui slot 7 of player with light green clay named "&cCalici" with lore "&7Made by SoMuchWessel||&7Min. 8 players||&79 Rooms" to close then execute console command "warp WIDM8 %player%"
                format gui slot 8 of player with light green clay named "&cCastleBlack" with lore "&7Made by rickvander||&7Max. 6 players||&78 Rooms" to close then execute console command "warp WIDM9 %player%"
                format gui slot 9 of player with light green clay named "&cFantasy" with lore "&7Made by rickvander||&7Min. 8 players||&79 Rooms" to close then execute console command "warp WIDM11 %player%"
                format gui slot 10 of player with light green clay named "&cFort Sylveon" with lore "&7Made by rickvander||&7Min. 8 players||&78 Rooms" to close then execute console command "warp WIDM12 %player%"
                format gui slot 11 of player with light green clay named "&cNetherCastle" with lore "&7Made by SoMuchWessel||&7Min. 8 players||&7Unknown amount of Rooms" to close then execute console command "warp WIDM14 %player%"   
                format gui slot 45 of player with cyan clay named "&c???" with lore "&7Made by Theration||&7Max. 8 players||&76 Rooms" to close then execute console command "warp OudWidm1 %player%"
                format gui slot 46 of player with cyan clay named "&c???" with lore "&7Made by Elagius||&7Max. 8 players||&77 Rooms" to close then execute console command "warp OudWidm2 %player%"   
                format gui slot 47 of player with cyan clay named "&cOld Castle" with lore "&7Made by SoMuchWessel & BorisdeGoede||&7Max. 8 players||&78 Rooms" to close then execute console command "warp OudWidm3 %player%"
                format gui slot 48 of player with cyan clay named "&c???" with lore "&7Made by SoMuchWessel & BorisdeGoede||&7Min. 8 players||&78 Rooms" to close then execute console command "warp OudWidm4 %player%"
[doublepost=1542062004,1542061508][/doublepost]I re-formatted again to fix the lore
View attachment 2928

code_language.skript:
command /maps [<text>]:
    permission: perm.perm
    permission message:^&aDenied.
    trigger:
        if arg-1 is set:
            if arg-1 is "official":
                open virtual chest inventory with 6 rows named "&bOfficial maps" to player
                format gui slot 0 of player with light green clay named "&cCave1" with lore "&7Made by BorisdeGoede", "&7Min. 8 players" and "&76 Rooms" to close then execute console command "warp WIDM1 %player%" 
                format gui slot 1 of player with light green clay named "&cWestern" with lore "&7Made by xMegs", "&7Min. 8 players" and "&78 Rooms" to close then execute console command "warp WIDM2 %player%"       
                format gui slot 2 of player with light green clay named "&cDungeon" with lore "&7Made by rickvander & SoMuchWessel", "&7Min. 8 players" and "&76 Rooms" to close then execute console command "warp WIDM3.5 %player%"   
                format gui slot 3 of player with light green clay named "&cElements" with lore "&7Made by rickvander & SoMuchWessel", "&7Min. 8 players" and "&78 Rooms" to close then execute console command "warp WIDM4 %player%"
                format gui slot 4 of player with light green clay named "&cCastle" with lore "&7Made by SoMuchWessel & BorisdeGoede", "&7Min. 8 players" and "&78 Rooms" to close then execute console command "warp WIDM5 %player%"
                format gui slot 5 of player with light green clay named "&cNature" with lore "&7Made by rickvander & SoMuchWessel", "&7Min. 8 players" and "&76 Rooms" to close then execute console command "warp WIDM6 %player%"
                format gui slot 6 of player with red clay named "&cPirates" with lore "&7Made by rickvander", "&7Min. 8 players", "&77 Rooms" and "&4ONDERHOUD" to close then execute console command "warp WIDM7 %player%"
                format gui slot 7 of player with light green clay named "&cCalici" with lore "&7Made by SoMuchWessel", "&7Min. 8 players" and "&79 Rooms" to close then execute console command "warp WIDM8 %player%"
                format gui slot 8 of player with light green clay named "&cCastleBlack" with lore "&7Made by rickvander", "&7Max. 6 players" and "&78 Rooms" to close then execute console command "warp WIDM9 %player%"
                format gui slot 9 of player with light green clay named "&cFantasy" with lore "&7Made by rickvander", "&7Min. 8 players" and "&79 Rooms" to close then execute console command "warp WIDM11 %player%"
                format gui slot 10 of player with light green clay named "&cFort Sylveon" with lore "&7Made by rickvander", "&7Min. 8 players" and "&78 Rooms" to close then execute console command "warp WIDM12 %player%"
                format gui slot 11 of player with light green clay named "&cNetherCastle" with lore "&7Made by SoMuchWessel", "&7Min. 8 players" and "&7Unknown amount of Rooms" to close then execute console command "warp WIDM14 %player%"   
                format gui slot 45 of player with cyan clay named "&c???" with lore "&7Made by Theration", "&7Max. 8 players" and "&76 Rooms" to close then execute console command "warp OudWidm1 %player%"
                format gui slot 46 of player with cyan clay named "&c???" with lore "&7Made by Elagius", "&7Max. 8 players" and "&77 Rooms" to close then execute console command "warp OudWidm2 %player%"   
                format gui slot 47 of player with cyan clay named "&cOld Castle" with lore "&7Made by SoMuchWessel & BorisdeGoede", "&7Max. 8 players" and "&78 Rooms" to close then execute console command "warp OudWidm3 %player%"
                format gui slot 48 of player with cyan clay named "&c???" with lore "&7Made by SoMuchWessel & BorisdeGoede", "&7Min. 8 players" and "&78 Rooms" to close then execute console command "warp OudWidm4 %player%"

Thanks, this solved the problem. Hope i wont find any other bugs...
 
Status
Not open for further replies.