Warcraft-III-Community-Edition / W3CE

A repository to track issues and provide resources for the Warcraft III: Community Edition project.
4 stars 0 forks source link

FdfFrames & Non ascii #26

Open Tasyen opened 1 year ago

Tasyen commented 1 year ago

I defined frames in fdf and tried creating them in map script, the crux the frameNames contain non ascii which is supported by both, Warcraft 3 V1.31 & Reforged . W3CE currently only ascii.

The fdf tested

Frame "FRAME" "TestÄ" {}
Frame "FRAME" "Test/4" {}
Frame "FRAME" "Test\4" {}
Frame "FRAME" "Test&4" {}
Frame "FRAME" "Test%4" {}
Frame "FRAME" "TestŸ4" {}
Frame "FRAME" "TestΨ4" {}
Frame "FRAME" "Test.4" {}
Frame "FRAME" "Test-4" {}
Frame "FRAME" "Test_4" {}
Frame "FRAME" "Test:4" {}
Frame "FRAME" "TestФ4" {}
Frame "FRAME" "TestЩ4" {}
Frame "FRAME" "Testฏ4" {}
Frame "FRAME" "Testރ4" {}

W3CE

[08:46:44 INF Lua] Test? 0 nil
[08:46:44 INF Lua] Test/4 611488688 framehandle: 247293B0
[08:46:44 INF Lua] Test\4 611485888 framehandle: 247288C0
[08:46:44 INF Lua] Test&4 611509288 framehandle: 2472E428
[08:46:44 INF Lua] Test%4 611509672 framehandle: 2472E5A8
[08:46:44 INF Lua] Test?4 0 nil
[08:46:44 INF Lua] Test?4 0 nil
[08:46:44 INF Lua] Test.4 611510056 framehandle: 2472E728
[08:46:44 INF Lua] Test-4 611510440 framehandle: 2472E8A8
[08:46:44 INF Lua] Test_4 611510824 framehandle: 2472EA28
[08:46:44 INF Lua] Test:4 611511208 framehandle: 2472EBA8
[08:46:44 INF Lua] Test?4 0 nil
[08:46:44 INF Lua] Test?4 0 nil
[08:46:44 INF Lua] Test?4 0 nil
[08:46:44 INF Lua] Test?4 0 nil

Warcraft 1.31.1 FrameNames

FdfNonAsciiFrameName.zip

cipherxof commented 10 months ago

This is a problem with Lua. The frames work fine in JASS.

image

Tasyen commented 10 months ago

good, so it works 50% :)