Server Staff Statue Generator

Discussion in 'Archived: Plugin Requests' started by ExileRed, Jun 27, 2013.

  1. Offline

    ExileRed

    I have built several Staff Roads (pictured) on various servers and it's sometimes difficult to match blocks to certain colors. I had the possible idea where a plugin could be created where you make empty plots that are 4X8 (pictured) then mark them with a tool like world edit. Do some sort of command like /sr generate <username> . Then to remove a statue or move it there would be commands similar to that. If anyone is interested I would love to collaborate with you on it. 2013-06-27_20.46.28.png 2013-06-27_20.45.22.png
     
  2. Offline

    Pyxis-Craft

    As far as I am concerned, this is not possible. This has also been requested before on bukkit :p
     
  3. Offline

    oa10712

    It is possible, it would just take a lot of work. I don't have the time to make it right now, but the generation process would consist of:
    1. Check if the user specified exists
    2. Retrieve the user's skin
    3. Get some methods to check pixel colors for the skin
    4. Place a wool block with a color closest to the pixel on the skin
    Here is some sample code for some of the stuff I am talking about.
    Code:java
    1. String username = USERNAMESOURCE; // The source is probably going to be args[1]
    2. BufferedImage skin = ImageIO.read("[url]http://minecraft.net/skin/[/url]" + username + ".png"); // The user's skin stored as a BufferedImage
    3. Color c = new Color(skin.getRGB(x, y)); // The color of the pixel at location (x, y)

    Obviously, don't include the [ url ] tag in the actual code
    If this is still not taken in a few days, I may take a look at it.
     
  4. Offline

    timtower Administrator Administrator Moderator

    ExileRed I agree with Pyxis-Craft, an computer can't check what block gets the closed with an certain color of the skin, and then you have the edges what can cause issues with the appearance
     
  5. Offline

    gummby8

    I disagree, there are plenty of programs that take pics and convert them to minecraft statues. One for example.
    http://www.diamondpants.com/spritecraft/
     
  6. Offline

    oa10712

    Edges would be an issue, but they will be an issue if you manually make a statue too. The color checking would probably be the most time consuming part, with looping through the pixels being after that (or maybe the other way around, depends on the developer).
     
  7. Offline

    timtower Administrator Administrator Moderator

    Only that are 2d sprites, this will be converted from 2d to 3d
     
  8. Offline

    Minecrell

  9. Offline

    oa10712

    I will take this one on. Stay tuned for updates.
     
  10. Offline

    oa10712

    Making progress. Preliminary testing of color selection with the full sheet just in 2D (and yes, it is upside down)
    [​IMG]
     

    Attached Files:

  11. Offline

    oa10712

    Started to actually build the statue itself.
    [​IMG]
     
    timtower likes this.
  12. Offline

    oa10712

    So far I haven't found a skin that doesn't work, just remember that capitalization matter when dealing with usernames
     
  13. Offline

    CD3

    If your taking it, Maybe label the thread as Filled?

    also, Maybe ask Sethbling for permission to use his MCEdit filter??
    I know its in Python, but It may still be helpful.
     
  14. Offline

    oa10712

    All I have left is to add the shoulders and add ability to rotate the statues
     
  15. Offline

    Burnett1

    You can use MC-Edit and then upload the world to your server and world edit it into the statue world.
    http://www.mcedit.net/

    Here is the link to the Player Statue filter.

    http://sethbling.com/downloads/mcedit-filters/playerstatue/
    http://sethbling.com/downloads/mcedit-filters/png/

    You need those two files and once you extracted MC-Edit put them in the filters folder.

    Once you loaded MC-Edit you can either generate a new world (i recommend creating a new flat world for file size) or use a world you created in game.

    Once MC-Edit has loaded/created the world you want make a selection on the ground (flat ground) about 15*15 and then select the filter option on the bottom row. Scroll through the list of filters and find "Player Statues" then click it.

    Input the players exact name and then it will make it. Hit "ctrl + s" to save the changes then you can quit.

    Go to your saves folder and make a copy of it and upload it to your server.

    Now when you make the statue on flatland it is 1 layer is under ground so with world edit you can select to points the cover the entire statue ground area and use "//replace grass air" then proceed in getting to points that just cover your statue and "//copy".

    Go to the world you want it in and then "//paste" if it is the wrong orientation do "//undo". Then do "//rotate 90/180/270/360" depending on what you need and then paste again.

    Finally edit your statue to get the mistakes out and your done.
     
  16. Offline

    ExileRed

    I apologize for not keeping up and reading on the thread, oa10712 send me private message so we can discuss this I am a little lost in this a bit. Thanks for showing interest everyone!
     

Share This Page