kyouryuukunn / renpy-ActionEditor3

125 stars 13 forks source link

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

Open CMyuane opened 11 months ago

CMyuane commented 11 months ago

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-x8664/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 commented 11 months ago

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

CMyuane commented 11 months ago

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 commented 11 months ago

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.