Jump to content

[Client Crash] - weather.lua


Maris

Recommended Posts

Bug Submission:

Category: Client Crash
Issue Title: weather.lua
Issue Description: I'm not sure if this is game bug or mod bug.

It happens just after I joined my dedicated server.

[00:08:04]: [string "scripts/components/weather.lua"]:438: attempt to perform arithmetic on local 'dynrange' (a nil value)
LUA ERROR stack traceback:
scripts/components/weather.lua:438 in (upvalue) CalculateLight (Lua) <423-439>
temperature = 29.999986732051
snowlight = false
dynrange = nil
p = 1
scripts/components/weather.lua:504 in (upvalue) PushWeather (Lua) <494-507>
temperature = 29.999986732051
preciprate = 0.1
scripts/components/weather.lua:981 in (method) LongUpdate (Lua) <811-982>
self =
GetDebugString = function - scripts/components/weather.lua:1059
inst = 100029 - world_network (valid:true)
OnRemoveEntity = function - scripts/components/weather.lua:789
LongUpdate = function - scripts/components/weather.lua:811
OnUpdate = function - scripts/components/weather.lua:811
OnPostInit = function - scripts/components/weather.lua:773
dt = 0
temperature = 29.999986732051
preciprate = 0.1
wetrate = -1
snowlevel = -1.3558356894177e+021
scripts/entityscript.lua:1506 in (method) LongUpdate (Lua) <1499-1509>
self (valid:true) =
GUID = 100029
inlimbo = false
actionreplica = table: 1B2A3308
event_listening = table: 1B297FD0
PostInit = function - scripts/prefabs/world_network.lua:1
lower_components_shadow = table: 1B29B130
entity = Entity (1F748CA0)
prefab = world_network
updatecomponents = table: 1B2A3B00
Network = Network (2B0D5D68)
persists = false
OnRemoveEntity = function - scripts/prefabs/world_network.lua:12
event_listeners = table: 1B29F708
modactioncomponents = table: 3B5AA838
spawntime = 0.20000001043081
name = MISSING NAME
replica = table: 1B29C9E0
pendingtasks = table: 0F1C3EC8
components = table: 1B29E448
actioncomponents = table: 1B2A33D0
dt = 0
k = weather
v = table: 1B29F618
scripts/prefabs/world_network.lua:2 in (method) PostInit (Lua) <1-10>
inst = 100029 - world_network (valid:true)
scripts/prefabs/world.lua:170 in (method) PostInit (Lua) <168-188>
inst = 100024 - forest (valid:true)
scripts/prefabs/world_network.lua:22 in (field) fn (Lua) <19-29>
inst = 100029 - world_network (valid:true)
scripts/scheduler.lua:187 in (method) OnTick (Lua) <161-217>
self =
running = table: 3B5A3C68
waitingfortick = table: 3B5A3CE0
tasks = table: 3B5A3CB8
waking = table: 3B5A9870
attime = table: 3B5A3BF0
hibernating = table: 3B5A3C90
tick = 7
k = PERIODIC 100029: 0.000000
v = true
already_dead = false
scripts/scheduler.lua:398 in (global) RunScheduler (Lua) <396-404>
tick = 7
scripts/update.lua:162 in () ? (Lua) <146-219>
dt = 0.033333335071802
tick = 7
i = 7

[00:08:04]: [string "scripts/components/weather.lua"]:438: attempt to perform arithmetic on local 'dynrange' (a nil value)
LUA ERROR stack traceback:
scripts/components/weather.lua:438 in (upvalue) CalculateLight (Lua) <423-439>
scripts/components/weather.lua:504 in (upvalue) PushWeather (Lua) <494-507>
scripts/components/weather.lua:981 in (method) LongUpdate (Lua) <811-982>
scripts/entityscript.lua:1506 in (method) LongUpdate (Lua) <1499-1509>
scripts/prefabs/world_network.lua:2 in (method) PostInit (Lua) <1-10>
scripts/prefabs/world.lua:170 in (method) PostInit (Lua) <168-188>
scripts/prefabs/world_network.lua:22 in (field) fn (Lua) <19-29>
scripts/scheduler.lua:187 in (method) OnTick (Lua) <161-217>
scripts/scheduler.lua:398 in (global) RunScheduler (Lua) <396-404>
scripts/update.lua:162 in () ? (Lua) <146-219>

[00:08:04]: SCRIPT ERROR! Showing error screen
[00:08:10]: Error deserializing lua state for entity world_network[100029] - Failed to read net var data
[00:08:34]: Error deserializing lua state for entity world_network[100029] - Failed to read net var data

Steps to Reproduce: No steps to reproduce, because it is a very rare random crash on client side.
Link to comment
https://forums.kleientertainment.com/forums/topic/56865-client-crash-weatherlua/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...