BlzLoadTOCFile

Parameters
TOCFilestring
comment

Loads a TOC file containing paths to FDF files that define frame templates or localized strings. Returns true on success.

note

FDF errors will be logged to C:\Users\USERNAME\Documents\Warcraft III\Logs\War3Log.txt or inside Warcraft III Public Test. New log lines may not be flushed immediately, close the game process to make sure everything has been written out so far.

note

FDF load order matters. List base/included FDF files before templates that inherit from them.

bug

The TOC must end with empty lines. CRLF files need at least one empty final line; LF-only files need two. Without the required ending, the last listed FDF can be silently skipped.

bug

An FDF syntax error skips the remainder of that file. A duplicate top-level frame name can also abort processing of the remaining definitions.

patch

1.31.0.11889

Source
common.j (raise an issue to discuss on Github or submit a PR)
return type
boolean
Source code
native BlzLoadTOCFile                              takes string TOCFile returns boolean