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

    pabbie

    thats strange. i already downloaded it twice. I guessnI could try it again.

    Nope still no luck, can please try to download? Theres something fishy about this...

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

    Javanator

    Nothing fishy. I just downloaded it and am reuploading just for you. There is indeed a .jar file inside.
     

    Attached Files:

  4. Offline

    Slamage

    It says an internal error occoured when performing this command
     
  5. Offline

    [Kor]Deer

    I'd like to admin commands only
     
  6. Offline

    pabbie

    Thank you so much. Emm, this is weird. When i unzipped the file running mac I just got a bunch of folders and other files.
    So i started win7 on parallels and used winrar. And there was the damn .jar file!

    hmm....anyways. Thank you! =)
     
  7. Offline

    jamdis

    I had the same problem, For some reason the Archive Utility that comes with mac OS wants to de-jar it and give you the contents. I tried it with Stuffit Expander and got the jar fine.

    Awesome, Thanks. Looking forward to the next version then.

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

    virtualism

    Same. And I don't think I've messed up anywhere.

    (Your post still says 733, btw)
     
  9. Offline

    DJ_Idol

    Yeah, same happens to me with certain plugins here, I'd suggest using Springy to open them, that way you can see the contents and just pull out the .jar or the whole file.
     
  10. Offline

    4am

    How exactly do you get the client to accept any data like that from the server? The client reads player positions/states and map chunks from the server. There isn't any way to force a client to load a texture pack without externally rooting the player's machine and logging into it remotely, opening their browser, downloading the texture pack and then restarting their Minecraft client.

    That's why.

    The reason for this is a .jar file is really the same as a .zip file, and Archive Utility thinks it's a .zip file that has been mis-named. Apple has never been really big on 3rd party execution environments *cough*JAVA*cough*FLASH*cough*

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

    Simon Smith

    this plugin is boss and works! :D i rendered a google image in my server :p

    however whenever i go into the .xml file and add my own shortcut and the server restarts the .xml file gets wiped afresh? any ideas???
     
  12. Offline

    tha d0ctor

    it probably just checks for default text in the xml file every time the plugin is initialized, if it recognizes the text isnt default it probably reverts back to default,
     
  13. Offline

    Simon Smith

    so is the a easier way of importing all the urls into the plugin ??? :(
     
  14. Offline

    tha d0ctor

    have you tried editing the XML file while the server is running before you try to create your image?
     
  15. Offline

    Simon Smith

    yes, ive edited the xml file while running but when i list the shortcuts after editing the XML it doesnt display the shortcuts
     
  16. Offline

    dwmcc

    It says an internal error occurred when performing this command. Bukkit 740, Minecraft Server 1.5_02, MCMyAdmin.

    Any ideas?

    Thanks,
    dwmcc
     
  17. Offline

    Dalaxerking13

    I keeep getting "An internal error occured while attempting to perform this comand" and this server side 18:25:28 [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

    you have to do /cc op reloadConfig after a manual edit. I may change this later.

    The persistence model i used is kind of rudimentary. The plugin keeps the config in memory and only writes to disk when a user changes something or on shutdown. If you edit the config xml directly, it doesnt refresh the in-memory version until you do /cc op reloadconfig.

    If you dont, the next time someone makes a change or shuts down the server, the in-memory version will override the on-disk contents. In the future i may just ditch the in-memory thing and have it read/write the config from disk every single time configuration is requested.

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

    Devian50

    oooh I like this idea! btw just a sort of showcase! I used an image from DA and linked it (tinyurl ftw!)
    heres the product:
    [​IMG]
    I think it turned out pretty good! Just like the native feature of MCLawl! Perfect!

    EDIT: Its a bikini not underwear! its like what you see at the beach! (unless you dont go to the beach...)
     
  20. Offline

    Nathan C

    Amazing, great, awesome plugin!
     
  21. Offline

    virtualism

    Damn, that is pretty neat. ;) Source?

    So, i got that internal error thing earlier. Started up a vanilla cb 740 server with just copycat, worked perfectly.
    [​IMG]

    Plugin conflict somewhere, bummer. But at least I can get konata in the map now. <3
     
  22. Offline

    Dalaxerking13

    say nvm its just the link not the pluggin, damn Crappy Osama bin ladin pictures :D
     
  23. Offline

    Devian50

    uuug the source got buried by more art! :/ Im still tryin to find it! will edit this post when I find it!
    EDIT: Found the source! :D
    http://browse.deviantart.com/manga/?q=Bikini girl&order=9&offset=24#/drz5x0
    there you go!

    oh btw! you should make it either hook into the Help plugin by... I can't remember... or at least put pages on the plugins native help so you arent spammed with commands and not able to see the ones near the top!

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

    NESKing

    Been trying to use this plug-in however, I continue to get the Internal Error message as other people have been getting as well. Would be really interesting in seeing this mod work so I could implement it into my server. If you would like me to post my log I would be happy too, but it seems others have posted the log for the same error already.
     
  25. Offline

    Remain

    I'm also getting the Internal Error Message... I really want to use this. /:
    Any help would be fantastic..
     
  26. Offline

    dwmcc

    Internal error here as well. :(
    Bukkit 740, MC Server 1.5_02
     
  27. Offline

    Javanator

    The error is caused by an error showing another error, so in the latest development version I have fixed the the topmost layer so that the true cause can be discovered. It occurs in a pretty high level piece of code so that i can only make a shot in the dark guess as to what the actual cause is. One way i was able to reproduce the error described was to run the plugin with an old pluginConfig.xml file from a previous version. If you ran an older version, you must delete this file.
     
  28. Offline

    MasterShinobi

    I run 1.5, is copycat supported? I also keep getting the internal error, I just want my 50x50 picture of Charlie Sheen :( lol btw thank you for developing such a brilliant addon, I am trying to post links to this wherether I go so that it gets the recognition it deserves.
     
  29. Offline

    kazzy

    when i try to make the image it says error reading shortcut and gives me this in the log:

    2011-05-07 16:24:01 [SEVERE] Error reading shortcut
    java.io.IOException: Server returned HTTP response code: 403 for URL: http://arcadeatylibrary.com/arcade_art/data/thumbnails/2/tpad.gif
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at java.net.URL.openStream(Unknown Source)
    at org.bukkitmodders.copycat.functions.ShortcutFunctions.doCopy(ShortcutFunctions.java:128)
    at org.bukkitmodders.copycat.functions.ShortcutFunctions.performFunction(ShortcutFunctions.java:63)
    at org.bukkitmodders.copycat.CopycatCommand.performCommand(CopycatCommand.java:50)
    at org.bukkitmodders.copycat.AbstractCopycatCommand.onCommand(AbstractCopycatCommand.java:39)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    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:677)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
    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)

    plz help
     
  30. Offline

    cjc343

    I don't know why you get a 403, but that link 404s for me.
     
  31. Offline

    kazzy

    its not just that link its all links i try
     

Share This Page