GAME INFORMATION
- BUILD #: 43210
- PLATFORM: Steam
- OS: Windows 10
ISSUE EXPERIENCED
I want to send a chat to display a value. But if I use non-ASCII chars in a string(such as “×”, “√”, full-width chars, Chinese chars…), the Editor would return a msgbox with text:
Error 0047 "could not parse the code for '<function name>' function".
or
Error 0049 "could not emit quads for '<function name>' function".
Excamples that will cause error:
void chatValue_1()
{
xsChatData("value = %d", 0);
}
or
void chatValue_2()
{
xsChatData("值 = %d", 0);
}
FREQUENCY OF ISSUE
- 100% of the time / matches I play (ALWAYS)
REPRODUCTION STEPS
- Create a MyCodeForTest.xs file in C:\Program Files\Steam\steamapps\common\AoE2DE\resources_common\xs
- Write these in .xs file:
void chatValue_1()
{
xsChatData("value = %d", 0);
}
- Save as UTF-8.
- Create a new scenario in Editor. In “Map” tab, write “MyCodeForTest” in the “Script Filenam” input box.
- Switch to “Trigger” tab, create and select a trigger. Then a msgbox (Error 0047) displays.
- Clear all text in .xs file, write these and save again:
void chatValue_1()
{
xsChatData("value = %d", 0);
}
void chatValue_2()
{
xsChatData("值 = %d", 0);
}
- Select a trigger. Then a msgbox (Error 0049) displays.