Code: Select all
if persistent.test == None:
persistent.test = True
print "test"
if persistent.multiple_id == None:
print "here"
persistent.multiple_id = False
if not persistent.submitted_form:
persistent.submitted_form = False
if not persistent.set_volumes:
print "Volume"
persistent.set_volumes = True
_preferences.volumes['music'] = 0.25
if persistent.game_ids == None:
print "Game ID"
print persistent.game_ids
persistent.game_ids = ["a"]
print persistent.game_ids
EDIT: Persistent on a new game works perfectly.
EDIT #2: Found the issue. I was saving an unpickle-able class in persistent which caused the persistent to be re generated