Skip to content
Pre-release
Pre-release

@HiEv HiEv released this Sep 9, 2019 · 2 commits to master since this release

v0.9.7.2 - September 9, 2019 - (preview release 12)

Download: Universal_Inventory_System_v0.9.7.2.zip

This is a minor update for some missing functions and documentation.

Changes:

  • 4 new functions written
  • added some missing date, map, and set support
  • added missing documentation for new utility functions to help file

If you're upgrading from v0.9.7 to v0.9.7.1+ and were using UInv tables, then you'll need to update the CSS for those tables. The Table Builder in the UInv help file has been updated to output the updated CSS.

Please keep in mind that THIS IS PRE-RELEASE CODE. This means that A) some parts have had little or no testing, B) there are some known bugs (see below), C) the documentation and sample code are severely lacking in many places, and also D) some parts are still subject to change, which means future versions may not be backwards-compatible with this version. The base code is fairly stable at this point and will likely not change much. However, compatibility with this version's display code will almost certainly be broken in future updates (though hopefully not too badly broken).

In short, all of the code is currently "use at your own risk."

Currently known display bugs:

  • Radial menu in wrong location in IE 11.
  • Table displayed slightly wrong in iPhone and iPad devices.
  • On Android/Chrome the table is displayed behind UI bar and items can't be dragged.
  • Laptops with touchscreen won't drag items in Firefox (but it works in Edge).

Also, there are some "file not found" type errors if you look in the console logs. Those errors are not actually an issue, the code just checks for the files in two locations, and when it doesn't find one it triggers an error, but it should still find the other copy of the file. (Though, you'll want to change "C:/Games/Universal Inventory System/" in the JavaScript and Stylesheet sections to your local UInv directory path if you want it to display properly inside Twine.)

That said, if you spot any other bugs, have any suggestions or requests, or just have questions, please let me know. Email at: HiEv (5*9-2) at Yahoo dot com

Assets 2
Pre-release
Pre-release

@HiEv HiEv released this Sep 7, 2019 · 11 commits to master since this release

v0.9.7.1 (bugfix) - September 7, 2019 - (preview release 11)

Download: Universal_Inventory_System_v0.9.7.1.zip

This is primarily a bugfix for some event handler problems.

Changes:

  • 7 new functions written + 5 new functions planned
  • added support for Set and Map objects; UInv now supports all of SugarCube's supported types
  • added an "Idle" event to the "cacheImages" events.
  • fixed a problem the image cache had with some browsers
  • fixed a couple of bugs in the event handler code
    • note: this required some minor changes to the CSS generated for tables
    • Table Builder updated to accomodate CSS changes
  • added another bit of sample code to the UInv_Sample_Code.html file
  • another update to the "UInv Safe Save Code" in the UInv help file
  • numerous help file updates and fixes

If you're upgrading from v0.9.7 to v0.9.7.1 then, as noted above, you may need to update the CSS for any UInv tables you may be using. The Table Builder in the UInv help file has been updated to output the updated CSS.

Please keep in mind that THIS IS PRE-RELEASE CODE. This means that A) some parts have had little or no testing, B) there are some known bugs (see below), C) the documentation and sample code are severely lacking in many places, and also D) some parts are still subject to change, which means future versions may not be backwards-compatible with this version. The base code is fairly stable at this point and will likely not change much. However, compatibility with this version's display code will almost certainly be broken in future updates (though hopefully not too badly broken).

In short, all of the code is currently "use at your own risk."

Currently known display bugs:

  • Radial menu in wrong location in IE 11.
  • Table displayed slightly wrong in iPhone and iPad devices.
  • On Android/Chrome the table is displayed behind UI bar and items can't be dragged.
  • Laptops with touchscreen won't drag items in Firefox (but it works in Edge).

Also, there are some "file not found" type errors if you look in the console logs. Those errors are not actually an issue, the code just checks for the files in two locations, and when it doesn't find one it triggers an error, but it should still find the other copy of the file. (Though, you'll want to change "C:/Games/Universal Inventory System/" in the JavaScript and Stylesheet sections to your local UInv directory path if you want it to display properly inside Twine.)

That said, if you spot any other bugs, have any suggestions or requests, or just have questions, please let me know. Email at: HiEv (5*9-2) at Yahoo dot com

Assets 2
Pre-release
Pre-release

@HiEv HiEv released this Mar 5, 2019 · 17 commits to master since this release

UInv v0.9.7 - December 29, 2018 - (preview release 10)

Download: Universal_Inventory_System_v0.9.7.zip

Changes:

  • 40 new functions written (including 2 macros) + 38 new functions planned
  • added Pocket/Container functions; items can now contain other items
  • updated existing functions to work with pockets properly
  • updated more functions to support bag name arrays
  • added a <<UInvSet>> macro to shorten calls to multiple UInv functions
  • added a <<UInvTry>> macro to simplify error handling in TwineScript
  • added more ways to add default items to default bags
  • default return value on error was standardized to "undefined"
  • enforced stricter verification of values for item names (must be lowercase, etc...)
  • removed LockUpdates function; use IncrementUpdateLock and DecrementUpdateLock instead
  • removed capitalizeFirstLetter function; use SugarCube's .toUpperFirst() instead
  • discovered a function I wrote and apparently forgot to document anywhere (LOL)
  • renamed the following functions to conform to consistent naming style (aliases added):
    • ArrayHasAllBagProperties to BagHasAllProperties
    • ArrayHasAllItemProperties to ItemHasAllProperties
    • GetBagArrayWithAllProperties to GetBagsArrayWithAllProperties (added an "s")
    • GetHighestBagPropertyValue to GetBagWithHighestPropertyValue
    • GetHighestItemPropertyValue to GetItemWithHighestPropertyValue
    • GetLowestBagPropertyValue to GetBagWithLowestPropertyValue
    • GetLowestItemPropertyValue to GetItemWithLowestPropertyValue
    • SetItemsPropertyValues to SetItemsPropertyValue (removed an "s")
    • UpdateItemProperties to SetItemPropertyValues
  • fixes/improvements to valuesAreEqual, arraysAreEqual, and objectsAreEqual
  • corrected two minor inefficiencies in memory/history usage
  • fixed a few incorrect function names in error messages
  • fixed a problem with items changed to variable type still using default properties
  • fixed a problem where variable type items might not merge when they should
  • fixed GetBagWithHighestPropertyValue and GetBagWithLowestPropertyValue functions
  • fixed a bug in BagHasAllProperties
  • preliminary work on unit/regression testing tool (37 functions fully tested)
  • property values may now be set to "undefined"
  • new/updated general help file sections:
    • Changelog
    • Function Cheat Sheet
    • Basic UInv Functions (incomplete)
    • Error Handling (incomplete)
    • Efficient UInv Coding
    • Arrays vs Generic Objects (major improvements; incomplete)
    • The UInv Data Structure
  • worked on how help file entries should look for UInv functions (see "AddBag")
  • modified UInv structure to support internal-use-only functions and variables
    • this means you'll need to insert your bag, item, and alias definitions this update
  • Over 10,000 non-blank lines of code and comments! Yay for arbitrary milestones!

If you're upgrading from v0.9.6 to v0.9.7 then, as noted above, you can't simply copy and paste the bottom chunk of code. You'll need to insert your aliases, default bags, and default items into the v0.9.7 code. Hopefully this will be the last time you'll need to do that.

Please keep in mind that THIS IS PRE-RELEASE CODE. This means that A) some parts have had little or no testing, B) there are some known bugs (see below), C) the documentation and sample code are severely lacking in many places, and also D) some parts are still subject to change, which means future versions may not be backwards-compatible with this version. The base code is fairly stable at this point and will likely not change much. However, compatibility with this version's display code will almost certainly be broken in future updates (though hopefully not too badly broken).

In short, all of the code is currently "use at your own risk."

Currently known display bugs:

  • Radial menu in wrong location in IE 11.
  • Table displayed slightly wrong in iPhone and iPad devices.
  • On Android/Chrome the table is displayed behind UI bar and items can't be dragged.
  • Laptops with touchscreen won't drag items in Firefox (but it works in Edge).

Also, there are some "file not found" type errors if you look in the console logs. Those errors are not actually an issue, the code just checks for the files in two locations, and when it doesn't find one it triggers an error, but it should still find the other copy of the file. (Though, you'll want to change "C:/Games/Universal Inventory System/" in the JavaScript and stylesheet sections to your local UInv directory path if you want it to display properly inside Twine.) I plan on looking into a way to prevent that later on.

That said, if you spot any other bugs, have any suggestions or requests, or just have questions, please let me know. Email at: HiEv (5*9-2) at Yahoo dot com

Assets 2
You can’t perform that action at this time.