[FUN/MECH] CameraObscura - Take a picture - Say cheese! [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by fromgate, Dec 17, 2012.

  1. Offline

    fromgate

    [​IMG]

    CameraObscura v0.1.3

    CameraObscura brings the photography and painting in your Minecraft world.

    What is photography and paintings?
    Photographs and paintings are... map items that contains an image on it. Image can be based on player skin (photo), on picture file uploaded to server, or... image based on a pixel-art created using colored wool.

    Video
    Features
    • Creating photo using photo camera (three types of photo: full-size, top-half, face)
    • Creating photo using tripod-camera (Camera Obscura :)) Economy supported (player must pay for picture)
    • Creating picture using png-image ploaded to the server
    • Creating picture using pixel-art created with colored wool
    • Copy-protection for maps used as pictures
    • Picture owners features: limit of pictures per owner, copy protection, ability to change owner of picture.
    • Remove picture and re-use map with same id for future pictures
    • Crafting recipes for photo camera, photo paper. Creating tripod-camera without any commands.
    Why do I want it?
    If you need to bring additional fun to your server.... Hell, no! If you have a server you need CameraOscura! :)

    How to use it?
    • Install
    • Configure plugin (edit the config.yml file)
    • Upload some backgrounds (recommended size 128x128), upload pictures.
    • Start server and made a picture!
    How to make a picture?
    1. Photo camera. You can create a photo camera (by default it's a watch item with data equal to 1: you can use "camera" to make a pictures, but you can not use watch to make a picture) and photo paper (by default photo-paper is a paper sheet with data equal to 1: you cannot use regular paper to create pictures). Click any player with a camera. One sheet of paper will be removed from your inventory and picture (map) will be given to you.
    2. Camera obscura (tripod camera). You must build a tripod camera. Place fence, note block on the top of it, and... camera at the side of note block. Than take a photo paper and click to button (camera lens). Note: Both cameras supported three types of photos defined by distance from camera to player: head photo, top-half photo, full length photo. All photos are printed on the background. Backgrounds are png-images uploaded to specified folder (/CameraObscura/backgrounds/). Camera obscura can be configured to use any predefined background.
    3. Create photo of any player (even offline player) using commands. Hold one sheet of photo paper in hand and type commands: /photo head <player name>, /photo top <player name>, * /photo full <player name>
    4. Create a picture based on image file. You need to upload image (only png-file supported now) to /CameraObscura/images/ folder and type /photo image <image name>
    5. Create a picture based on colored wool pixel-art, You need to create a picture using colored wool. Type /photo brush to enable brush mode. Left clicking with brush (feather item) will select 1st point (top left!), right clicking will select 2nd point (bottom right). Type command:
    • /photo paint <picture_name> to create a picture resized to 128x128
    • /photo paint center <picture_name> to create a picture and place it at center of the map. Picture will not be resized so it could be too little... Note: you can repaint previously created picture using command /photo repaint {center} <picture_name> (don't forget to hold in hand picture that you need to repaint)
    How to create camera set it on the tripod?
    There's some recipes

    Commands
    You can check help in game using command /photo help or find command list here

    Permissions
    All permissions listed here

    Configuration
    You can configure plugin only by editing config.yml file.

    Change log
    v0.1.2
    • Now you show/hide picture names at canvas. "CameraObcura" message was removed. You can configure font parameters for displaying name: font, stroke, font size, font color, stroke color, message coordinates (x,y).
    • New commands: /photo reload to reload settings and album data; /photo rst [player] to repaint images for all or defined player
    • Blocked placing stone buttons at the note blocks (due 1.4.6 updated)
    • Added ability to updating items (pictures, photo paper, photo camera) names if required (changing translations, renaming or removing picture)
    • Rename command /photo rename [id] <new name> now supporting pictures holding in hand
    v0.1.1
    • Updated to CB1.4.5-R1.0
    Previous changes (open)

    v0.1.0
    • Releasing my awesome plugin

    [​IMG]
     
    Deleted user likes this.
  2. Offline

    Lolmewn

    Looks pretty cool! How'd you get the camera texture on it though? I'm guessing it's actually a normal item but client-side edit of the texture pack?
     
  3. Offline

    fromgate

    Yes, camera is a watch item (default) with changed data. So you can obtain it using command /item WATCH:1

    And photo paper is not a regular paper. It's PAPER:1 (default). You can't craft books using photo paper

    Photo camera recipe:

    [​IMG]

    Photo paper
    [​IMG]

    And here is "recipe" - how to construct a tripod camera

    [​IMG]

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

    fromgate

  5. Offline

    evilmidget38

    Me gusta. Looks really cool.
     
    Deleted user and fromgate like this.
  6. Offline

    Jobi

    Very awesome Plugin!
     
    fromgate likes this.
  7. Offline

    fromgate

    v0.1.2
    • Now you show/hide picture names at canvas. "CameraObcura" message was removed. You can configure font parameters for displaying name: font, stroke, font size, font color, stroke color, message coordinates (x,y).
    • New commands: /photo reload to reload settings and album data; /photo rst [player] to repaint images for all or defined player
    • Blocked placing stone buttons at the note blocks (due 1.4.6 updated)
    • Added ability to updating items (pictures, photo paper, photo camera) names if required (changing translations, renaming or removing picture)
    • Rename command /photo rename [id] <new name> now supporting pictures holding in hand
    http://dev.bukkit.org/media/files/662/157/CameraObscura.jar
     
  8. Offline

    fromgate

  9. Offline

    fromgate

    Tested with CB1.4.7-R1.0. Works fine :)
     
  10. Great plugin :)
     
    fromgate likes this.
  11. Offline

    fromgate

    TechGuard Thank you!

    New version. Fixing some bugs, update please.

    v0.1.2/3
    • Fixed renaming bug (photo camera name turns to "photo paper")
    • Fixed bug with tripod camera (only OPs can use tripod comera)
    • Fixed bug with saving image parameters (hiding the name of picture, changed owner, etc.)
    http://dev.bukkit.org/media/files/676/790/CameraObscura.jar

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

    fromgate

    v0.1.3
    • Added ability to use player personal folders for images. You can configure your web-site to upload player personal pictures. You can enable personal folders in config.yml (pictures.personal-folders.enable: true) and you may require to enable folder auto-creation (pictures.personal-folders.auto-create: true).
    • Changed /photo files command. If personal folders are enabled you will see list of files located at your own folder. To see content of other player's folder you must add parameter p:<playername> (For example: /photo files p:fromgate — to see content of folder "fromgate" or /photo files 3 fromgate — to see page 3 of file list of folder "fromgate"
    • New permissions: camera-obscura.image - allows to use command /photo image, camera-obscura.files.autocreate - if player with this permission joining to server and his personal folder is not exists, folder will be created (requires personal folder and autocreation enabled in config.yml), camera-obscura.files.all - allows player to see what located at other players personal folders.
    http://dev.bukkit.org/media/files/681/575/CameraObscura.jar


    Now you can configure your web-site to allow players upload own images to create custom pictures in game. Note: recommended to use 128x128 images (png only)
     
  13. Offline

    Deleted user

    This looks great.. keep it up man.
     
  14. Offline

    fromgate

    ShootToMaim
    Thank you :)
    CameraObscura using only BukkitAPI, so id did not requires an special update: will work fine with 1.5.1 fine. There was a bug in early devbuilds of crafbukkit 1.5 that breaks CameraObscura, but yesterday it was fixed and now you can use this plugin with latest craftbukkit builds.
     
  15. Offline

    aronuserparty98

    Just asking, tell me if I didn't read the description well... How do I make "wanted" pictures, and only wanted pictures without any chance of it getting randomized? Is this something you can change in the config file, or is it a command?

    Thanks!

    Also, this plugin looks really awesome! If I ever get the chance, I will recommend it! :)

    /Aron

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

    fromgate

    aronuserparty98
    Thank you :)

    To create "wanted" pictures (with predefined backgrounds), you need:
    1. Place "wanted.png" image at the background folder.
    2. Create picture using command: Hold photo paper in hand and type /photo top fromgate wanted
    3. Create picture using tripod camera: Build tripod camera, place a sign with lines: 1st line: fromgate (or any owner name), 2nd line: [photo], 3rd line: free, 4th line: wanted
    Last line will point to file (without extencion). Now player can click tripod camera's lens with photo paper to obtain a "wanted" picture )
     
  17. Offline

    DMX

    Update please ! Don't work on 1.5.1
     
  18. Offline

    fromgate

    DMX
    Hello!
    According to MCStats information, 38% of CameraObscura servers use craftbukkit 1.5.1
    CameraObscura based on the BukkitAPI and did not require special update for 1.5.1. I tested it with craftbukkit 1.5 and 1.5.1 too.
    What is not working for you? Is there any error at server log?
     
  19. Offline

    DMX

    How can i paste my server log to show you ?
     
  20. Offline

    fromgate

    You can copy-paste it here (use spoiler :)) or upload ot pastebin.com service.
    And don't forget to say me craftbukkit build number, that you use and CameraObscura version (is last - 0.1.3?)
     
  21. Offline

    DMX

    I know where to copie but how to copie ? :p

    And i use CameraObscure 0.1.3

    And i use the last snapshot of bukkit
     
  22. Offline

    fromgate

    You need to open server.log file with any text editor and find a place with CameraObscura error.

    What is not working for you? What you trying and what is result of your action?
     
  23. Offline

    codename_B

    This is really fun, and awesome. I approve wholeheartedly :D
     
    mncat77 likes this.
  24. Offline

    fromgate

  25. Offline

    DMX

    I found:

    Show Spoiler

    2013-03-29 15:39:17 [INFO] Starting minecraft server version 1.5.1
    2013-03-29 15:39:17 [INFO] Loading properties
    2013-03-29 15:39:17 [WARNING] server.properties does not exist
    2013-03-29 15:39:17 [INFO] Generating new properties file
    2013-03-29 15:39:17 [INFO] Default game type: SURVIVAL
    2013-03-29 15:39:17 [INFO] Generating keypair
    2013-03-29 15:39:17 [INFO] Starting Minecraft server on *:25565
    2013-03-29 15:39:17 [INFO] This server is running CraftBukkit version git-Bukkit-1.4.7-R1.0-68-g2d2198e-b2709jnks (MC: 1.5.1) (Implementing API version 1.5.1-R0.1-SNAPSHOT)
    2013-03-29 15:39:17 [WARNING] Failed to load operators list: java.io.FileNotFoundException: .\ops.txt (Le fichier spécifié est introuvable)
    2013-03-29 15:39:17 [WARNING] Failed to load white-list: java.io.FileNotFoundException: .\white-list.txt (Le fichier spécifié est introuvable)
    2013-03-29 15:39:17 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2013-03-29 15:39:17 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2013-03-29 15:39:17 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2013-03-29 15:39:17 [WARNING] To change this, set "online-mode" to "true" in the server.properties file.
    2013-03-29 15:39:17 [INFO] Preparing level "world"
    2013-03-29 15:39:18 [INFO] Preparing start region for level 0 (Seed: -3268869563652639915)
    2013-03-29 15:39:19 [INFO] Preparing spawn area: 20%
    2013-03-29 15:39:19 [INFO] ----- Bukkit Auto Updater -----
    2013-03-29 15:39:19 [INFO] It appears that you're running a Development Build, when you've specified in bukkit.yml that you prefer to run Recommended Builds.
    2013-03-29 15:39:19 [INFO] If you would like to be kept informed about new Development Build releases, it is recommended that you change 'preferred-channel' in your bukkit.yml to 'dev'.
    2013-03-29 15:39:19 [INFO] With that set, you will be told whenever a new version is available for download, so that you can always keep up to date and secure with the latest fixes.
    2013-03-29 15:39:19 [INFO] If you would like to disable this warning, simply set 'suggest-channels' to false in bukkit.yml.
    2013-03-29 15:39:19 [INFO] ----- ------------------- -----
    2013-03-29 15:39:20 [INFO] Preparing spawn area: 45%
    2013-03-29 15:39:21 [INFO] Preparing spawn area: 74%
    2013-03-29 15:39:22 [INFO] Preparing start region for level 1 (Seed: -3268869563652639915)
    2013-03-29 15:39:22 [INFO] Preparing spawn area: 0%
    2013-03-29 15:39:23 [INFO] Preparing spawn area: 33%
    2013-03-29 15:39:24 [INFO] Preparing spawn area: 70%
    2013-03-29 15:39:24 [INFO] Preparing start region for level 2 (Seed: -3268869563652639915)
    2013-03-29 15:39:25 [INFO] Preparing spawn area: 12%
    2013-03-29 15:39:26 [INFO] Preparing spawn area: 95%
    2013-03-29 15:39:26 [INFO] Done (8,368s)! For help, type "help" or "?"
    2013-03-29 15:39:28 [INFO] CONSOLE: Stopping the server..
    2013-03-29 15:39:28 [INFO] Stopping server
    2013-03-29 15:39:28 [INFO] Saving players
    2013-03-29 15:39:28 [WARNING] DSCT: socket closed
    2013-03-29 15:39:28 [INFO] Saving worlds
    2013-03-29 15:39:28 [INFO] Closing listening thread
    2013-03-29 15:39:28 [INFO] Saving chunks for level 'world'/Overworld
    2013-03-29 15:39:30 [INFO] Saving chunks for level 'world_nether'/Nether
    2013-03-29 15:39:30 [INFO] Saving chunks for level 'world_the_end'/The End
    2013-03-29 15:39:30 [INFO] Stopping server
    2013-03-29 15:39:46 [INFO] Starting minecraft server version 1.5.1
    2013-03-29 15:39:46 [INFO] Loading properties
    2013-03-29 15:39:46 [INFO] Default game type: SURVIVAL
    2013-03-29 15:39:46 [INFO] Generating keypair
    2013-03-29 15:39:47 [INFO] Starting Minecraft server on *:25565
    2013-03-29 15:39:47 [INFO] This server is running CraftBukkit version git-Bukkit-1.4.7-R1.0-68-g2d2198e-b2709jnks (MC: 1.5.1) (Implementing API version 1.5.1-R0.1-SNAPSHOT)
    2013-03-29 15:39:47 [INFO] [CameraObscura] Loading CameraObscura v0.1.3
    2013-03-29 15:39:47 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2013-03-29 15:39:47 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2013-03-29 15:39:47 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2013-03-29 15:39:47 [WARNING] To change this, set "online-mode" to "true" in the server.properties file.
    2013-03-29 15:39:47 [INFO] Preparing level "world"
    2013-03-29 15:39:47 [INFO] Preparing start region for level 0 (Seed: -3268869563652639915)
    2013-03-29 15:39:47 [INFO] Preparing start region for level 1 (Seed: -3268869563652639915)
    2013-03-29 15:39:48 [INFO] Preparing start region for level 2 (Seed: -3268869563652639915)
    2013-03-29 15:39:48 [INFO] Preparing spawn area: 87%
    2013-03-29 15:39:48 [INFO] [CameraObscura] Enabling CameraObscura v0.1.3
    2013-03-29 15:39:48 [SEVERE] Error occurred while enabling CameraObscura v0.1.3 (Is it up to date?)
    java.lang.NoClassDefFoundError: net/milkbowl/vault/economy/Economy
    at fromgate.obscura.COCamera.setupEconomy(COCamera.java:298)
    at fromgate.obscura.Obscura.onEnable(Obscura.java:182)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugin(CraftServer.java:282)
    at org.bukkit.craftbukkit.v1_5_R2.CraftServer.enablePlugins(CraftServer.java:264)
    at net.minecraft.server.v1_5_R2.MinecraftServer.j(MinecraftServer.java:303)
    at net.minecraft.server.v1_5_R2.MinecraftServer.e(MinecraftServer.java:282)
    at net.minecraft.server.v1_5_R2.MinecraftServer.a(MinecraftServer.java:242)
    at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.java:150)
    at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:381)
    at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
    Caused by: java.lang.ClassNotFoundException: net.milkbowl.vault.economy.Economy
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 13 more
    2013-03-29 15:39:48 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2013-03-29 15:39:48 [INFO] Done (1,219s)! For help, type "help" or "?"
    2013-03-29 15:39:49 [INFO] ----- Bukkit Auto Updater -----
    2013-03-29 15:39:49 [INFO] It appears that you're running a Development Build, when you've specified in bukkit.yml that you prefer to run Recommended Builds.
    2013-03-29 15:39:49 [INFO] If you would like to be kept informed about new Development Build releases, it is recommended that you change 'preferred-channel' in your bukkit.yml to 'dev'.
    2013-03-29 15:39:49 [INFO] With that set, you will be told whenever a new version is available for download, so that you can always keep up to date and secure with the latest fixes.
    2013-03-29 15:39:49 [INFO] If you would like to disable this warning, simply set 'suggest-channels' to false in bukkit.yml.
    2013-03-29 15:39:49 [INFO] ----- ------------------- -----
    2013-03-29 15:40:05 [INFO] CONSOLE: Stopping the server..
    2013-03-29 15:40:05 [INFO] Stopping server
    2013-03-29 15:40:05 [INFO] [CameraObscura] Disabling CameraObscura v0.1.3
    2013-03-29 15:40:05 [INFO] Saving players
    2013-03-29 15:40:05 [WARNING] DSCT: socket closed
    2013-03-29 15:40:05 [INFO] Saving worlds
    2013-03-29 15:40:05 [INFO] Closing listening thread
    2013-03-29 15:40:05 [INFO] Saving chunks for level 'world'/Overworld
    2013-03-29 15:40:06 [INFO] Saving chunks for level 'world_nether'/Nether
    2013-03-29 15:40:06 [INFO] Saving chunks for level 'world_the_end'/The End
    2013-03-29 15:40:06 [INFO] Stopping server








     
  26. Offline

    fromgate

    DMX
    Hmm... CameraObscura need a Vault installed (it requires to provide payment system for photo). In next version I will made dependency on Vault not so hard...
     
  27. Offline

    DMX

    And Vault is not accessible for this version :S
     
  28. Offline

    fromgate

    But latest version work with 1.5.1. Vault (like CameraObscura) using BukkitAPI and usually did not require special update after every craftbukkit release)
     
  29. Offline

    DMX

    Ok i will try the latest version of Vault with

    Edit: Damnit ... I dont understand Vault ... he won't connect ... I'm gonna be patient for your another version :S
     
  30. This is sweet =D
     

Share This Page