Premium Stickers [Huge images in Minecraft!] [Paid]

Discussion in 'Resource Discussion' started by ChaoZ, Jul 9, 2015.

  1. The second thing can be done, but unfortunately the first suggestion isn't possible - the problem is that you wouldn't see the background block at transparent areas but the itemframe - and this looks pretty ugly.
     
  2. 357

    357

    Yeah, but doesn't the item frame only show around the inner areas of the block? So if you had a small amount of transparent areas on the outer areas of the picture it wouldn't show up. I thought that was how it works but I'm not entirely sure. But still, it would be a nice feature to have.
     
  3. Unfortunately not, if there is a map in an itemframe, the brown square fills the complete side of the block. I think in a 1.7 snapshot it was possible to have transparent maps, but mojang has fixed this because behind these empty maps many things like signs, chests and players were invisible ;).
     
  4. 357

    357

    Ah, I see. I feel like it would still be useful sometimes but it's not that big of a deal.

    I do have another suggestion though. I think it would be easier to manage the stickers if you changed the way it was set up. What if you could just save a permanent sticker under a name with /ps [name] and not include the size of the picture, and then do /sticker [name] [dimensions] afterward to get the sticker. This would allow you to resize a picture as many times as you wanted without saving the same picture multiple times trying to get the right size and then having to go back and delete all of the saves. With this, you could also set some kind of /sticker list command which would list all of the sticker names and URLs in chat, rather than how it's set up now to list every single frame of each picture. This would make it extremely easy to get the perfect size without wasting space, and also allow images to be tracked easily.

    This is just my suggestion, I know it would probably take a while to change everything but I feel like other users who have this plugin would agree with my suggestion. No matter if you decide to add it or not, thanks for reading.
     
  5. @357 If you want, I can still add the possibility for transparent stickers :).
    Although the idea is very good, there's one big peoblem with it: java is very slow with image processing and my laptop needs ~ one second to create a 128x128 sub image of a bigger item, so every time you would place the picture, it would need to resize it. If the sticker dimension is 20x30, my laptop would need 600 seconds to place a single sticker - every time it will be placed.
    But I can try to find an alternative way to process images - maybe there's a faster way, because your idea seems better than mine and it would be nice to implement this feature :).
    But this isn't possible with ImageIO from java, because processing images takes way too much time.
     
    • Like Like x 1
  6. 357

    357

    There are other ways to add a feature like this too. To save an image, you could just do /ps [name] and that would only save the URL for that image. Then to get the sticker you could do /sticker [name] [dimensions] and then choose if you wanted to overwrite one of the saves of the image by re-downloading it using new dimensions, or create another save of that image with the new dimensions. If you input dimensions that already exist for that image, then it would give you the one that already exists.

    I hope that made sense. I just think there would be a smoother way to set it up. Even a few simple changes would make the plugin much more user-friendly, for example you could just set it up so when you save a sticker as normal it places each part of the image under its own directory instead of just dumping huge amounts of files together, because that makes it really annoying to delete them. Instead of having to select every single little image piece, you could just select the directory for the name of the image you wanted to delete, and bam you're done.

    I hope you find my ideas useful. Thanks again for reading my suggestions.
     
  7. The process which takes the most time isn't the download of the image, but the resizing, filling and cutting. like I said, when you download a picture with a resolution of maybe 1920*1080 and split it into 20*11 small pictures (for the big sticker), it isn't the problem to download the sticker - but to split it in these small pictures.

    But thanks for your suggestions :)
     
  8. It works good when you drop the picture in the folder, and then restart the server - however,
    just dropping the picture in the folder and you can't find it from MC

    the downloading part usually crashes the server straight away every time

    Also the version on here says 1.1.1 but the downloaded version reports 0.9

    Other than that I like it but please fix the d/l

    examples:
    [01:20:22] [Server thread/INFO]: xander97034 issued server command: /sticker https://static.spigotmc.org/img/spigot.png
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: java.net.UnknownHostException: https
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at java.net.PlainSocketImpl.connect(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at java.net.SocksSocketImpl.connect(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at java.net.Socket.connect(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at java.net.Socket.connect(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at sun.net.NetworkClient.doConnect(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at sun.net.www.http.HttpClient.openServer(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at sun.net.www.http.HttpClient.openServer(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at sun.net.www.http.HttpClient.<init>(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at sun.net.www.http.HttpClient.New(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at sun.net.www.http.HttpClient.New(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at de.Niklas.Stickers.Util.ImageUtil.getImageByURL(ImageUtil.java:53)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at de.Niklas.Stickers.Core.StickerPlugin$1.run(StickerPlugin.java:222)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    [01:20:24] [Craft Scheduler Thread - 58/WARN]: at java.lang.Thread.run(Unknown Source)
    [01:21:52] [Server thread/INFO]: xander97034 issued server command: /permsticker list
    [01:22:03] [Server thread/INFO]: [0;33;22m[[0;32;1mClearLag[0;33;22m] [0;32;1m[0;33;22m46 [0;36;1mMobs have been removed![m
    [01:22:03] [Server thread/INFO]: [0;33;22m[[0;32;1mClearLag[0;33;22m] [0;32;1m[0;36;1mYou just removed 0 entities![m
    [01:22:13] [Server thread/INFO]: xander97034 issued server command: /persticker spigot https://static.spigotmc.org/img/spigot.png
    [01:22:22] [Server thread/INFO]: xander97034 issued server command: /permsticker spigot https://static.spigotmc.org/img/spigot.png
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: java.net.UnknownHostException: https
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at java.net.PlainSocketImpl.connect(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at java.net.SocksSocketImpl.connect(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at java.net.Socket.connect(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at java.net.Socket.connect(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at sun.net.NetworkClient.doConnect(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at sun.net.www.http.HttpClient.openServer(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at sun.net.www.http.HttpClient.openServer(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at sun.net.www.http.HttpClient.<init>(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at sun.net.www.http.HttpClient.New(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at sun.net.www.http.HttpClient.New(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at de.Niklas.Stickers.Util.ImageUtil.getImageByURL(ImageUtil.java:53)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at de.Niklas.Stickers.Core.StickerPlugin$2.run(StickerPlugin.java:469)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    [01:22:24] [Craft Scheduler Thread - 59/WARN]: at java.lang.Thread.run(Unknown Source)
    [01:24:10] [User Authenticator #2/INFO]: UUID of player xander97034 is 0e917488-c23e-487c-a73c-c93fc37cc31c
    [01:24:12] [Spigot Watchdog Thread/ERROR]: The server has stopped responding!

    I rebooted and tried http:// url, but same results or sometimes no crash but nothing detectable happened

    thanks man
     
  9. @xander97034 the 0.9 version isn't a problem, I just often forget about the plugin.yml, because the file doesn't change except the version number.
    I've made an update for https URLs, it should work now :).
    But to be honest, I have no idea why your server crashes - if the image can't be created, it should be an unsuccessful download and not a crash..
     
    • Friendly Friendly x 1

  10. @ChaosZ - thank you thank you thank you for fixing up the https url's

    It works and I'm off plastering my world with lots of assorted pictures!

    I haven't seen any crashes like I did before - perhaps was unrelated issue

    If you are using worldguard you may want also to
    /region flag [region] entity-item-frame-destroy deny
     
  11. I'm not a plugin Dev nor do I know a lot about coding minecraft plugins, not familiar with bukkit api or anything...
    I work with textures and custom models, and from my perspective it should be possible to turn the item frame invisible. If the problem is the non transparent surfaces in 1.8 there are many ways around that. I don't know what you can or can't do as far as block/entity manipulation goes but I took something which 99% of the minecraft community or more considered impossible in 1.8 and made it possible. As far as I know, you can now spawn in custom anything with vanilla commands. Maybe there is a way to spawn in invisible item frames with json commands? And you can then use those frames for the images.
     
  12. Oh, good to know! I'll see if I can find anything - but to be honest, I've never heard about a way to spawn a map without an itemframe, especially without manupulating lots of packets.
     
  13. em found abug.
    after a server restart most of the maps are transparant and the image is gone..
     
    • Agree Agree x 1
  14. Do you use the command /permsticker or the command /sticker?
     
  15. OP's images are broken.