CfgConvert: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(examples & download (outdated))
m (Text replacement - " +\] +" to "] ")
 
(30 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Tool|=
{{Tool


|AUTHOR= [[:Category:Projects|Bohemia Interactive]]
|AUTHOR= [[:Category:Projects|Bohemia Interactive]]
Line 5: Line 5:
|VERSION=
|VERSION=


|COMPATIBILITY= [[:Category:Armed Assault|Armed Assault (ArmA)]]
|COMPATIBILITY= [[:Category:ArmA: Armed Assault|{{arma1}}]], [[:Category: Arma 2| Arma 2]], [[:Category: Arma 3|Arma 3]], [[:Category: DayZ|DayZ]]


[[:Category: Arma 3|Arma 3]]
|DOWNLOAD= Part of {{Link|link= http://store.steampowered.com/app/233800/|text= Arma 3}} and {{Link|link= https://store.steampowered.com/app/830640/DayZ_Tools/|text= DayZ}} Tools packages on Steam


|DOWNLOAD= Part of Arma 3 Tools package on Steam
|DESCRIPTION= CfgConvert is a command line tool for converting configs between text and binary representation.<br>
If you use the interface (cfgConvertGUI), based on the input file, it detects if it needs to `binarize` or `unbinarize`.


|DESCRIPTION= CfgConvert is a command line tool for converting configs between text and binary representation.
|COMMAND=
cfgConvert.exe <nowiki>[-bin | -txt | -xml | -q | -test] {[-dst <destination>] <source>}</nowiki><br>
cfgConvertGUI.exe


|COMMAND=
|OPTIONS= <nowiki/>
    cfgConvert [-bin or -txt] [-dst destination] source
* '''-bin''' - converts input to binarised config
* '''-txt''' - converts input to unbinarised config
* '''-xml''' - converts input to XML format
* '''-q''' - quiet mode, does not display errors
* '''-test''' - test mode, only loads the file and shows potential errors without writing anything
* '''-dst''' - defines the output destination
* '''-pcpp''' - outputs a preprocessed version of the input file


|EXAMPLE=
|EXAMPLE=
cfgConvert.exe -bin -dst p:\addon\config.bin p:\addon\config.cpp<br/>
<code style="display: block">{{cc|CPP to Bin}}
cfgConvert.exe {{Color|darkorange|-bin}} {{Color|green|-dst}} p:\addon\config.bin {{Color|purple|p:\addon\config.cpp}}
 
{{cc|Bin to CPP}}
cfgConvert.exe {{Color|darkorange|-txt}} {{Color|green|-dst}} p:\addon\config.cpp {{Color|purple|p:\addon\config.bin}}


cfgConvert.exe -txt -dst p:\addon\config.cpp p:\addon\config.bin<br/>
{{cc|Binarized SQM to unbinarized SQM}}
cfgConvert.exe {{Color|darkorange|-txt}} {{Color|green|-dst}} p:\Arma3\missions\myMission\mission_dest.sqm {{Color|purple|p:\Arma3\missions\myMission\mission_source.sqm}}
</code>


|NOTES=
|NOTES=
Line 25: Line 40:
|LICENSING= [[End User License Agreement for BI's Tools|Bohemia Interactive End User License Agreement]]
|LICENSING= [[End User License Agreement for BI's Tools|Bohemia Interactive End User License Agreement]]


|SEEALSO=
|SEEALSO= {{Link|https://github.com/irvnriir/ArmaEssentials|BinToCppAll.bat}} for converting all files in a folder and subfolders.


}}
}}


[[Category:Tools]]
{{GameCategory|arma1|Official Tools}}
[[Category:ArmA: Official Tools]]
{{GameCategory|arma2|Official Tools}}
[[Category:Arma 3 Official Tools]]
{{GameCategory|arma3|Official Tools}}
{{GameCategory|dayz|Official Tools}}

Latest revision as of 17:49, 8 November 2023

Basic information

Author:
Bohemia Interactive
Compatibility:
Armed Assault, Arma 2, Arma 3, DayZ
Download:
Part of Arma 3 and DayZ Tools packages on Steam

Description

Description:
CfgConvert is a command line tool for converting configs between text and binary representation.
If you use the interface (cfgConvertGUI), based on the input file, it detects if it needs to `binarize` or `unbinarize`.

Usage

Line call:
cfgConvert.exe [-bin | -txt | -xml | -q | -test] {[-dst <destination>] <source>}
cfgConvertGUI.exe
Options:
  • -bin - converts input to binarised config
  • -txt - converts input to unbinarised config
  • -xml - converts input to XML format
  • -q - quiet mode, does not display errors
  • -test - test mode, only loads the file and shows potential errors without writing anything
  • -dst - defines the output destination
  • -pcpp - outputs a preprocessed version of the input file
Examples:
// CPP to Bin cfgConvert.exe -bin -dst p:\addon\config.bin p:\addon\config.cpp // Bin to CPP cfgConvert.exe -txt -dst p:\addon\config.cpp p:\addon\config.bin // Binarized SQM to unbinarized SQM cfgConvert.exe -txt -dst p:\Arma3\missions\myMission\mission_dest.sqm p:\Arma3\missions\myMission\mission_source.sqm

Licenses

Licensing:
Bohemia Interactive End User License Agreement
See also:
BinToCppAll.bat for converting all files in a folder and subfolders.