Don't Starve Together

Don't Starve Together

Fix for 'Beefalo information'
 This topic has been pinned, so it's probably important
Parusoid  [developer] 13 Feb, 2023 @ 10:10am
Crash/Bug Reports
Post bugs here
< >
Showing 1-9 of 9 comments
Silvi Goldberg 7 May, 2023 @ 8:06pm 
It has some bug in DST that force to Exit Game while me and my friend riding on the beefalo at the same time then the game is crash
Parusoid  [developer] 8 May, 2023 @ 3:29am 
@Gozo Xatoru post crash log please
Double_A 19 Nov, 2023 @ 3:28am 
[string "../mods/workshop-215855579/modmain.lua"]:131: attempt to index local 'mount' (a nil value) LUA ERROR stact traceback:
../mods/workshop-2158755579/modmain.lua:131: in (method) SetString (Lua) <127-186>
scripts/widgets/hoverer.lua:133 in (method) Update (Lua) <687-889>
scripts/update.lua:95 in () ? (Lua) <33-138>
Parusoid  [developer] 19 Nov, 2023 @ 6:00am 
Originally posted by Double_A:
[string "../mods/workshop-215855579/modmain.lua"]:131: attempt to index local 'mount' (a nil value) LUA ERROR stact traceback:
../mods/workshop-2158755579/modmain.lua:131: in (method) SetString (Lua) <127-186>
scripts/widgets/hoverer.lua:133 in (method) Update (Lua) <687-889>
scripts/update.lua:95 in () ? (Lua) <33-138>

what kind of activity was ongoing right before the crash?
dantas 1 May, 2024 @ 6:03am 
Hey, is there a way for me to contribute to this error? Really enjoy the mod, have had it error yesterday. Do you have a github repo or something?
Parusoid  [developer] 1 May, 2024 @ 7:49am 
Originally posted by dantas:
Hey, is there a way for me to contribute to this error? Really enjoy the mod, have had it error yesterday. Do you have a github repo or something?
I dont have github repo. If you can provide the circumstances where this error occurred because so far i was unable to recreate the error
dantas 2 May, 2024 @ 5:39am 
It has only happened for me during multiplayer games.
A friend "A" had it crash for him while another friend "B" was interacting with his beefalo.
Friend "A" closed his inventory and crashed.

Since it's pretty random, I am suspecting it has to do with this line of the mod:

If I understand correctly, we are trying to get the mount's info while someone else is riding on it, and for some reason the item.components.rider could be nil while item.replica.rider isn't.

```
elseif item ~= nil and item.replica ~= nil and item.replica.rider ~= nil and item.replica.rider:IsRiding() then
local mount = item.components.rider:GetMount()
```

I changed the last line to, get replica property from item instead, since that is what we're testing for nil in previous lines.

```
local mount = item.replica.rider:GetMount()
```


I went ahead and created a Fix for your fix haha
Gonna have to test it tonight and see if we get another crash.
Last edited by dantas; 2 May, 2024 @ 5:46am
dantas 2 May, 2024 @ 6:12am 
Good news! Found new logs about it:
```
[01:16:34]: [string "../mods/workshop-3236970200/modmain.lua"]:133: attempt to index local 'mount' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-3236970200/modmain.lua:133 in (method) SetString (Lua) <129-188>
self =
string = : Walk To
callbacks = table: 0x60000b5e48c0
inst = 100649 - (valid:true)
focus = false
children = table: 0x60000b5e4800
size = 30
focus_flow_args = table: 0x60000b5e5140
focus_target = false
can_fade_alpha = true
enabled = true
font = bp50
name = Text
SetString = function - ../mods/workshop-3236970200/modmain.lua:129
focus_flow = table: 0x60000b5e4f00
parent = HoverText
shown = true
colour = table: 0x60000b5e5100
str = : Walk To
target = 112781 - wathgrithr (valid:true)
mount = nil
scripts/widgets/hoverer.lua:133 in (method) OnUpdate (Lua) <30-146>
self =
str = Attack Wet Treeguard
callbacks = table: 0x60000b5e1880
isFE = false
lastStr = Attack Wet Treeguard
inst = 100647 - (valid:true)
focus = false
children = table: 0x60000b5e3b40
focus_flow_args = table: 0x60000b5e1380
focus_target = false
secondarytext = Text - : Walk To
followhandler = table: 0x60000b5e5280
owner = 100140 - woodie (valid:true)
parent = Controls
can_fade_alpha = true
default_text_pos = (0.00, 40.00, 0.00)
strFrames = 0
name = HoverText
secondarystr = : Walk To
focus_flow = table: 0x60000b5e2140
enabled = true
text = Text - Attack Wet Treeguard
shown = true
str = Attack Wet Treeguard
colour = table: 0x600007ce3500
secondarystr = : Walk To
lmb = Attack 112325 - leif (valid:true)
scripts/frontend.lua:866 in (method) Update (Lua) <687-889>
self =
tracking_mouse = true
fade_title_out = false
helptext_max_characters_per_line = 130
overlayroot = overlayroot
consoletext = Text - CONSOLE TEXT
fade_title_time = 0
crafting_navigation_mode = false
MotdManager = table: 0x6000042e6d00
topwhiteoverlay = Image - images/global.xml:square.tex
spinner_repeat_time = -1
isprimary = false
helptextbg = Image - images/global.xml:square.tex
helptext = HelpText
subtitle = Text -
fade_type = white
crafting_repeat_ninja = 0.0452
fade_time = 1.0156473333637
inventory_repeat_fast = 0.0672
updating_widgets_alt = table: 0x600007c10640
total_fade_time = 1
is_splitscreen = false
topswipeoverlay = Image - images/global.xml:noise.tex
title = Text -
save_indicator_time_left = 0
inventory_repeat_base = 0.168
scroll_repeat_time = -1
vigoverlay = Image - images/bg_vignette.xml:vignette.tex
topFadeHidden = true
gameinterface = 100020 - (valid:true)
updating_widgets = table: 0x6000042e6c40
topblackoverlay = Image - images/global.xml:square.tex
lastx = 1266
mutedPlayers = table: 0x6000042e6dc0
swipeoverlay = Image - images/global.xml:noise.tex
lasty = 737
crafting_repeat_base = 0.226
save_indicator_fade_time = 0
autosave_enabled = true
whiteoverlay = Image - images/global.xml:square.tex
num_pending_saves = 0
blackoverlay = Image - images/global.xml:square.tex
screenstack = table: 0x6000042e8900
crafting_repeat_fast = 0.0904
topvigoverlay = Image - images/bg_vignette.xml:vignette.tex
serverpausewidget = ServerPauseWidget
focus_locked = false
repeat_reps = 3
alpha = -1.5324312404585e-05
repeat_time = 0.081121792644262
inventory_repeat_ninja = 0.0336
fade_title_in = false
forceProcessText = false
helptextstring =
screenroot = screenroot
match_results = table: 0x6000042e6cc0
helptexttext = Text -
dt = 0.016996040940285
controller = false
k = HoverText
v = true
scripts/update.lua:95 in () ? (Lua) <33-138>
dt = 0.016996040940285
server_
[01:16:34]: [string "../m
```
Parusoid  [developer] 2 May, 2024 @ 6:14am 
Originally posted by dantas:
It has only happened for me during multiplayer games.
A friend "A" had it crash for him while another friend "B" was interacting with his beefalo.
Friend "A" closed his inventory and crashed.

Since it's pretty random, I am suspecting it has to do with this line of the mod:

If I understand correctly, we are trying to get the mount's info while someone else is riding on it, and for some reason the item.components.rider could be nil while item.replica.rider isn't.

```
elseif item ~= nil and item.replica ~= nil and item.replica.rider ~= nil and item.replica.rider:IsRiding() then
local mount = item.components.rider:GetMount()
```

I changed the last line to, get replica property from item instead, since that is what we're testing for nil in previous lines.

```
local mount = item.replica.rider:GetMount()
```


I went ahead and created a Fix for your fix haha
Gonna have to test it tonight and see if we get another crash.
I was thinking it may be related to introduction of beefalo bell and the mod checking for prefab named "beefalo" rather than using the name given when using beefalo bell.

So far it was hard for me to replicate the error so didn't really have direction of where to begin the fix. If your fix works I can update this mod with it
< >
Showing 1-9 of 9 comments
Per page: 1530 50