Escape from Duckov

Escape from Duckov

745 lượt đánh giá
ModConfig
2
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Nhãn: Mod
Kích cỡ file
Đã đăng
128.940 KB
20 Thg10 @ 12:44pm
1 ghi chú thay đổi ( xem )

Đăng ký để tải xuống
ModConfig

Mô tả
English Documentation
  • ModConfig is a framework that provides in-game configuration parameter adjustment for other mods.It allows players to directly adjust various configuration parameters of other mods through the in-game settings menu.
  • Mod Settings menu currently can only be accessed from ingame scenes, not from MainMenu
  • You may need to restart game after enabling ModConfig


Supported mods

Mod Settings File Location

Delete following file if you wanna reset ModConfig's mod settings
%USERPROFILE%\AppData\LocalLow\TeamSoda\Duckov\Saves\ModConfig.ES3

Development Guide

Steps
  1. Download ModConfigApi.cs from Github Project[github.com] and copy it to your project for calling ModConfig functions
  2. Before configuration read/write logic, be sure to call ModConfigAPI.Initialize() once to verify normal communication with ModConfig
  3. Check out my example project[github.com]

Supported Data Types
  • bool
  • int
  • float
  • string

Important Notes
  • Configuration values are read through OptionsManager_Mod.Load<T>(string key, T defaultV)
  • The implementation logic of ModConfig is relatively complex. There is a possibility that future game updates may broke ModConfig and require maintenance. Therefore, please note the following important tip
  • Do not create strong dependencies between your mod's configuration read/write logic and ModConfig. Your configuration read/write must function normally even without ModConfig

Mod Publishing

After uploading your mod, go to workshop item page and click Add/Remove Required Items , add ModConfig as its dependency

Source Code Reference

Github Source[github.com]
Github Example Project[github.com]
32 bình luận
diasiledu 1 giờ trước 
Keybind support?
FrowningO_o 8 giờ trước 
大佬可否更新一个识别当前按下按键并绑定的方法,谢谢大佬!
FrozenFish259  [tác giả] 12 giờ trước 
代码随便复制粘贴不用问我, 没有协议
michaol 21 giờ trước 
设置界面不见了
和你拼了鸭 27 Thg10 @ 10:18pm 
大佬 可以合并你的代码到整合模组里面吗,署名或者有啥开源协议都行
谨陈 27 Thg10 @ 7:29pm 
失效了咋办
玲川美纪 27 Thg10 @ 4:32pm 
我喜欢你
JMC 27 Thg10 @ 12:54pm 
会把bool值true / false的下拉菜单更新为按钮吗
鸡哥全能少年 27 Thg10 @ 12:54am 
请求更新
󰀕ClockCycas󰀕 26 Thg10 @ 4:49pm 
可以支持更多语言的本地化吗?