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


    This has been superceded!
    do interesting stuff with maps!

    JavaDocs in the zip

    Source in the zip
    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?



    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


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


    (Jaw Drops Off)
  4. Offline


    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


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


    ask dynmap
  7. Offline


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


    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


    Why is the quality looks bad?
  10. Offline

    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.


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


    I suck.
    How bad am I?
  12. Offline


    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


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


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


    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


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

    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

  17. Offline


    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


    Running on b953:
    2011-07-14 10:55:07 [SEVERE] Could not load 'plugins/MapAPI.jar' in folder 'plugins':
            at java.lang.Class.getConstructor0(
            at java.lang.Class.getConstructor(
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(
            at org.bukkit.craftbukkit.CraftServer.<init>(
            at net.minecraft.server.ServerConfigurationManager.<init>(
            at net.minecraft.server.MinecraftServer.init(
  19. Offline


    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
  21. Offline


    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


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

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


    My new map :)
    Show Spoiler

  24. Offline


    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


    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


    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


    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