Hello, seem like i ran into some kind of error related to Artefact effeciency.
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: d:/anomaly\gamedata\scripts\perk_based_artefacts.script:3922: attempt to perform arithmetic on local 'sec' (a string value)
This is the line that caused the crash.
function degradate_artefact(obj, timed_degradation)
local sec = obj:section()
if degradation_valid_artys[sec] then local c
local new_c - timed_degradation * 0.001
trace("%s is valid for degradation, cond %s, new_cond %s", sec, cond * 100, new_cond * 100)
obj:set_condition(new_cond)
if obj:condition() < 0.01 then
trace("%s is critical, releasing, cond %s", sec * 100, obj:condition() * 100) <<< THIS
alife_release(obj)
CreateTimeEvent("refresh_artefacts", "refresh_artefacts", 0.15, refresh_artefacts_time_event_func, true)
end
end
end
fabito95
derpi joined
This member has provided no bio about themself...