Renpy Editor Save Patched -

init python: import renpy

# Hook into save filename generation orig_make_save_name = renpy.game.make_save_name if hasattr(renpy.game, 'make_save_name') else None renpy editor save patched

init python: SAVE_FORMAT_VERSION = 3 # bump when you change serialization format init python: import renpy # Hook into save

init python: class InventoryItem(object): def __init__(self, item_id, qty): self.item_id = item_id self.qty = qty # runtime only attribute self._cached_sprite = None renpy editor save patched

def __getstate__(self): return {'item_id': self.item_id, 'qty': self.qty}