The stand-alone mod S.T.A.L.K.E.R. Anomaly aims to be the most stable and customizable experience for fans of the S.T.A.L.K.E.R. games. It's powered by the Monolith 64-bit engine, a custom fork of the X-Ray engine.

Forum Thread
  Posts  
CTD when trying to complete tasks (Games : S.T.A.L.K.E.R.: Call of Pripyat : Mods : S.T.A.L.K.E.R. Anomaly : Forum : Support : CTD when trying to complete tasks) Locked
Thread Options
Dec 22 2019 Anchor

Scenario: Playing as an Ecologist, I was in the Clear Sky base and I had upgraded a merc outfit and forgot to tear off the patch after. Saw the green bar and went to a building and removed the patch, but I don't remember seeing the notice that I was regarded as an Ecologist. Took 2 tasks and both cause a CTD with the following error.

pick_section_from_condlist xr_effects fail! obj=actor functor=drx_sl_reward_stash
! [SCRIPT ERROR]: c:/games/anomaly\gamedata\scripts\xr_logic.script:491: attempt to call a nil value

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: c:/games/anomaly\gamedata\scripts\xr_logic.script:491: attempt to call a nil value

Any help in finishing these tasks would be greatly appreciated.

Dec 22 2019 Anchor

Huh, are you up to date and can you upload your entire log along with your save game please? (Might want to try google drive or something)


Dec 23 2019 Anchor

Hi Tim, yes my game is up to date. I can't upload the save or log as I was playing Ironman mode and died stupidly... again :/

I tested attaching and removing patches in and around the Clear Sky Base and found that the message will only show at the broken fence before you enter the base. Looking at the code in xr_logic.script I'm pretty sure the error was caused by my character not being recognized in a faction because of the disguise system.

Anyway, problem solved by starting new game.

Jan 14 2020 Anchor

I have this very similiar error when trying to turn in a drugmaking kit for a task from professor Kalancha. However, I havent been using the disguise system (and im playing as Clear sky). Could it be caused by one of the hotfixes or something? Here's my part of the log, just in case:

pick_section_from_condlist xr_effects fail! obj=actor functor=drx_sl_reward_stash
! [LUA] SCRIPT RUNTIME ERROR
! [LUA] ... anomaly/1.5.0 beta 3.0\gamedata\scripts\xr_logic.script:491: attempt to call a nil value
! [SCRIPT ERROR]: ... anomaly/1.5.0 beta 3.0\gamedata\scripts\xr_logic.script:491: attempt to call a nil value

FATAL ERROR

[error]Expression :
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ... anomaly/1.5.0 beta 3.0\gamedata\scripts\xr_logic.script:491: attempt to call a nil value

stack trace:

EDIT: Im running hotfix 8

Edited by: Vengeance19

Jan 15 2020 Anchor

Okay, do either of you have any addons by chance? looking at a similar error, according to tdef:

"You are using some mods that edits tasks and tried to use deprecate function "drx_sl_reward_stash" which was removed"

Jan 16 2020 Anchor

Well, i tried the temporary fix ([Fix - Update 4] Addressing death_manager/npc_pda crash) to solve random crashes in the swamps. I had this temporary fix removed after these task-CTD's, but it made no difference?

Jan 16 2020 Anchor

That crash is unrelated to whatever error this is. Is that the only addon/mod you have/had?

Jan 18 2020 Anchor

Yup, no other addons. I started a new game, il see if it pops up again later

Jan 22 2020 Anchor

Having the same error, been working on tracking it down. So far, it only has occurred in the Clear Sky base, both with the Doctor (specifically, giving him the drug-making kit; others didn't crash) and with Cold (all tasks crashed, including the chimera-hunting one). The drx_sl_reward_stash function seems to occur throughout the task configs of the regular game, based on a search of my unpack (configs\misc\task\tm_marsh.ltx, ...\tm_military.ltx, etc.), so I don't think it's the problem, but I could be wrong.

I'm creating a fresh, clean install and updating to U8 + PDA fix now...

Initial testing did not reproduce the error, so that's a thing. Hmm! Re-introducing the mods - specifically, copy+pasting the gamedata folder over - also failed to re-introduce the error. As did copy+pasting the save files. Testing some more things, looking for differences, etc...

AAAAAAAAND I only just went and solved it! At least on my end, & hopefully on yours. In your Anomaly/db/updates folder, look for anything that doesn't belong. For me, it was a set of five hotfix .db0 files, one of which presumably contained the offending content. Probably WAS that deprecated script being called after all, I reckon. Ha! Deleting those in my original install completely solved the problem for me. A correct clean install doesn't have these files, so worst comes to worst I think you can clean install and port over everything you modded in, then copy your saves over and resume from there. Hope this helps!

Jan 29 2020 Anchor

Yup, you fixed it for me too mercplan. I had this CTD the other day with a new save, but this time with Cold and turning in banditpatches. Now i tried removing these 5 hotfix.db0 files quickly like you said and it worked immediately !! Are they leftovers from a old hotfix or something? Good find and thanks for the share !!

May 17 2020 Anchor

Merc, your a legend fixed my issue right away as well thanks man.

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.