[FUN/MISC] MCGallery v1.21b - Take pictures of your creations [803]

Discussion in 'Inactive/Unsupported Plugins' started by dv90, May 4, 2011.

  1. Offline

    dv90

    MCGallery
    Take pictures of your creations!

    Download: v1.21_01b
    Optional: Permissions
    MCGallery allows you to mark regions and take snapshots of the blocks from above. This is a very early release with a lot more features to come. Soon we will be adding left, right, front, back, and bottom views, PLUS a built in Web Gallery for your server. The gallery will host all of the pictures that users have saved and allow you to rotate and edit them. There will even be an optional Javascript 3D model viewer for your gallery!​
    [​IMG]
    Tutorial:
    1. Type /image stick
    2. Left click a block where you want the top left corner to be
    3. Right click where you want the bottom right corner to be
    4. Type "/image save" and you're done!
    5. Check out the image in you plugins/MCGallery/Images folder
    Commands:
    • /image stick - Gives the user a stick to mark the image region
    • /image save (name) - Saves the image with the name. If no name is specified, it's save as image_ + a random number.
    Features:
    • Define regions with a stick
    • Supports saving of PNG/JPG images (High/Low Quality)
    • Generates the images based on real Minecraft textures
    • Textures stored in a convenient folder ready for easy editing!
    • See through glass, mob spawners, and web!
    • Supports 49 textures (More to come!)
    Video (open)



    Permissions (open)

    • mcgallery.stick
    • mcgallery.save


    To Do (open)

    • Built in webserver with image gallery
    • More textures
    • Left, Right, Front, Back, Bottom views (6 Total Images)
    • Javascript 3D model viewer to look at creations from all angles!


    Changelog (open)

    v1.21_01b
    • Bugfix
    v1.21b
    • Added Permissions support
    • Minor bugfixes
    v1.2b

    • Added more textures
    • Added support for transparent textures
    • Minor bugfixes
    v1.0b

    • Initial release


    This is still in early beta stages so there might be some bugs. Feedback greatly appreciated :)
     
  2. This is exactly what I would LOVE to use on my server.
     
  3. Offline

    ddoolin

    This is really cool. Definite bump.
     
  4. Offline

    nickrev

    tutorial maybe?
     
  5. Offline

    dv90

    Sure, give me a few minutes and I'll upload a video.

    In the meantime, check out the tutorial in the first post. I added a short example and a list of commands (Can't believe I forgot that).
     
  6. Offline

    ZachBora

    :O

    [cake]

    I was going to install it but I'll wait for permission support...
     
  7. Offline

    nickrev

    hey no prob man its a cool idea

    also how would I auto add it to my website? that would be a cool addon!
     
  8. Offline

    dv90

    I'll add some instructions once I get the Gallery part finished which I hope to have done by the end of the weekend.

    No problem, I'll have permissions added in tonight.
    Edit: Make that 5 minutes...
    Edit Dos: Just updated. Now it's got support for Permissions, ZachBora.
     
  9. Offline

    heroanth2345

    I don't really understand what's the point in taking these kind of pictures, any idea?
     
  10. Offline

    dv90

    It's just for fun. Soon I'll be adding functionality to take the pictures from all angles and it will automatically add them to a gallery where people can show off their creations. The gallery will also have 3d models of all of the creations saved too.
     
  11. Offline

    heroanth2345

    ok so it's like only for enterntainement
     
  12. Offline

    SkyJohn

    OMG i'm in love with this plugin already :)
     
  13. Offline

    dv90

    Yep

    :)
     
  14. Offline

    ZachBora

    When I left click and right click this gets logged :
    Code:
    2011-05-05 17:34:59 [SEVERE] Could not pass event PLAYER_INTERACT to MCGallery
    java.lang.NullPointerException
        at me.pwnage.bukkit.mcgallery.plugin.gPlayerListener.onPlayerInteract(gPlayerListener.java:38)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:254)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:64)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:433)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        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)
    2011-05-05 17:34:59 [SEVERE] Could not pass event PLAYER_INTERACT to MCGallery
    java.lang.NullPointerException
        at me.pwnage.bukkit.mcgallery.plugin.gPlayerListener.onPlayerInteract(gPlayerListener.java:47)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:254)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:207)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:521)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        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)
     
  15. Offline

    dv90

    ZachBora, sorry about that. Small bug. I'll update it in a few seconds.

    Edit: All right, it's updated.
     
  16. Offline

    Lhjnhnas

    What sort of size are we talking here? As in, would it be a bad idea for one of my OP's (I know one will try it) to take a screenshot of the entire developed world on our server?
     
  17. Offline

    dv90

    Yes. Just like with World Edit, or similar tools, you need to be careful with the number of blocks you take a picture of. Take a look at my video, at the very end I do a somewhat large sized shot and it took about 2-3 seconds to render. While it's rendering the image, I'm sure it will use quite a bit of CPU so I wouldn't go around doing this with huge areas. As time goes on, I will undoubtedly increase the efficiency of the plugin and rendering process however, I doubt you'll be able to take full size shots of entire maps. Use DynMap for that :p
     
  18. Offline

    ZachBora

    @dv90 I can select but when I used /image save test
    it returned null and this in the log :

    Code:
    2011-05-05 18:55:34 [SEVERE] java.io.FileNotFoundException: plugins/MCGallery/images/test.png (No such file or directory)
    2011-05-05 18:55:34 [SEVERE]     at java.io.RandomAccessFile.open(Native Method)
    2011-05-05 18:55:34 [SEVERE]     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
    2011-05-05 18:55:34 [SEVERE]     at javax.imageio.stream.FileImageOutputStream.<init>(FileImageOutputStream.java:69)
    2011-05-05 18:55:34 [SEVERE]     at com.sun.imageio.spi.FileImageOutputStreamSpi.createOutputStreamInstance(FileImageOutputStreamSpi.java:55)
    2011-05-05 18:55:34 [SEVERE]     at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:409)
    2011-05-05 18:55:34 [SEVERE]     at javax.imageio.ImageIO.write(ImageIO.java:1520)
    2011-05-05 18:55:34 [SEVERE]     at me.pwnage.bukkit.mcgallery.plugin.gPlugin.saveImage(gPlugin.java:217)
    2011-05-05 18:55:34 [SEVERE]     at me.pwnage.bukkit.mcgallery.plugin.gPlugin.onCommand(gPlugin.java:168)
    2011-05-05 18:55:34 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-05-05 18:55:34 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
    2011-05-05 18:55:34 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
    2011-05-05 18:55:34 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
    2011-05-05 18:55:34 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
    2011-05-05 18:55:34 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
    2011-05-05 18:55:34 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    2011-05-05 18:55:34 [SEVERE]     at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    2011-05-05 18:55:34 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    2011-05-05 18:55:34 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-05-05 18:55:34 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    2011-05-05 18:55:34 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-05-05 18:55:34 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  19. Offline

    dv90

    @ZachBora, I guess it's a bug with the folder name. Some operating systems see Images and images as two different folders. It's fixed and updated.
     
  20. Offline

    ZachBora

    yeah, server is running on linux so that'd be the problem...

    God I must be unlucky or something... It works on my local server (win vista) but only produces black images on the linux server :( maybe its incompatible...

    P.S. I think you can add #78, same as #80.

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

    dv90

    Yep that's what I thought.

    Hm. That's something I'll have to look into considering the majority of servers are run on linux. Thanks for the info.

    @ZachBora, you're not getting the message, "MCGallery block types are missing! Images will not be generated correctly." when the plugin is enabled are you? Because if so, that means it can't find the texture files and it will cause exactly what's happening. Otherwise, it's because of linux.

    EDIT: Never mind. It was the same problem from a couple posts above. It was reading from types/ instead of Types/. It's fixed and updated. Sorry about that.

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

    Lhjnhnas

    My problem is making Dynmap work :(
     
  23. Offline

    ZachBora

    it only says :

    2011-05-05 20:25:33 [INFO] [MCGallery] Permissions enabled.
    2011-05-05 20:25:35 [INFO] MCGallery 1.21b enabled.​
     
  24. Offline

    gnftoxic

  25. Offline

    dv90

    I suggest asking a question in the thread about it. If it's the common black screen, then try putting some blocks down and waiting. Otherwise, no idea :p

    Try the latest update. I got it to work on my linux server.
     
  26. Offline

    gnftoxic

    Did you do a full map render after installing dynmap?
     
  27. Offline

    ZachBora

    I tried and this plugin works. It's just missing blocks now (netherrack and wool for example).

    If I did custom blocks for those numbers would the plugin use them? Also need a way for colors, maybe with _ like 35_15.png
     
  28. Offline

    dv90

    Yeah you can add/edit the block images. They're all in the format of [id].png. I'll add support for colored wool soon and it will be something like [id]_x.png
     
  29. Offline

    seriosbrad

    Web gallery sounds amazing. Will keep an eye on this Plugin.

    I suppose it could be done semi-easily with a symlink and php script, but I'm too lazy for that.
     
  30. Offline

    rcfreak0

    Cant wait for the webgallery, This would be a great addition to my server.
     

Share This Page