ImgMap

Logo

ImgMap: Render any image on an in-game map!

By Evangon, Maximdv, and JohnnyBlu

Originally coming from a picture of a troll face by md_5, this plugin allows a user with a map in hand (obviously with the proper permissions) to essentially put an image onto the map. The image could be anything: Instructions, rules, messages, warnings, a very nice picture of a cat, whatever you want! All images are resized to the proper dimension of 128x128. The image is then sent over to a rendering process (Devs: Check the source on how it's done if you want), which then the map renders the image for that map. Anyone with a map with the same ID (Typically, it says when you hover over it, e.g "Map #0") to see the same image too! The only downside to all of this is that due to the nature of Minecraft maps, they do not support full color. This is due to a limitation on the clients themselves.

Installation

Just drop it into the /plugins/ folder! No special configuration needed!

How to use

  1. Give yourself a map with a specific ID. This ID can be anything, but remember, once you draw an image on it, it will pertain only to that specific ID!
  2. Get the URL of the desired image! This is where some people mess up. In order for the plugin to successfully render it, it has to be a direct link to the image. Simply right click on the image and hit "Copy Image Location".
  3. Hold the map with the super specific ID and type in "/drawimage" and paste it! For most users, to paste, you do "CTRL+V".
  4. Wait a bit; rendering can take a bit. You'll notice several segments appear on the map; this it indicating that it's loading. If nothing happens, you're either met with a message that says something along the lines of "Server Internal Error" or you're staring a blank map. If you get kicked with the message with "Server Internal Error", simply type, in console, "fixmap <your super specific id>". This basically fixes the map with the old over world rendering. Try again; if it doesn't work, report it in the comments! However, if you are getting nothing, be sure the image is accessible directly from your browser (clear your cache before you do so!) Sometimes, what happens is that the owner of the website has set privileges denying anyone from accessing the image directly. A bit bothersome, but you can probably save the image and upload it somewhere else. However, when doing so, please follow the copyright usage on said images!
  5. Viola! Your map now has that pretty picture of a kitty or something!

Commands

  • /drawimage <image url> Draws the specified image to the map you're holding. If you want to "save" the picture to the map, you add "-s" to the end of the command. The reason why "save" is written in quotations is because it doesn't actually save the map's picture; it simply saves the URL and it's corresponding ID to a flatfile and is loaded on start up.
  • /drawanimatedimage <gif url> Attempts to draw an animated gif image. A little buggy here and there, but it works for the most part! Please be warned that this takes up a lot of bandwith (You're sending anywhere between 0 to 16kilobytes nearly every second!) and that it also is resource intensive!
  • /drawytvideo <yt-ID> Experimental. Downloads a video and converts it to a GIF format. See /drawanimatedimage for more information as the same process is used.
  • /emulategb <rom name> Highly experimental. Emulates a GameBoy (only GameBoy, not GameBoy Advanced or GameBoy Color) game on a map. Fully integrated, no client mods needed! Click on the chat messages given in chat to control the emulator.
  • /emuaction <save|load|a|b|left|right|up|down|holdinput> Simulates input for emulated GameBoy games on a map. Used by the gamepad, you can also use it as a command if you wish. Note that "save" and "load" do not work as of current. Any input button just simulates input. "holdinput" makes the emulator act as if the person is holding down a directional button and directional only.
  • /clearmap With a map in hand, this command wipes the image off of it and puts the old Minecraft map rendering back.
  • /fixmap <id> A debug command, Caused an issue with a map that psudo-bans them? No worries! Simply get the ID of the problematic map, and type this command in, replacing <id> with the map's id. It's like /clearmap, only this time, you can target maps!
  • /getmap <id> More of a debug command, but can be helpful for some, it allows you to get a map by almost any ID. The reason why this is "almost" is because if you try to get a map that is above the number that exists, it merely just goes over and gets the next ID, rather than the one you want. This is something that's within Minecraft that I cannot fix.

Permissions

  • imgmap.*: Grants almost all rights to ImgMap. This does not include debug commands.
  • imgmap.debug: Grants debugging rights to ImgMap. Does not include drawing or restoring capabilities.
  • imgmap.drawimage: Allows you to draw an image to a map.
  • imgmap.drawanimatedimage: Allows you to draw an animated image to a map.
  • imgmap.clearmap: Allows you to clear a map and restores the overworld rendering.
  • imgmap.debug.fixmap: Debug command. Allows you to remove all renderers on a given map ID.
  • imgmap.debug.getmap: Debug command. Allows you to get a map by any ID.

Source for Developers/Contributors

Found a bug that you want to squash yourself? Go ahead and fork me! (Please don't actually stab me with a fork!) https://github.com/CirnoTheGenius/ImgMap-LosingPixels

Examples

Google Logo Cornell Box

Upcoming Feature

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of the3rdnumber_ the3rdnumber_ Jun 14, 2014 at 03:32 UTC - 0 likes

    @FrauKoujiro: Go

    Please figure out what the issue is. /drawimage is not working, read the comments down.

    http://img842.imageshack.us/img842/8073/img14062012133358.png

  • Avatar of FrauKoujiro FrauKoujiro Jun 10, 2014 at 21:23 UTC - 0 likes

    Updated to 1.7.9. Build 1.5 is officially marking the Beta development phase.

    @OzOwnz: Go

    wat. It's supposed to be /drawimage.

    Last edited Jun 10, 2014 by FrauKoujiro

    Life is a turn-based game. Screw up a turn, you screw your life up. However, I have all the time to decide what to do. BFAK:90605958,092f233e0971d1f4e789deca64d1356b912a82925512cccc9acc39197018137d

  • Avatar of LordofGoats LordofGoats Jun 06, 2014 at 00:47 UTC - 0 likes

    Sorry to bother you. I received a similar error as gdude2002 down there, and tried /map, but that doesn't appear to be a command.

    /drawimage yields the in-game error "an internal error occurred while attempting to perform this command."

    Just for information, I am currently using Bukkit 1.7.9-R0.2 and using the latest version of ImgMap.

    Thanks in advance

    Last edited Jun 07, 2014 by LordofGoats
  • Avatar of OzOwnz OzOwnz Jun 05, 2014 at 19:53 UTC - 0 likes

    @gdude2002: Go

    Use /map instead of /drawimage

    The dev changed the command, but forgot the to change the plugin xD.

  • Avatar of gdude2002 gdude2002 Jun 01, 2014 at 12:48 UTC - 0 likes

    Not working on Spigot for 1.7.5.

    [08:47:05 INFO]: arbot issued server command: /drawimage http://puu.sh/8VeAl.jpg
    [08:47:05 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'drawimage' in plugin ImgMap v1a
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-1370]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) ~[spigot.jar:git-Spigot-1370]
            at org.bukkit.craftbukkit.v1_7_R2.CraftServer.dispatchCommand(CraftServer.java:719) ~[spigot.jar:git-Spigot-1370]
            at net.minecraft.server.v1_7_R2.PlayerConnection.handleCommand(PlayerConnection.java:984) [spigot.jar:git-Spigot-1370]
            at net.minecraft.server.v1_7_R2.PlayerConnection.a(PlayerConnection.java:829) [spigot.jar:git-Spigot-1370]
            at net.minecraft.server.v1_7_R2.PacketPlayInChat.a(PacketPlayInChat.java:28) [spigot.jar:git-Spigot-1370]
            at net.minecraft.server.v1_7_R2.PacketPlayInChat.handle(PacketPlayInChat.java:65) [spigot.jar:git-Spigot-1370]
            at net.minecraft.server.v1_7_R2.NetworkManager.a(NetworkManager.java:148) [spigot.jar:git-Spigot-1370]
            at net.minecraft.server.v1_7_R2.ServerConnection.c(ServerConnection.java:77) [spigot.jar:git-Spigot-1370]
            at net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:703) [spigot.jar:git-Spigot-1370]
            at net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:273) [spigot.jar:git-Spigot-1370]
            at net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:566) [spigot.jar:git-Spigot-1370]
            at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:472) [spigot.jar:git-Spigot-1370]
            at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [spigot.jar:git-Spigot-1370]
    Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R1/World
            at net.yukkuricraft.tenko.ImgMap.onCommand(ImgMap.java:55) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-1370]
            ... 13 more
    Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R1.World
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) ~[spigot.jar:git-Spigot-1370]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[spigot.jar:git-Spigot-1370]
            at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_05]
            at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_05]
            at net.yukkuricraft.tenko.ImgMap.onCommand(ImgMap.java:55) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-1370]
            ... 13 more
    

    Owner of The Archives

  • Avatar of FrauKoujiro FrauKoujiro May 23, 2014 at 02:36 UTC - 0 likes

    Just as a warning; FrauKoujiro == Evangon; I had my username changed.

  • Avatar of wbcmac200 wbcmac200 May 17, 2014 at 20:11 UTC - 0 likes

    When I restart the server the map resets to a normal map from the picture. How do I set it to save it? I use /map [url] -s

    Last edited May 17, 2014 by wbcmac200
  • Avatar of FrauKoujiro FrauKoujiro Apr 27, 2014 at 21:03 UTC - 0 likes
  • Avatar of Remi_Scarlet Remi_Scarlet Apr 16, 2014 at 09:26 UTC - 0 likes

    hi fgt

  • Avatar of FrauKoujiro FrauKoujiro Apr 15, 2014 at 23:13 UTC - 0 likes

    @Mine5397: Go

    /getmap requires you to provide the map ID along with it. For instance, if you wanted map ID 0: /getmap 0 or map ID 3232: /getmap 3232

    Do note that for some reason if you have not created a map (by crafting/getting Empty Maps and using them to create a Map) with a specific ID, it goes to the next map available map ID. This is something to do with Minecraft or Bukkit; I'm not sure myself.

Facts

Date created
Jul 21, 2012
Categories
Last update
Jul 07, 2014
Development stage
Release
License
GNU Lesser General Public License version 2.1 (LGPLv2.1)
Curse link
ImgMap
Downloads
25,682
Recent files

Authors