Author: Prod6112
Author Website:

Requirements:

Version: 1.1

Short description: Parse a config class and print all sub-classes + entries in a C-Like text to the report file.

Date: 2013-05-20 21:10


Comments: (0)
Rating:



 







Config Parser Script [ALPHA]

by
Prod6112


Description:
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.

Parameters:
0: <CONFIG> config entry to parse (must be a class)
1: <BOOLEAN> (optional) if true: the output will be alphabetically sorted.

Usage examples:
[configFile >> "CfgVehicles", true] call compile preprocessFile "ConfigParser.sqf";
[configFile >> "CfgWeapons"] execVM "ConfigParser.sqf";

Recommandations:
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).


Known issues:
execVM command will stop the script if the passed config class is too big (configFile e.g.)


Notes:
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.


Changelog:
v1.1
- unknown


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: Parser