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

    @Afforess
    Some people are experiencing duping on v0.19, I couldn't produce the problem, but what I was told is that "if you place stuff in that second space, it may duplicate" or something. Very confusing indeed.
    --- merged: Feb 28, 2011 10:42 AM ---
    To clarify, inventory #2 inventory slot 2 in hotbar. Pick up 2 feathers for example, get 16 feathers. I don't know what's up with that, I cannot reproduce the problem but one guy at my server can do it to dupe items.
    --- merged: Feb 28, 2011 10:47 AM ---
    I got it! I was able to reproduce it! It's difficult, but now I know how!

    1. Get your first inventory full of items. Say, inventory full of cobble. Make sure the item you want to dupe is not in this inventory.
    2. Go to second inventory. Fill the first hotbar slot with cobble again.
    3. I'll use feathers for example. Kill a chicken to get feathers. Don't pick it/them up.
    4. Switch to your first inventory.
    5. Pickup the feather. If there's one feather on the ground, when you switch to your second inventory, there should be two. This is totally random though, you may not succeed every time.

    Wow, this is so far the most complicated bug!
    --- merged: Feb 28, 2011 10:48 AM ---
    So, the second inventory's second hotbar slot can be used for duping at least, I haven't tested other slots or inventories though.
    --- merged: Feb 28, 2011 10:51 AM ---
    And even more clarification.

    It's a bug in item picking up to other inventory code.
     
  3. Offline

    Afforess

    Which commands currently allow you to modify user inventories? Which plugins? I'd be happy to talk to the authors.
    --- merged: Feb 28, 2011 1:09 PM ---
    Yeah - it's because the plugin will be picking up the item and removing it, but it might not remove it fast enough, and it tries to pick it up again. I noticed this myself yesterday, mining. Watching, I'd mine 8 stone, and get 9 cobblestone on rare occasions. I doubled the delay between picking up items for other inventories, and it went away. So it's already fixed as well, just need to release it.
     
  4. Offline

    Juze

    @Afforess
    Sweet. :)

    For the plugins, he probably means Cleaner. And @Nijikokun is always away and won't develope his plugins.
     
  5. Offline

    Kostronor

    The normal Inventory can be modyfied by editing the player.dat, but your player.dat has 9 inventories and invedit fails to load it.
    some plugins like AlphaChest give you the option to view other players chests, so you could make an option to switch to someone others 9 inventories.
    But well... Forget it, i thought it would be easy to change the file you are loading the data from with a command ;)
    (You have one inventory for every player plus 8 new ones per player.
    Instead of giving P1 the inventory of P!, when he says /inv p2 he gets the 8 ones of p2)
     
  6. Offline

    Afforess

    It's not even in Notch's .dat format - that's a waste of time. It's just a list of the slots, in numerical order, with the item id, amount, and durability saved. It's also saved more often, and will remain intact even if your computer spontaneously combusts. (assuming the HDD survives)
     
  7. Offline

    Kostronor

    Ok thanks a lot, that explains everything.
    So i just have to edit this .data file to change it, perfect :)
     
  8. Offline

    Afforess

    Backpack v0.20 is up!

    I should have totally stamped out the item duping issue.
    Also fixed an exception that occurs when players teleport, in rare cases.
     
  9. Offline

    morikubo

    Yep. Now you need to make a permissions for this =)
    'backpack.*'

    Or make a -1 Default page that is empty, and you can't use any others until you get the permission.
     
  10. Offline

    Afforess

    There is a built in permission system for Backpack. Look in the config.xml!
     
  11. Offline

    ThomasJ

    Tried installing this again and it actually duplicated everything in my original toolbar. (I had wiped the data dir prior to reinstalling)

    This could be a conflict with another plugin though since I notice no one else has mentioned it. CB 478
     
  12. Offline

    morikubo

    Will you make GM support?
     
  13. Offline

    Afforess

    What for?
     
  14. Offline

    morikubo

    GM makes notregistered group for AnjoSecurity, so it adds autorisation for offline mode players,
    but inventory is still available before login. The can use and throw away stuff without loggin in,
    in native inventory is blocked, and its vital to block your version too, until player is logged in.
     
  15. Offline

    Stephen92

    will there be groupmanger/permissions support?
     
  16. Offline

    Afforess

    I hate all the permissions plugins, but regardless, Backpack comes with it's own configuration that let's you alter the amount of space users have access to, individually, so what would you even need third party permissions for?
     
  17. Offline

    morikubo

    sorry for that but -

    GM makes notregistered, and NotLoggedIn group for AnjoSecurity, so it adds autorisation for offline mode players,
    but inventory is still available before login. The can use and throw away stuff without loggin in,
    in native inventory is blocked, and its vital to block your version too, until player is logged in.
     
  18. Offline

    Afforess

    Oh, i see. But I'm not supporting any permission plugins, and will be waiting for official bukkit permissions.
     
  19. Offline

    morikubo

    =(
     
  20. Offline

    Taeir

    If my current inventory page is full, it adds it to another inventory page. But if the item is unstackable, it stacks it on the other page.
    Using craftbukkit build 440, backpack 0.2 and minecartmania core 1.0a
     
  21. Offline

    Afforess

    This is normal, and a feature, not a bug. ;)
    --- merged: Mar 1, 2011 9:09 PM ---
    Sorry I couldn't help. Now that I understand the problem (thanks for being patient, btw), I see the need, but I really don't want to have to write permission support for THREE different permission plugins that may end up being rendered obsolete any day now.

    (Bukkit Permissions is done, not sure what they are waiting on to release).
     
  22. Offline

    morikubo

    Believe me, GM will win this race for LOOONG time.
    100% info.
     
  23. Offline

    Manbeast77

    I like this plugin, but I would prefer a different method of switching inventories. I would prefer shift+page keys, or the numpad. The reason I say this is because I tend to do a lot of building in high areas, and I use several materials also. This means I'm always crouching and scrolling which will cause issues while using your plugin. Like I said, I really like it, but it's a bit too......conflicting with how I and many of the people I play with build in minecraft.
     
  24. Offline

    morikubo

    Yea, the solution will be ABILITY to bind switch to shift, while you can bind crouch to ctrl . or any other key.
    Just the abylity
     
  25. Offline

    pctechjon

    Will you be incorporating Permissions into this mod? I'd love to be able to customize who gets a backpack.
     
  26. Offline

    MMZ_TimeLord

    This should answer your question...

     
  27. Offline

    Afforess

    Version 2.1 is up. The biggest change is the addition of a new, easy to use command, "/open", which given a page number, opens a dialog with your inventory the given inventory page.

    Here's a screenshot:

    [​IMG]



    Should solve the problem with users not being able to swap items between pages quickly. Props to @WMisiedjan for the idea!
     
  28. Offline

    pctechjon

    Oh I see.

    It's just nice to be able to set a user's group once for all plugins instead of for each plugin individually.
     
  29. Offline

    KingPin

    setting each players inventory after the fact of then being added with 9 to start with is counter intuitive. why not add a simple config to allow admins to start everyone with X and then change for individuals to whatever number. i.e. everyone starts with 3 pages and can be increased to 9 or whatever number for each player.
     
  30. Offline

    Afforess

    Uh, there is a "default" setting in the config. Change it to 1. Viola, all players only have the normal inventory space unless you specify otherwise. ;)
    --- merged: Mar 2, 2011 4:05 AM ---
    It'd be nice to have Bukkit release the official permissions API, but they haven't.
     
  31. Offline

    pctechjon

    Very true. I hate having to worry if upgrading a certain plugin will break its permissions because the permissions plugin got another overhaul.

    You've done a great job on your plugins, Afforess, I'm really not trying to whine. I'm just lazy. :p
     

Share This Page