Game won't save after ConditionSwitch/Color Scheme [FIXED]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
DesertFox
Regular
Posts: 196
Joined: Sun Jul 28, 2013 1:29 pm
Completed: Over The Hills And Far Away
Projects: My Little Dictator
Organization: WarGirl Games
Contact:

Game won't save after ConditionSwitch/Color Scheme [FIXED]

#1 Post by DesertFox » Sun Oct 04, 2015 9:32 pm

I've managed to code a color scheme into the game so that a player can decide at the beginning of the game what they want the color scheme to be. This affects all styles and images since the game has one hue running throughout, dependent on the player's initial choice. I used a mixture of Conditionswitches for images and registering styles. For some reason, the Reload option in the Developer Menu stopped working, and now the game refuses to save.

*FIXED*
It was a PicklingError issue based on how I defined a variable at the beginning of the game.

Code: Select all

init python:
    def orange():
        global a
        a = False
        store.a = False
Simple replaced it with:

Code: Select all

init -2 python:
    orange = False

Post Reply

Who is online

Users browsing this forum: Google [Bot]