Add configurable weights per track, with synchronization #3

Merged
nikita merged 5 commits from ratijas/muzika-gromche:work/r/dev into master 2025-07-12 22:01:42 +00:00
Contributor

Add configuration weights for tracks.

Range is [0..100] but it's relative to total/sum. The algorithm guards against "all set to zero" scenario.

Add config synchronization via CSync.

Add LethalConfig to display some nice UI.

Config can be edited as a text file config/MuzikaGromche.cfg in BepInEx directory, via r2modman/Thunderstore UI, or via some in-game config editor like LethalConfig by AinaVT.

Add configuration weights for tracks. Range is [0..100] but it's relative to total/sum. The algorithm guards against "all set to zero" scenario. Add config synchronization via CSync. Add LethalConfig to display some nice UI. Config can be edited as a text file `config/MuzikaGromche.cfg` in BepInEx directory, via r2modman/Thunderstore UI, or via some in-game config editor like [LethalConfig by AinaVT](https://thunderstore.io/c/lethal-company/p/AinaVT/LethalConfig/).
ratijas added 3 commits 2025-07-11 21:10:23 +00:00
baaba2be6f WIP: Add configuration weights for tracks
Range is [0..100] but it's relative to total/sum. The algorithm guards
against "all set to zero" scenario.
nikita reviewed 2025-07-11 21:41:22 +00:00
@ -172,0 +249,4 @@
return index;
}
private int GetRawIndex(int rawIndex)
Owner

GetTrackIndex

GetTrackIndex
Author
Contributor

How about GetWeightIndex, so that it refers to entities of this class/algorithm rather than its outside usages.

How about GetWeightIndex, so that it refers to entities of this class/algorithm rather than its outside usages.
ratijas marked this conversation as resolved
ratijas force-pushed work/r/dev from f87da1dfed to 54e88b08a8 2025-07-12 01:49:44 +00:00 Compare
ratijas force-pushed work/r/dev from 54e88b08a8 to 766e393a58 2025-07-12 13:57:12 +00:00 Compare
ratijas force-pushed work/r/dev from 766e393a58 to 13fd51c366 2025-07-12 14:32:48 +00:00 Compare
ratijas added 1 commit 2025-07-12 16:33:20 +00:00
ratijas changed title from Draft: Add config with synchronization to Add configurable weights per track, with synchronization 2025-07-12 16:34:53 +00:00
nikita merged commit 2617bcaf1b into master 2025-07-12 22:01:42 +00:00
ratijas deleted branch work/r/dev 2025-07-12 22:04:12 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: nikita/muzika-gromche#3
No description provided.