nathanhoad / godot_dialogue_manager

A powerful nonlinear dialogue system for Godot
MIT License
2.22k stars 170 forks source link

Unable to use Chinese methods or variables #683

Closed 122272111 closed 1 month ago

122272111 commented 1 month ago

Describe the bug I don't know if there will be this problem when using GDS. When I use C #, there will be an error when I use Chinese variable names or method names

Affected version

To Reproduce Just create a global variable with a Chinese name, or write a method with a Chinese name Then call the created variable or Chinese in this plug-in, and the editor will report an error

Using Chinese variable names will directly prompt: Invalid expression Using Chinese method names will result in the following error: res://addons/dialogue_manager/components/parser.gd:1506 - Invalid access of index '0' on a base object of type: 'Array[Dictionary]'. res://addons/dialogue_manager/components/parser.gd:1409 - Out of bounds get index '0' (on base: 'Array')

Expected behavior I hope to update to allow the use of Chinese variable and method names in plugins

finally First of all, thank you for creating the plugin, which can save independent developers a lot of time. However, due to my poor English proficiency, I use Chinese variables and method names in my code. I really hope that future updates can fix this issue

122272111 commented 1 month ago

2024-10-15_18-38-30