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

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

  1. Offline


    Because One is never enough!
    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:
    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.
    • /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 is optional, but will be used if installed)​
    • backpack.toggle
      • Allows the use of the /backpack command
      • 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
    • 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


    when i stop my server via the console i´ll get this error:

    2011-05-01 13:12:09 [SEVERE] java.lang.ClassCastException: com.afforess.backpack.BackpackPlayer cannot be cast to com.afforess.minecartmaniacore.MinecartManiaPlayer
    2011-05-01 13:12:09 [SEVERE] at com.afforess.backpack.Backpack.onDisable(
    2011-05-01 13:12:09 [SEVERE] at
    2011-05-01 13:12:09 [SEVERE] at
    2011-05-01 13:12:09 [SEVERE] at org.bukkit.plugin.SimplePluginManager.disablePlugin(
    2011-05-01 13:12:09 [SEVERE] at org.bukkit.plugin.SimplePluginManager.disablePlugins(
    2011-05-01 13:12:09 [SEVERE] at org.bukkit.craftbukkit.CraftServer.disablePlugins(
    2011-05-01 13:12:09 [SEVERE] at net.minecraft.server.MinecraftServer.stop(
    2011-05-01 13:12:09 [SEVERE] at
    2011-05-01 13:12:09 [SEVERE] at

    any ideas?

    Versions: Backpack actual Version
    craftbukkit 740
    Minecart Mania Core actual version
  3. Offline


  4. Offline


    Are you sure? With the '*', saveActionBar will be enabled, and watching your quickslots will not tell you when you switch pages. You need to check each inventory when you switch pages.

    It's a bug with Essentials, not Backpack. Tell them about it.

    I'd double check, the permissions work fine with the official Permissions plugin I tested with.

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


    I have bukkit 733 / minecraft mani core 1.1 / backpack 2.0.9 / essentials

    Have added permissions for backpack to my user but while I can toggle backpack on, crouch + scroll just scrolls my through my items. /open will not do anything, simply entering "/open" echos back to me that I need to specify a number : "/open <inventory" but "/open 2" echoes the same response back and my inventory is the same.
  6. Offline


    Bug with 2.1.0: it completely ignores the SaveActionBar setting in the config. ;)
  7. Offline


    Hmm that sounds like an interesting idea. What I think Afforess could do for a long term solution is just break up MMC into Minecart mania and an Afforess plugin core. Then if you want to use one of his mods you just need to have the Afforess core .jar file in the bukkit folder. So if he gets the urge to make another plugin he can use his code library and not have to worry about people complaining about dependencies to other mods. (I could also see where some of the code for this plugin might be useful in another plugin, and people would really complain if they needed MMC and backpack to load another plugin)
  8. Offline


    Regrettably, regular members can not see the plugin developer forum. If you could, you'd see that I am working a plugin that complements Bukkit's existing API, and eventually it will have all the important API that I built into MM in it.
  9. Offline


    So I downloaded the Permissions plugin due to a different mod needing it, and now I can't access my alternate backpacks using the scroll wheel. I don't want actually use the permissions to deny/allow anything, I just needed it for another mod. I set my permissions wide open, yet it still isn't working. I do see this in the console, which is how I know Backpacks is reacting funny.

    23:13:59 [INFO] [Backpack] Permissions detected.
    23:13:59 [INFO] Backpack version 2.0.9 is enabled!
  10. Offline


    Very cool. :)
  11. Offline


    can i deactivate the scrolling inventory for EVERYONE?
  12. Offline


    The latest version changed the function of the inventory switching so that only the inventory page itself switches, not the quickslots. Is this expected? How would I get items back for people who had, say weapons on one quickslot set and tools, etc. on another?
  13. Offline


    Thanks for pointing this out. I thought it wasn't working at all because of this.
  14. Offline


    I'm not sure what you mean.

    That's an option, saveActionBar. You can turn it off.

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


    Thanks Afforess, I missed an update or two and wasn't sure what I missed. "Action Bar" eh... Okay, now i know what it's called too... :D

    I don't see any documentation about where to add the saveActionBar variable. Is this added to the config? If so, what is the code. I know I'd mess up the syntax if I guess at it.

    Thanks in advance.
  16. Offline


    Depends on whether you are using permissions. I assume you are. See the permission nodes on the OP ;)
  17. Offline


    Actually I have no permissions installed at this point. Just Essentials, WorldEdit, MM and Backpack.

    I was thinking about WorldGuard, does it contain the permissions you speak of? or do I need to use a separate Permissions plugin?
  18. Offline


    Nope. You can use the XML config the in Backpack folder if you want. Offers the same settings.
  19. Offline


    Well, this plugin is horrible. This plugin simply deletes all of my inventory every time. Removing the plugin, please fix.
  20. Offline


    There's no sign of the saveActionBar variable in the existing XML. Do I need to delete and let Backpack rebuild to see it? Or... do I manually add it like "[saveActionBar]True[/saveActionBar]"?

    More detail for Afforess on what other plugins you have, what version of MMCore you are using and CB you are running will give him a direction. Just telling him it's broke and not some other detail is like yelling at a brick wall.
  21. Offline


    Right, my appologies. I'm running a load of different plugins and if there was an easy way to copy and paste them I would. I am running CB # 766 but also tried this on my 740 server. I used the MMCore from the plugin description post. Sorry that's all the information I have
  22. Offline


    Typically if you have a LOT of other plugins, I would suggest trying just CB with MMCore and Backpack and see if you experience the same non-functional behavior.

    If not, I would then start adding in your plugins one at a time until Backpack malfunctions again. Then that would most likely be your conflict. I currently run Minecart Mania Suite (minus Autocart), Backpack, WorldEdit and Essentials on CB #766 with no issues on Backpack (other than the ActionBar functionality).

    Let us know what you find.
  23. Offline


  24. Offline


    Works fine. You must have set it up wrong. Even if it was broken, I could never fix it with such a vague report.

    It's <SaveActionBar>true</SaveActionBar>.

    Delete your config to see it get added.

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


    Well I posted more documentation if it helps. I apologize again for my attitude in my first post, it was just that I irreversibly lost my inventory for the third time in a row after installing your plugin so I was a little upset.
  26. Offline


    If you're installing the plugin then that means that you are an Op, right? You could always just give yourself any items lost, so it's not like it's irreversible. Annoying maybe, but that's the risk when playing with lots of mods.
  27. Offline


    EDIT: It started working. Weird.
  28. Offline


    Yes I am admin of the server. Yes well its hard to remember 36 items lol
  29. Offline


    Heh, wait til you have 9 backpacks full of items and you lose all of it. To be fair only 6 of mine were, but still, you get the point. You just replace what you considered important, and have fun getting the rest of the stuff again.
  30. Offline


    Yeah, Backpack is not perfect. I've got an idea on how to recode it to make it better, but haven't the free time I want yet. Perhaps this weekend. ;)
  31. Offline


    I set that to false, but Backpack v2.1.0 completely ignores that. I even tried deleting the config.xml, getting it regenerated, and changing the setting to false again, and it still completely ignores that. The rest of the plugin works well though, and just to note, I'm using the latest Minecart Mania Suite.

    This is my config.xml:
    <?xml version="1.0" encoding="UTF-8"?>
                <!--Users not explicitly added to this list use the default settings-->
                <!--Whether the action bar should save between inventory pages-->
    Edit: And Backpack v2.0.9 used the setting fine, but it started ignoring it after updating to v2.1.0. With ignoring, I mean, the action bar is saved regardless of the setting being false in the config.

    Am I doing anything wrong? :s

Share This Page