BrettMayson / Config2JSON

Convert Arma 3 Configs or Mission SQM Files to JSON
9 stars 1 forks source link
arma arma3 sqm

Config2JSON

CircleCI

Config2JSON is the fastest and most reliable way to convert mission sqm files, or cpp config files to JSON for use in other programs or websites.

Comparision

Raw: Straight output from either a config dump, or DePBO programs.
Cleaned: Comments and defines removed. Special characters removed from class names.

Values are averaged from 10 runs.

Tool Raw Mission SQM (55.1 kB) Cleaned Mission SQM (54.7 kB) Raw All in One Config (66.2 MB) Cleaned All in One Config (66.2 MB)
arma-class-parser Crash 0.07 Seconds Crash 16.52 Seconds
sqm2json Crash Crash Crash Crash
armaclass NA NA NA Crash
Config2JSON < 0.01 Seconds < 0.01 Seconds 1.89 Seconds 1.91 Seconds

Usage

Config2JSON uses only standard C++ and has been tested with the 2014 C++ Standard (201402L) using G++ 7.2.0.

Config2JSON can be built on Linux using

g++ parse2json.cpp -o config2json
g++ parse2hpp.cpp -o json2config

and ran using

./config2json input.sqm output.json
./json2config input.json output.hpp