Don't Starve Together

Don't Starve Together

Beefalo Status Bar
Xilexio 29 Oct, 2021 @ 3:45am
Bug report
This mod seems to have bugged out my game when playing as Wanda and having a bonded beefalo go after me when exiting the caves. Upon exiting a cave, it showed that Wanda had -20 years (yes, negative twenty) and screen was randomly showing white flashes, dark fades, that she was on fire or that she was freezing. On the server side, she was alive and having correct stats. The stats didn't update after taking the damage on client side, but did on server side, correctly killing her in the end. After a while, the game crashed. Until the crash, there wasn't anything noteworthy in the client log aside from a few errors like
Error deserializing lua state for entity player_classified"
I managed to get a crash after some time of walking like that.

This happened every single time I exited caves. I also checked it with this mod alone, on a fresh DST install with all previous configuration removed, without any other server or client mods. The issue was present only when I ran a dedicated server, there were no issues when hosting the game through dst client.

When I managed to get a crash, this was the stacktrace:

[00:02:56]: [string "scripts/components/combat_replica.lua"]:318: attempt to index a nil value LUA ERROR stack traceback: scripts/components/combat_replica.lua:318 in (method) CanTarget (Lua) <304-319> self = ondetachclassified = function - scripts/components/combat_replica.lua:33 inst = 100182 - wanda (valid:true) classified = 100181 - player_classified (valid:true) _attackrange = net_float (00000000639D90D0) _target = net_entity (00000000639D94E0) _ispanic = net_bool (00000000639D8680) target = 104788 - bat (valid:true) rider = table: 00000000639E3080 weapon = nil is_ranged_weapon = false scripts/components/playeractionpicker.lua:253 in (method) GetLeftClickActions (Lua) <211-284> self = actionfilterstack = table: 000000006D512CA0 inst = 100182 - wanda (valid:true) disable_right_click = false containers = table: 000000006D511A30 actionfilter = function - scripts/components/rider_replica.lua:133 map = Map (0000000048D74470) position = (-42.91, 0.00, -352.18) target = 104788 - bat (valid:true) actions = nil useitem = nil equipitem = 100154 - tentaclespike (valid:true) ispassable = true steering_actions = nil scripts/components/playeractionpicker.lua:399 in (method) DoGetMouseActions (Lua) <349-403> self = actionfilterstack = table: 000000006D512CA0 inst = 100182 - wanda (valid:true) disable_right_click = false containers = table: 000000006D511A30 actionfilter = function - scripts/components/rider_replica.lua:133 map = Map (0000000048D74470) position = (-42.91, 0.00, -352.18) target = 104788 - bat (valid:true) isaoetargeting = false wantsaoetargeting = false scripts/components/playercontroller.lua:2035 in (method) OnUpdate (Lua) <1898-2357> self = ondetachclassified = function - scripts/components/playercontroller.lua:164 isclientcontrollerattached = false predictionsent = false actionbuttonoverride = function - scripts/components/rider_replica.lua:91 dragwalking = false deploy_mode = true controller_targeting_modifier_down = false controller_targeting_lock_target = false inst = 100182 - wanda (valid:true) remote_vector = (-43.61, 3.00, -355.99) classified = 100181 - player_classified (valid:true) draggingonground = false predictwalking = false map = Map (0000000048D74470) handler = table: 00000000621B72B0 controller_target_age = 1.#INF directwalking = true lastheldaction = Mount 100171 - beefalo (valid:true) HasItemSlots = function - scripts/components/playercontroller.lua:54 locomotor = table: 000000006D4ED4A0 time_direct_walking = 14.300000745803 is_hopping = false ismastersim = false heldactioncooldown = 0 remote_controls = table: 000000006D51DB50 mousetimeout = 10 actionholding = false controller_targeting_targets = table: 000000006D51DCE0 actionholdtime = 24.633334618062 dt = 0.033333335071802 isenabled = true ishudblocking = nil controller_mode = false new_highlight = nil scripts/update.lua:256 in () ? (Lua) <218-292> dt = 0.033333335071802 tick = 1232 k = 100182 v = 100182 - wanda (valid:true) cmp = table: 000000006D51DD30 [00:02:56]: [string "scripts/components/combat_replica.lua"]:318: attempt to index a nil value LUA ERROR stack traceback: scripts/components/combat_replica.lua:318 in (method) CanTarget (Lua) <304-319> scripts/components/playeractionpicker.lua:253 in (method) GetLeftClickActions (Lua) <211-284> scripts/components/playeractionpicker.lua:399 in (method) DoGetMouseActions (Lua) <349-403> scripts/components/playercontroller.lua:2035 in (method) OnUpdate (Lua) <1898-2357> scripts/update.lua:256 in () ? (Lua) <218-292>
Last edited by Xilexio; 29 Oct, 2021 @ 3:45am
< >
Showing 1-1 of 1 comments
Mindkiller  [developer] 29 Oct, 2021 @ 5:04pm 
Thank you for the detailed report, it was extremely helpful!

So, a little bit on how this works: Each shard (world) has it's own "modoverrides.lua" file, in which you enable and configure your mods. When you host from the game, it will automatically create and place a copy of this file in your Master and Caves folders, but with dedicated servers you have to do this manually.

I think what's happening here is that you enabled the mods for your Forest (Master) world, but not for your Caves world (or vice versa), which is causing desync issues when traveling between them.

If this is the case, just make sure you have the "modoverrides.lua" file (and enable your mods in it) in both folders (Master and Caves) and you should be good to go.
< >
Showing 1-1 of 1 comments
Per page: 1530 50