Parse a config class and print all sub-classes + entries in a C-Like text to the report file.
Installation / Usage:
Copy the file "ConfigParser.sqf" into your mission folder.
0: <CONFIG> config entry to parse (must be a class)
1: <BOOLEAN> (optional) if true: the output will be alphabetically sorted.
[configFile >> "CfgVehicles", true] call compile preprocessFile "ConfigParser.sqf";
[configFile >> "CfgWeapons"] execVM "ConfigParser.sqf";
Call it between startLoadingScreen and endLoadingScreen commands when using "call compile preprocessFile" for a full speed execution of the script.
I recommand notepad++ to open the arma3*.rpt file (Choose Language > C++ style).
execVM command will stop the script if the passed config class is too big (configFile e.g.)
Can you let me know your positive/negative feedbacks and encountered bugs ? Thanks
Credits & Thanks:
.kju [PvPscene] for his very usefull tips.
Denis Usenko for a nice string concatenation algorithm in the dumpConfig (re-implemented for the script)
Killzone_Kid for the Notepad++ SQF syntax highlight.
All wiki members as always, keeping it up to date.
- BI forums