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

    Taeir

    Works fine for me. Only multiplies if i pick up more than a stack of an item.
    Have you set it to not stack over 64?
     
  3. Offline

    ThomasJ

    This is because minecraft.net is sporadically up and down. Try launching your server in offline mode if that is an option.
     
  4. Offline

    Afforess

    Updated to v0.16. Hopefully that fixes all the issues. Please report back, MMZ_Timelord.
     
  5. Now it works fine for me, thank you Afforess.
     
  6. Offline

    DeNarr

    The fix seems to solve the duplication, but I'm still getting items that stack over 64. Also, items picked up are not moving to the extra backpacks unless I switch to the backpack first.

    Btw, I find it extremely impressive how fast the turnaround on the fixes have been. Really shows your effort.
     
  7. Offline

    mrgreaper

    first the plugin idea FANTASTIC i know me and my players will love you for it

    second xml instead of yml :) :) :) :) :) THANK YOU!!!!!
     
  8. Offline

    MMZ_TimeLord

    ThomasJ,

    Thanks for the information. As I'm just now getting the restore done. I'll simply rename the directories and try the original server that I thought was corrupted. I had never seen that particular error when minecraft.net was unavailable before.
     
  9. Offline

    Afforess

    Glad you like it. XML >>>> YML. No whitespace issues, and easy to read and understand. And built in Java parsing.
    --- merged: Feb 26, 2011 10:42 PM ---
    Glad to hear I wasn't the cause of map corruption. >.>
    --- merged: Feb 26, 2011 10:43 PM ---
    Hm. Items on the ground should still get picked up when your open inventory page is full. As for the overflow on stacks - not sure why that's happening either. More debugging..
    Thanks!
     
  10. Offline

    SAMDAN

    Cheese. Sounds good.
     
  11. Offline

    phaed

    Awesome idea but forcing people to install MinecartMania and decfonfigure it just for this is just a horrible disservice to eveyone.
     
  12. Offline

    MMZ_TimeLord

    Afforess,

    I have observed that Backpack is still wanting to stack some things in over 64. Cart Tracks are the primary culprit.

    EDIT: Easy test:

    Open your inventory and drop more than 64 of one item that normally stacks.
    Close your inventory.
    Walk forward and to pick up the drops.
    Open your inventory and observe the over 64 stack in the inventory slot.

    (end EDIT)

    phaed,

    That is very narrow minded of you to say. Afforess is simply reusing code... over 70% of which is already in Minecart Mania! Now what could possibly be a good reason to reinvent the same wheel?

    Configuring Minecart Mania! to NOT function is pretty easy. Maybe Afforess could simply put up a MinecartManiaCoreSettings.txt file that is already pre-configured only for use with Backpack.

    That IMHO would be an easier solution that trying to convince him to rewrite the core JUST for Backpack.
     
  13. Offline

    need4speed402

    a cool featur you could ad is that it is an item, you make it and you put it in the body armor thingy and you can put it over armor then this works
     
  14. Offline

    Afforess

    No offense, but I explained my reasoning in the OP. Everything in MM can be disabled. If it bothers you that much, then this plugin is not for you.
    --- merged: Feb 26, 2011 11:28 PM ---
    I did that with dirt and tracks, and it split into the correct stacks ... Is there any other conditions that must be present?

    Edit: NVM, got it to happen.
    --- merged: Feb 26, 2011 11:46 PM ---
    Version 0.17 is up, fixing item duping for real! Thanks to TimeLord to helping me reproduce and track down the bug.
     
  15. Offline

    MMZ_TimeLord

    Afforess,

    Might want to do some drop and pickup experiments... seems that items can get lost during pickup. :(

    Example... I took a stack of 64 Cart Tracks and dropped them. Then took half a stack of 64 (32) and dropped them. Closed my inventory, switched to an empty 'page' of inventory and walked forward to pick up the 96 Cart Tracks. I got only 64 into the empty 'page' and the other 32 have magically disappeared.

    EDIT: Maybe this was left over 'garbage' data in my inventory... I can't duplicate it again. Nevermind.

    I'll delete the data folder for my user and start fresh after I empty it.
     
  16. Offline

    Afforess

    Really? I just dropped 100 tracks on the ground (2 stacks, 64 and 36) and switched to an empty page and they picked up fine.

    Put all your stuff in a chest, and delete the "data" folder from Backpack. Then turn off the server, and reboot. It should clear any garbage.
     
  17. Offline

    MMZ_TimeLord

    Yeah, It would appear it was latent data from when Backpack was goofing up. I can't get it to duplicate with fresh stacks from my storage chests. No worries... :D
     
  18. Offline

    Afforess

    Sweet. Bug-free. What I like to hear.
     
  19. Offline

    LightKing

    Anyone know why I get this error that disables me and my players from using backpack?
     

    Attached Files:

    • ss.png
      ss.png
      File size:
      17 KB
      Views:
      6
  20. Offline

    Afforess

    Fixed in v0.18
     
  21. Offline

    LightKing

    I think using DeathChest and this plugin gives errors
     

    Attached Files:

  22. Offline

    Afforess

    Does that still happen when DeathChest is removed? If not, you need to talk to the DeathChest author, not me. ;)
     
  23. Offline

    MMZ_TimeLord

    Looks like we still have stacks that go above 64 during collection. Although if you move them, they properly separate.

    Players on my server have noticed and I started watching. While I was mining, I had a stack of 80, 67 and 73 cobblestone. As soon as I moved the stacks in inventory, they split properly.

    Looks like that gremlin is not completely gone... but at least he's not doing damage. :D
     
  24. Offline

    Afforess

    I'm ready to sacrifice kittens to the demon gods to fix it. Any reliable way to reproduce it? I can't reproduce it by filling my inventory with stackable (dirt) and mining more.
     
  25. Offline

    DeNarr

    So it seems that I am still duplicating after all, as well as having stacks above 64. The duplication occurs when I have a single block of something. I pick it up, and "underneath" the single block was a stack of 64. I place the single block down, and I can repeat this process.
     
  26. Offline

    Afforess

    Could you explain this in a bit more detail?
     
  27. Offline

    Soul Reaper

    So apparently my users feel like having 9 toolbars is a hassle, could you add an option to make it persistent?
     
  28. Offline

    Afforess

    I'm not sure what you mean. It is persistent, it only changes when you sneak.
     
  29. Offline

    Loose Nut

    backpack 018 CB#448
    I have tried to get more than 64 in a stack but just cant do it
    but i have been able to pick up items even though there is no room anywhere.

    inv full of dirt(all 324 spots 64 in each), drop a stack of dirt on the ground
    get a stack of iron, toss it on the ground
    grab 32 dirt from a stack in your inv and fill in the open inv places
    you can now only pick up dirt
    walk over to the dirt and iron on the ground, you will pick up both dirt and the iron
    but the iron will be gone.

    im not not using any chest mods
     
  30. Offline

    Afforess

    The iron should be in a different inventory page. One with free space available.
     
  31. Offline

    Loose Nut

    no space anywhere (on purpose) all 9 pages full of dirt, 64 in each stack.

    i will toss out all the dirt stacks, empty my inv to see if the iron pops up somewhere
    will be a minute, its alot of dirt

    edit
    nope, no iron in inventory
     

Share This Page