[MECH] InvFall v1.3 - Cascading Inventory Items [1060]

Discussion in 'Inactive/Unsupported Plugins' started by SPIA1001, Jun 24, 2011.

  1. Offline

    SPIA1001

    InvFall - Cascading Inventory Items:
    Verison: 1.3

    InvFall changes the mechanics of the in game inventory, items will now fall down into the hotbar when a slot is empty! InvFall does support Permissions and on a server without permissions it defaults to everyone.



    FreeFall:

    [​IMG]

    When freefall is disabled for an item to fall into the hotbar it must be directly connected to the hotbar. The flowers in column two will not fall into the hotbar, while all of the items in the two last columns will fall down into the hotbar. When freefall is enabled all items will fall down. FreeFall is disabled by default.

    Commands:
    Code:
    /invfall                         - toggles invfall for yourself
    /invfall player <username>       - toggles invfall for another player
    /invfall freefall                - toggles freefall for yourself
    /invfall setslots <slot numbers> - sets enabled slots Ex. /invfall setslots 1234
    Permission Nodes:
    Code:
    invfall.*         - gives all permissions for invfall
    invfall.invfall   - can use command /invfall
    invfall.player    - can use command /invfall player <username>
    invfall.freefall  - can use command /invfall freefall
    invfall.setslots  - can use command /setslots <slot numbers>
    invfall.blockfall - blocks fall
    invfall.toolfall  - tools fall
    Features:
    • Toggle Cascading Items
    • When a tool breaks it will be replaced by the item above it
    • Support for Permissions
    • Can enable InvFall for other players
    • FreeFall of items in inventory
    • Configurable slots, some can be enabled others disabled.
    Download Jar

    Source Code

    Changelog:
    Version 1.3
    • Added configurable slots.
    Version 1.2
    • Fixed bug: Tools falling after one use
    Version 1.1
    • Fixed bug: item data not copied when item falls.
    • This should fix an array of unforeseen problems
    Version 1.0
    • Fixed bug: user joining message not displayed
    Full Changelog
     
    Noppoly and GameFreakDude like this.
  2. Offline

    ashour

    Very nice plugin :) and very very usefal when building, so you dont need to restock your wool stone cobble ETC
     
    SPIA1001 likes this.
  3. Offline

    SPIA1001

    Thank you very much for the reply, I hoped it would be of use.
     
  4. Offline

    TheTrixsta

    Chuck Norris Approved! Great Job!

    [diamond]x5 For You!

    ;)
     
    SPIA1001 likes this.
  5. Offline

    dupsmckracken

    This is just like QuickBelt. Granted Quickbelt hasn't been updated since 670 or so, but it still works. Is there really any difference?
     
  6. Offline

    SPIA1001

    I wasn't aware of quickbelt, but as you said it hasn't been updated in ages. Also it doesn't have permission support, and after a quick look at it's source code, it uses the highest priority of events which can interfere with other plugins whilst InvFall only monitors events. InvFall also saves a list of people who have actually enabled it so when your server restarts users won't have to enable or disable it again. So the plugins functions do seem to be mainly the same, but there is subtle difference in features. I also plan on supporting InvFall for a longtime.

    Would adding support for only certain materials falling into the hotbar be of use to anyone? I'm contemplating adding this feature, but I'm not sure if anyone would want it. It would be in a config file.

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

    undeadmach1ne

    i love the idea of this plugin and since my first day of mc have arranged my inventory 'properly' (so it would work like this)...i was testing last night and it seemed to work fine. i moved on to testing some other plugins and noticed 'invfall is disabled' in red coming up at random. ill try to reproduce it tonight if i get a chance so i can provide more info. there is nothing in the logs.
     
    SPIA1001 likes this.
  8. Offline

    SPIA1001

    Okay thanks, and yeah I will get right on top of the log thing.
     
  9. Offline

    dupsmckracken

    I can see why some people would use it, though I like the autoreload for all.

    The one thing that I noticed about this plugin that I don't really like is that when activated for the first time, if there is an empty slot in your quickbar, it doesn't automatically drop the item down. One has to use put an item there, then use it for it to start. Otherthan that, works for me.
     
    SPIA1001 likes this.
  10. Offline

    SPIA1001

    I'm working on making the items fall as soon as it's enabled right now. :)

    The plugin is now updated with the feature you requested! :D

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

    dupsmckracken

    Nice. Could you make it check for slots above the slot immediately above the quickbar? Let's say you have a column (top to bottom): item, empty, empty, equipped item, when the equipped item is used, nothing happens, could you get it to check 2 slots above, then 3 slots, if the first and second rows are empty? Does this make sense?
     
  12. Offline

    pointyboot

    heya spia,

    i've been trying to use your plugin since 0.5 was released. it refuses to "start" on my server while any other plugin i use has no issues. i hope you are able to parse this and tell me what is going wrong.

    2011-07-07 03:15:14 [INFO] No such file or directory
    2011-07-07 03:15:14 [INFO] Plugins/InvFall/players.txt (No such file or directory)
    2011-07-07 03:15:14 [SEVERE] Could not load 'plugins/InvFall.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:199)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:122)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:89)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at spia1001.InvFall.PlayerManager.load(PlayerManager.java:49)
    at spia1001.InvFall.PlayerManager.<init>(PlayerManager.java:20)
    at spia1001.InvFall.InvFall.<init>(InvFall.java:15)
    ... 13 more

    thanks for your time!
     
  13. Offline

    SPIA1001

    It seems like InvFall is failing to create the InvFall folder and the player.txt on it's first run, which is weird becuase it checks to see if it's there and if it's not then it creates it, but seeing as it's failing to create is causing exceptions, I'll look into it more. Could you check to see if an InvFall folder is created, and inside of it the players.txt? I highly doubt it will be there. I'm going to look for bugs in my file creation code, but if I can't find any, I plan on making a config file that will allow you disable the file io for InvFall so hopefully that would be able to solve the problem.

    Yeah I could add this feature, I'll put in a config file so if some users don't want items that are not connect in a columns falling down they won't, or I might make it a command to toggle it.

    In version 0.8 if the files fail to be created it should not give you these errors! Thank you for reporting this error.

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

    pointyboot

    thanks for the reply!!

    i manually created the invfall folder and the players.txt file and this was the output:

    2011-07-07 17:41:09 [INFO] No such file or directory
    2011-07-07 17:41:09 [INFO] Plugins/InvFall/players.txt (No such file or directory)
    2011-07-07 17:41:09 [SEVERE] Could not load 'plugins/InvFall.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:199)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:122)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:89)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at spia1001.InvFall.PlayerManager.load(PlayerManager.java:49)
    at spia1001.InvFall.PlayerManager.<init>(PlayerManager.java:20)
    at spia1001.InvFall.InvFall.<init>(InvFall.java:15)
    ... 13 more

    exactly the same from what i can tell.

    i just ran 0.8 after removing the plugin entirely:

    2011-07-07 17:45:09 [INFO] InvFall version 0.8 is enabled!

    thanks bud!
     
  15. Offline

    SPIA1001

    Your welcome! I'm glad the update fixed it.

    I added it! You enable it by typing in the command /invfall freefall.

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

    Fabis94

    On my server when I install this mod, the "XXX has joined the game" yellow messages are gone. Like you don't get them once someone connects. I'd use this plugin, but that is one pretty big Con.
     
  17. Offline

    SPIA1001

    Okay I will look into fixing that.

    Now with V1.0 the message is displayed!

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

    Fabis94

    Okay, but why can't you do this with every item? Like, for example, this plugin doesn't work with bread.
     
  19. Offline

    SPIA1001

    It's becuase the way when an item is consumed it's not removed until the end of the event. So when InvFall updates the item falling then the item that fell is also removed as if it was eaten. I'm working on getting support for consumed items though it shouldn't be too long until I figure out the best way of getting food to fall.
     
  20. Offline

    Fabis94

    Also, when I put Wool in a row, when it falls down it becomes white wool, even if it was a different color before cascading.
     
  21. Offline

    SPIA1001

    I will look into this bug, and fix it as soon as possible.

    This bug has been fixed in v1.1 ! Thank you very much for reporting it, the fix will stop a lot of other potential problems. :)

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

    GEN3RIC

    My gripe is that every time someone logs in, it displays InvFall is <enabled/disabled> to all users including low-ranked users. Normally that wouldn't be an issue but occasionally we need to log in using Spyer (invisible) to spectate a player for various reasons. With Spyer, it doesn't say that we logged in or anything, but with InvFall, it broadcasts our InvFall setting and really tips them off. Is there a way to hide it via permissions? I personally think it is a grave error to make this broadcast public because it is entirely irrelevant to other users and just clutters the chat.
     
  23. Offline

    SPIA1001

    Have you tried v1.1? It shouldn't do that anymore, becuase now the enabled/disabled status is sent as a message to the player, and is no longer the log in message.
     
  24. Offline

    GEN3RIC

    By George it works. I don't know how, but I think I was running 0.6. I just downloaded it the other day so I'm not sure if I got it from an old repo or what. But thanks for setting me straight, this is perfect now.
     
    SPIA1001 likes this.
  25. Offline

    undeadmach1ne

    i just discovered a bug. if you have a hoe, or a flint&steel equipped, with something in the slot above them, they will be used up in one use (even their first use) and the item from the above slot will fall into their space. they work fine with nothing above them. no error msg in logs, no other plugins installed. invfall v 1.1.

    Code:
    03:15:51 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-917-
    ge54e46b-b968jnks (MC: 1.7.3)
    03:15:51 [INFO] This server is also sporting some funky dev build of Bukkit!
    >plugins
    03:16:02 [INFO] Plugins: InvFall
    >
     
  26. Offline

    MrJelle

    I'll be switching to this once it matches QuickBelt's functionality.

    Main thing that comes to mind is not being able to configure the slots yet, unless I'm mistaken here?
     
  27. Offline

    Fabis94

    I've also noticed that.
    Another thing that I think is because of this plugin, is that when you open your inventory and drop some stuff out (like click on an item stack and click out of the inventory on your screen) your character drops those items, but the Item icon is still on your mouse, as if you hadn't dropped it yet. So to drop stuff you need to click out of the inventory twice.

    Same goes for the inventory. If I have 64 items, if I place one it still says 64. When I place another one it goes to 62.
     
  28. Offline

    Garloth

    I'd like it when the item would fall only when it would be the same as ended one.
     
  29. Offline

    rolandostar

    Is there any way to activate invfall to all players by default?
     
  30. Offline

    SPIA1001

    I will look into those bugs, and I have been thinking about adding the configurable slots for while. Sorry I haven't responded in awhile, I was on holiday.

    This bug has been fixed in 1.2! :)

    Do you mean that you would want an item to only fall down if the same item is the type as the one in the hotbar?

    Not currently, but I plan on adding a config file in a later update and that will be an option.

    I'm looking into this bug, and it does seem as if it is being caused by InvFall.

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

Share This Page