This repository is designed to be an alternative method to compile the same JSON files offered in Enka-API-docs repo, utilizing ExcelConfigData from Dimbreath’s repos.
Notices
This app cannot be compiled as an effective copy on Windows virtural macine due to how Swift Foundation URL APIs behave buggy on virtualized Windows platforms. Right now, the only approach to use this tool on Windows VM is to use it through WSL (Windows Sub-System for Linux). You enter into the WSL shell and install a Linux version of Swift, then you follow the following instructions to use this tool.
This repo has been torn down into individual sub-packages for other purposes serving apps developed by Pizza-Studio. For example: The EnkaDBFiles sub-package provides direct API for accessing its bundled specimen files, and the user can use EnkaDBModels to decode them. Still, this SPM is designed to focus on its main job, hence limited extra features.
Star Rail (pretty-printed): ./EnkaDBGenerator -HSR ./OUTPUT-FOLDER
Star Rail (minified): ./EnkaDBGenerator -HSR -tiny ./OUTPUT-FOLDER
Supported Games
Genshin Impact.
Star Rail.
Support for ZZZ (Zenless Zone Zero) is currently not planned due to multiple reasons.
License
All Swift program files (but not the data structures used for decoding & encoding data) are licensed under:
// (c) 2024 and onwards Pizza Studio (AGPL v3.0 License or later).
// ====================
// This code is released under the SPDX-License-Identifier: `AGPL-3.0-or-later`.
$ EOF.
关于
This repository is designed to be an alternative method to compile the same JSON files offered in Enka-API-docs repo, utilizing ExcelConfigData from Dimbreath's repos.
EnkaDBGenerator
This repository is designed to be an alternative method to compile the same JSON files offered in Enka-API-docs repo, utilizing ExcelConfigData from Dimbreath’s repos.
Notices
Usage
swift build -c release
swift build -c debug
also works but the localization data are only compiled for[ja-JP]
,[zh-Hans]
, and[en-US]
..build/release/EnkaDBGenerator
.-tiny
, this is to minify the generated JSON files../EnkaDBGenerator -GI ./OUTPUT-FOLDER
../EnkaDBGenerator -GI -tiny ./OUTPUT-FOLDER
../EnkaDBGenerator -HSR ./OUTPUT-FOLDER
./EnkaDBGenerator -HSR -tiny ./OUTPUT-FOLDER
Supported Games
License
All Swift program files (but not the data structures used for decoding & encoding data) are licensed under:
$ EOF.