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

    dwmcc

    Awesome. Thanks for a great plugin, I'll be checking back regularly.
    -dwmcc
     
  3. Offline

    KrazyBonez

    Every time i copy an image into my MC from a URL it works, i see the image appear, but then the server crashes right when it renders, rolling back to the last save due to the crash. Any ideas what could be causing this? I do run CB build #670 and not 677, but all other plugins seem to work fine.
     
  4. Offline

    Javanator

    I cant really say anything without a stack trace from the server log. It sounds like it might be a possible cross-plugin interaction, but thats just speculation.
     
  5. Offline

    dwmcc

    Another great reason why to use this plugin: scare the crap out of all your server's users.
    [​IMG]
     
  6. Offline

    shrub

    @dwmcc

    I just have to say.. That is pure awesomeness!! :D
     
  7. Offline

    Javanator

    I fixed the transparency stuff and removed the multithreading i was using before. Now the server complains that its overloaded:
    Code:
    16:21:26 [WARNING] Can't keep up! Did the system time change, or is the server o
    verloaded?
    16:22:15 [INFO] 0, 0
    16:22:19 [INFO] 0, 0
    16:22:28 [INFO] 0, 1
    16:22:33 [INFO] 0, 0
    16:22:37 [WARNING] Can't keep up! Did the system time change, or is the server o
    verloaded?
    >
    but seems to work more reliably with large images. I was able to do 400 x 200 without too much pain, but any larger and my client would DC. I also added block profiles and image scaling that everyone wanted.

    Here are some samples of wool rendered vs all block types

    sunbather-wool.png sunbather-all.png
    tyson-wool.png tyson-all.png
    Do you guys want a release now or wait until Craftbukkit makes it to 1.5 client compatibility?
     
    cjc343 likes this.
  8. Offline

    majorcyto

    Im on the latest build and no matter what URL i do (have tried like 8.. different ones) it says Bad URL no matter what. :[
     
  9. Offline

    jamdis

    Feature request: A version of the cc command with X/Y/Z coords as arguments. That way I can use this as a semi-regularly updated thing without actually having to be at the target location.

    Oh, and amazing plugin, btw.
     
  10. Offline

    luke7396

    Is there any chance of getting the version 0.1 command back for copying an image? I much preferred it to now having to save every image you want as a short cut, in my mind that just wastes time. Please bring back /copycat copy <imageurl> please.
     
  11. Offline

    cjc343

    I just spent 10 minutes looking for a .3 build before I found this. I think it's fair to say that any time you have even small changes I'm eager to see them if you've got a build that you're testing.

    The URLs may be too long -- especially if you type for some time outside the chat box.

    Check the shortcut url in the pluginSettings.xml file. It may have been cut off, or you may have made a mistake typing it.
     
  12. Offline

    Wahrheit

    I'm waiting for 1.5, please release it after that. :)
     
  13. Offline

    Loart

    War, this already works for 1.5. I've had no problem so far with using it and creating stuff.

    Fun plugin, enjoying using it. Can't wait to see new version with all blocks used and not just wool.
     
  14. Offline

    klutch2013

    Pretty awesome, i suggest using a URL Shortener tho lol its gets hard copying the links in by hand
     
  15. Offline

    _knot_

    Im interested in all block mode a lot. Can't wait!
     
  16. Offline

    Javanator

    I've posted v0.3 tested with the latest craftbukkit build, 733. You will have to delete your pluginConfig.xml in order to take advantage of the new features. This will cause to to lose all of your shortcuts. It will be regenerated with a section <blockprofiles/> populated with some default profiles I made. Admins can create their own block profiles in the xml. Players can list them with /set blockprofiles and pick one with /set blockprofile wool or something.

    Additionally, it is now more reliable with larger images so I've increased the default world image size and given players the ability to /set dimensions 400 100. Your server will throw up warning messages about being overloaded as you utilize larger and larger images.

    I think this is a pretty wholesome feature set and barring any showstopping bugs, I will try to work out how to get images to draw flat on the map.

    Have fun and don't forget to post some screenshots.
     
  17. Offline

    _knot_

    on CB 733
    tried using /cc and I get this:
    Code:
    2011-04-26 21:45:07 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'cc' in plugin CopyCat v0.3
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
        at org.bukkit.craftbukkit.TextWrapper.wrapText(TextWrapper.java:38)
        at net.minecraft.server.NetServerHandler.sendPacket(NetServerHandler.java:594)
        at org.bukkit.craftbukkit.entity.CraftPlayer.sendRawMessage(CraftPlayer.java:81)
        at org.bukkit.craftbukkit.entity.CraftPlayer.sendMessage(CraftPlayer.java:85)
        at org.bukkitmodders.copycat.CopycatCommand.performCommand(CopycatCommand.java:73)
        at org.bukkitmodders.copycat.AbstractCopycatCommand.onCommand(AbstractCopycatCommand.java:39)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
     
  18. Offline

    Javanator

    What was the exact command you tried to use? /cc ilikedonuts? something else?

    Additionally, what steps did you take upon downloading and extracting the latest plugin? did you have an old version? Did you delete your old pluginConfig.xml?
     
  19. Offline

    _knot_

    Just used /cc.
    deleted the older plugin and config.
     
  20. Offline

    PhantomGamers

    /cc mario doesn't work at all for me, says unknown command.... but I get that error too when I do /cc shortcut copy mario
    However I'm on 735...
     
  21. Offline

    Javanator

    I was able to reproduce your error when i tried to copy a shortcut that did not exist. When you deleted your pluginSettings.xml file, your shortcuts were wiped out. You have to add them again. I did not mention this, but it is necessary in order to take advantage of the new features. If you are still receiving the error, can you please attach your pluginSettings.xml file?
     
  22. Offline

    Spl1tz

    Why am i getting "Error reading shortcut"?
     
  23. Offline

    Javanator

    The URL you are using may be well formed, but may not be returning an image. Please check that the URL is returning an image file and not something else. In order to say anything more, i would need to see your pluginSettings.xml
     
  24. Offline

    frostie

    For some reason when I load the server with the .jar file in the plugins folder, it doesn't load CopyCat.jar what could be the reason for this?
     
  25. Offline

    iTz CHEEZ3

    I still don't understand how people can create stuff like this, but can't make something that pulls a texture pack image and send it to the client, forcing them to use it.
     
  26. Offline

    Javanator

    The client is in complete control of the textures. This plugin works off of the default textures only (so far). I may make it optimizable for other texture maps, but that's beside the point. That being said, you cant "send" textures or pretty much anything besides text to a client.

    You are welcome to check out the code repository. There's no black magic going on.
     
    iTz CHEEZ3 likes this.
  27. Offline

    jamdis

    I know I already asked about this, but is there any way this could work from the console with x, y, and z coordinates instead of pointing your crosshairs in-game?

    This would allow me to pair this plugin with SimpleCronClone for all sorts of mischief, such as:

    *feeding images from a webcam: giant semi-live webcam inside minecraft!
    *rendering arbitrary text to png with imagemagick for inclusion: giant semi-live rendering of my twitter feed!
    *images that reflect the weather, news or whatever.

    I mean c'mon there's way more potential here than giant renderings of NES sprites.
     
  28. Offline

    Javanator

    i have already thoughr about those possibilities and will add it back. I originally had it the xyz thing when i was proofing the plugin but hated typing it so much that i got rid of it.it will also need an orientation with xyz
     
  29. Offline

    [Kor]Deer

    permission Interlocking plz!
    only OP command...
     
  30. Offline

    pabbie

    Why am I faling at installing this? It has no .jar file? derp
     
  31. Offline

    Javanator

    I have no idea what you are trying to say. You can start with using a few complete sentences.

    300+ downloads for this version. If there was no .jar in the zip file, I would expect more complaints. Maybe your download was corrupted. Try downloading again.

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

Share This Page