win10系统下,在godot4.2.1-stable版本中导入从spine中导来的资源时,会提示错误。如下:
No loader found for resource: res://tep_cha/temp char.png (expected type: )
D:\a\spine-runtimes\spine-runtimes\spine-godot\spine_godot\SpineAtlasResource.cpp:74 - Can't load texture: "res://tep_cha/temp char.png"
No loader found for resource: res://tep_cha/temp char_2.png (expected type: )
D:\a\spine-runtimes\spine-runtimes\spine-godot\spine_godot\SpineAtlasResource.cpp:74 - Can't load texture: "res://tep_cha/temp char_2.png"
实际上,我的电脑根本就没有D盘,这应该是编译人员的电脑中的目录。
我又自己用spine运行时编译了godot4.2.1,还是出现相同的问题,只是错误提示目录是我的运行时目录了。
再用godot编译运行时中的文件,提示各种打不开,编译不了spine_godot部分。
Godot中的问题。
很抱歉,我无法提供关于Godot 4.2.1版本的直接帮助,因为我提供的信息是基于文档中提及的版本,主要是Godot 4.1.x及之前的版本。错误信息表明Godot无法找到或加载指定的资源文件。这可能是由于路径问题、文件命名(空格和特殊字符可能会导致问题)、或者是Godot版本与spine-godot运行时的兼容性问题。
建议检查资源文件的路径和命名,确保它们符合Godot的要求,并且没有使用空格和特殊字符。此外,确认你的项目是否正确设置了对spine-godot运行时的引用,以及是否按照文档中的指示正确导入了Spine资源。
如果问题仍然存在,可能需要等待spine-godot运行时对Godot 4.2.1的官方支持更新,或者在社区中寻找是否有其他开发者遇到并解决了类似的问题。
cs_c I have done a little testing and I think Spinebot's answer is correct. I think the problem is that the filename contains spaces. This would cause the path to be interpreted in an unintended way and the file would be taken as being on an external disk. Try removing spaces from the file name or replacing them with underscores, etc.