Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
../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?
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.
```
[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
```
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