Closed kiltedken closed 4 months ago
I've decided to use the beta version as it fits what I'm looking for more! You can just close this as far as I'm concerned. Thanks again!
I should still look into this. Not sure what the first error about Drop and Take not having a sigil is about, that seems like a major bug.
Ending support for SI2
Hi,
Thanks for all your amazing work!
I'm not new to programming, but very new to Twine, Tweego, js, etc., so sorry for the lengthy issue post, I'm not sure what I should include or not. If there's anything missing, please let me know.
I'm trying to get the Automatic updating of inventories to work and ran into an error message. I'm using the example code from: https://twinelab.net/custom-macros-for-sugarcube-2/#/simple-inventory?id=event-inventory-update
First Issue
I had to change the examples code a bit, this caused errors:
The errors were
I moved the 'Take' and 'Drop' and this stopped those errors:
Hopefully that change didn't cause the next issue.
The Issue I can't figure out
The error that comes up in a pop up is:
The way it pops up, is when you first click a Drop, or a Take, it just works fine. The item automatically updates and moves from one inventory to the other and is updated on the page. Looks great!
But, the next click of a Drop or a Take causes the error above to pop up. All subsequent Drop or a Takes also get the error.
If you click the error's OK button, I find the inventories are not updated, but the variables are (debugging shows them). If you leave the page with the GO Here, and then Go Back, the inventory is updated as it should be, and once again the first click just works, but subsequent clicks get the error message.
Thanks again!
-Ken
Code and Stuff
I'm running tweego like this:
inventory-issue.twee:
inventory-update.js
simple-inventory.min.js