Inactive [MECH] Backpack v2.2.0 (The Ultimate Inventory Expander!) [953]

Discussion in 'Inactive/Unsupported Plugins' started by Afforess, Feb 25, 2011.

  1. Offline

    Afforess

    Backpack
    Because One is never enough!
    Preface:
    Backpack is the ultimate salvation in inventory management. Your standard minecraft inventory has 36 slots in it, just enough to be handy, but terrible for long journeys or mining expeditions to the other side of the map. Backpack nonatuples your existing inventory space. (For those of you not familiar with latin, that's 9x the space).
    How is this massive inventory boost possible? The mouse wheel. (Thanks to Edward Hand for the idea!) Sneaking while Scrolling through each of the quickslots switches you to a new inventory page. This gives you freedom to scroll through NINE different pages. Scrolling without sneaking allows you to scroll through your inventory like normal.

    If you don't quite get it, I've made a short video demonstrating:
    FAQ:​
    Is there a way to change the number of pages? I only want certain users to have x amount of pages.
    Yes, see the next question down!
    Is there permission or group manager support!
    Nope! There is however a configuration file (aptly named "config.xml") that is created on the first run and allows you to customize the amount of extra inventory pages, and who gets to use them.
    Are your inventories saved between logins and server restarts?
    Yes. Backpack saves the inventories in the same file notch does, in the "player".dat file.
    Updating all those files must be slow/I heard that I/O operations are slow.
    They are. Backpack is multithreaded, so if you have more than 1 core, you won't notice any lag.
    This mod doesn't have anything to do with Minecarts, why the Minecart Mania dependency?
    Minecart Mania offers a useful interface for a lot of things I needed in writing Backpack, and 70% of the code is actually in MM. If you really hate Minecart Mania, you can just install core, and disable all of the features from it's configuration file.
    Dependencies:
    Commands:
    • /open <page number>
      • Opens a dialog with your current inventory, and the inventory from that page so you can easily swap items between pages. Quick slots are numbered 1-10, with 1 on the leftmost side.
    • /backpack
      • Toggles your backpack on or off.
    Permissions:
    (Permissions is optional, but will be used if installed)​
    • backpack.toggle
      • Allows the use of the /backpack command
    • backpack.open
      • Allows the use of the /open command
    • backpack.saveactionbar
      • Saves the action bar in-between pages
    • backpack.maxpages.# (where # is a number 1-9 [e.g backpack.maxpages.6])
      • The maximum pages allowed for the players
    Changelog:
    • Version 0.10
      • Initial Release!
    • Version 0.11
      • Swapped the role of sneaking around
    • Version 0.12
      • Player death is handled correctly
      • When your current inventory page is full, nearby items on the ground will be added to empty slots in other inventory pages.
    • Version 0.13
      • Added a first time login message. Only is triggered once for each player.
    • Version 0.14
      • Added customizable amount of inventory players, through XML.
    • Version 0.15-0.20
      • Bug Fixes
    • Version 0.21
      • Added /open command
    • Version 0.23
      • Reduced I/O operations from being continuous to once per minute
      • Fixed a bug which could cause player inventory pages to be lost if the server shut down in such a way that MM unloaded before the I/O operations finished.
    • Version 1.0
      • Fixed lag caused by I/O operations
      • Player Data now saves correctly, and will not become corrupt during server shutdowns
      • Improved Error Handling
      • Improved Console Log of Information for admins
    • Version 1.0a-1.0g
      • Bug fixes
    • Version 1.1
      • More robust inventory backups
      • /backpack command
    • Version 2.0
      • Supports MC 1.4
      • Action bar no longer switches with new inventory pages
      • Backpack saves with rest of inventory in player.dat file
      • Other plugins can access and correctly see a player's larger inventory w/o being Backpack Aware
    • Version 2.0.1
      • Backpack's work correctly after death
    • Version 2.0.2
      • Small Backpacks work correctly
    • Version 2.0.3
      • Players can choose to save the action bar or have separate action bars via the config
      • Bug fixes
    • Version 2.0.4
      • Improved Error Handling
    • Version 2.0.5
      • Fixed /open command crashing clients
    • Version 2.0.6
      • Fixed item duping on death
    • Version 2.0.7
      • Bug Fixes
    • Version 2.0.8
      • Permissions Support
      • Efficiency Changes
      • Bug Fixes
    • Version 2.0.9
      • Updated to MC 1.5
    • Version 2.1.0
      • Minor fixes/Cleanup
    • Version 2.2.0
      • New saving system
      • Lots of cleanup
      • Lots of bug fixes
     
  2. Offline

    Juze

    Minecart Mania Core 1.09 or Backpack 2.0.8 killed this plugin. Errors. Such as this:

    Code:
    17:41:01 [SEVERE] Could not pass event PLAYER_MOVE to Backpack
    java.lang.NoClassDefFoundError: com/afforess/backpack/BackpackInventory
            at com.afforess.backpack.BackpackManager.getBackpackPlayer(BackpackManager.java:177)
            at com.afforess.backpack.BackpackManager.getBackpackPlayer(BackpackManager.java:183)
            at com.afforess.backpack.BackpackPlayerListener.onPlayerMove(BackpackPlayerListener.java:67)
            at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:240)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:128)
            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)
    Caused by: java.lang.ClassNotFoundException: com.afforess.backpack.BackpackInventory
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            ... 14 more
    
    Could also be ChunkRestorer.
     
  3. Offline

    Afforess

    Looks like a bad install, except there's no way that is backpack 2.0.8. Backpack 2.0.8 does not use the Player_Move event. I even downloaded it and opened it up to double check.
     
  4. Offline

    sweetswear4665

    I'd love to use this, but it seems to disable multiinv (which is essential if you run a server with both creative worlds and survival worlds). Possibly add support for it at some point?
     
  5. Offline

    DerKB

    Ok,
    CB 677
    BP 2.08
    MM 1.09+

    do not know if you did read my post about multi/per world inventroies, but i would like to see it in this plugin as well.

    But to the problems i accountered with 2.08
    - if i die, double items
    - action bar items disapear from time to time (most if a client did not disconnect propper) (save action bar is set to on)

    even in some testings, a user gave me an item, then died and got back the item he gave me some secs ago, i am not sure what is causing this, could be on my end but maybe you have an idea what could be the problem.
     
  6. Offline

    Afforess

    I have no idea why Backpack would break MultiInv, it does nothing that should cause that.

    As for your problems, I've died several times with 2.0.8 and not received double items - what exactly are you doing to kill yourself?

    And the the item reappearing, I have no idea. Backpack doesn't add or subtract items, just gives you more space.
     
  7. Offline

    DerKB

    I jumped off a cliff and had a hard landing, the other time i found some lava were i did not expect it to be.

    So nothing realy special or command like killing.

    I am not sure why it happens and what causes it, i will try an other way, maybe i can figure it out on my test server, it only broke my head after trying to find the problem.

    Well, if you do not hear from me about this again, do not bother yourself with it, then i found the problem, if i can trace it more down but could not find it, i will contact you again.

    Till then, keep up the nice work you have done so far with all the fine plugins.

    Regards
    DerKB
     
  8. Offline

    Pontus Lantz

    Code:
    2011-04-17 18:36:33 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-04-17 18:36:33 [SEVERE] java.lang.NoSuchMethodError: org.bukkit.entity.Player.loadData()V
    2011-04-17 18:36:33 [SEVERE]     at com.afforess.backpack.BackpackPlayer.loadData(BackpackPlayer.java:247)
    2011-04-17 18:36:33 [SEVERE]     at com.afforess.backpack.BackpackPlayer.createBackpack(BackpackPlayer.java:262)
    2011-04-17 18:36:33 [SEVERE]     at com.afforess.backpack.BackpackUpdatePlayer.run(BackpackUpdatePlayer.java:13)
    2011-04-17 18:36:33 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    2011-04-17 18:36:33 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    2011-04-17 18:36:33 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-17 18:36:33 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-17 18:36:33 [SEVERE] Unexpected exception
    java.lang.NoSuchMethodError: org.bukkit.entity.Player.loadData()V
        at com.afforess.backpack.BackpackPlayer.loadData(BackpackPlayer.java:247)
        at com.afforess.backpack.BackpackPlayer.createBackpack(BackpackPlayer.java:262)
        at com.afforess.backpack.BackpackUpdatePlayer.run(BackpackUpdatePlayer.java:13)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Hmm this happened and kinda cleared the inventory instead. I suspect it has to do with
    Citizens: http://forums.bukkit.org/threads/me...t-traders-guards-quests-coming-soon-677.7173/
    If this could be fixed it would be awsome!

    Btw also got these plugins installed:
    Essentials
    Herochat
    LWC
    mcMMO
    MultiVerse
    Permissions
    PermissionsPlus
    PlugMan
    properTime
    SpawnX
    TelePlusPlus
    WorldEdit
    WorldGuard
     
  9. Offline

    Afforess

    @Pontus Lantz

    Backpack requires CB 670, you need to update.
     
  10. Offline

    Pontus Lantz

    Darn how could i miss that. Thanks though! Works like a charm now.
    Is there an way to make an whitelist of items being able to be contained in the specific backpack number?
    Would be an awsome way to make an quiver.
     
  11. Offline

    sintri

    Not working on 689, figured might as well be ahead of the curve this time. Course for everyone else this also means your other pages will be wipped the moment you log into 689.
     
  12. Offline

    Afforess

    The title does say "1.4 only".
     
  13. Offline

    Kaikz

    When you update for 1.5, could you make the MMCore dependency like what WorldGuard does with WorldEdit?
    Just put the MMCore JAR in the base Bukkit directory? I'd rather not have /more/ plugins loaded, regardless if features are disabled or not.
     
  14. Offline

    Celtic Minstrel

  15. Offline

    sintri

    But then the rest of us would have mmcore twice in our folders *gasps*. Either case, could really use an update, only thing stopping bringing the server back up actually.
     
  16. Offline

    Kaikz

    No like, if you don't want the MMCore itself installed, you place it's JAR in the base Bukkit folder. It isn't loaded as a plugin at all.
     
  17. Offline

    Celtic Minstrel

    No you wouldn't, Backpack would find it in either place.
     
  18. Offline

    MiracleM4n

    Is there and ETA on this plugin? Or a way to get it working with 1.5 ?(Don't flame please its a question). Or will we all have to sit patiently and wait for the great Afforess to update MM as well as this. Either way good job Afforess on all your plugins. I use them all and am very grateful for all your work :D .
     
  19. Offline

    MindDefect

    Until this updates.... is there anyway to import everyone's items into the default 1 page inventory in the meantime, as a server admin? I know you can by having everyone log in 1.4 and manually dump their items in chests but is there any other way?
     
  20. Offline

    sintri

    so....
     
  21. Offline

    Afforess

    Updated to 2.0.9, now supports MC 1.5.
     
    MindDefect likes this.
  22. Offline

    sintri

    nice, thanks
     
  23. Offline

    MiracleM4n

    YAY. Still having issues with xAuth though :/ (xAuth's fault)
     
  24. Offline

    Benz145

    Sounds like a really neat mod. Any way to make it require that the players have a certain item in their inventory? This would give it more of a real backpack feel. For instance, maybe a leather chest (or I guess you could configure it to anything) would act as a backpack item and then enable the functionality for anyone that has that item in their inventory.
     
  25. Offline

    Celtic Minstrel

    There's no such thing as a leather chest...
     
  26. Offline

    chernobyl360

    this will not work... it says unknown command please use /help

    im using bukkit 714
    minecart mania core
    backpack
     
  27. Offline

    Lead2Life

    Hi!
    I want report a bug which u said is fixed in v0.15.
    Everytime I die all my items drop to the ground and then I get teleported to my spawn point (bed's place). All the items I had in my inventory are in my inventory then. Then in 90% of all cases i get disconnected cause of "You are to fast > cheating?". After I reconnect ( It's my server btw^^) I get teleported to the point i died, have all my items which I lost in my inventory AND dropped to ground and then i take all of them again. Duplicated.
    Maybe it's because I installed any other mod which gives my items back to me after death? I don't know whether this mod does this. If this mod does it then please create a config file where you can disable it.
    Edit: Ok I fixed it. It was an incompatibility with mcMMO.
    Keep up your good work!
     
  28. Offline

    ShaBren

    Hello,

    I've just updated my server to 1.5, CB733, MMC 1.1.1, Backpack 2.0.9, and I can no longer scroll through my inventory pages. I can open pages fine with /open, but crouching+scrolling has no effect. I have the default (9) pages, "*" permissions, and I've tried disabling/enabling with /backpack. Any suggestions?
     
  29. Offline

    DerKB

    So after updating all the stuff i finaly found out what caused my item loss and duplication problem i posted about some time ago.

    As long as i do not use "Tombstone" all works fine, seems that there is a conflict with that plugin.
     
  30. Offline

    Jessicadawn

    Running 733/was happening before 733 too.

    Trying to use /invsee with essentials and we get this error starting happening when we put backpack back in.

    error:invalid inventory size; expected 279

    figure you would want to know also.
     
  31. Offline

    Yolsh

    idk if i'm just personally disabled at easy stuff or if there's some bug, cause when i try to use the /open command, it says that i don't have the proper permissions. btw, i'm an admin with - '*' permissions :/
    backpack - 2.0.9 //// minecart mania core - 1.1.3 ////bukkit - b733 //// if it matters
     

Share This Page