Inactive [FUN/MECH] MapClone v0.5 - Clone and Scale/Zoom Any In-game Map [1337, 1.0.1-R1]

Discussion in 'Inactive/Unsupported Plugins' started by Tux2, Jun 1, 2011.

     
  1. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    MapClone - Clone and Scale/Zoom Any In-game Map!
    Version: v0.5
    This plugin allows you to clone any map that you have in your inventory to the one you are holding in your hand as well as allowing you to scale the current map! To clone a map just hold the destination map in your hands and do the command "/mclone [mapNumber]". Poof! You've got your map. To scale a map just hold the map you want to scale in your hands and do: /mzoom [closest|close|normal|far|farthest|1-5] <mapnumber>. To configure it just go into your plugins folder into the folder named "MapClone" and edit settings.ini.
    Please note that to use an economy plugin the Register plugin is required.

    [IMG]

    [IMG]
    Cloning Recipe:
    [IMG]
    You must be holding down shift when you click on the maps, otherwise you will get two maps of the next available number instead of cloning the map you want!!!!

    Features:
    • Clone Any Map!
    • Change the scale of any map!
    • Permissions Support (Both legacy permissions and the new Bukkit SuperPerms)
    • An option for a cloning recipe (bypasses permissions, and all other options when enabled.)
    • Supports any Economy system through the Register plugin!
    • An option to use items upon cloning or scaling maps
    • Adjustable timeouts on scaling a map so that you can get charged once, find the scale you want, and never be able to change the scale again after the timeout (unless you have the special permission which allows you to do so)
    Permission Nodes:
    • mapclone.clone - The ability to clone a map in your inventory
    • mapclone.any - Clone any map, not just ones in your inventory
    • mapclone.free - If iConomy is enabled, this will enable this group to clone maps for free
    • mapscale.scale - Allow someone to scale a map
    • mapscale.any - Allow them to scale any map, even already scaled maps, at any time
    • mapscale.free - If an economy or item system is enabled, this will enable this group to scale maps for free.
    Download MapClone.jar v0.5

    Download MapClone.jar v0.4 (Bukkit versions 1060 and older)

    Known Bugs:
    • When using a resource with a damage value it prints out the name of the item with the damage value of 0 in the chat, instead of using the proper name. Although it does use the correct item. (Any good, simple ideas to fix this would be appreciated)
    Plugin Not working correctly?


    For me to diagnose the issue properly please provide me with the following information:
    Code:
    Description of issue:
    Version of Craftbukkit:
    Version of java:
    OS:
    Other plugins installed:
    Output of console (If there are any error messages):
    MapClone configuration file:
    
    ToDo List:
    • See if there is a way to find out how close the player is to the area where the map was first created and add an option to restrict map cloning of that map outside of that area. (Need hooks added in bukkit)
    Changelog:

    Version 0.5
    • Added ability to scale maps with the /mzoom command
    • Added support for any economy system through Register
    • Added ability to specify the quantity of the items used up when using items for charging for cloning/scaling
    • Added Bukkit SuperPerms support
    Version 0.4
    • Fixed needing 2 maps when the player had mapclone.any permission node.
    • Added resource using when cloning.
    Version 0.3.1
    • Fixed flipped variable for map cloning
    Version 0.3
    • Added iConomy 5.0 support
    • Added map cloning with a recipe
    • Added extra permissions nodes
    Version 0.2
    • Fixed permissions support not working
    Version 0.1
    • Initial release.

    This post has been edited 8 times. It was last edited by Tux2 Oct 7, 2011.
    Kain888 likes this.
  2.  
  3. Online

    Zarius BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Looks great, would love to see this work without commands somehow and require a bunch of paper and an inksac :) Perhaps like the original recipe, 8 paper but with the inksac instead of compass.
  4. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That would actually require the original map to be in the recipe, (7 paper, original map, and an ink sac) and in code I would need a new recipe for every map number and have it spit out 2 maps with that data value. It's doable with a for loop, it just might be a little time intensive. I could add that as an option though. Only downside though is that it wouldn't support permissions with that method and you would also have over a thousand new recipes in the server.
  5. Offline

    cyberdude

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Of course you would still be able to add permission support. Permission support is not solely command based, you decide what should be possible with what permissions. As long as you know the user/player entity trying to create the cloned/map.
    I'm not really sure how the recipes work out, but I wouldn't think you would need more than 8 recipes in order to support this idea.
    Otherwise, lovely, since Notch apparently didn't come around to support this :)...
  6. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well, the way recipes work is you add all custom recipes to the server when it first starts. Since each map has a specific damage value it looks like an entirely different item to the recipe so I would have to add a recipe for each map number that you would want to clone, at server start-up. Also, as far as I know, there is no event thrown when a player crafts something (as of build 819), so there is no way for me to cancel the event and prevent the creation of the map. That's why I said it wouldn't support permissions. If you can find a way of adding permissions support, I'll definitely add that. :D Also, look for an option for cloning maps using a crafting table in the next version, it just won't use permissions and will be limited to the first X amount of maps that you specify.
  7. Offline

    HSAR

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Maybe restrict cloning of maps to a limited area around the original map? Would only be possible if there's a way to check which map is being held by a player, of course.

    iConomy integration would turn this into a viable plugin to allow players to map the world for a living, too.
  8. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Interesting ideas. I'll see about limiting map creation to a certain area (might take some doing though), and iConomy support is a cool idea too (added to my todo list), although if you want iConomy support right now Command iConomy should do the trick. I'm assuming you just want to be able to charge the player for the use of the command.
  9. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Both of these ideas have been implemented in 0.3.1. Enjoy. :)
  10. Offline

    HSAR

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Command iConomy is a great idea, but would also charge if you wanted to do /mclone help, or if the command didn't work for some reason. I see you already added iConomy support, though, so thanks!
  11. Offline

    cyberdude

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Wow, sorry. I was very confident that an event was triggered when a player crafts something, I haven't checked my self, and am not familiar with CraftBukkit, but I must say, I was very confident that this was the case. I am also shocked to learn that the maps are assigned using the damage value.
  12. Offline

    Denarim

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    thats the way notch likes to do things, in order to not need more variables than necessary. he also uses the damage value for wool color
  13. Offline

    Denarim

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    question: not sure if it is, but would it be possible to create a plugin for wall mounting maps?
  14. Offline

    shadrxninga

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Denarim
    No sorry. That would be client side.
  15. Offline

    Bacu

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    wget compatible link please.
  16. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Tux2
    Nice work :) Thanks.

    But, if you have the permission "mapclone.any" you should be able to clone maps without 2 maps in inventory...
  17. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh, but that would make perfect sense. ;) Just kidding, I totally overlooked that part of my code when I coded it... I just fixed that issue, but I'm also adding another feature in my to do list to the plugin as well, so I'll wait to publish it until that's integrated as it will be done in an hour or two. (Last thing I want to do is push 2 updates within 2 hours of each other unless something is broken.)
  18. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Wget command:
    Code:
    wget -O MapClone.jar http://tux2mc.tk/filemgmt/visit.php?lid=2
    I also added this to the main post for future reference.
  19. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Open-source?
  20. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  21. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  22. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You should use Register, then you support all major economy plugins :D
  23. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @halvors sorry, I don't know what you mean by Register. If you could link me to either the thread or the documentation I would see about getting this implemented.
  24. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  25. Offline

    jamescosten

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  26. Offline

    alexistough

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Not trying to be mean. But you can alreday do this all you have to do is opp a map.
  27. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The video only shows map_0, which can be done normally, but for all the other maps, 1,2,3,4.... you have to use a plugin to give yourself a map with that damage value. Sure, you can do it, but do you really want your users giving themselves items? This makes it more realistic.
  28. Offline

    DudeGuy676

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Whenever I type /mclone 2 it always just says /mclone <map number> and doesn't let me clone the map. The crafting recipe doesn't work at all. Does anyone know what's wrong?
  29. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please submit a proper error report:
    Version of craftbukkit:
    operating system:
    Java version:
    Any error messages in console:
    Mapclone config file:
  30. Offline

    DudeGuy676

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    my bukkit build is 1.6.6
    i use windows xp professional
    java 6 update 26
    no errors in console, other than the /mclone <map number>
    mapclone config file is 0.4
  31. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Bukkit build should be a number like 818,860, or 928. It usually shows a line like this in the console:
    This server is running Craftbukkit version git-Bukkit-0.0.0-889-g22f4388-b928jnks (MC: 1.6.6)
    Also, instead of the version number of mapclone, can you show me the settings.ini in the plugins/mapclone directory?

Share This Page