Aegisub icon indicating copy to clipboard operation
Aegisub copied to clipboard

3.4.2版本出现自动化脚本错误

Open yhdxczz opened this issue 10 months ago • 7 comments

Image

yhdxczz avatar Feb 26 '25 05:02 yhdxczz

Please use English to communicate here to ensure that everyone can understand your question better, as most community members do not speak Chinese.

Regarding your issue, we won't be able to diagnose the problem until you provide the error details.


请使用英语描述你的问题以便理解,社区大部分成员并不了解中文。

关于你的问题,在没有“Details”中报错信息的情况下我们无法诊断其原因。

EL-File4138 avatar Feb 26 '25 19:02 EL-File4138

11:13:10: A script in the Automation autoload directory failed to load. Please review the errors, fix them and use the Rescan Autoload Dir button in Automation Manager to load the scripts again. 11:13:10: 一个自动化脚本载入失败,文件名: 'C:\Users\明日\AppData\Roaming\Aegisub\automation\autoload\l0.DependencyControl.Toolbox.moon',错误报告: Error initialising Lua script "l0.DependencyControl.Toolbox.moon":

File "C:\Users\鏄庢棩\AppData\Roaming\Aegisub\automation\autoload\l0.DependencyControl.Toolbox.moon", line 7
File "", line -1 ? File "C:\Users\鏄庢棩\AppData\Roaming\Aegisub\automation\include\l0\DependencyControl.moon", line 5
File "", line -1 ? File "C:\Users\鏄庢棩\AppData\Roaming\Aegisub\automation\include\l0\DependencyControl\Logger.moon", line 1
File "", line -1 ? File "C:\Users\鏄庢棩\AppData\Roaming\Aegisub\automation\include\PT\PreciseTimer.lua", line 13
File "", line -1 ? FFI could not load "PT.PreciseTimer.PreciseTimer". Search paths: - "C:\\Users\\鏄庢棩\\AppData\\Roaming\\Aegisub\\automation\\autoload/PT/PreciseTimer/PreciseTimer.dll" (cannot load module 'C:\Users\鏄庢棩\AppData\Roaming\Aegisub\automation\autoload/PT/PreciseTimer/PreciseTimer.dll': 找不到指定的模块。 ) - "C:\\Users\\鏄庢棩\\AppData\\Roaming\\Aegisub\\automation\\include\\/PT/PreciseTimer/PreciseTimer.dll" (cannot load module 'C:\Users\鏄庢棩\AppData\Roaming\Aegisub\automation\include\/PT/PreciseTimer/PreciseTimer.dll': 找不到指定的模块。 ) - "E:\\Aegisub\\automation\\include\\/PT/PreciseTimer/PreciseTimer.dll" (cannot load module 'E:\Aegisub\automation\include\/PT/PreciseTimer/PreciseTimer.dll': 找不到指定的模块。 ) - "PreciseTimer" (cannot load module 'PreciseTimer': 找不到指定的模块。 )

yhdxczz avatar Feb 27 '25 03:02 yhdxczz

Ah, you're either missing the ffi-experiments libraries or don't have the correct VC++ runtime to go with it.

CoffeeFlux avatar Feb 27 '25 03:02 CoffeeFlux

How can I fix this?

yhdxczz avatar Feb 27 '25 03:02 yhdxczz

Can you check if a file exists at C:\Users\鏄庢棩\AppData\Roaming\Aegisub\automation\include\/PT/PreciseTimer/PreciseTimer.dll? It could also be a Unicode path bug, but first I'd like to confirm the file is there. Did this issue exist before updating? Or did you first install DependencyControl with the update?

CoffeeFlux avatar Feb 27 '25 03:02 CoffeeFlux

Image This is my first time using this software, version 3.4.2 that I downloaded directly from Github

yhdxczz avatar Feb 27 '25 03:02 yhdxczz

Seems like to be the Unicode path bug. Please try to move the whole software and automation script (use portable version if needed) to a path without Unicode character, and try again.


应该是路径问题。请尝试把整个软件和自动化脚本(可以使用便携版)移动到不含中文字符的路径下再尝试。

EL-File4138 avatar Feb 27 '25 05:02 EL-File4138

"Duplicate" of #458 (this issue is older, but #458 has a more concise description so I'll keep that one open). As a workaround, you can either make sure that Aegisub's automation path does not contain special characters (by either installing the portable version in a directory whose path does not contain special characters, or by changing adding such a path to Aegisub's autoload path in the settings and installing DependencyControl there), or set your system codepage to UTF-8 (https://superuser.com/a/1435645)

arch1t3cht avatar Nov 28 '25 12:11 arch1t3cht