Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'renpy.display.accelerator' has no attribute 'quaternion' #27

Open
CMyuane opened this issue Dec 1, 2023 · 3 comments

Comments

@CMyuane
Copy link

CMyuane commented Dec 1, 2023

i use Sep5 2023 commit edition and renpy8.0.3,I followed the instructions to unzip the files and copied and pasted them into the project directory, but encountered the following error:

I'm sorry, but an uncaught exception occurred.
information

While running game code:
File "game/ActionEditor.rpy", line 37, in script
init python in _viewers:
File "game/ActionEditor.rpy", line 37, in script
init python in _viewers:
File "game/ActionEditor.rpy", line 48, in
euler_slerp = renpy.display.accelerator.quaternion
AttributeError: module 'renpy.display.accelerator' has no attribute 'quaternion'

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "D:\Program\renpy-8.0.3-sdk\renpy\bootstrap.py", line 277, in bootstrap
renpy.main.main()
File "D:\Program\renpy-8.0.3-sdk\renpy\main.py", line 558, in main
renpy.game.context().run(node)
File "game/ActionEditor.rpy", line 37, in script
init python in viewers:
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/site-packages/future/utils/init.py", line 441, in raise

File "game/ActionEditor.rpy", line 37, in script
init python in _viewers:
File "D:\Program\renpy-8.0.3-sdk\renpy\ast.py", line 1131, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "D:\Program\renpy-8.0.3-sdk\renpy\python.py", line 1061, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/ActionEditor.rpy", line 48, in
euler_slerp = renpy.display.accelerator.quaternion
AttributeError: module 'renpy.display.accelerator' has no attribute 'quaternion'

Windows-10-10.0.19041 AMD64
Ren'Py 8.0.3.22090809
maplewind 1.0
Fri Dec 1 17:37:10 2023

@kyouryuukunn
Copy link
Owner

ActionEditor after beta_230819 requires v8.1.2.
Try beta_230528_2 for v8.0.3
https://github.com/kyouryuukunn/renpy-ActionEditor3/releases

@CMyuane
Copy link
Author

CMyuane commented Dec 7, 2023

ActionEditor after beta_230819 requires v8.1.2. Try beta_230528_2 for v8.0.3 https://github.com/kyouryuukunn/renpy-ActionEditor3/releases

Reported the same error when using beta_230528_2, and if using beta_230528 and defining the following in options.rpy:
define config.developer = True
define config.layers = ['master','background','middle','forward','transient','screens','overlay']
init python:
register_3d_layer('background','middle','forward')

Then another error will be reported:
While running game code:
File "game/rpy/options.rpy", line 18, in script
init python:
File "game/rpy/options.rpy", line 18, in script
init python:
File "game/rpy/options.rpy", line 19, in
register_3d_layer('background','middle','forward')
NameError: name 'register_3d_layer' is not defined

It is possible to run without the above code, but I still can't invoke the console with Shift+P.Perhaps the tutorial I referred to is outdated?

@kyouryuukunn
Copy link
Owner

That code is outdated. They were supported by legacy ActionEditor(https://github.com/kyouryuukunn/renpy-ActionEditor).
ActionEditor3 doesn't support 3d layers and use 3D stage(https://www.renpy.org/doc/html/3dstage.html) instead.

Please test this (https://github.com/kyouryuukunn/renpy-ActionEditor3/releases/tag/231223). This might not report "quaternion" error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants