Inactive [EDIT] Copycat v1.0 - Render images from a URL [1.4.6-R0.4]

Discussion in 'Inactive/Unsupported Plugins' started by Javanator, Apr 12, 2011.

  1. Offline

    Javanator

    Copycat - Image to Block Renderer [1.4.6-R0.4]


    Version 1.0
    Sorry for the inconvenience, but I have moved the home of the plugin to this location to here.


    Version: v1.0

    Description:
    Copycat allows players to render images from a URL into the Minecraft world. Just target a block and type a command. I don't do documentation very well, but /cc help should be enough for you to figure it out. Configuration is XML based and human friendly for manual editing.

    Features:
    • Player defined shortcuts
    • World restriction
    • Administrative enablement/disablement
    • Administrative size clamping (in XML based config)
    • Transparency support
    • Block Profile support
    • Horizontal or vertical image orientation
    Download Here

    Source Code (SVN):
    https://bukkit-modders.googlecode.com/svn

    Having Trouble?
    If you are having trouble getting the plugin to work, you need to post some descriptive information, such a stack trace, what you were doing, command used, etc. Otherwise, you are most likely going to be ignored.

    Changelog:

    Version 0.6
    • Updated to conform with 1.2.3 API
    • Added a couple new blocks
    • Please delete your pluginConfig.xml to get support for the latest blocks
    Version 0.5
    • Performance and memory improvements
    • fixed help
    Version 0.4
    • Finally got horizontal image orientations to work.
    • Added fully parameterized image draw (not documented in help)
    • Removed memory resident config (no more reload necessary after editing .xml)
    • Added the ability to change the trigger command
    Version 0.3
    • Added block profile support in pluginConfig.xml
    • Fixed transparency loss on image scaling for palette based images (png and gif)
    • Added image scaling capabilities /set dimensions <width> <height>
    • Increased default image size and improved reliability in large image handling
    • DELETE your old pluginConfig.xml so that it is regenerated with a new one to support the new features
    Version 0.2
    • Delete your old .jar. I am now using a new filename for releases. CopyCat.jar
    • Fixed server path with spaces bug
    • changed command trigger from /copycat to just /cc
    • provided more helpful help and better argument checking
    • Added operator undo /cc op undo <playername>
    • Added config reload /cc op reloadConfig
    Version 0.1
    • Initial Release
    Usage Info:

    Target a block, which will become the lower left corner of your image. Then type the magic words:
    /cc mario or /cc shortcut copy mario

    Horizontal/Flat image orientation is based on your look angle. Look down enough at your targeted block and the image will be rendered beneath your feet.

    I added support for fully parameterized drawing. Use it at your own risk. I've tested it, but am unsure how it would work if coordinates for unexplored map areas are used, etc. The format for this is:
    • /cc shortcut copy <shortcut> <X> <Y> <Z> <yaw> <pitch>
    • Yaw is a rotation angle 0 < 360 degrees. It will be snapped to the nearest 90 degree angle
    • Pitch is the up/down angle. Use a number > 45 degrees to orient the image flat
    You may also change the command trigger from /cc to something else. To do this follow the below:
    1. Extract the contents of the CopyCat.jar -- Its just a zip file! rename it to .zip
    2. Edit the plugin.yml file
    3. change cc to whatever you like.
    4. Repack the .zip and rename to .jar again with your edited .yml file.
    I've set a reasonable maxImageWidth and maxImageHeight in the default pluginConfig.xml. If you increase it, beware. This will make your server cry for mercy. For example, a 300x300 image means changing 90,000 blocks, which is a pretty heavy operation.


    2011-07-21_18.20.37.png
    2011-07-18_10.18.03.png
     

    Attached Files:

  2. Offline

    winnux8

    I also get path not found, so just waiting for the update ;)
     
  3. Offline

    godgodgodgo

    1. Moderator says you need a download link ;)
    2. Can you change the ridiculously large .jar file name to just copycat.jar?
    3. If you make a static download link that won't change can you submit it for the CraftBukkitUpToDate plugin :) thanks

    Did you make this?
    How can i make just a simple block letter image of my username? I tried on paint but I suck :/
    Haven't tried photoshop

    Does this plugin only use wool or does it use things like gold blocks and diamond blocks as well?

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

    Adondriel

    This would be awesome :p
     
  5. Offline

    IOn Vash

    this is a epic plugin
     
  6. Offline

    MJRamon

    Any PNG support? Like no white warp around the image?
     
  7. Offline

    Javanator

    For now it will be just wool. I do have plans of expanding it later and have some selectable predefined profiles, like burnable only. common only, wool only.

    Its not a matter of image format. Image transparency is supported (at least at one point I know it worked) I was debating how to handle transparency. Anyone is welcome to chime in, but i am not sure if a transparent pixel should be glass or air or some background color.

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

    MJRamon

    Air, of course :)
    And... plugin doesn't create any folder and config file. I use FreeBSD, root access. Maybe because I changed it name from bukkitmodders-copycat-0.1-jar-with-dependencies.jar to copycat.jar?

    EDIT: Nope. Default name, no folder...
     
  9. Offline

    hofec

    THIS IS INCREDIBLE ! :eek: [tnt] [diamond]

    in next update it will be nice implement some other blocks too :)
     
  10. Offline

    joshtemplin3

    I'm running version 612 and it just says "Unknown console command. Type "help" for help."
     
  11. Offline

    PhantomGamers

  12. Offline

    Asymetrikon

    I cant use any command (cb670). Im admin and the server log shows this:

    2011-04-15 10:43:08 [SEVERE] Error processing command java.util.NoSuchElementException at java.util.StringTokenizer.nextToken(Unknown Source) at org.bukkitmodders.copycat.listeners.CopyCatPlayerListener.doAdd(CopyCatPlayerListener.java:175) at org.bukkitmodders.copycat.listeners.CopyCatPlayerListener.performCommand(CopyCatPlayerListener.java:76) at org.bukkitmodders.copycat.listeners.CopyCatPlayerListener.access$000(CopyCatPlayerListener.java:31) at org.bukkitmodders.copycat.listeners.CopyCatPlayerListener$1.run(CopyCatPlayerListener.java:55) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2011-04-15 10:43:08 [SEVERE] Nag author: '<NoAuthorGiven>' of 'CopyCat' about the following: onPlayerCommandPreprocess has been replaced with a new signature, (PlayerCommandPreprocessEvent)
     
  13. Offline

    ledhead900

    Question if the img uses transparency will this make the transparecy as AIR ?
    if it does not make it do so please. I don't want to spawn walls of imgs like in your demonstration picture.


    Also how does it handle the img I have no idea how this is even working I mean is it any img or do I have define stuff in order to have it render properly.

    For instance if I wanted to render Google's img would I just put a the URL for GOOGLE img and it will be perfect or what I assume the config and your plugin reads pixil color and makes a block based on its findings.
     
  14. Offline

    Cosmic Break

    it will try to match the color as close as possible, the higher the quality the better, but theres only so many colors of wool...

    if the background is transparent, it will use air instead of wool
     
  15. Offline

    XNihilo

    Very very nice plugin ! Works well on Bukkit 676, just don't pay attention to the errors spaming.. It WORKS !
     
  16. Offline

    Binaryclock

    16 bit would be 65536 colors :p

    MC "when is comes to colors" in terms of wool, is 4 bit, which is 16 wool colours.
     
  17. Offline

    M1sT3rM4n

    YOU SHUT YOUR WHORE MOUTH! :D
     
  18. Offline

    KyGreatwind

    this dosnt work super fail
     
  19. Offline

    BunBUn

    It works fine for me on my server IMAGE UP :confused:![​IMG]
    [​IMG]
     
  20. Offline

    Arjan

    The plugin crashed my server when i tried to copy megaman and mario via the urls it gave me a sh*t load of errors like 10 errors a sec. sorry i cant copy it i alrdy removed the plugin (sorry ;) ) but i think it was pretty frustrating cause i didnt make a backup of the server from a whole day of work.. the first 2-5 times it copied megaman and mario fine but after that when i relogged i coudnt copy any of these anymore and gave me errors! Maybe it doesnt fit with some other plugin cause i have a lot of plugins! if you want i can re-download it and post my errors
     
  21. Offline

    MarsXTC

    Every time I try to use a command it says command not recognized , I tried different versions of craftbukkit, ex: 470,477,etc.
     
  22. Offline

    raistlinhunted

    CB674
    bigbrother, copycat, ecoCreature, Elevators, essentials, essentialsspawn, griefalertr, help, herobounty, herochat, heroicdeath, iconomy, lwc, magiccarpet, mcmmo, mobrider, monsterhunt, multiverse, npcx, nspleef, permissions, petitionplugin, portabletorch, preciousstones, runecraft, tentthis, towny, uquest, vampire, vanish, war, worldedit, wormholextreme,

    edit: I did rename it to copycat.jar....
     
  23. Offline

    Wahrheit

    I would love to see some updates to resolve the errors with this, please contact me when some more work has been done on it!
     
  24. Offline

    cjc343

    Thanks! I've been having a ton of fun playing around with this.

    You can get rid of the "unknown command" errors by either:
    1. Cancelling the event after processing it
    2. Moving to the (preferred) onCommand method, which requires that you register the 'copycat' command in the plugin.yml

    I've noticed that it sometimes takes a few tries to complete the picture, but if I keep removing the bottom left block and trying again, it seems to complete more and more of the picture.

    Looking forward to future versions -- thanks a ton.
     
  25. Offline

    Javanator

    I am in the process of switching to the new CommandExecutor and did discover through much pain the YML requirement you mentioned. All I got was a non-descriptive NPE. I personally hate the YML file and I had it autogenerated during my build process from my maven POM. I modified my build environment to continue to do this, but it took a bit more creativity. Basically... use ANT to exceute a main() and output a YML body, then inject into my JAR.
     
    cjc343 likes this.
  26. Offline

    MarsXTC

    When do you think the next version will be out?
     
  27. Offline

    TomSleeUK

    will definatly install once its updated to 677 and has an undo command!
     
  28. Offline

    bzb

  29. Offline

    Javanator

    0.2 release is out

    It contains mainly bug and usability fixes. Not much in terms of features. It should definitely be more straightforward to use and provide more helpful messages. If all the bad bugs are gone, i'll work on expanding the features.

    I hate typing so the one big thing i'll mention is that once you add a shortcut, I made it easy to copy your image. Just type /cc myimage

    Also, a number of you mentioned undo. That was previously present and still is.
    /cc undo If you are an OP, then you can undo another player's actions with /cc op undo badbadplayer. Undo can also be repeated to undo multiple sequences of image copies.

    Enjoy!
     
  30. Offline

    bzb

  31. clashes with clothcolors /cc...

    you need sand or sandstone for skincolor... :) awesome plugin​
     

Share This Page