Poll

What feature are you looking forward to the most in v5?

Ecumbrance System
4 (3.3%)
Item Stacking System
8 (6.7%)
Events (?)
11 (9.2%)
Item Durability / Degradation Over Time
3 (2.5%)
Crafting & Item Forming
25 (20.8%)
Smelting with the Furnace & Crucible
0 (0%)
Vehicle Storage
13 (10.8%)
Display Bricks
2 (1.7%)
Storage Locking & Lock-Picking
7 (5.8%)
Backpacks & Containers
16 (13.3%)
Hybrid Item / Brick Planting
0 (0%)
Shops & Integrated Loot System (?)
5 (4.2%)
Item Modding & Repair (with the Anvil)
3 (2.5%)
Hunger, Thirst & Armor Support
23 (19.2%)

Total Members Voted: 115

Author Topic: ☐⇄☐ Item Storage (Alpha Released!)  (Read 120816 times)

This mod adds great mechanics and you're doing a fantastic job of updating it.
Great work man

When the add-on is released, remember that you can update your past inventory saves from v2 or v3 to work with v4. After you have the add-on installed, just execute ISConvertSaves(); in your console before using it.



Can you add interactive chest bricks? Maybe combination safes too.
Maybe in a future update; I don't want to delay the v4 release any longer. However, there may be other add-ons that you can use along with Item Storage in the mean time, as SWAT One suggested.

This mod adds great mechanics and you're doing a fantastic job of updating it.
Great work man
Thanks :) I'm glad so many have found it useful.
« Last Edit: January 31, 2014, 05:04:38 PM by [GSF]Ghost »

i'm not exactly sure how this mod works, but is there a way to make it work with the salvage game mode so that you can have a brick inventory?

eagerly awaiting the boner material of v4

i'm not exactly sure how this mod works, but is there a way to make it work with the salvage game mode so that you can have a brick inventory?
It's been awhile since I've used the Salvage Gamemode, but I'm sure you can. All you have to do is name a brick, then setup the IS_StoreItems event and it should work.

I'm hoping to do a video tutorial series sometime in the near future, but we'll see.

eagerly awaiting the boner material of v4
I'm updating the manual now, won't be much longer!



Update: I found an issue with one of the events, so the release will be delayed until later today.
« Last Edit: February 01, 2014, 02:57:55 AM by [GSF]Ghost »

Bump: v4 has been released! (Sorry about the delay, I also kind of goofed while uploading it last night, but Ephialtes helped in resolving the situation) You can wait for the RTB staff to review it or download it now. If you want to carry over your past inventory saves to work with v4, you can convert them by executing ISConvertSaves(); (explained in detail in the help manual).





Overview:
- Item Stacking / Auto-Stacking / Support For Picking Up and Dropping Item Stacks
- Toggleable Encumbrance System
- Dedicated Server Support
- Updated / New Events and Specific Conditional Input Event Execution (similar to VCE)
- Improved GUIs and New Server Settings
- Auxiliary Backpack Usage Commands
- Included Greater Security, Countless Fixes/Improvements and Recommended Features
- Added New VCE Vars
- Updated the Manual with New Info and Reference Pics
- Added A New Brick Inventory Size
- and many other changes!


Entire Change Log:
Quote
Major Changes
  • Dedicated Server Support
       
    • -All features should now work on dedicated servers; the blacklisting features, however, has been removed.
    • -If item or server settings are present from a previous save, they are automatically reloaded the first time a player joins your dedicated server. If no past saves are found it'll use default settings instead. You can also alter the settings upon joining the server and bringing up the host GUI.
  • Item Stacking
       
    • -Like-items can now be stacked in the brick or backpack inventories.
    • -Items can also be auto-stacked into a single cell by double-clicking a certain item. This will only work if they're within the same inventory, relative to the item's stack-limit.
    • -The server takes multiple situations into account when stacking items. However, the general rule of thumb is that you left-click to transfer an entire stack of items, and right-click to choose a certain amount to send. The player inventory window can only hold one item within a cell.
  • Encumbrance System
       
    • -If enabled, a player's movement will be restricted if they carry too many items and exceed their max item-weight (they will go into orbit-cam mode until they alleviate the burden).
    • -Encumbrance is applied/removed immediatly upon updating the server settings by the host. It also takes various situations into account - such as picking up items or dropping them from your player or backpack window, teleporting, respawning, etc.
    • -Picking up or dropping a backpack will affect your max encumbrance, relative not only to the backpack item's weight, but also to the amount of items within the backpack and the amount of items stacked.
  • GUI Improvements
       
    • -Added new save managers (saves are now listed in columns, display the save-owner's ID for the host and are gradually loaded from the server to allow up to 50 saves per request), an items manager (for setting item stack and weight values; saved values are automatically reloaded for each game session, depending on which items are enabled) and settings manager (item/server settings must now be saved/applied upon activating a button, since they are now sent over the network)
    • -Added options for clearing backpack inventory on death/respawn, toggling encumbrance, toggling auto-backup saving (encase server crashes while writing a save), toggling event-restrictions for players without the add-on and for setting the max item-weight/symbol.
    • -Added funcitonality for a text-based backpack (encase players don't want to download the add-on for themselves). The text backpack inventory can be manipulated via server commands; type "/ISHlep" (without quotes) for an overview of the commands (this feature is meant to be used with disabled event-restrictions, but doesn't have to).
    • -Increased the player quota from 30 to 50 saves, and the file quota from 100 to 1000 lines (you can now store well over 854 million items on your server! I don't recommend maxing out the quotas though.)
    • -Added support for dropping and picking up item stacks (dropped stacks will be handled as a single item, with the amount of items within the stack shown above it; once a stack of items is picked up, it'll intelligently arrange itself in your backpack, depending on certain conditions).
    • -Added greater security for certain scripts. The server will now filter item stack and weight values to prevent issues, as well as checking cell names and position relative to an inventory size, weight options, etc. Improvements were also made to the player name filter.
    • -The player inventory window, if open, will now immediately update in real-time if you pickup or drop an item from your tools menu (to prevent cheating and issues).
  • Fixes
       
    • -Items without preview icons (or with errant icon names) are now supported by the inventory windows, saving/loading, events and the items manager.
    • -Support was added for removing items from your back if transferred (wasn't easy to figure out).
    • -Fixes issues with certain events when refreshing player GUIs.
    • -Fixed an issue with the Propane Tank in which it would crash servers when transferred via the inventory GUIs.
    • -Remote access now references a brick's position, instead of its datablock ID. Now only is a brick's position now stored in save files, but you also won't have to constantly update the source brick (when remote access is disabled for it) if its datablock ID changes.
  • Updated/Added New Events (with specific game types take into consideration)
       
    • -Changed event names to include an underscore, to make identifying them easier (you might need to use a conversion tool to fix your past .bls saves that use them; sorry for the inconvenience).
    • -The random item selection scripts for events are now MUCH more effecient.
    • -If event-resrictions are disabled, a player without the Item Storage Add-On can now use certain events; error messages and notifications adapt to using the default message box GUI, for various scripts.
    • -Support was added for executing specified ISConditionTrue/False events, similar to VCE.
    • -Added 4 new input and output events (now totaling 23 in total) - these include: IS_ifItemInCells, IS_VCESetBrName, onISGUISwapItems and onISGUIDropItem.
    • -The AddItem event now supports both the brick and backpack inventories and supports specified or random stack values / stack amounts to be added.
    • -Events are now more efficient in that they don't load items if they have been already loaded for GUIs.
    • -The SetInv event now includes settings specified or random stack values.
    • -ClearItem supports both the brick and backpack inventories.
    • -TransferItem has been greatly simplified and allows transfering a random, specified or entire stack of items.
    • -Renamed ifISSwapItem to IS_ifTransferred (includes better options for checking past transferred item data).
    • -Made slight changes to how onISGUIAddItem, onISGUIMoveItem, onISGUIRemoveItem and IS_UndoTransfer work.
    • -IS_UndoTransfer now works with items transferred through events, and only supports one undo-action per transfer.
    • -Added new options for IS_ifInvSameAs, to including item stacking.
  • Added More VCE Variables (refer to the manual for the entire list)
       
    • -40 new variables were included, which allow you to access the uiName, stack amount, stack limit and weight of the first and last-selected items that were previously swapped.
    • -You can also access the same info for the two swapped items, relative to which was added or removed from the brick's inventory (basically the same thing as above, but it ignores the order they were selected in and only returns item info if they involve the brick's inventory).
    • -VCE vars also include info for whether or not a player is over-encumbered, has the GUI-backpack open, has their backpack saved, has v4 of the Item Storage add-on or not/out-of-date, if encumbrance is enabled/disabled, if requiring the backpack item is enabled/disabled, the current max player weight amount, and more!
  • Added New Extra-Large (X-Large) Inventory Size (holds up to 32 items)
  • Added a Save-Conversion Script
       
    • -Saves prior to v4 are no longer compatible, since v4 references the amount of items within a stack for each cell. However, once you spawn in-game, type "ISConvertSaves();" (without quotes) in your console to auto-convert your old saves.
  • Updated .PDF Manual and Included More Visual References

Minor Changes
   
  • -Slight improvements were made to the backpack models.
  • -Added add-on detection script to backpack (forgot to add it before) and fixed out-of-date check.
  • -Deleting an item in your saves manager will now automatically adjust the save-listing and count in your GUI.
  • -The item count when listing saves now only counts items in saves that were enabled/exist.
       
  • -Removed the introduction GUI.
  • -Stack and weight values will automatically snap to the server hard-limits and max-values when loading saves or when changes are made by the host.
  • -Improved initial access of the saves manager - the relative client or host GUI files now are only executed the first time the GUI is called, instead of executing all of them when the client files are executed.
  • -Made slight adjustments/improvements to dropping items from your backpack.
  • -Events no longer required the backpack to have an existing save in order access it; brick inventories, however, still required that - as a safety option.
  • -Fixed unsaving the backpack if an error comes up while saving.
  • -Added new Paradox and Over-Encumbered message box icons and made slight improvements to the Locked icon.
  • -Made slight improvements/fixes to scripts.
  • -Added gradual save-loading for the brick inventory, to bypass the network strings limit.
  • -Made slight adjustments to error messages for the Additem and ClearItem events (to prevent breaking gameplay experience, i.e. if hosting an RPG).
  • -Adjusted spamcheck limit for swapping items between GUI windows from 1 second to 0.5 seconds.
  • -Made a slight adjustment to the custom message box GUI text to be more legible.
  • -Added support for disconnecting from servers (the add-on now adapts for joining multiple servers per session (regarding GUI access) depending if you are host or not).
  • -Made many other slight fixes and improves to scripts.

« Last Edit: February 02, 2014, 01:20:32 PM by [GSF]Ghost »

Yey, update!

Pertaining to the button on the storage GUI that allows you to choose whether the storage brick is public, private, etc. - is this button accessible to non-admins, to the effect that the admin decides the status of the brick (public, private, etc.)?  If it is accessible to anyone, would it be possible to remove the button and replace it with an output event?  It would be better for pre-setup RPGs that would prohibit people from changing the status of the storage brick.

The access button is only accessible to the server host and the owner of the inventory; everyone else would see the button faded out and disabled. Even if another player were to open the window for changing the access permissions, the server would still check if they are the host or inventory owner. So that shouldn't be a problem; if you were to setup pre-setup inventories, then only you would be able to change the access permissions.

Hope that helps!

jesus christ you put a lot of work into this, thank you so much :)

The access button is only accessible to the server host and the owner of the inventory; everyone else would see the button faded out and disabled. Even if another player were to open the window for changing the access permissions, the server would still check if they are the host or inventory owner. So that shouldn't be a problem; if you were to setup pre-setup inventories, then only you would be able to change the access permissions.

Hope that helps!

Ok cool, thanks.

you put a lot of work into this, thank you so much :)
Ok cool, thanks.
No problem. I'd love to see what can be done with the new features.

Awesome!

Also, a side note for this mod.  Can you make an event like spawnItem, except it spawns a stack of items?

Awesome!

Also, a side note for this mod.  Can you make an event like spawnItem, except it spawns a stack of items?
Sure. I was thinking of eventually releasing a separate event pack for IS (i.e., so you can use item stacking in your backpack as an ammo system); that could be included in the pack. Although, in the mean time, if you have the mission editor, you can set the amount of items within a stack by adding the method .ISstackAm = #; on the spawned item, and then add the method .setShapeName(#); to show the stack amount.


Update: I revived my Youtube account - you can check it out here: https://www.youtube.com/user/GSFghost. As mentioned earlier, I'm hoping to do a video tutorial series for Item Storage in the near future, and possibly for my other add-ons.

No problem. I'd love to see what can be done with the new features.
Oh heck yeah.

Dude, this is soooooo awesome. Well done sir, well done.