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

    Afforess

    Storage is indeed binary. Yes. It will reset your health and location as well. It's where notch saves all the player stuff.


    Possibly - but no promises.

    Says the quintuplet poster.
     
  3. Offline

    Badzilla

    LOL, the gnomes that write you plugins did it.
    I only replied once and it shows 3.
     
  4. Offline

    Afforess

    @Badzilla
    -eek!

    Backpack updated to v 2.0.2
    -Correctly handles players using smaller backpacks when saving
     
  5. Offline

    sintri

    Well guess the items didn't disappear, they simply migrated over a couple spaces.
     
  6. Offline

    Tahnka

    Thanks very much for this plugin. I'm running this on a headless linux server with no GUI, so I have to download files using wget. The bit.ly link is convenient in many situations, but in mine it is a link that I cannot download easily from the server (because wget grabs the html file instead of looking through it to the actual download). I wonder if you could maintain a link directly to the .jar file somewhere? (dropbox? github?)
     
  7. Offline

    Afforess

    The download is hosted at dropbox, with a static URL, not sure what you want @Tahnka
     
  8. Offline

    BerretHunter

    Is there a way to let page 1 drop the stuff on death and not page 2 + ?
     
  9. Offline

    sintri

    Code:
    2011-04-02 01:26:58 [SEVERE] Could not pass event PLAYER_ITEM_HELD to Backpack
    java.lang.ArrayIndexOutOfBoundsException: 4
        at net.minecraft.server.InventoryPlayer.a(InventoryPlayer.java:178)
        at org.bukkit.craftbukkit.inventory.CraftInventory.setItem(CraftInventory.java:62)
        at com.afforess.minecartmaniacore.MinecartManiaSingleContainer.setItem(MinecartManiaSingleContainer.java:202)
        at com.afforess.backpack.BackpackPlayer.previousPage(BackpackPlayer.java:58)
        at com.afforess.backpack.BackpackPlayerListener.onItemHeldChange(BackpackPlayerListener.java:28)
        at org.bukkit.plugin.java.JavaPluginLoader$14.execute(JavaPluginLoader.java:247)
        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:529)
        at net.minecraft.server.Packet16BlockItemSwitch.a(SourceFile:24)
        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)
    Upon death. Relog fixed it.
     
  10. Offline

    Afforess

    @sintri

    Thanks - strange things happen when players die. Hopefully additional safety checks will fix it.

    Yes - but what would be the rational for such a change?

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

    sintri

    Upon death did a tp /back and items were also collected into the armour slots if that helps.
     
  12. Offline

    mrgreaper

    were on build 617
    backpack version 2.0.2

    when i scroll my inventory pages only the first one has items but all contain the same quick slot bar, all items on prevous pages and quick slots before update are gone!

    any idea how to fix? i have back ups of the backpack folder ofcourse
     
  13. Offline

    Afforess

    http://forums.bukkit.org/threads/me...nder-603-617-1-4-only.6029/page-7#post-170076

    Additionally, the quick slot bar no longer changes when you shift pages.
     
  14. Offline

    mrgreaper

    oops, i spent 3 hours updating the server to 1.4 and all plugins today, i read the last post of each to look for problems missed the 1.1 to 2.0 changes lol
    the changes sound good, does this mean if your present inventory page is full then droped items will automaticly go into the next page?
     
  15. Offline

    Afforess

  16. Offline

    mrgreaper

    very cool!
    cant count the number of times i have been mining filled my inventory page, thrown out my pickaxe swapped pages picked it up again and resumed mining lol
     
  17. Offline

    Badzilla

  18. Offline

    Afforess

    Honestly, I'm not sure. I can try.
     
  19. Offline

    Jessicadawn

    We have a person on my server when they do /backpack it still collects items and they are lost.
     
  20. Offline

    Afforess

    /backpack doesn't "disable" your backpack, it prevents you from scrolling to the other pages. The items aren't lost, they are in the other pages. If you want to totally disable a backpack for a player, change the number of backpack pages for that player to 1.
     
  21. Offline

    Jessicadawn

    Is there a way to turn the backpack off totally? Some players who are premium dont want it some do.
     
  22. Offline

    Afforess

    Yes. In the configuration, set the player's backpack inventory pages to "1". Players will have a normal inventory.

    So the configuration would look like this:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <Configuration>
        <Players>
            <Player>
                <!--Users not explicitly added to this list use the default settings-->
                <Name>default</Name>
                <InventoryPages>1</InventoryPages>
            </Player>
    		 <Player>
                <Name>JessicaDawn</Name>
                <InventoryPages>9</InventoryPages>
            </Player>
            <Player>
                <Name>Afforess</Name>
                <InventoryPages>1</InventoryPages>
            </Player>
        </Players>
    </Configuration>
    
    That way, by default, Backpack is off, and only defined users have special amounts of pages.
     
  23. Offline

    Flipp

    I also searched and installed and every deinstalled every plugin, because "I couldn´t change the Sites, but my Items were all away!" Now I understood why!
    The 9 Sites with 3 quick slots would be good, and maybe a option to scroll the sites at a chest!
    But thank´s anyway for that, it is really a good thing already as it is! I would be pleased, if i could have the nine slots back, too.
    Ah and if I use the open Command, I see two sites at one time, that would also be great as Standard.....
    Greets
     
  24. Offline

    Madmonkey

    does backpack 2.0.2 still uses the mouse wheel?
     
  25. Offline

    Afforess

    Yes.
     
  26. Offline

    EvilSeph

  27. Offline

    BerretHunter

    Well i want page 2 only to be a secure page for construction stuff like fence wool slab etc
     
  28. Offline

    Badzilla

    I think I can understand why some users would like to have the bottom action bar be the same on all pages. I also see why it would be nice to have each page be seperate. For one thing, I tend to use seperate pages for building tracks, another for building buildings and others for things like mining.

    I like to set them up with the action bar with the things I use the most and the inventory with extra stuff I need.

    I would like this option be a configuration option.

    Either way, I like this plugin as I do with all of Afforess's plugins.
     
  29. Offline

    Madmonkey

    now for some reason after i switch back to the first page all my stuff disappears sometimes
     
  30. Offline

    killerbeez

    I open up my second backpack space and my minecraft client crashes and closes itself. 1.4, newest bukkit and backpack.
     
  31. Offline

    Tobei

    Worked fine until I died. Now I don't have a second page.
    2011-04-03 14:03:01 [SEVERE] Could not pass event PLAYER_ITEM_HELD to Backpack
    java.lang.ArrayIndexOutOfBoundsException: 62
    at com.afforess.backpack.BackpackPlayer.nextPage(BackpackPlayer.java:39)
    at com.afforess.backpack.BackpackPlayerListener.onItemHeldChange(BackpackPlayerListener.java:24)
    at org.bukkit.plugin.java.JavaPluginLoader$14.execute(JavaPluginLoader.java:247)
    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:529)
    at net.minecraft.server.Packet16BlockItemSwitch.a(SourceFile:24)
    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)

    its the same error over and over.
    Backpack 2.0.2, Minecart Mania Core 1.07b, CB 617, MC 1.4
     

Share This Page