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.
So I place "define preferences.mouse_move = True" in my options.rpy and I keep getting this error. I've tried putting it in a init block too. Any ideas what's going on?
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/options.rpy", line 44, in script
define preferences.mouse_move = True
File "renpy/common/000namespaces.rpy", line 26, in set
raise Exception("The define statement can not be used with the preferences namespace.")
Exception: The define statement can not be used with the preferences namespace.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/options.rpy", line 44, in script
define preferences.mouse_move = True
File "G:\Creative\VN\Renpy\renpy\ast.py", line 1988, in execute
ns.set(self.varname, value)
File "renpy/common/000namespaces.rpy", line 26, in set
raise Exception("The define statement can not be used with the preferences namespace.")
Exception: The define statement can not be used with the preferences namespace.
Windows-7-6.1.7601-SP1
Ren'Py 7.1.3.1092
LearningPython 1.0
Fri Feb 15 22:43:12 2019
Ah, I didn't understand what preferences namespace was. Though I enable and disable and don't recognize any real changes. Was trying to make it so that mouse automatically went to the choice buttons. Might not even be this.