0.1.9f and 0.1.10a patches
Added 2021-09-30 01:01:01 +0000 UTCHey!
There were a lot of fixes for 0.1.9. All the way up to 0.1.9e. And there is now 0.1.9f patch.
It's a lot of patches, but that's good. As that means more issues were fixed. The newest patch fixes infamous issue where your items were lost after death. Even when using rollback. It took me a lot of time to find the problem as I didn't have this problem myself.
Ultimately the problem was far from obvious, as renpy rollback system had a problem with reversing changes done to data type known as "ordered dictionary".
Initially game inventory was made with "dictionary" data type, but to make items appear ordered, and not in another order each time you play the game I've changed it to the ordered dictionary. I didn't have this issue as my saves still used the old "dictionary" inventory system.
To understand how it works, you can imagine yourself walking with 100 coins. Now you will want to store them, and then pick them out one by one. That's what inventory system does.
- "Dictionary" means you'll throw them all to a bag π°, and then take them out one by one. Which coin you'll get is random, you don't see what's inside the bag, you just pick the first one you touch. Like this, everytime you take the coins out they will be in another order.
- "Ordered Dictionary" changes the bag to a plate, you place coins side by side in rows. Let's say each row has 10 coins, after which you start the next row. When you take out the coins you always start from the first coin of the first row, and continue with the order in which you've placed the coins on the plate. As so, the coins are always picked up in the order in which they were placed.
I hope this explains differences of these two data types to you.
This problem is so weird because rollback works with all my custom objects & functions, but doesn't work with OrderedDict objects, which can't be considered complex.π
These patches fix more issues as well. Changelog HERE.
Patches can be downloaded from this post, and MEGA folders with releases.
Throdog bless you! π