[FUN] EnergySword v0.4 (BETA) Lunge at your foes (And cut through them like butter!) [953]

Discussion in 'Inactive/Unsupported Plugins' started by DrBoweNur, Jun 27, 2011.

  1. Offline

    DrBowe

    EnergySword - Lunge at your foes! (And cut through them like butter!)
    Version: v0.4
    Download: EnergySword v0.4b (JAR)


    Protip: Change it to 480p, I have no idea why it defaulted to 240.

    This plugin is pretty simple. If you've ever played Halo, then you've already got a pretty decent idea of what this will do. This plugin will allow players to turn any golden sword, into an energy sword! It will allow you to lunge (most of the time) at your enemies, and cut through them with ease. However, your energy sword has a very limited amount of energy, so use it wisely!

    Features:
    • Players can turn regular golden swords, into powerful energy swords! (Deal massive damage)
    • Players can lunge at their targets!
    • Completely internal usage, no commands required (no commands at all, currently ;) )
    • Cooldown for lunging
    • Extra-durability depletion upon using features of the energy sword
    • Fancy lightning when activating your energy sword (Harmless, of course)
    • Lots of configuration!
    • Permissions support!
    • (NEW) Added optional skill - Disengage
      • Left-Click to fly away from enemies and make a speedy escape
      • Default tool set to bow
      • Own configuration set
      • 'disengage.use' (or OP)
    Permissions:

    • 'energysword.use' - ...it allows the player to use an energy sword, hard to grasp, eh?
    • (NEW) 'disengage.use' - Allows use of disengage skill
    Usage:
    EnergySword:
    • Right-Click with a golden sword in hand to activate (and again to de-activate)
    • Crouch Left-Click to lunge at a target (configurable range)
    • Normal attacks while EnergySword is active will deal 15 damage (damage is also configurable)
    Disengage:
    • Left click with bow to disengage away from enemies
    Configuration:

    Show Spoiler

    Changes the cooldown between lunges (NOTE: WORKING AS OF v0.2.1)
    Lunge-Cooldown: '5'

    Changes the amount of damage dealt by an energy sword thats activated
    Energy-Sword-Damage: 15

    Changes the maximum lunge range (recommened to keep around 8, large changes make the lunge VERY innacurate)
    Maximum-Lunge-Range: 8.0

    Changes whether or not activating an energy sword causes lightning to strike (for effect)
    Use-Lightning: true

    The Item ID of an energy sword
    Energy-Sword-Item: 283


    Bug Reports:

    You know the drill, people!
    Bukkit Build # AND Error in console.

    Suggestions/Feature Requests:
    I'm having a lot of fun toying around with minecraft physics and damage events, and I'd be happy to throw in more features if you so desire. Currently, this plugin is limited to a golden sword, but if you guys want more sword features (or weapon/armor features in general), let me know! I'd be happy to expand this into a broader plugin that covers special effects for certain weapons, which could work well for RPG servers (once permissions support is added!)

    Known Issues:
    Show Spoiler

    • Lunge is not 100% accurate, especially when targetting things ABOVE the player
    • If there is more than 1 target within your lunge radius, you may very well get sent flying backwards. I havent quite figured out how I'm going to squash this bug yet, but I'm sure that...in time...I'll figure out a way
    • Changing the Lunge-Cooldown...does not change it. (FIXED)

    TODO:

    Show Spoiler

    • Permissions Support (DUH)
    • Configuration
    • Fix the accuracy of lunging
    • Add option for multiple Energy Sword IDs in config
    • Add feature for using up resources (or health) to activate the energysword (configurable, of course)
    • More sword-related features (or any other tool/weapon)...? Suggest stuff! :)

    Changelog:
    Version 0.4
    • Disengage skill added
    • Various fixes for NPEs
    • Actual support for OP-only (fo realz this time...I SWEAR)
    • A little code clean-up
    Version 0.3.2
    • OP support actually exists now! (as opposed to the previous claims)
    Older Changelogs:
    Show Spoiler

    Version 0.3.1
    • Fixed bug where players could still lunge, even if their EnergySword was deactivated
    Version 0.3
    • MAJOR revamp to the targetting system. You are now 99.9% guaranteed to lunge at the target you're aiming at! Thanks to @nisovin
    • Code clean-up, more (unsucessful) tests with making the actual lunge take you to the specified target
    Version 0.2.1
    • Bugfix for Lunge-Cooldown value in config (It should work properly, now.)
    Version 0.2
    • Added some major configurability (see Configuration for notes)
    Version 0.1.1
    • Permissions support!
      • 'energysword.use'
    • Defaults to OP if no permissions are found
    Version 0.1
    • Releasing BETA of EnergySword!
     
    kahlilnc likes this.
  2. Offline

    captainawesome7

    That sounds pretty cool, does the lunge work like in Halo where if you lunge at somebody above you you move upwards?
     
  3. Offline

    DrBowe

    Eventually, that is my goal. However, I have limited the lunging to more horizontal-based lunges (due to inconsistency with vertical attempts)
    As the name implies, its still in Beta testing...so I'm still trying out various methods of fixing the innacurate Vectors that bukkit is throwing back at me.

    EDIT:
    Uploading video to YouTube to showcase it to any skeptical plugin-hunters. It'll take a while, and might not be up until morning. Damn youtube uploads... :p
     
  4. Offline

    captainawesome7

    Lol my youtube upload took 4 minutes :p
     
  5. Offline

    DrBowe

    It might be the fact that I uploaded straight from my FRAPS recording, and that it was recorded in 120FPS...Probably should have converted to a more compact file before uploading

    But, I digress. :p
     
  6. Offline

    captainawesome7

    That is probably it, mine was (I think) 30fps, or whatever the iMovie standard is
     
  7. Offline

    JorganPubshire

    I like the idea of this plugin. Could you post some source code, I have been trying to figure out how to do somtehing like this.
     
  8. Offline

    DrBowe

    What kinds of things are you looking for? I'd be happy to post chunks of it, but my coding is rather messy, and I dont like showcasing full source if the coding is ugly :p
     
  9. Offline

    JorganPubshire

    I've been trying to figure out how to make the player target specific players by aiming at them, it sounds like you don't have it quite down yet, but you are closer than I am. How did you get the player to find and move toward a lunge target?
     
  10. Offline

    DrBowe

    I'll explain and post code in just a second. Have to re-upload a version with permissions :)

    EDIT:
    EnergySword v0.1.1 is out! Adds permissions support so not everybody can just fly around and obliterate their foes! (will default to OPs if no permissions.jar is found)

    Anywho, to your coding question: I'll PM you some stuff :)
     
  11. Offline

    kahlilnc

    Configurable item would be nice?

    EDIT: Oh my can you add config for damage control, and lightning. That really lags my server. Other wise I love this plugin.
     
  12. Offline

    DrBowe

    I'll add a config file this evening after I get back from work. In retrospect, the lightning wasnt really necessary at all, I just like flashy stuff >.<
     
    kahlilnc likes this.
  13. Offline

    colin8696909

    very cool now i can have a wizard class a archer class and a knight class.
     
  14. Offline

    DrBowe

    :|

    EDIT:
    Nevermind that, I thought you were asking for them. Completely misread :p

    Status Update:
    I added a video to the main post, to display the plugin (in all its buggy glory)

    I'll be releasing v0.2b tonight, which will be fully configurable
    You'll be able to configure:
    • Whether lightning strikes on activation
    • The item that is an energy sword
    • The damage from a 'default' energy sword attack
    • The max lunge range (Try not to change this too much, as the lunges get more innacurate the further you increase the range)
    • Lunge Cooldown (Hopefully, having some bizarre issues with this ATM)
    All of this is coded in, I'm just trying to get Lunge Cooldown to work properly before I release it. If I cant get it worked out in the next 30 or so mins, I'll just release it without a lunge-cooldown config node.

    I'll also be experimenting with a few new ways to improve the accuracy of the player's target (not the actual lunge, just the target itself), as currently, selecting a target is very...VERY random if there is more than 1 within the lunge range.

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

    kahlilnc

    Nice cant wait.
     
  16. Offline

    DrBowe

    @kahlilnc (and others)
    New version of EnergySword (v0.2) is out!
    Adds MAJOR configurability to the plugin. Please make sure that you know how to handle a YML before reporting bugs with the config file (NO TABS, PEOPLE. TABS = BAD)

    Version 0.2.1 is out, a quick bugfix for the Lunge Cooldown value not working in the config.

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

    DrBowe

    Version 0.3 is out (and is HIGHLY recommended!)
    • Fixed the targetting-randomness (now you will only lunge at the target you're aiming at!)
    • Code clean-up, and some more (unsucessful) attempts at making the lunge more accurate (the lunge itself, not the targetting system)
     
    kahlilnc likes this.
  18. Offline

    kahlilnc

    Nice ppl were compaining about random lunges
     
  19. Offline

    DrBowe

    I also assume they are complaining about the fact that the lunge doesn't work properly, half the time, which is my next task :p
     
  20. Offline

    MicroCuts327

    Hey, the Energy Sword isn't working for me… I'm running Bukkit-0.0.0-892-ga9ddbaa-b935jnks (MC: 1.6.6)
    (copy pasted from terminal =P). Nothing happens, so no error message from the console to give you :/
     
  21. Offline

    DrBowe

    2 things:
    Do you have permissions, or are you an OP?
    Is it atleast stating that [EnergySword] v0.3 enabled in the console on start up?
    EDIT:
    I just tried it out on my test server, and it worked fine :x

    Can you post any other plugins you have? A plugin that comes to me off the top of my head that MIGHT conflict is FireLord
    @MicroCuts327
    ...did you figure it out? I feel uneasy not knowing whether its working for you or not.

    Inadvertedly found a bug, after checking to make sure the plugin still worked on 935...
    Players could still lunge even if EnergySword wasn't active
    Releasing a hotfix v0.3.1

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

    ClonedInsanity

    oooOOO this is cool.
    Would be great if you could configure multiple swords or have to option to place a cost on activating, like items or hp.
     
  23. Offline

    DrBowe

    Multiple ID options, or multiple types of swords? I can do both, but obviously 1 will be easier than the other :p
    The other one would require me to look into inventory monitoring, which I'm not exactly opposed to, to be honest...but it might take some time.
    Either way, glad you like the plugin, and I'll add both of your suggestions to my TODO list ;)
     
  24. Offline

    ClonedInsanity

    I was thinking along the lines of multiple IDs with their own options to configure damage and stuff.
    Which ever is easiest for you though. =D
     
  25. Offline

    DrBowe

    That...would be slightly more complicated, as I would have to find a way to link the two configurations at some point. I could, however, simply include all sword types as default config files (and allow you to configure them from there)
     
  26. Offline

    ClonedInsanity

    That would be great!
     
  27. Offline

    MicroCuts327


    Uh well, I'm running the latest build of craftbukkit. The plugins that i'm running are:

    backup, bookworm, chaircraft, cleardrops, colorme, craftbukkituptodate, creeperheal, DeathTPplus, EggRenade, your energy sword plugin, Essentials, lockette, MIDIbanks, RealTeleporter, SelfClosingDoors, SimpleTips, SpawnX, ThunderJoin, Trampoline and World Edit.

    As for the console, this is what i get (in order of appearance):

    [INFO] [EnergySword] version0.3.1 enabled

    then when I try to use it…

    [SEVERE] Could not pass event PLAYER_INTERACT to EnergySword
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    at me.DrBoweNur.EnergySword.EnergySwordPlayerListener.onPlayerInteract(EnergySwordPlayerListener.java:56)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:139)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:780)
    at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)


    Do I need to have permissions installed? Because I am OP…
     
  28. Offline

    DrBowe

    You shouldn't 'need' it, but that is what the error is telling me, which is strange.
    It's also bad, as I'm leaving for a trip in roughly 15mins. I'll see if I can find the issue and send out a hotfix...if not, I won't be able to fix this for a week :/
     
  29. Offline

    MicroCuts327

    No problem, do it when you can
     
  30. Offline

    DrBowe

    @MicroCuts327
    Released a (not so quick) fix for your issue. Finally managed to grab a stable internet connection down here, let's hope it lasts incase this one doesn't fix it! ;)
     

Share This Page