A resource, this mod tracks items in the players inventory and keeps an updated list of changes.
!Important - if upgrading please read the Upgrading section in the Readme for details!
Requires OBSE v.0012 or later
Mods that use Inventory Tracker
Keychain v3.0 (and later)
Poison Equipper (Tracker Edition)
This mod keeps updated lists of any changes to the players inventory, and provides an easy way to base scripts off of these changes. It checks for changes and updates the lists every 2 seconds, providing near real-time data, while keeping FPS hits to an absolute minimum (< 1 FPS lost). Any number of mods can use the lists without interference and at no (additional) FPS loss.
For instance, you can use this to know when a player picks up a piece of armour, and what that armour is. With this information, you can check if it would be better than what the player currently has equipped, and automatically equip the new armour. More details on how it works can be found in the "More Information for Modders" section in the Readme.
If there's any function you would like included in the Inventory Tracker, please leave a post on the thread (http://www.bethsoft.com/bgsforums/index.php?showtopic=742661) or PM me, haama, on the Bethesda Forums. I'd also be happy to answer any questions you might have about using the mod, or how it works.
Known Issues or Bugs
Old characters and lag (No longer an issue with OBSE v0013)
There are two systems in place to test for new items in the player's inventory. The primary one is very quick, but the second one can be slow and cause some lag. The secondary system will only be used if you pick up an item that you've picked up before but wasn't in your inventory when you installed the mod. For new characters, only the primary system will be used. For old characters, if you have any storage containers with your equipment, pick it all back up, suffer a few seconds of lag, and that should prevent any further lag. Otherwise, the amount of lag depends on how many other items are in your inventory, but it will be very brief and will be a split-second pause before returning to the quick primary system.
[Update] - the new OBSE v13 beta makes the function used in the backup system much (much, very much) faster, so the backup system should be very quick if you're using v13. Note that v13 is still in the Beta stages.
Fixed a bug where items' scripts would run remotely. Most notably this interfered with the new OOO Drop Lit Torches. If you already ran into the bug, exiting Oblivion and restarting will fix it, and it won't happen again.
Added version control (see "Notes for Modders" for more information)
If an unrecoverable error occurs the player can restart the Inventory Tracker via console now, instead of reinstalling
A whole lot of little tweaks to optimize the code - now 50% faster.
Allowed players to track during combat (Options menu).
Added a "CompleteScan" flag so modders can tell when the entire inventory has been scanned (that is, there weren't more than 250 changes in any of the lists).
Fixed a bug with the Options menu.
v1.0 - full release
Code optimization and various fail-safes
Fixed bug that stopped tracking when using scripted saving (i.e., StreamSave)
Added flags to note when the Inventory Tracker has just been started (or restarted) as the item references aren't changes
Turned off debug code
Can now be used with Oblivion v1.1.0511 (oops)
For comments, please go to the thread or send me a PM on the Elder Scrolls Forums. For error save files, send them to firstname.lastname@example.org.
This mod is released under the GNU General Public License.
The GPL can be found here: Gnu.org