Config File Generator
- Last UpdatedSep 04, 2024
- 1 minute read
The Config File Generator updates configuration files, such as the custom.xml or the cfg_commons.xml. These files are important as they offer a way to override the value of define nodes that are embedded into packed code.
It can be difficult to keep the content of the config file aligned to the corresponding source code files. For this reason, this tool has been created.
The Config File Generator browses all XML files in the source directory, searches for define nodes declaration, and compares them with the contents of the target config file.
Command line arguments
The Config file Generator accepts two line arguments.
For example: -dest %PROJECTDIR%\custom.xml -src %PROJECTDIR%\GameData\Logic\User.
If both are not set, the program is initialized to point to C:\ as source folder and to c:\test.xml as config file.
|
Argument |
Necessity |
Description |
|---|---|---|
|
dest |
Optional |
The destination config file path. |
|
src |
Optional |
The source code path. |
|
wiki |
Optional |
If set, this option enables generation of cfg wiki export along with cfg file. |