Publishing Game Data
The publication process is a crucial step in preparing game data for usage inside the game. This process involves removing unused data, unused localization, and exporting data in a supported format - JSON
or MessagePack
. This documentation will provide an overview of how to perform the publication process from both the project’s dashboard user interface and the command-line interface (CLI).
Using Project’s Dashboard UI
To perform the publication process from the project’s dashboard UI, please follow the steps below:
Navigate to the project’s dashboard page.
Click on the Publish link.
Choose the format you want to export your data in - JSON or Message Pack.
Select the language(s) you want to publish.
Click on the Finish button to initiate the publication process.
Download the file.
Using Command-Line Interface (CLI)
To perform the publication process from the CLI, please follow the steps below:
Open the command-line interface.
Navigate to the game data’s directory.
Use the
DATA EXPORT
command to publish the game data.
Example
Charon.exe DATA EXPORT --dataBase ".\gamedata.json" --mode publication --languages {en-US} --output ".\StreamingAssets\gamedata_pub.json" --outputFormat json
Use the
--languages
parameter to specify the language(s) you want to publish. Or omit parameter to publish all languages.Use the
--outputFormat
parameter to specify the export format -json
ormsgpack
.