Inactive [DEV/ADMN/MISC] MapAPI v1.1 - map API reloaded [953]

Discussion in 'Inactive/Unsupported Plugins' started by codename_B, Jul 13, 2011.

  1. Offline

    codename_B

    This has been superceded!
    MapAPI
    do interesting stuff with maps!

    v1.1
    JavaDocs in the zip

    Source in the zip
    [​IMG]
    How to use:

    This plugin exposes an API for other plugins to use for writing a series of bytes to a map. It's like sk89q's one built into bukkit but easier to use.

    .
    FAQ/Noob Questions:

    Notch only has support for 56 colors, 4 of which are transparent, leaving 52 colors to actually use to make an image. I match them as best as I can.​
    Easter Eggs:
    If you run the jar (by double clicking on it) rather than running it as a plugin a representation of notch, in the colors of the in-game map, will appear on your screen.​



    So does this mean I can have Katy Perry on my minecraft map?

    [​IMG]


    Changelog:

    v1 - 13 July 2011 - released plugin

    v2 - 13 July 2011 - added threading to...everything
    v2.1 - 14 July 2011 - updated color mapping model to a better matching system based on HSB rather than RGB.
    v1.1 - 25 July 2011 - rereleased under a new branch
     
  2. Offline

    DrAgonmoray

    Sweeeeet! I wish I still ran a server :|
     
    MineDev likes this.
  3. Offline

    RazorFlint

    (Jaw Drops Off)
     
  4. Offline

    rakiru

    Ah nice. Haven't seen a plugin to do anything like this yet. It will be great when/if notch lets you place maps.
     
  5. Offline

    AlphaPapa

    Tie in to automatically grab the tile you are standing in from Dynmap? =Awesome?
     
  6. Offline

    codename_B

    ask dynmap
     
  7. Offline

    rominos2

    Hmm Good I like this one (my face everywhere on my server) ^^
     
    bellardie likes this.
  8. Offline

    codename_B

    Version 2 released - this one lets your players load up their own images onto their maps client side!

    Post your screenshots!

    Post your videos! :D
     
  9. Offline

    nubpro

    Why is the quality looks bad?
     
  10. Offline

    codename_B

    http://www.minecraftwiki.net/wiki/Map_Item_Format
    Notch only has support for 56 colors, 4 of which are transparent, leaving 52 colors to actually use to make an image. I match them as best as I can.

    ADDED TO FAQ

    EDIT: @nubpro - why is your grammer sounds terrible?
     
  11. Offline

    nubpro

    I suck.
    How bad am I?
     
  12. Offline

    nacs

    You mean 'grammar'? :p Sorry couldn't resist.

    Plugin looks great however. As someone mentioned, I wonder how feasible it would be to automatically draw an image from an online map image to the in-game map based on player location without a /write command.
     
  13. Offline

    codename_B

    Very easy - thats why I exposed an API - someone just needs to write a plugin to do that, and it's done.
     
  14. Offline

    hamzehrocks100

    if you drop it , and give it to another player will they be able to see the picture
     
  15. Offline

    codename_B

    If you use the /write method YES
    If you use the /mymap method NO

    This is all in the OP, can you explain to me how I could help make this clearer to you?
     
  16. Offline

    BR3TON

    Im OP in both the OP file and group manager but I get 'Unknown console command' when I type in either of the commands

    EDIT:
    The MapAPI.jar is in my plugins file and I've done a full restart of the server but it doesn't appear to be registering as when I do /pl there is no reference to it

    EDIT 2:
    I just ran it on a server hosted off my computer on its own to see if there were any plugins conflicting it on my actual server and I got this
    Show Spoiler

    [​IMG]
     
  17. Offline

    codename_B

    Thanks for the update - looks like a corrupted jarfile got uploaded somehow - I'm working on fixing this as we speak.

    EDIT: Please redownload, I've uploaded a non-corrupted jarfile - sorry about that.
     
  18. Offline

    MatCat

    Running on b953:
    Code:
    2011-07-14 10:55:07 [SEVERE] Could not load 'plugins/MapAPI.jar' in folder 'plugins':
    java.lang.NoSuchMethodException: com.ubempire.bukkit.map.MapItem.<init>()
            at java.lang.Class.getConstructor0(Class.java:2706)
            at java.lang.Class.getConstructor(Class.java:1657)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:171)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:199)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:122)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:89)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  19. Offline

    codename_B

    Hi, you haven't downloaded the update. I can tell this from that error. We are on version 2.1 now, please update.

    You can also check the version by looking at the plugin.yml inside the jarfile.
     
  20. Offline

    The Angry kat

    Wow, I never thought I could kill a creeper with a picture of trollface.jpg in minecraft
    MIND=BLOWN
     
  21. Offline

    BR3TON

    Thanks for the reply I got it working now its great!
    is there anyway to undo it aswell though so I can haz my normal map back and switch between them?
     
  22. Offline

    codename_B

    No, you can craft another map (that has a different ID and use that) this does however ovveride existing maps so be careful :)

    http://img6.imagebanana.com/img/9c8c8ufm/20110714_18.56.32.png
    http://img6.imagebanana.com/img/lslfm8dc/20110714_19.04.31.png

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  23. Offline

    BR3TON

    My new map :)
    Show Spoiler

    [​IMG]
     
  24. Offline

    Shamebot

    Actually there are less colors, because there are only 3 different brighness levels not 4 (that's why the second subcolor and the forth are the same).
    BTW I used the distance in color space for matching, dunno whether that's better or not, but it was what wikipedia suggested.
     
  25. Can you make this work in reverse where it uploads an image file that is your map to an FTP server?
    (Config the User/Name/IP/Etc)
     
  26. Offline

    codename_B

    That's very easy to do, is there a great demand for it? If so, I can add in a simple function to do it (once I figure out how to grab a map that's NOT in the users hands)
     
  27. I think perhaps it's one of those things that a demand will exist for once the option is available. :)
     
  28. Offline

    codename_B

    I used the hsb format for my new matching algorithm, color matching seems a LOT better overall - though you get some wierd combinations of oclors at times, nothing we can do about that I guess.

    How about I simply make a way to get a BufferedImage from an ingame map? Let another plugin handle the read/write.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  29. Your call, it'd be more useful with a R/W
     
  30. Offline

    codename_B

    Hey, it's not hard for me to add it! More than happy to do something like that.

    It'll be added to the API for v3 release.
     

Share This Page