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

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

     
  1. Offline

    Afforess

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.  
  3. Offline

    MMZ_TimeLord

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yep, it is incorrectly stacking multiple items. I broke two dirt blocks with one button on each. I now have FIVE buttons. The dirt was stacked OVER 64 to 76 and only when I rearranged the stacks in the inventory did it correctly break it down to 64 count and leftovers.

    Hope that helps.

    Oops... didn't see that release... I'll give it a try. Thanks for the quick response!
  4. Offline

    Afforess

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Do I get an award for a < 60 second turnaround on a fix? ;)
  5. Offline

    MMZ_TimeLord

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Only if you can tell me why I can't log into my server now... even when I remove Backpack... :(

    I can only see part of the message in the client and the server log only shows "lost connection"

    "nse code: 503 for URL: http://www.minecraft.net/game/joinserver.jsp?user=MMZ_Time" (My user name to be sure)

    Edit: I also tried to launch MC without Craftbukkit... same error.
  6. Offline

    NoFear13

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi Afforess, first good work, but the fix didn't work for me. I'm try do mining, and if i get a item my stacks go over 64 and I get more than the items I mine.
  7. Offline

    MMZ_TimeLord

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    At this point, it looks like I somehow corrupted my world data. I did close the java window without typing 'stop' in the console. I'll restore a previous backup and keep a copy of the broken world. (Sigh)
  8. Offline

    Afforess

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Okay, I see the issue too. I thought I had fixed it, but I guess not. Digging deeper.
  9. Offline

    Taeir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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?
  10. Offline

    ThomasJ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This is because minecraft.net is sporadically up and down. Try launching your server in offline mode if that is an option.
  11. Offline

    Afforess

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Updated to v0.16. Hopefully that fixes all the issues. Please report back, MMZ_Timelord.
  12. Offline

    NoFear13

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Now it works fine for me, thank you Afforess.
  13. Offline

    DeNarr

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  14. Offline

    mrgreaper

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    first the plugin idea FANTASTIC i know me and my players will love you for it

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

    MMZ_TimeLord

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  16. Offline

    Afforess

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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!
  17. Offline

    SAMDAN

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Cheese. Sounds good.
  18. Offline

    phaed

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Awesome idea but forcing people to install MinecartMania and decfonfigure it just for this is just a horrible disservice to eveyone.
  19. Offline

    MMZ_TimeLord

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  20. Offline

    need4speed402

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  21. Offline

    Afforess

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  22. Offline

    MMZ_TimeLord

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  23. Offline

    Afforess

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  24. Offline

    MMZ_TimeLord

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  25. Offline

    Afforess

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sweet. Bug-free. What I like to hear.
  26. Offline

    LightKing

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Anyone know why I get this error that disables me and my players from using backpack?
  27. Offline

    Afforess

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Fixed in v0.18
  28. Offline

    LightKing

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I think using DeathChest and this plugin gives errors
  29. Offline

    Afforess

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Does that still happen when DeathChest is removed? If not, you need to talk to the DeathChest author, not me. ;)
  30. Offline

    MMZ_TimeLord

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  31. Offline

    Afforess

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  32. Offline

    DeNarr

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.

Share This Page