Escape From Duckov

Escape From Duckov

741 ratings
ModConfig
2
   
Award
Favorite
Favorited
Unfavorite
Tags: Mod
File Size
Posted
128.940 KB
20 Oct @ 12:44pm
1 Change Note ( view )

Subscribe to download
ModConfig

Description
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]
31 Comments
FrowningO_o 6 hours ago 
大佬可否更新一个识别当前按下按键并绑定的方法,谢谢大佬!
FrozenFish259  [author] 9 hours ago 
代码随便复制粘贴不用问我, 没有协议
michaol 19 hours ago 
设置界面不见了
和你拼了鸭 27 Oct @ 10:18pm 
大佬 可以合并你的代码到整合模组里面吗,署名或者有啥开源协议都行
谨陈 27 Oct @ 7:29pm 
失效了咋办
玲川美纪 27 Oct @ 4:32pm 
我喜欢你
JMC 27 Oct @ 12:54pm 
会把bool值true / false的下拉菜单更新为按钮吗
鸡哥全能少年 27 Oct @ 12:54am 
请求更新
󰀕ClockCycas󰀕 26 Oct @ 4:49pm 
可以支持更多语言的本地化吗?
Jedy 26 Oct @ 8:24am 
Is there any way I can "show the path" to the mod's .ini file so I can add it to the mod configuration screen? It's kind of annoying having to go to the text document every time I need to change a mod's settings. Or is this only possible if the mod author makes it compatible with this mod?