Don't Starve Together

Don't Starve Together

Fabin's Synth Collection - Analog Remixes
 This topic has been pinned, so it's probably important
the sewers  [developer] 8 Jul @ 1:51am
Bug Reports
> "the mod's crashing."
client logs, please.
(if using windows, the path should be this: "C:\Users\<your username here>\Documents\Klei\DoNotStarveTogether\client_log.txt")

> "the mod's not working the way i expected."
tell me what happened, and what you expected to happen instead.

> "the music's too loud"
which track?

> "music track * is not playing properly"
is it missing components, not playing, playing when it shouldn't, etc.?

> "mod * is making your mod not work properly"
which mod? what configurations did you have on, and what happened that went wrong?

> "the mod's not working correctly, and i don't know why"
what scenario were you in? were you doing work, combat, figthing a specific boss? what settings did you have on? what phase of day was it?

if you guys can post your bugs here (along with client logs if it's crashing), i'll appreciate it. :trolol:
Last edited by the sewers; 21 Jul @ 12:40am
< >
Showing 1-5 of 5 comments
ZergyPoo 16 Jul @ 3:31pm 
Day to dusk, to night transitions not working (with shiprwrecked setting on)
most of the music is delayed on activation or doesnt trigger at all it feels like
JunkLOOTER 18 Jul @ 10:12am 
I couldn't cut down a tree in shipwrecked on another server with the shipwrecked music setting.and he showed it to ai.And it worked.only he fixed the wrong mod.and the island core

The error you're encountering in Don't Starve Together (DST) is a Lua error caused by a nil value being passed to the _PlaySound function, which expects a string. This is happening in a modded environment, specifically involving the mod with the workshop ID 3435352667 and possibly 3314952907. Here's a breakdown of the issue and how to address it:

Error Analysis
The error occurs in the dynamicmusic.lua file from the mod workshop-3435352667 at line 168, where the _PlaySound function is called with a nil value for the sound parameter. The stack trace indicates the following flow:

Root Cause: The PlaySound method in dynamicmusic.lua:168 is trying to play a sound, but the sound variable is nil. The function expects a string (the sound's name or path) but received nil, causing the crash.
Context: This issue originates from the StartBusy function in modmain.lua (from mod workshop-3314952907), which calls _StartBusyTheme in dynamicmusic.lua. The sound variable in _StartBusyTheme is likely not being set correctly.
Trigger: The error is triggered by an event (PushEvent) related to the player (Wendy, ID 100241) in the dynamicmusic component, specifically when trying to start a "busy theme" (likely background music for a specific game state).
Likely Cause
The issue is likely due to one of the following:

A sound file or sound name is missing or incorrectly referenced in the mod's configuration.
The mod workshop-3435352667 or workshop-3314952907 is not properly handling the sound selection logic, resulting in a nil value being passed to _PlaySound.
There might be a conflict between the two mods, or one of them is outdated/incompatible with the current version of DST.
Steps to Fix
Here’s how you can troubleshoot and potentially resolve the issue:

1. Check Mod Configuration
Mod workshop-3435352667: This mod appears to override or extend the dynamicmusic component. Check its configuration files (likely in the mod's folder under postinit/components/dynamicmusic.lua) to ensure that sound files or sound names are properly defined.
Mod workshop-3314952907: This mod seems to be triggering the music change. Look in modmain.lua around line 317 (in the StartBusy function) to see how the _theme or sound is being set. Verify that the _theme value (set to 1 in the stack trace) corresponds to a valid sound file or name.
Action: Open the mod files in a text editor (e.g., Notepad++ or VSCode) and search for the sound assignment logic. Ensure that the sound variable is not nil. For example, check if there’s a table like SOUND_TABLE[theme] that maps theme IDs to sound names, and confirm that SOUND_TABLE[1] exists and points to a valid sound.
2. Verify Sound Files
Ensure that the sound files referenced by the mod exist in the mod’s directory (e.g., under sound/ in the mod folder).
If the mod uses custom sounds, check that they are properly registered in the mod’s modinfo.lua or sound initialization code.
Action: Look for a missing or misnamed sound file (e.g., busy.wav or similar). If you find a reference to a sound that doesn’t exist, either add the file or update the mod to use a valid sound.
3. Check for Mod Conflicts
The error involves two mods (workshop-3435352667 and workshop-3314952907). These mods may conflict if both modify the dynamicmusic component or sound system.
Action: Disable one of the mods temporarily (via the DST mod menu) and test if the error persists. If the error disappears, the disabled mod is likely the culprit or is incompatible with the other mod.
You can also check the Steam Workshop pages for these mods to see if there are known issues or required dependencies.
4. Update or Reinstall Mods
Ensure both mods are updated to their latest versions, as the issue might be fixed in a newer release.
Action: In Steam, go to the Workshop page for each mod (workshop-3435352667 and workshop-3314952907), check for updates, and reinstall them if necessary. You can also unsubscribe and resubscribe to force a fresh download.
5. Debugging the Code
If you’re comfortable editing Lua code, you can add a check to prevent the nil value from being passed to _PlaySound. For example, in dynamicmusic.lua around line 168, modify the PlaySound method to include a safety check:

function DynamicMusic:PlaySound(sound, sound_name, arg)
if sound == nil then
print("Error: Attempted to play nil sound for " .. tostring(sound_name))
return
end
self:_PlaySound(sound, sound_name, arg)
end

Action: Add this check to postinit/components/dynamicmusic.lua in the workshop-3435352667 mod folder. This will log an error instead of crashing, helping you identify why sound is nil.
6. Check Game Version Compatibility
Ensure that both mods are compatible with the current version of DST (as of July 18, 2025).
Action: Visit the Steam Workshop pages for these mods and check the comments or description for compatibility notes. If they’re outdated, look for alternative mods or contact the mod authors for updates.
7. Report the Issue
If you can’t resolve the issue, report it to the mod authors on the Steam Workshop page. Provide the full error log (as you’ve shared) and details about your game setup (e.g., other mods enabled, DST version).
Action: Include the stack trace and mention that the error occurs when the dynamicmusic component tries to play a nil sound for the "busy" theme.
Temporary Workaround
If you need to keep playing without fixing the mod immediately, you can disable the problematic mods:

Open DST, go to the "Mods" menu, and disable workshop-3435352667 and/or workshop-3314952907.
Restart the game and test if the error is gone.
Note that disabling these mods might affect gameplay features they provide (e.g., custom music or mechanics).
Additional Notes
Mod Identification: The workshop IDs correspond to specific mods on Steam. You can look up workshop-3435352667 and workshop-3314952907 on the Steam Workshop to identify their names and purposes (e.g., they might be music or gameplay enhancement mods).
Log Files: Check the client_log.txt file in your DST installation folder (usually Documents/Klei/DoNotStarveTogether/) for additional context about the error. Search for lines around the timestamp [00:05:05] to see what happened before the crash.
Community Help: You can also post the error on the Klei Forums or the DST subreddit, as other players might have encountered and resolved similar issues with these mods.
If you provide more details (e.g., the names of the mods, other mods you’re using, or whether you can edit Lua files), I can give more specific guidance. Let me know how you’d like to proceed!
the sewers  [developer] 21 Jul @ 12:38am 
@Calcit sorry to ask, but could you provide some details on what was the scenario that this happened in? i.e.: mod settings, the world's season, phase of day, etc. i'm trying to replicate it with not much progress, so if that's possible, i'd appreciate it
1161850231 (Camera Tweaks) Version:1.018
1290774114 (Admin Scoreboard+) Version:1.22
1558835899 ((Forge) No Click To Move) Version:1.5
(ActionQueue Reborn) Version:1.050
1969627724 (Super Gesture) Version:201114
-2300153582 (Hide HUD Status) Version:1.0
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-3337729430
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-3513404611
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-3495316998
3495316998 (Don't Hit a Pet Beefalo) Version:1.0.15
2485714729 (Color Adjustments) Version:1.0
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-3483568681
[00:03:08]: loaded mod_config_data/modconfiguration_workshop-2842329929
[00:03:08]: Loading mod: workshop-2842329929 (Lost Toys Found) Version:20220923
[00:03:08]: loaded mod_config_data/modconfiguration_workshop-2188383679
[00:03:08]: Loading mod: workshop-2188383679 (Chest Memory) Version:1.5
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-2841310635
[00:03:08]: Loading mod: workshop-2841310635 (Proper Switching & Auto Re-Equip Client Mod) Version:1.5a
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-2858947939
[00:03:08]: Loading mod: workshop-2858947939 (Beefalo Buck Timer) Version:0.10
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-2302837868
[00:03:08]: Loading mod: workshop-2302837868 (Snapping tills) Version:1.1.9
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-3381334962
[00:03:08]: Loading mod: workshop-3381334962 (Auto-Unequip) Version:v1.3.0
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-1653324376
[00:03:08]: Loading mod: workshop-1653324376 (Skins extender) Version:2.0.0
[00:03:08]: loaded mod_config_data/modconfiguration_workshop-2918570961
[00:03:08]: Loading mod: workshop-2918570961 (A Test Version - More Map Icon) Version:20240330.3
[00:03:08]: loaded mod_config_data/modconfiguration_workshop-1386797248
[00:03:08]: Loading mod: workshop-1386797248 (Menu Pack) Version:5.6
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-3174001190
[00:03:08]: Loading mod: workshop-3174001190 (Old Void Cowls) Version:1.51
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-3161480628
[00:03:08]: Loading mod: workshop-3161480628 (Seasonal Farming Theme [Revisit]) Version:1.3b
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-1240565842
[00:03:08]: Loading mod: workshop-1240565842 (Russification Pack for DST) Version:3.6.6
[00:03:08]: loaded mod_config_data/modconfiguration_workshop-376333686
[00:03:08]: Loading mod: workshop-376333686 (Combined Status) Version:1.9.2
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-727774324
[00:03:08]: Loading mod: workshop-727774324 (Craft Pot) Version:0.15.0
[00:03:08]: loaded mod_config_data/modconfiguration_workshop-1226663453
[00:03:08]: Loading mod: workshop-1226663453 (Small Map) Version:1.8
[00:03:08]: loaded mod_config_data/modconfiguration_workshop-2525856394
[00:03:08]: Loading mod: workshop-2525856394 (Burning Timer) Version:1.1.5
[00:03:08]: loaded mod_config_data/modconfiguration_workshop-2896126381
[00:03:08]: Loading mod: workshop-2896126381 (Too Many Items Revisited) Version:1.2.8
[00:03:08]: loaded mod_config_data/modconfiguration_workshop-2994120042
[00:03:08]: Loading mod: workshop-2994120042 (Telepoof mode on/off) Version:0.2.1
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-343753877
[00:03:08]: Loading mod: workshop-343753877 (Status Announcements) Version:2.13.1
[00:03:08]: Could not load mod_config_data/modconfiguration_workshop-2402422659

your mod settings:balatro's theme,balatro's theme,analog,enabled,calm,3x longer,shipwrecked(errors also occur with normal),one secret

I don't know, but the error is always related to the absence of someone's music file, or it was an event.I can't say for sure.

I had this error not only with shipwrecked, but also with other mods.which I used then.chat announced caused me bugs with a catfish game in combination with some other mod interacting with the chat.The mistake was that the game couldn't detect the color of the message.klei I was told this is how it should be and bo it's not a definite action.to many items is also problematic with Russification Pack for DST.
the sewers  [developer] 23 Jul @ 11:16am 
@ZergyPoo fixed it. it was due to a small typo, sorry for not noticing it earlier :\

@Calcit attempted to fix the bug, can you tell me if it still crashes? and if it does, does a message like this appear in the logs?
"[MUSIC MOD] couldn't find music for season = x, phase = x!! using normal StartBusy instead."
< >
Showing 1-5 of 5 comments
Per page: 1530 50