preferences.mouse_move Error

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
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

preferences.mouse_move Error

#1 Post by wyverngem »

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?

Code: Select all

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

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: preferences.mouse_move Error

#2 Post by Remix »

The define statement can not be used with the preferences namespace.

It does kinda say exactly what is wrong:

default preferences.mouse_move = True
Frameworks & Scriptlets:

User avatar
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

Re: preferences.mouse_move Error

#3 Post by wyverngem »

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.

Post Reply

Who is online

Users browsing this forum: No registered users