[INACTIVE][FUN/MECH] Wings 1.3 - Simple Flight + Hover (Permissions 2.5.5) [635]

Discussion in 'Inactive/Unsupported Plugins' started by weasel5i2, Mar 23, 2011.

  1. Offline

    weasel5i2

    Wings - Simple Flight
    Version: v1.3

    This plugin lets you fly around. Simply hold a feather in your hand and right-click with it to toggle flying and hovering on/off. First click will enable flight mode. A second right-click will switch you into hover mode. A third right-click will switch off flying and you will fall to the ground (without damage, as long as you're still holding the feather!)

    You will fly in the direction you're facing, so if you're going to hit that mountain, well.. PULL UP!! PULL UP!!!

    Features:
    • Flying around in the sky like some crazy bird.
    • Hovering! (mostly..) - while hovering, hold down SHIFT to move yourself upwards.
    Permissions node:

    - 'wings.fly'

    Configuration:
    The configuration is located in plugins/Wings/Settings.ini. The file looks like this:​
    Code:
    hoverMultiplier=0.0012410253
    hoverBoostMultiplier=0.00555
    allowOps=true
    flyingEatsFeathers=true
    defaultFeatherAmount=500
    flightSpeed=1.0
    

    * hoverMultiplier: The vector amount to achieve the player hovering effect. Your mileage may vary depending on how this is set.​
    * hoverBoostMultiplier: The vector amount to get that extra upward boost when you press SHIFT whilst hovering.​
    * allowOps: Allow Op users to fly, regardless of their Permissions setting.​
    * flightSpeed: The amount to multiply the flight vector by. Don't set this too high or you may end up extremely far away from your intended destination!​
    * flyingEatsFeathers: (disabled by default) - Set whether or not flying and hovering will consume feathers. Note that the feather must be held in the FIRST hand inventory slot #1 (at least until I can figure out how to get it to see them elsewhere in the player's inventory)​
    * defaultFeatherAmount: This sets how many ticks each feather will last before being consumed. On my server, the default 500 setting makes them last approximately 15-20 seconds each before disappearing from the stack.​

    Download:

    Download The Plugin v1.3 (JAR)​
    Download The Plugin v1.3 (ZIP)​

    Download the Source v1.3 (ZIP, Eclipse project)​

    To Do:


    Changelog:


    Version 1.3 04-Apr-2011
    * Added feather consuming support​
    * Added configuration file plugins/Wings/Settings.ini (see above)​

    Version 1.2 03-Apr-2011
    * Added Permissions 2.5.5 support​
    * Added hovering!​

    Version 1.1 31-Mar-2011 - unreleased
    * Experimental stuff. Didn't work out too well. :)

    Version 1.0 23-Mar-2011
    * Created plugin​

     
    lolligertyp and Steve Cole like this.
  2. Offline

    Itssnowing

    It's a wonder people can ignore bright red, size 7 text saying it doesn't work on 617..
     
  3. Offline

    Celtic Minstrel

    I think they just click the thread and go straight to the bottom without even bothering to read anything. :|
     
  4. Offline

    Kalais

    Fun little plugin. This will be very handy when building, being able to hover.

    Constructive criticism:
    1. The hovering is a bit jumpy/spastic.
    2. The "pitter-patter" sound of my feet running continue for awhile after I cease flying.

    I have a few suggestions for future updates:
    1. Implement more hover controls - Decrease Altitude, W, A, S, D
    2. Flight speed control
    3. Perhaps separate hover "tool" to allow base-jumping to the perfect hover spot (Instead of cycling through feather options)

    Thanks again!
     
  5. Offline

    SharkWipf

    yes! great! you're amazing :)
    Though I have one suggestion to add to @Kalais suggestions, being a permission like wings.noconsume or something, so admins can fly without having to carry a lot of feathers, while the normal players do.
     
  6. Offline

    Dave Wright

    I added a Wings\Settings.ini and trying to make flight slower, is that possible, or is 1.0 the lowest ?
     
  7. Offline

    Darkone003

    So this requires permissions now? That sucks, any chance you can change that? :(
     
  8. Offline

    Itssnowing

    There's an option to make it so only OPs can use it.
     
  9. Offline

    weasel5i2

    I was also thinking about it, and I will add secondary mini-permissions to the Settings.ini file.. Most likely something like allowedUsers=bob123,fred66,etc.. That way you won't necessarily need Permissions. :)

    I will also add non-feather-consume users to the next version, that's a good idea.

    The hovering IS a bit jerky, trying to figure out how to get around that. If only I could turn off gravity.. But it IS possible (even through the jerkiness) to hover and build stuff.. :) If anyone can think of any ingenious ways to get around the fighting-against-gravity conundrum, I gladly welcome all suggestions :)

    I am experimenting to see if there are ways to capture other keypresses, then I can make a"hover down" button as well.. Capturing SHIFT is easy, just check if Player.isSneaking() == true..
     
  10. Offline

    Darkone003

    That's not what I meant, it doesn't function without permission right now, whenever a user right clicks it spams console with..

    Show Spoiler
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    at net.weasel.Wings.Wings.isAllowed(Wings.java:195)
    at net.weasel.Wings.PlayerListener.onPlayerInteract(PlayerListener.java:105)
    at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:250)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
    at net.minecraft.server.BlockPressurePlate.g(BlockPressurePlate.java:103)
    at net.minecraft.server.BlockPressurePlate.a(BlockPressurePlate.java:71)
    at net.minecraft.server.Entity.c(Entity.java:531)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:240)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)


    (Atleast I'm assuming that's why, I probably shouldn't assume things though when I know nothing about it) :D
     
  11. Offline

    Itssnowing

    Why not use shift as a stop? As long as you're holding shift, you don't move. That way you can control how fast you're going to move when you do start moving again, and you won't need to switch between items each time.
     
  12. Offline

    Kalais

    Hovering down and being able to move with the normal movement controls would be a great addition.
     
  13. Offline

    ZachBora

    After flying for a minute or two when I go back to the ground I hear tons of footsteps, is that something that can be changed?

    Some idea I just had, right now it seems lv 128 is the limit, could you make it so we can fly higher?
    Also, maybe an option to make it so the higher you are flying the faster you fly.
     
  14. Offline

    Itssnowing

    128 is the highest hight a chunk goes, so I doubt it's possible to exit and go above a chunk :/
    (I may be wrong, so don't quote me on this. Just don't get your hopes up.)
     
  15. Offline

    Kalais

    This has been mentioned.
     
  16. Offline

    ZachBora

    The client flymod allows to fly over it, so I'm thinking it could be possible... unless the server still thinks you are at 128...
     
  17. Offline

    Itssnowing

    I imagine the server and the client mods do different things. The server mod might change where you are in a chunk, but can't move you out of it. (It's sending coordinates to the client, mind. And since in a chunk the highest is 128, that's the highest it can report to the client.)(Also, it's a plugin, so it prolly can't change the innermost workings of the server.)
    Meanwhile, the client mod would be able to remove the limitations of chunks for a players movement.

    Again, don't quote me on this, I have only a foggy idea of how it works.
     
  18. Offline

    Genwedar

    With CB build 635 and Wings 1.3 I am getting this error spamming and lagging my server even when no one is connected:

    Code:
    [SEVERE] Could not pass event PLAYER_INTERACT to Wings
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
            at net.weasel.Wings.Wings.isAllowed(Wings.java:195)
            at net.weasel.Wings.PlayerListener.onPlayerInteract(PlayerListener.java:
    105)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.ja
    va:250)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:162)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:64)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:356)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Any ideas?
     
  19. Offline

    weasel5i2

    @Genwedar: Aah, I need to put in a check for missing Permissions, that's what is causing that problem. I'll fix it in the next release :)
     
  20. Offline

    SharkWipf

    Yesterday, our server was experiencing some heavy lagg issues, thanks to isp issues. While this happened, we experienced some strange behavoir from this plugin. We were working on filling a huge bottomless hole with glass (don't ask). Of cource we were flying, and (the admins) had godmode. When there was heavy lagg, flying players would drop straight down (duh). That is logical. What surprised me however, is that, when the lagg is over, you start flying from there, and not where the lagg started. This was especially annoying while flying above the void, ending up at level -1000 and having to fly back up from there (which worked, shouldn't flying above 128 be possible too then?). IMO flying shouldn't be calculated from the current player position, but from the excepted position, if possible. This way, you can also decrease the cpu usage, by making the player move less often, but still making him/her end up in the right place.
     
  21. Offline

    Laney_family

    I am currently running 617 as its the recommended build, which is all I know how to do, I want this to work so I am up for running 635, but I dont know how, can anyone point me to where to go about this?
     
  22. Offline

    Genwedar

  23. Offline

    Nate Wiebe

    Can you make it so there is an option for the plugin to consume feathers from everyone but admins?
     
  24. Offline

    gilgatex

    Bug/something I don't like: when you switch worlds, flight remains on if it was on before. It's a problem for my server because I have a world where flight isn't allowed, but users can exploit this bug to use it. Likewise, if you fly into a world with no flight, you can't _stop_ flying.
     
  25. Offline

    Itssnowing

    Can you stop flying after you go back to the original world? Or are you stuck flying forever?(Also: What's with the underscores? :S )
     
  26. Offline

    gilgatex

    The underscores auto-italicize in gchat, sorry force of habit :-X.

    Yes, if you go back to the original world you can stop flying, but that's the only way.

    Edit: Also changing to a different item in your inventory keeps you flying too. And if you drop your feather, you're stuck flying until you pick another one back up. Seems like you should just listen to whatever event triggers an equipment change, and stop flying if it's no longer a feather. I think that would fix all the above problems.
     
  27. Offline

    SharkWipf

    me again :)
    when you hover up, you can go way above level 128. to the point where you can't even see the clouds themselves anymore. I think this might break when you'd switch over to my method though...
    At the moment of writing I'm flying at level 700 :)
     
  28. Offline

    Itssnowing

    Holy shmoly.
     
  29. Offline

    Celtic Minstrel

    Even without SharkWipf's post, I would have to say that it's possible to go above 128; 128 is the highest possible block location, but note that if there is a block at that height you can still walk on it, and you can still jump. So, that makes the max height obtainable without the fly mod something like 130 (±0.5).
     
  30. Offline

    ZachBora

    No matter what I do with my settings, I can't get a good fly speed that works with my chunk loading time :(
    When I lower the flightSpeed to about 0.3 I can't just look at the horizon or I will keep going lower and lower, I am stuck looking at like 30 degree about the hoziron.

    I wanted to make a video using this instead of the client fly mod because this plugin is more "fluid" on the Y axis because it follows the direction I am looking at.

    Maybe there's anther setting I need to adjust to make a speed of 0.3 work without constant looking upward?
     
  31. Offline

    ratty

    This is a really fun plugin!
    One thing though, everyone on the server gets immune to fall damage when the plugin is loaded, even if they aren't holding a feather or don't have wings.fly permission.
     

Share This Page