Luashine / wc3-file-formats

Project to document the proprietary file formats used by Warcraft 3
3 stars 0 forks source link

Describe that .WTS does not support escapes of { } #6

Open Luashine opened 1 year ago

Luashine commented 1 year ago

WTS 1.32.10:

{ and } are not escaped Trailing text within that tag is discarded, including the first encountered }

If such map is loaded by WE again, it truncates the text the same way the game does. And saved without the trailing text (roundtrip is correct from now on).

The outside text, including } is ignored by the game until the next "STRING " specifier, that string will be read correctly again.


Display text in GUI:

{
ok
} boomer

STRING 10
{
hehe-string-10-inject
}

Resulting WTS:

STRING 7
{
{
ok
} boomer

STRING 10
{
hehe-string-10-inject
}

}

thankfully nothing breaks, just the trailing text after the first entered } is cut off. When you load the map in WE again, that's what you will see too