- Aug 26, 2017
- 277
- 1,387
I have two classes and some functions to handle an inventory system. This system allows me to create a store to buy items anywhere easily, and add multiple items in the inventory, and if this item already exists, the quantity of the same item is displayed, without show the item twice or more.
The problem here is that Renpy doesn't save changes to objects to allow you to go back using the Rollback function. Looking for a solution, I came across that you have to add "renpy.store.object" as inherit in the classes. But that isn't working for me.
This behavior creates a hierarchy of other issues in the entire game. If you don't interact with any label after adding items to inventory, these items are not saved if you reload the game. After loading, the inventory is completely empty.
The issue also affects a daytime system in the game, where I have variables associated with week days... if I skip days and rollback the game takes me to the last label interaction, and not to the previous day.
Does anyone have a pratical fix for this?
Vren had a similar problem, but his solution, like I said, doesn't seem to work for me.
The problem here is that Renpy doesn't save changes to objects to allow you to go back using the Rollback function. Looking for a solution, I came across that you have to add "renpy.store.object" as inherit in the classes. But that isn't working for me.
This behavior creates a hierarchy of other issues in the entire game. If you don't interact with any label after adding items to inventory, these items are not saved if you reload the game. After loading, the inventory is completely empty.
The issue also affects a daytime system in the game, where I have variables associated with week days... if I skip days and rollback the game takes me to the last label interaction, and not to the previous day.
Does anyone have a pratical fix for this?
Vren had a similar problem, but his solution, like I said, doesn't seem to work for me.
You must be registered to see the links