Skip to content

Configuration

Introduction

This feature was introduced in v3.2.

This page serves as a guide on how to configure Milthm via editing the configuration file.

The Milthm configuration file is written in the TOML format, which is simple to learn and use, allowing for easy configuration.

Find the Configuration File

Refer to the Unity Documentation.

The config.toml file can be found at:

OS or PlatformPath
Windows%AppData%\..\LocalLow\Morizero\Milthm\config.toml
Linux~/.config/unity3d/Morizero/Milthm/config.toml
macOS~/Library/Application Support/Morizero/Milthm/config.toml
Android (Google Play)/storage/emulated/<userid>/Android/data/com.morizero.milthm/files/config.toml
Android (Taptap)/storage/emulated/<userid>/Android/data/game.taptap.morizero.milthm/files/config.toml
iOSUse the system's builtin Files app and find Milthm.

DANGER

Carefully read the documentation below before modifying the configuration file!

Configurations

There are a few sections in the configuration, including GeneralSetting, GameplaySetting, AudioSetting, and VideoSetting. Some settings are platform-specific.

GeneralSetting

KeyTypePlatformDescription
Languagestring | 'auto'AllThe game's UI language based on BCP-47 tag. If auto, uses system locale list. Defaults to English if no match is found.

GameplaySetting

KeyTypePlatformDescription
NoteFlowSpeeddoubleAllNote flow speed, clamped to [0, 1]
NoteSizedoubleAllNote size, clamped to [0, 1]
HighlightChordbooleanAllHighlight chords
DisableHitSoundbooleanAllDisable hit sounds
HitSoundSetID0 | 1 | 2 | 3 | 4AllSelect hit sound set
EnableHitBiasIndicatorbooleanAllEnable hit bias indicator
EnableAdLibEffectbooleanAllEnable ripple effect on click
BackgroundDimdoubleAllBackground dim level, clamped to [0, 1]
TimeSavingRetryPolicy'SingleClick' | 'DoubleClick'AllSkip chart blank on retry
SongTitlePolicySee description belowAllSong title display policy

SongTitlePolicy Options

  • CultureFriendly
  • AlwaysOriginal
  • AlwaysLatin
  • AlwaysBoth
  • CultureGreedy

AudioSetting

KeyTypePlatformDescription
BGMVolumedoubleAllBGM volume, clamped to [0, 1.5]
HitVolumedoubleAllHit sound volume, clamped to [0, 1.5]
UIVolumedoubleAllUI sound volume, clamped to [0, 1.5]
PlayOnFocusLossbooleanDesktopKeep playing when app loses focus
ActivatedDeviceAudioDeviceInfoDesktopSelected output audio device
DeviceSettingsArray<AudioDeviceSetting>AllHistorical device settings

AudioDeviceInfo

Here’s the description of the AudioDeviceInfo interface in the format you requested:

KeyTypePlatformDescription
deviceTypestring | 'auto'AllThe type of the audio device backend or API. Examples: 'CoreAudio', 'ASIO', 'WASAPI', or 'auto' for automatic selection.
deviceNamestring | 'auto'AllThe name of the audio device as reported by the system or driver. Examples: 'HUAWEI USB-C HEADSET', or 'auto' for automatic selection.

AudioDeviceSetting

KeyTypePlatformDescription
deviceTypestringAllThe type of the audio device backend or API. Example values: 'CoreAudio', 'ASIO', 'WASAPI'.
deviceNamestringAllThe name of the specific audio device. Example: 'HUAWEI USB-C HEADSET'.
bufferSizenumberAllThe audio buffer size in the number of samples. A smaller buffer reduces latency but increases CPU load.
offsetnumberAllThe visual offset in seconds to synchronize with this device, compensating for audio processing latency. Example: 0.01 (10ms delay).

VideoSetting

KeyTypePlatformDescription
FrameRateint | 0 | -1AllFPS setting; 0=auto, -1=unlimited
EnableVSyncboolDesktopEnable/disable VSync
ResolutionstringDesktopResolution format or fullscreen
RenderWithinSafeAreaboolAndroid | iOSRender within screen safe area
EnableLowResolutionboolAndroid | iOSToggle low resolution mode
LowResolutionScalefloatAndroid | iOSScale factor [0.25, 1] for low-res
FitGamePlayScreenRatioboolAndroid | iOSAdjust screen to ratio
GraphicsBackend'auto' | 'OpenGL' | 'Vulkan'AndroidSelect graphics backend

NetworkSetting

Since version v3.0.0, Milthm requires a network connection for full functionality.

NetworkSetting.GeneralHttpClient

KeyTypePlatformDescription
NetworkEnvironmentCheckTimeoutDurationAllTimeout for checking network availability

NetworkSetting.MilthmHttpClient

KeyTypePlatformDescription
GeneralTimeoutDurationAllMax wait time for HTTP requests
OnlineConfigurationRetrievingTimeoutDurationAllMax wait time for fetching online config

Duration

Describe a duration with format 1h2m3s.

Valid time units are "s", "m", "h".