nklbdev / godot-4-importality

Universal raster graphics and animations importers pack
MIT License
346 stars 7 forks source link

Error 196608 - Krita -> AnimatedSprite2D #16

Open hunterschramm opened 1 year ago

hunterschramm commented 1 year ago

./core/variant/variant_utility.cpp:905 - Export is failed. Errors chain: Export error: 21 (Query failed), description: "An error occurred while executing the Krita command. Process exited with code -196608: Command: powershell Argument: -File Argument: E:\Godot\Plugins\PowerShellScript\runs_with_saved_creds.ps1 Argument: E:\Godot\Plugins\PowerShellScript\creds.txt Argument: C:\Program Files\Krita (x64)\bin\krita.com Argument: --export-sequence Argument: --export-filename Argument: R:\TEMP/img.png Argument: R:\TEMP/img.kra" Error importing 'res://Assets/Animations/test.kra'.

image

image

nklbdev commented 1 year ago

Hmm... It looks like the script was unable to launch Krita under the specified user.

Try launching Krita manually to export a sequence of frames. To do this, enter into the command line:

C:\Program Files\Krita (x64)\bin\krita.com --export-sequence --export-filename R:\TEMP/img.png path/to/your/file.kra

If this command successfully generates a set of animation frame files, then try to run it as a new user using the script:

powershell -File E:\Godot\Plugins\PowerShellScript\runs_with_saved_creds.ps1 E:\Godot\Plugins\PowerShellScript\creds.txt C:\Program Files\Krita (x64)\bin\krita.com --export-sequence --export-filename R:\TEMP/img.png path/to/your/file.kra

Please let me know the results of your experiments.

If the script was unable to launch Krita and reported some errors to the console, please attach its output.