ArkLib
A dependency that make others mod can modify gdata.json
模組介紹 作者原文
ArkLib
As a dependency that make others mod can modify gdata.json
How to use?
If you are a player, put the ArkLib.dll in plugins folder (should be Chrono Ark\x64\Master\BepInEx\plugins), other mods using this mod will contain an ArkLib folder, put it in plugins folder and replace it.
If you are a modder:
- Create a folder like this:
- YourMod.dll
- arklib_config.json
the json like this:
{
"Modname": "Yourmodname",
"UseArkLib": true
}
Put ArkLib.dll and ArklibAPI.dll in plugins folder
Then start the game once
- You can find the folder like that:
- Yourmodname-ArkLib
- YourMod.dll
- arklib_config.json
and the Yourmodname-ArkLib like that:
- Additions
- Replacements
- Statchange
- If you want to add new json to gdata.json, create a new json file in "Additions" folder, the format of the json file should be like that:
{ //start
"B_Sample": {
"_gdeType_Debuff": "Bool",
"Debuff": false,
"_gdeType_Name": "String",......
//depends on what you want to add, refer to game original gdata.json
//the path of the gdata.json is
//Chrono Ark\ChronoArk_Data\StreamingAssets\gdata.json......
},
"S_Sample2": {......
//depends on what you want to add, refer to game original gdata.json......
},......
} //end
The file name of this json file can be any, but internal json must be correct.
- If you want to replace a json which in gdata.json, put new json file in "Replacements" folder
This function is not recommended unless there are special requirements.
- If your mod have "StatChange.txt", put it in Statchange folder
About StatChange.txt, check Chrono Ark\ChronoArk_Data\StreamingAssets\Mod
- When edit is completed, open arklib_config.json, change "UseArkLib" to true to enable modify gdata function
- When the mod needs to be released, it should be that:
- Yourmodname-ArkLib
- Additions
- Replacements
- Statchange
- YourMod.dll
- arklib_config.json (correct format)
- icon.png
- manifest.json
- README.md
Make sure run the game once before upload.
- To ensure the correct dependency of mod, you can add [BepInDependency("com.DRainw.ChArkMod.ArkLib")] in your mod.dll, it is not necessary to reference ArkLib.dll in project reference.
changelog
2.2.0: Support 1.9999 version
2.1.3: bugs fixes
2.1.2: fix a bug that ArkLib could not detect changes in the mod list
2.0.0: Rewrite the folder structs
1.1.2: Bugs fixed
Manual install instructions
Manual install is the only option for 32-bit version
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: