Create Patch

Outputs the differences between two game datas as a file that can be used later to DATA APPLYPATCH to another game data.

Command

# local game data (windows)
Charon.exe DATA CREATEPATCH --dataBase "c:\my app\gamedata.json" --input "c:\my app\gamedata_patch.json" --inputFormat json

# remote game data
Charon.exe DATA CREATEPATCH --dataBase "https://charon.live/view/data/My_Game/develop/" --input "./gamedata_patch.json" --inputFormat json --credentials "<API-Key>"

Parameters

--dataBase1

Absolute or relative oath to a first game data. Use quotation marks if your path contains spaces.

# local file
--dataBase1 "c:\my app\gamedata.json"

# remote server
--dataBase1 "https://charon.live/view/data/My_Game/develop/"
--dataBase2

Absolute or relative oath to a second game data. Use quotation marks if your path contains spaces.

# local file
--dataBase2 "c:\my app\gamedata.json"

# remote server
--dataBase2 "https://charon.live/view/data/My_Game/develop/"
--output

Path to a patch file. If the file exists, it will be overwritten. The directory must already exist. Alternatively, you can output to Standard Error, Standard Output, /dev/null, or a URL.

# standart output (default)
--output out
--output con

# standart error
--output err

# null device
--output null

# absolute path (windows)
--output "c:\my app\gamedata_patch.json"

# absolute path (unix)
--output /user/data/gamedata_patch.json

# relative path (universal)
--output "./gamedata_patch.json"

# remote location (HTTP)
--output "http://example.com/gamedata_patch.json"

# remote location with authentication (FTP)
--output "ftp://user:password@example.com/gamedata_patch.json"
--outputFormat

Format of exported data.

# JSON (default)
--outputFormat json

# BSON
--outputFormat bson

# Message Pack
--outputFormat msgpack

# XML
--outputFormat xml
--outputFormattingOptions

Additional options for specified format.

--credentials

This parameter sets the API key used to access BOTH remote servers. If this is not suitable, consider downloading the data locally and running this command on local files instead.

This command supports universal parameters.