Trouvé sur un forum russe,
concerne les crashes ressemblants à ça:
- Spoiler:
-
[error]Arguments : LUA error: ...\s.t.a.l.k.e.r\gamedata\scripts\smart_terrain.script:1180: attempt to call method 'unregister_npc' (a nil value)
et
[error]Arguments : LUA error: ...shing\s.t.a.l.k.e.r\gamedata\scripts\xr_gulag.script:1190: attempt to index local 'strn' (a nil value) ?
Méthode: ouvrir le bind_stalker.script
après la ligne
amk.on_game_load(obj) coller ça:
local i, se_obj, strn_id, strn
for i = 1, 65535 do
se_obj = alife():object(i)
if se_obj and IAmAStalker[se_obj:clsid()] and se_obj.smart_terrain_id then
strn_id = se_obj:smart_terrain_id()
if strn_id ~= 65535 then
strn = alife():object( strn_id )
if strn == nil or strn:clsid() ~= clsid.smart_terrain then
get_console():execute("load ~~~ Olala! Found non-existent smart terrain member: "..se_obj:name().." strn_id="..tostring(strn_id))
get_console():execute("load ~~~ Try to clear smart_terrain_id.")
se_obj:clear_smart_terrain()
sim_statistic.remove( se_obj )
end
end
end
end
get_console():execute("flush")
Enregistrer la modif.
Auteur: WhatAbout