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

    Wolfy9247

    So to answer your question: Not at this moment in time.
     
  3. Offline

    MeinerHosen

    Is there anyway to get rid of the "unknown console command" spam?

    edit* other than another plugin ;)
     
  4. Offline

    L30TACO

    each time i enter a command it says back that it's an unknown console command
     
  5. Offline

    MisanthropX

    can you hook that plugin up to worldedit's "undo" function?
     
  6. Offline

    FortuneNL

    This.Looks.Awesome. When i get at home... HELL YEAH :D
     
  7. Offline

    tha d0ctor

    this or add any undo function please to be able to rollback witohut burning my pictures ;)
     
  8. Offline

    PowerSet


    "HELP
    I need help with this plugin! I do not do graphics programming very well and want to add some more flexibility for image transformations (rotation). Right now I can only get images to render (reliably) vertically in the game world. Contact me if you can help."
     
  9. Offline

    t3hero

    this can never be this easy...can it?

    Orginal:
    [​IMG]
    resized:
    (just put x64 in the image resize thing in photoshop)
    [​IMG]



    Then it worked :D: (well kinda)

    [​IMG]



    i love you forever ^^
     
  10. Offline

    Javanator

    There is an undo function already. /copycat undo

    If the server is restarted, then the undo buffer is lost. I was not aware of a built-in one but will look into hooking it up.

    The fun way is to set it on fire, since its made of wool.

    The plugin can handle resizing. Did you try? Was there a stack trace output to the server console? Can you upload it?

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

    Criixx

    Where are the Permissions? :confused:
     
  12. Offline

    piousminion

    Code:
    10:12:32 [INFO] piousminion issued server command: copycat add flower http://uicon.ngfiles.com/3108000/3108512.gif
    10:12:39 [INFO] piousminion issued server command: copycat copy flower
    10:12:39 [SEVERE] Error processing command
    java.lang.ArrayIndexOutOfBoundsException: -1
            at java.util.ArrayList.get(ArrayList.java:324)
            at net.minecraft.server.World.a(World.java:1330)
            at net.minecraft.server.World.a(World.java:1305)
            at net.minecraft.server.Chunk.a(Chunk.java:304)
            at net.minecraft.server.World.setTypeId(World.java:235)
            at net.minecraft.server.World.e(World.java:294)
            at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:127)
            at org.bukkit.craftbukkit.block.CraftBlock.setType(CraftBlock.java:117)
            at org.bukkitmodders.copycat.util.MaterialTiles.setBlockMaterialToTile(MaterialTiles.java:78)
            at org.bukkitmodders.copycat.util.ImageCopier.draw(ImageCopier.java:78)
            at org.bukkitmodders.copycat.listeners.CopyCatPlayerListener.doCopy(CopyCatPlayerListener.java:267)
            at org.bukkitmodders.copycat.listeners.CopyCatPlayerListener.performCommand(CopyCatPlayerListener.java:70)
            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(Executors.java:441)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
            at java.util.concurrent.FutureTask.run(FutureTask.java:138)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            at java.lang.Thread.run(Thread.java:662)
    
    Result image. http://imagebin.org/147954

    It's done this with each image I've tried.
     
  13. Offline

    Nyk0n

    Nevermind. I got it. Thanks for this. Gonna test it out now.
     
  14. Offline

    RazorFlint

    Errors!
    Code:
    15:32:44 [INFO] Done (0.195s)! For help, type "help" or "?"
    15:32:52 [INFO] RazorFlint [/5.218.221.146:50094] logged in with entity id 63
    15:32:52 [INFO] Loaded world: City
    15:32:59 [SEVERE] Nag author: '<NoAuthorGiven>' of 'CopyCat' about the following
    : onPlayerCommandPreprocess has been replaced with a new signature, (PlayerComma
    ndPreprocessEvent)
    15:32:59 [SEVERE] Error processing command
    java.util.NoSuchElementException
            at java.util.StringTokenizer.nextToken(Unknown Source)
            at org.bukkitmodders.copycat.listeners.CopyCatPlayerListener.performComm
    and(CopyCatPlayerListener.java:75)
            at org.bukkitmodders.copycat.listeners.CopyCatPlayerListener.access$000(
    CopyCatPlayerListener.java:31)
            at org.bukkitmodders.copycat.listeners.CopyCatPlayerListener$1.run(CopyC
    atPlayerListener.java:61)
            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)
    15:32:59 [INFO] RazorFlint issued server command: copycat
    >
     
  15. Offline

    M1sT3rM4n

    Considering how MC is 16 bit when it comes to colors, that's pretty good.
     
  16. Offline

    derek9db

    I think this should be most important fix beacuse it is the the reccomended bukkit so it should work
     
  17. Offline

    MrKlassic

    PLEASE HELP!
    ALL I KEEP GETTING IS UNKNOWN CONSOLE COMMANDS!
    i placed the file in the plugins folder took out the .jar folder and placed it in the plugins folder the i ran the server,then it generated a folder called copycats i open it and find a properties folder,i open it then it opens it up in the internet browser,when i point at the block in the game and type /copycat add <name> then i put my url in bitly then that shortens it the i write that but then i get UNKNOWN CONSOLE COMMAND!!!!! please please please please please HELP ME!
     
  18. Offline

    FortuneNL

    Error, see all of the above ....

    Cant even add an image....
    http://rubenknoll.webs.com/Kongregate.jpg
    Doin something wrong? (This is a test, because of the short URL)

    /copycat add Kong http://rubenknoll.webs.com/Kongregate.jpg

    Like this, Right? :S

    <?xml version="1.0" encoding="UTF-8"?>
    <cc:configFile xmlns:cc="http://www.example.org/pluginSettings"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.example.org/pluginSettings pluginSettings.xsd ">
    <globalSettings>
    <prohibitedWorlds>
    <world>TheWorld</world>
    <world>anotherProhibitedWorld</world>
    </prohibitedWorlds>
    <maxImageWidth>128</maxImageWidth>
    <maxImageHeight>128</maxImageHeight>
    </globalSettings>
    <preferences>
    <playerPreferences playerEnabled="false" playerName="examplePlayer">
    <buildmode>wool</buildmode>
    <shortcuts>
    <shortcut name="Kong" url="http://rubenknoll.webs.com/Kongregate.jpg" />
    <shortcut name="anothershortuctname" url="file://aurl" />
    </shortcuts>
    </playerPreferences>
    </preferences>
    </cc:configFile>

    (My Config, Tried a LOT) RUnnin 670

    It gave the same error, when using default Config Q.Q

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

    Minecraftdude

    Adding an image didn't work for me. The /copycat help command works, but when I try to add an image, it doesnt recongnise it as a command.
     
  20. Offline

    joejoe

    Amazing works great thx
     
  21. Offline

    Tottely

    Better than the original picture was!

    [​IMG]
     
  22. Offline

    Javanator

    *UPDATE*

    For all those have been having trouble, the latest craftbukkit [670] introduced significant changes to the way commands are handled. It is still compatible with ugly messages, but I am working on an updated release. Cleanliness of commands should be improved and should have it ready in a day or two. Maybe even tonight. I also fixed a bug causing it to freak out when minecraft server is installed in a path with spaces in it.

    Stay tuned.
     
  23. Offline

    Tottely

    good job ill look forward for that :) AWESOME!
     
  24. Offline

    petteyg359

    16-bit is ~65k colors. 8-bit is 256 colors. There are only 16 colors of wool. That's 4-bit.
     
  25. Offline

    Nerozx

    i have one problem the plugin doesn't generate a folder.
     
  26. Offline

    MrMoe

    I also keep getting the "unknown command" BUT i saw that you are working on fixing it. so, *HAPPY FACE!*
     
  27. Offline

    Ceredorac

    How do you set this up on your server? e.g. like putting it straight into your plugins folder or putting it into the minecraft_server.jar???
     
  28. Offline

    godgodgodgo

    All plugins go in the plugins folder :)

    AAAHHHHH I want a simple image of my username to put on my castle but I can't find any text to image converters :'( I tried making one but I suck :(

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

    Juze

  30. Offline

    Javanator

  31. Offline

    Juze

    @Javanator : You're missing a download link, other than the attachment.
     

Share This Page