1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon skUtilities 0.9.2

[Conversions|Files|& More] [Java 8+, Sk 2.2+]

  1. tim740

    Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    24
    Likes Received:
    29
    tim740 submitted a new resource:

    skUtilities - [Conversions|Files|& More] [Java 8+, Sk 2.2+]

    Read more about this resource...
     
    #1 tim740, Jan 24, 2017
    Last edited: Dec 21, 2017
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    @tim740: how can I check if a yml value exist at all without getting an error?

    [​IMG]

    Code (Skript):
    1.  
    2.        set {_test} to yaml value "oiooe" from file "plugins/Skript/yml/skit_timetables.yml"
    3.        if {_test} is set:
    4.            broadcast "set"
    5.  
     
    #2 ShaneBee, Jan 27, 2017
    Last edited by a moderator: Jan 27, 2017
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Code (Skript):
    1. if yaml path "oiooe" in file "plugins/Skript/yml/skit_timetables.yml" exists:
    You mean somthing like this ?
     
    tim740 and pepper82 like this.
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    THANK YOU! it works :emoji_slight_smile:
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Just an FYI, I believe there is an option in the skUtilties config to turn off these messages. They also shouldn't really be seen as "errors", but more as a warning that the path isn't set.[/user]
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Im changing it from ERROR to WARN next update, ill be releasing next update very soon, if you have any suggestions message me on discord.
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    @tim740 is it possible that you either can update your code snippets on your website or post them in this thread :emoji_slight_smile:?
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    most of my content is already moved over to skunity i've just forgot to update the links on the site, the whole site needs a remodel, once thats done ill update everything
     
    Laukage likes this.
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    the download syntax ist not working
    code:
    Code (Skript):
    1. command /dl:
    2.     trigger:
    3.         download file from "https://github.com/tim740/skUtilities/releases/download/v0.4.1/skUtilities.v0.4.1.jar" in to file "plugins\skutilDLFU.jar"
    4.    
    console errors:
    Code (Skript):
    1. [Skript] Lade hacktest.sk neu...
    2. [19:27:16 ERROR]: Can't understand this condition/effect: download file from "https://github.com/tim740/skUtilities/releases/download/v0.4.1/skUtilities.v0.4.1.jar" in to file "plugins\skutilDLFU.jar" (hacktest.sk, line 201: download file from "https://github.com/tim740/skUtilities/releases/download/v0.4.1/skUtilities.v0.4.1.jar" in to file "plugins\skutilDLFU.jar"')
    3. [19:27:16 INFO]: [Skript] 1 Fehler ist beim Parsen aufgetreten!
    4.  
    can you please help me?
     
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Your using the wrong syntax:
    ```
    download file from %string% to file %-string%
    ```
     
  11. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    tim740 updated skUtilities with a new update entry:

    Fixes and Dates

    Read the rest of this update entry...
     
  12. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    I'm having difficulties using download file...
    when you go to https://translate.googleapis.com/translate_a/single?client=gtx&sl=id&tl=en&dt=t&q=rumah this will result in a downloaded text attachment f.txt
    so i used download file syntax but then skUtilities gives error:

    Code (Skript):
    1.  
    2.  
    3. [19:25:53 INFO]: https://translate.googleapis.com/translate_a/single?client=gtx&sl=id&tl=en&dt=t&q=rumah
    4. [19:25:53 INFO]: 200
    5. [19:25:53 ERROR]: [skUtilities] v0.8.6: Error Reading from: 'https://translate.googleapis.com/translate_a/single?client=gtx&sl=id&tl=en&dt=t&q=rumah' Is the site down? (ExprUrlContents.class)
    6. [19:25:53 INFO]: <none>
    7. [19:25:53 ERROR]: [skUtilities] v0.8.6: Server returned HTTP response code: 403 for URL: https://translate.googleapis.com/translate_a/single?client=gtx&sl=id&tl=en&dt=t&q=rumah (Utils.class)
    8.  
    9.  
    i used this code to produce those results

    Code (Skript):
    1.  
    2.         set {_url} to "https://translate.googleapis.com/translate_a/single?client=gtx"
    3.         set {_payload::1} to "sl=id"
    4.         set {_payload::2} to "tl=en"
    5.         set {_payload::3} to "dt=t"
    6.         set {_payload::4} to "q=%arg-1%"
    7.        
    8.         set {_text} to {_url}
    9.         loop {_payload::*}:
    10.             set {_text} to "%{_text}%&%uncolored loop-value%"
    11.         $ thread  
    12.         set {_result} to response code of url {_text}
    13.         message "%{_text}%"
    14.         message "%{_result}%"
    15.         set {_results::*} to contents from url {_text}
    16.         message "%{_results::*}%"
    17.         download file from {_text} to file "downloaded/test.txt"
    18.        
    19.  
    20.  
     
  13. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    I have tried for a long time now to fix this, or figure out how to do this instead.
    I'm trying to do this:

    but it's giving an internal error. (https://hastebin.com/awarihomud.vbs)

    Can somebody help me with another method doing it?
     
  14. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
  15. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Try
    Code (Text):
    1. https://translate.googleapis.com/translate_a/single?client=gtx&sl=id&tl=en&dt=t&q=rumah/f.txt
    --- Double Post Merged, Feb 22, 2017, Original Post Date: Feb 22, 2017 ---
    @McKidPro @sandor_1234 please fill out a issue, https://github.com/tim740/skUtilities/issues/new (follow this format https://github.com/tim740/skUtilities/blob/master/CONTRIBUTING.md)
     
  16. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    "date parsed", "unix to date" aren't working for me on mc 1.11, bensku's fork version dev-25:

    Code (Skript):
    1. 22.03 09:35:38 [Server] ERROR v0.8.9: Text '10/13/2014 12:19:47 PM' could not be parsed at index 8 (ExprDateParsed.class)
    2. 22.03 09:35:38 [Server] ERROR v0.8.9: Text '10/13/2014 12:20:02 PM' could not be parsed at index 8 (ExprDateParsed.class)
    3. 22.03 09:35:38 [Server] ERROR v0.8.9: Text '02/04/2015 06:09:33 AM' could not be parsed at index 8 (ExprDateParsed.class)
    4. 22.03 09:35:38 [Server] ERROR v0.8.9: Text '02/04/2015 06:10:02 AM' could not be parsed at index 8 (ExprDateParsed.class)
    ^ This error happens when trying to parse a string as a date, not sure if I need to reformat the text first before putting it in the expression or what.

    If I try to write "formatted as..." for any expression in my skripts, I will get an error from skript telling me that it's "not a valid item data". Might want to change the syntax of these expressions so it doesn't conflict with existing expressions
     
  17. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Remove the `PM` and `AM`

    You cannot use these
     
  18. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    tim740 updated skUtilities with a new update entry:

    Files, Execute bash/batch code and more

    Read the rest of this update entry...
     
  19. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Idea - how about an expression for the hostname a player is using?

    For instance,
    Code (Skript):
    1. set {_hostname} to hostname of player
     
  20. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    You can grab the ip and do a look up, then grab the infomation via json and display
     

Share This Page

Loading...