• RuntimesGodot
  • GDExtension 对汉字有些兼容性问题

① 若骨架名称包含中文,则 SpineSprite 节点的 skeleton_data_res 属性被指定该 skeleton data 时,整个 Godot IDE 都会崩溃

② SpineBoneNode 这类可选骨骼的节点,其骨骼列表会显示中文为乱码


我在使用最新的 GDExtension (spine-godot-extension-4.2-4.3-stable),并且在 Godot 4.3 和 4.4 中都测出了上述问题

Related Discussions
...

在使用 spine-godot 时,GDExtension 对于包含中文字符的骨架名称可能会导致一些兼容性问题。具体来说:

  1. 如果骨架名称包含中文字符,当在 Godot 中为 SpineSprite 节点的 skeleton_data_res 属性指定相应的骨架数据时,可能会导致整个 Godot IDE 崩溃。这可能是由于字符编码问题导致的。

  2. 对于 SpineBoneNode 这样的节点,其骨骼列表中显示的中文字符可能会出现乱码。这同样可能是由于字符编码不兼容所引起的。

为了避免这些问题,建议在命名骨架和相关资源时尽量使用英文字符,或者确保在所有相关工具和环境中使用一致的字符编码设置。

为了可读性和方便管理,我常需要使用中文来命名骨骼,所以希望这个问题能得到解决
先行感谢 Spine 团队和 spine-godot 相关参与者的付出 😃

    kBlankii Sorry for the inconvenience! We would like to be able to support Chinese in a future version, so could you please provide us with a Spine project to test this? It is sufficient if you only send us a Spine project that containing some Chinese named bones and slots without images. We will create an issue ticket as soon as we receive it.

      Misaki

      chinesecharactertest.zip
      1kB

      Sure thing! thanks for the help :p