[INACTIVE][TP][MECH]Waypoints v0.3.1 - Multiple respawn points after death [670]

Discussion in 'Inactive/Unsupported Plugins' started by Endain, Mar 26, 2011.

     
  1. Offline

    Endain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    [IMG]
    (Download)
    (Source)
    Not current at the moment

    Update to version 0.3.1 is required!
    Update from version 0.2.x -> 0.3.0 is required!
    Update from version 0.2.6 -> 0.2.7 is recommended!*
    Update from version 0.2.5 -> 0.2.6 is required!

    There are no special update procedures when updating to v0.3.1. Back-up your save data to be on the safe side!

    There are no special update procedures when updating to v0.3.0, the plugin will automatically convert your save data to the new format and add the config options! Back-up your save data to be on the safe side!

    *If updating to v0.2.7 you MUST add the property 'allow-unbind' to config.txt! You can also just delete the config.txt and reconfigure it when the plugin generates a new one! Waypoint save data will not be effected.

    The Waypoints plugin is designed to change the default respawn mechanic of Minecraft. Instead of respawning at a single defined world spawn there can be multiple 'Waypoints' at which players can respawn. If players have not been bound to a Waypoint, they will still respawn at the normal server spawn.

    Features at a glance:
    • Multiple respawn points
    • Multiworld support
    • Easily and dynamically configurable
    • Drag & Drop functionality (Flatfile data saving)
    • GroupManager Support (Not required)
    Future outlook:
    • Add ability to set config options via command in-game
    • Ability to spawn points with specified save/protect radius
    • Ability to change save/protect radius of current points
    • Option for health regen to players in protected zones (Added!)
    • Command to teleport (all) players back to their Waypoint
    • POSSIBLY: Charge fee to bind to Waypoint. (iConomy?)
    • POSSIBLY: Make points capturable (KOTH style?)
    Developer: Endain
    Idea: xian (Request thread) - Thanks!
    Tester: Hansel2411 - Thanks!

    How it works:
    Server admins have the ability to spawn 'Waypoints' at (almost) any point in any world in their server. Players can then 'bind' themselves to these Waypoints and respawn at these points when they die, instead of the global spawn points.

    Every Waypoint is denoted in the world by a column of bedrock surrounded by a ring of glowstone to make it easily visible and distinguishable. Every Waypoint has two 'zones' centered around it, a 'save-zone' and a 'protection-zone'. The sizes of these zones are defined in a config file that the plugin auto-generates and are shaped as cubes, not spheres. A player must be inside a a 'save-zone' to bind themselves to the Waypoint; the plugin may be configured to automatically bind players to the Waypoint when they enter it's 'save-zone'. The 'protection-zone' defines the area around the Waypoint in which no blocks can be damaged; the plugin can be configured to allow or prevent players from damaging each other within the 'protection-zone'.

    How to install:
    (First time installer) Unzip the file downloaded from MediaFire. Briefly look over the included README file. Copy the 'Waypoints.jar' file and the 'Waypoints' folder into the plugin folder in your main Bukkit directory. Look over 'config.txt' in the 'Waypoints' folder and configure the plugin as you wish!
    (Updating old install) Same as a first time install! With the code refactoring the plugin will now automatically convert old save files and add new config options!

    Commands:
    /wpbind (Usable by any player)
    - Binds the player who typed the command to the Waypoint they are near. (They must be
    within the Waypoint's save-zone) If the plugin is configured to autosave when the player
    enters a save-zone then this command is not used.

    /wpunbind or /wpfree (Usable by any player - if enabled)
    - Unbinds the calling player from any Waypoint they are bound to. You do not NEED to
    use this command before binding to a different Waypoint. This is more to allow you to cut
    ties with all Waypoints so if you die you go to the world spawn. Can be disabled in config.txt.

    /wpadd (Usable by OP's – permission: waypoints.addpoint)
    - Creates a new Waypoint where the calling player stands. Must be added in a relatively open
    area and it's zones cannot intersect any other zones.

    /wpdel (Usable by OP's – permission: waypoints.delpoint)
    - Removes the Waypoint associated with the 'save-zone' or 'protection-zone' that the calling
    player is standing inside of.

    /wpsave (Usable by OP's/Server Console – permission: waypoints.savepoint)
    - Forces all relevant data to be written to the disk.

    /wpclean (Usable by OP's – permission: waypoints.cleanpoint)
    - Known to be bugged in v0.3.1, I won't have time to fix it for a while
    - Removes any berock in a radius of length 'save-radius' around the caller that does not belong to a working Waypoint.

    Please read the README packaged with the plugin if you need more detail.


    Known Issues:
    Version 0.3.1
    • /wpclean command removes bedrock from valid Waypoints
    Changelog:
    Version 0.3.1
    • Removed (hopefully) all the left over debugging code causing 0.3.0 to fail.
    • Added config option for HP regen in protected zones. (hp-regen=1)
    • Random minor code fixes.
    • Should work with CB 670.
    Version 0.3.0
    • Completed (mostly) a massive code refactoring! Almost everything was re-written.
    • Added config option for true multiworld support. (seperate-worlds=true)
    • Added config option to limit Waypoint use to OPs or players with permission. (limit-use=true)
    • Changes to config.txt during runtime are now detected and changed in-game.
    • New data save format for points, old save files automatically converted.
    • Now verified as working with Minecraft 1.4 and CB 617.
    • Lots of other things I can't remeber and aren't worth noting anyways.

    Version 0.2.7
    • Added command to 'unbind' player from a Waypoint (see /wpunbind for details)
    • Changed how the plugin reacts when confix.txt is loaded with errors.
    • Download now packaged with default files the plugin would generate on first run.
    • Possibly fixed a bug using /wpbind? Not sure if it was there before or not.. OK now.
    Version 0.2.6
    • Fixed player data saving that only saved 1 player instead of all.
    • Various code tweaks, no functional changes.
    • Added protection against creeper explosions in 'protected regions'.
    Version 0.2.5
    • Initial public release.

    Version Archive Downloads:
    Version 0.3.1 (670 - Current, some known issues)
    Version 0.3.0 (617 - Bugged, do not use!)
    Version 0.2.8 - 0.2.9 (Unrealeased, builds from between code refactoring)
    Version 0.2.7 (556 - No know bugs, not verified as working in Minecraft 1.4)
    Version 0.2.6 (556 - No known bugs, update recommended)
    Version 0.2.5 (556 - Bugged, do not use!)

    - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Feedback and comments are appreciated! First public plugin, hope it works out well! Enjoy!

    If you REALLY like the plugin for some reason, feel free to buy me a burger, we have Whopper Wednesday's here on campus!
    [IMG]

    - Endain
  2.  
  3. Offline

    xian

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    awesome plugin! we got it on our PvP-server now and the new factions are sattling near thoose waypoints :)
    of course there are more ways to let players save their spawns, but awesome feature here is, that admins are able to choose the amount of spawners, have a little more influence on where people are building and also in a factions-war there isnt the problem of infinite defenders respawning inside the walls :)

    [IMG]

    again - a big thanks for developing it! i am sure other people will also like it.
  4. Offline

    Endain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks for the support xian!

    Also, there is a known bug with data saving in v0.2.5, I have to go out for a while so it will be some time before I can track down the bug. From what I'm told everything works fine until the server is restarted, then all but 1 player loses their association with their Waypoint. Will fix ASAP!

    - Endain
  5. Offline

    Endain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Fixed saving bug, tweaked and added a few things. Now version 0.2.6; if you downloaded version 0.2.5 you must update to fix the saving bug. See OP for details!

    - Endain
  6. Offline

    xian

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    thx. everyone works perfect now! :)
  7. Offline

    Endain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Plugin updated to v0.2.7, added a command to 'unbind' players from Waypoints. See OP for more details on what it's useful for. This option is also togglable in config.txt.

    If updating to v0.2.7 you MUST add the property 'allow-unbind' to config.txt! (Ex: allow-unbind=true)


    You can also just delete the config.txt and reconfigure it when the plugin generates a new one! Waypoint save data will not be effected.

    See OP for details if needed.

    - Endain
  8. Offline

    Graham

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  9. Offline

    Jelle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Does it support multiworld? (Plugin: MultiVerse)
  10. Offline

    Endain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ? ... thanks for your input?

    Sort of though I haven't been able to test it with multiple worlds. I'm not sure it would support it in the way you are intending, it does not save a whole new set of Waypoints per world, rather it just saves the world with the Waypoint. Like if you travel to world B and bind to a Waypoint there then travel back to world A and die, you should respawn at the point in world B.

    Do you need it to have a seperate Waypoint in each world?

    - Endain
  11. Offline

    Jelle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yes, because i got pretty much worlds, and i want to use this for normal play and arena/jump as well, so that's why i need it multiworld support :)
  12. Offline

    Endain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Alrighty, I'll look into it. I want to refactor the code anyways. Not sure how long it will take me, hopefully I'll get it done by the weekend!

    - Endain
  13. Offline

    anonymous

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    PLEASE add a permisions node to all commands. I want this to be a donator only feature, but everyonecan use it :(
  14. Offline

    Endain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Will do for next release!

    Trying to finish refactoring and get it tested with Minecraft 1.4 ASAP!

    - Endain
  15. Offline

    EniGmA1987

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks for your work with getting this working in Minecraft 1.4 :)


    I dont know a lot about plugin coding, but here is a suggestion for how multiworld support *could* work:

    When a waypoint is created, it saves the data for which world it is in.
    When a player is bound to a waypoint and dies, there is a check done to see if that player has a bind point set, and if that player has a bind point, it does a check against what world the player is in, and what world the bind point data is from. If the world = different, then respawn at current world's default spawn.

    Or you could get really fancy and if the world is different, do a check for the closest waypoint to the players current coordinates and respawn to that nearest point.



    I dont care if any of that is actually done or not, it is just random stuff I am thinking up as I type. I mostly just want the plugin updated for v1.4 and to have some sort of working multiworld support.
  16. Offline

    thyrfa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Can you make a way for waypoints to be claimed? Like, only people from that group can use it. That way, factions can battle over strategic areas to get good respawn points. Would be useful for my server.
  17. Offline

    Endain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Possibly, I will look into a 'KOTH' type system to make Waypoints capturable. This will take a while tho, the next 5 days or so are like a week from hell in terms of school. I'm just gonna crank out a bare working version with the new code then take the weekend to do homework.
  18. Offline

    EniGmA1987

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks for your working getting this to run properly in Minecraft 1.4 - CB build 617 :) And good luck with your school!
  19. Offline

    zorphon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    As long as there is a working version soon, I found a replacement for this but have to get rid of the my waypoint/bedrock somehow.
  20. Offline

    thyrfa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    So....Whens the rewrite gonna be done?
  21. Offline

    Endain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm so sorry it took me so long to get the plugin updated! I got stuck on a single bug for almost all of Saturday, and I couldn't release it with the bug since it would have for sure messed up everyone's save data. I certainly picked a bad time to essentially redo the code ... I should have anticipated the Minecraft update and my homework.

    But anyways, version 0.3.0 is now up for download in the OP. I *think* I got all the fatal bugs worked out of it, there are a few known issues that are stated. Unless there are any really bad bugs discovered I wont have time to touch this again until after this next Tuesday. Here's a copy of the changelog and also a copy of what I plan to start working on later this week:

    Changelog:
    Version 0.3.0
    • Completed (mostly) a massive code refactoring! Almost everything was re-written.
    • Added config option for true multiworld support. (seperate-worlds=true)
    • Added config option to limit Waypoint use to OPs or players with permission. (limit-use=true)
    • Changes to config.txt during runtime are now detected and changed in-game.
    • New data save format for points, old save files automatically converted.
    • Now verified as working with Minecraft 1.4 and CB 617.
    • Lots of other things I can't remeber and aren't worth noting anyways.
    Future outlook:
    • Add ability to set config options via command in-game
    • Ability to spawn points with specified save/protect radius
    • Ability to change save/protect radius of current points
    • Option for health regeneration for players in protected zones
    • Command to teleport (all) players back to their Waypoint
    • POSSIBLY: Charge fee to bind to Waypoint. (iConomy?)
    • POSSIBLY: Make points capturable (KOTH style?)
    Please let me know if you find bugs or notice any performance issues ... I'm curious to see if some of the changes I made affect performance in any way.

    Apologies again for the long wait. :(

    - Endain
  22. Offline

    thyrfa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    woot! thanks
  23. Offline

    thyrfa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    WAYPOINTS(v0.3.0): Unable to parse waypoint data file!
    WAYPOINTS(v0.3.0): The plugin will be disabled!
    Getting this. Help?

    Edit: now getting this instead after a fresh reinstall
    WAYPOINTS(v0.3.0): Unable to parse playerpoint data file!
    WAYPOINTS(v0.3.0): The plugin will be disabled!

    Havent made ANY changes to that, still in the default state with everything in comments.

    Edit2:
    Just tried it completely blank too, nothing even in comments. Still not working.
  24. Offline

    EniGmA1987

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I am getting this as well:

    I know your busy and wont be able to get to it, but just letting you know. This plugin seems amazing though so I hope you can get it working sometime soon :) Ill be sure and donate some money once it is all working well
  25. Offline

    thyrfa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Please do fix this, my server is broken till your plugin works :( Love you <3!
  26. Offline

    Endain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Just looking at the code on the bus now.. I already see some debugging code I forgot to take out that had some hard coded map names that would be throwing those errors.. Unless your main world is named 'temp' lol. Will start fixing this up when I get home, no more evil Stats test or homework eating up my time anymore!

    - Endain
  27. Offline

    thyrfa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  28. Offline

    riuthamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This is amazing, i just posted looking for a graveyard plugin and then somebody linked me to this, only prob is it doesnt work with the most recent build of craftbukkit, 652. Any chance we could get it recompiled?
  29. Offline

    xian

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    he is already fixin' it afaik :) we're waiting for the patch too.. gonna go public with our server, when its done. (cant wait much longer!! :D)
  30. Offline

    riuthamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    If he is reDoing it can we get boseconomy support as well?
  31. Offline

    TfT_02

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    YES! This is exactly what I was looking for! I support this! :D
    Just tested it on 617 and it doesn't seem to work. I can't wait for it to work though! :) Keep up the good work.

    Small section of Error log:
    Code:
    2011-04-07 17:03:05 [SEVERE] java.lang.NullPointerException
    2011-04-07 17:03:05 [SEVERE]     at com.Endain.Waypoints.Managers.DataManager.load(DataManager.java:171)
    2011-04-07 17:03:05 [SEVERE]     at com.Endain.Waypoints.Waypoints.onEnable(Waypoints.java:86)
    2011-04-07 17:03:05 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    2011-04-07 17:03:05 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:514)
    2011-04-07 17:03:05 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    2011-04-07 17:03:05 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
    2011-04-07 17:03:05 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
    2011-04-07 17:03:05 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    2011-04-07 17:03:05 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    2011-04-07 17:03:05 [SEVERE]     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    2011-04-07 17:03:05 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    2011-04-07 17:03:05 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-07 17:03:05 [INFO] [WAYPOINTS(v0.3.0)] Unable to parse playerpoint data file!
    2011-04-07 17:03:05 [INFO] [WAYPOINTS(v0.3.0)] The plugin will be disabled!
    2011-04-07 17:03:05 [INFO] [WAYPOINTS(v0.3.0)] Realms: 1
    2011-04-07 17:03:05 [INFO] [WAYPOINTS(v0.3.0)] Points: 0
    2011-04-07 17:03:05 [INFO] [WAYPOINTS(v0.3.0)] DISABLED!
     
    2011-04-07 17:03:05 [SEVERE] Could not pass event PLUGIN_ENABLE to Waypoints
    java.lang.NullPointerException
        at com.Endain.Waypoints.WaypointsServerListener.onPluginEnable(WaypointsServerListener.java:16)
        at org.bukkit.plugin.java.JavaPluginLoader$31.execute(JavaPluginLoader.java:353)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:515)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    I'm using Windows Vista 32bit, Bukkit 617 and a lot of other plugins. If you would like a list of them just let me know.

Share This Page