Escape From Duckov

Escape From Duckov

3,301 ratings
ModConfig
7
3
2
19
   
Award
Favorite
Favorited
Unfavorite
Tags: Mod
File Size
Posted
Updated
128.940 KB
Oct 20, 2025 @ 12:44pm
Nov 11, 2025 @ 10:52pm
2 Change Notes ( 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


Disclaimer
This mod was initially created only for one of my own mods

Due to the different approaches mod authors take to implement their mods' configs' persistent storage, it's impossible for Mod Config to automatically detect and show Mod Settings of those mods. Only when other mod authors implement the Mod Config interface can their mods' corresponding settings appear in the Mod Settings menu

This is why you only see KillFeed's settings here, sorry if that led to the misunderstanding that this mod's Mod Settings menu works for all other mods

However, due to my spaghetti code, the designed function interface might be cumbersome to use and only supports a few simple data types. It's unlikely that other mod authors would adopt it

If you have implemented the Mod Config interface for your mods, feel free to send a PM to have it added to the description


Source Code Reference

Github Source[github.com]
Github Example Project[github.com]
68 Comments
Oct 24 @ 6:05am 
不知道为什么之前加他没事,最近几天就卡在摄像头哪里了点一下然后直接卡住
Jan 22 @ 10:07pm 
非ModConfig设置会被覆盖为默认设置,就算正在游戏中,也会被覆盖。可以修复下吗?
Nov 29, 2025 @ 4:38am 
@JMC 真假?? 感謝大兄弟....我有空閒就好好參照一下
Nov 28, 2025 @ 12:47am 
@GGininder578 hello,可以用我这个MOD极大简化ModSetting的配置:
https://steamcommunity.com/sharedfiles/filedetails/?id=3613297900

后面也会考虑加ModConfig的适配,做到在我这配一套在适配的UI全都显示
Nov 19, 2025 @ 5:39pm 
This is amazing work. Thank you.
Nov 16, 2025 @ 11:28am 
更新后每次都会恢复成默认设置。
Nov 15, 2025 @ 2:54am 
@嘰哩咕嚕 ModSetting複雜到讓我想哭🥲

ModSetting有更多的選項配置功能,用不到的話ModConfig很夠用了。
Nov 15, 2025 @ 1:38am 
您好 请问modconfig和modsetting有什么区别吗 恕我分不太清~~
Nov 12, 2025 @ 6:18am 
更新应该没改任何逻辑,只是修复了缩放,建议检查下其他mod的问题