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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

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

Loading map from PNG

Discussion in 'Skript' started by Dan Owen, Oct 15, 2018.

  1. Dan Owen

    Dan Owen Member

    Joined:
    Aug 21, 2017
    Messages:
    14
    Likes Received:
    0
    So with SkQuery (I think) you used to be able to do this, just updated everything to start running 1.13.1 can this not longer works, I am sure I am just out of date

    Before I spend hours of my life re working this, can anyone point out the "old" thing I used and need to change?

    command /genmaps:
    trigger:
    overwrite map 167
    erase map 167
    set {_image} to image from "http://minecraft.test.com/minecraft/art/harley_quinn.png"
    draw {_image} image %image% on map 167
    draw image {_image} on map 167 starting from 0, 0
    set {_map} to map:167 named "Harley Quinn"
    set data value of {_map} to 167
     
  2. Efnilite

    Supporter

    Joined:
    May 12, 2018
    Messages:
    218
    Likes Received:
    13
    Medals:
    Skript 2.3 is not recommended for anything now, it's mainly for finding bugs. Also replace %image% with the image since its not an expression.
     
    • Like Like x 1
  3. Dan Owen

    Dan Owen Member

    Joined:
    Aug 21, 2017
    Messages:
    14
    Likes Received:
    0
    Best way to find the bugs is to use it :emoji_slight_smile: don't worry most of the skript on my server are mirror tweaks

    Its not the end of the world when something stops just annoying lol

    So I have enabled the first few lines

    command /genmaps:
    trigger:
    overwrite map 167

    But get back
    Can't understand this condition/effect: overwrite map 167 (maps.sk, line 6: overwrite map 167')

    Am I being dumb
     
  4. Efnilite

    Supporter

    Joined:
    May 12, 2018
    Messages:
    218
    Likes Received:
    13
    Medals:
    SkQuery doesn't work on 2.3 yet. It hasn't been updated.
     
  5. Dan Owen

    Dan Owen Member

    Joined:
    Aug 21, 2017
    Messages:
    14
    Likes Received:
    0
    Ah Ha I am being dumb! chuckle cool no worries

    Thanks for pointing out my error :emoji_grinning:
    --- Double Post Merged, Dec 6, 2018, Original Post Date: Oct 17, 2018 ---
    Ok so we are on 3.6.2-Lime "Recode and 2.3 Skript" but I still can't get the code to work

    Am I being dumb again? (will update with more info if it's not just me being silly :emoji_stuck_out_tongue: )
     
  6. L

    Joined:
    Jan 26, 2017
    Messages:
    363
    Likes Received:
    19
    I also believe map support has been removed from skquery lime
     
  7. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,233
    Likes Received:
    169
    Medals:
    It is usable at this point, the only annoying bug left is the one with skulls.

    You can't use the <item>:<data value> format anymore, gotta set the data value manually just like you did in the line next to the one you used this.
     
  8. Efnilite

    Supporter

    Joined:
    May 12, 2018
    Messages:
    218
    Likes Received:
    13
    Medals:
    That post was from October 17th, when alpha-5 just released lol
    And yes, you can use it now
     
  9. Dan Owen

    Dan Owen Member

    Joined:
    Aug 21, 2017
    Messages:
    14
    Likes Received:
    0
    Soooooooooo maps?
    --- Double Post Merged, Dec 22, 2018, Original Post Date: Dec 16, 2018 ---
    Anyone? I can't be the only person using the maps?
     
  10. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    868
    Likes Received:
    50
    Medals:
    You can use skript-mirror with maps as well
     
  11. Dan Owen

    Dan Owen Member

    Joined:
    Aug 21, 2017
    Messages:
    14
    Likes Received:
    0
    What is this and where do I find it? :emoji_grinning:
     
  12. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    868
    Likes Received:
    50
    Medals:
    1: Skript addon
    2: Google
     
  13. Dan Owen

    Dan Owen Member

    Joined:
    Aug 21, 2017
    Messages:
    14
    Likes Received:
    0
  14. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    868
    Likes Received:
    50
    Medals:
    From skript-mirror's GitHub:
    This means you can sort of use Java in Skript, and since you use maps with Java, you can also use it in Skript with skript-mirror. You might be able to figure it out yourself, if you think you can figure it out by yourself, that's fine. However, if you don't know how to do it you can tell me what you want your Skript to do and I can create it for you if you want me to.
     
  15. Dan Owen

    Dan Owen Member

    Joined:
    Aug 21, 2017
    Messages:
    14
    Likes Received:
    0
    I really appreciate the help :emoji_slight_smile: I used to use SkQuery to draw png images onto maps from a URL
    You can see my full code on the post at the start

    Could you get me started I am sure I will get the hang of it but I don't know where to start

    The picture is like the ones I load from the URLs
     

    Attached Files:

  16. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    868
    Likes Received:
    50
    Medals:
    Okay so I just found out that Skellett also has some map support, have you tried that out yet? It would be easier than skript-mirror probably.
     
  17. Dan Owen

    Dan Owen Member

    Joined:
    Aug 21, 2017
    Messages:
    14
    Likes Received:
    0
    I seem to be a bit rusty, I am not getting any errors but it does not seem to work. I am sure I am just doing something silly

    on join:
    make player execute command "/genmaps"
    command /genmaps:
    trigger:
    set {_map} to "map:167"
    set {_image} to image from the file path "plugins/Maps/harley_quinn.png"
    draw image {_image} on skellett map {_map}
    add {_map} to player
     
  18. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    868
    Likes Received:
    50
    Medals:
    You're setting the map variable to a text, not an item. I think you should also use the manage effect to be able to do something with the map
     
  19. Dan Owen

    Dan Owen Member

    Joined:
    Aug 21, 2017
    Messages:
    14
    Likes Received:
    0
    That does make sense but I get an error, again I am sure I am being silly. What am I missing?

    Line 6: Can't understand this expression: 'map:167' (script.sk, line 6: set {_map} to map:167')
     
  20. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    868
    Likes Received:
    50
    Medals:
    Maybe something like
    Code (Skript):
    1. set {_map} to map
    2. set data value of {_map} to 167
     
Loading...