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  
[HELP] Ecologist escort task bug - Clear Sky (Warfare) (Games : S.T.A.L.K.E.R.: Call of Pripyat : Mods : S.T.A.L.K.E.R. Anomaly : Forum : Support : [HELP] Ecologist escort task bug - Clear Sky (Warfare)) Locked
Thread Options
Mar 6 2021 Anchor

Hi,

I was playing Anomaly ver.1.5.1 with mods when i noticed a bug when trying to complete the scientist escort task for Spore when he spawns as a trader in a captured base , basically the task wont get completed when i return back to the camp marked on the PDA , if i talk to the ecologist the default companion dialog pops up and if i talk to Spore nothing regarding the task appears.

Mods List:

2021 03 06 18 54 28 STALKER Anom

I've already tried : without mods , saving and reolading , leaving the level and coming back , making a new game .

I am currently trying to fix this myself but my knowledge on scripting and the stalker file system is limited and any help would be very much appreciated, in the meantime ill share what i found regarding the task :

Task id :

sim_default_csky_trader_task_3 (if taken in a captured base)

mar_base_owl_stalker_trader_task_3 (if taken in the cs main base)

Files that i found regarding the task:

------------

dialogs_marsh.script :

i suppose the problem is in this file but im not sure at all.

dialogs_marsh.ltx

tm_warfare.ltx:

2021 03 06 19 34 32 F Stalker A

st_quests_warfare.xml (task dialogs):

2021 03 06 19 37 26 F Stalker A

the sim_deafult_csky_trader_task_3_finish never seems to get triggered and is unclear if it is a trader dialog or a ecologist companion dialog.

-----------

For now that is all i got any suggestions or insights on how this works or on how to fix this are very much appreciated.

Thank You.





Edited by: (°ç°)

Mar 7 2021 Anchor

Are you saying that you left the Ecologist on his own and went off somewhere? The task is to escort him for the duration of the mission, I think there is a limit to how far away you can be, something like 50m.

Mar 7 2021 Anchor

No that is one of the conditions to reset your pointer in the PDA and update the task i belive, what i am trying to fix is that when they are done analysing the anomaly and i head back to camp the task doesent get completed and no dialog to cemplete it pops up, the task that i am talking about btw is a default repeatable one that is very common while you play as clear sky and thats why i want to fix it.

Mar 7 2021 Anchor

So you didn't leave the Ecologist and they completed their analysis of the anomaly, then you escorted them back to the Clear Sky base?

Sorry but I do not understand the problem from your end, the escort task also uses code in task_functor.script from line 411, for the target_functor. You may find your answer there.

Mar 7 2021 Anchor

The task works fine if i take it in the clear sky base, but with warfare enabled you can take the same task in a captured base for example in rostok once you capture the duty base, Spore will spawn as a trader and give you the task but when you return to the base after they completed the anomaly scan nothing happens and the dialog with the ecologist squad doesnt change like when you take it in the cs base .

Sorry if this is unclear or messy ,this is my first time posting.

Mar 7 2021 Anchor

So Spore is in Rostok now and not in the Great Swamps? This is getting really weird.

Can you get the target name of Spore in Rostok, is he sim_default or mar_base_owl_stalker_trader? I checked the tm_marsh.ltx for Spores Escort task and it uses a different target_functor. It could be that the target_functor should be the same as in tm_warfare.ltx, but thats just a guess at this point.

Mar 9 2021 Anchor

Sorry he's not Spore he just has the same model and he is a sim_default. Ill try to check those scripts then ty.


Mar 9 2021 Anchor

6. Quest fixes: assault tasks, smart control tasks, scientist escort tasks
These quests are now warfare-compatible. You'll start seeing previously-missing quests such as 'eliminate mutants', 'raid enemy faction outpost', 'hostage rescue', etc.

'Escort the ecologists' is no longer broken when accepted from Spore or Hermann. When accepted from a warfare trader, the target anomaly field is now always on-level.

I found this in the description of WARFARE ALIFE OVERHAUL

Mar 10 2021 Anchor

Getting exactly the same problem, but with different game settings.

I am playing Anomaly 1.5.1 without any mods and warfare is disabled.

What happened:

- Got quest to escort ecologists from Tukarev in Jupiter.

- Escorted the ecologists, they perfomed their researches and quest moved to escort them back stage.

- Escorted them back.

- I can "finish" the quest by talking to either of those 2 ecologists I've had to escort. As long as I am near the science bunker. Yet it doesn't finish the quest. It does give the reward however (only the first time).

- Quest is stuck and unfinishable. 2 ecologists are stll considered companions. When I am near the bunker I still see the same "finish quest" dialog which does nothing.

Just noticed that talking to escorted scientists actually ends another quest instead of ending escort quest.

The quest it ends is Anomalous Research (Bring Sakharov a Stone Flower).

Mar 12 2021 Anchor

woah ok , thanks for the insight ill try to fiddle with the mod and the files it replaces , ill let u know.

Acemax wrote:

6. Quest fixes: assault tasks, smart control tasks, scientist escort tasks
These quests are now warfare-compatible. You'll start seeing previously-missing quests such as 'eliminate mutants', 'raid enemy faction outpost', 'hostage rescue', etc.

'Escort the ecologists' is no longer broken when accepted from Spore or Hermann. When accepted from a warfare trader, the target anomaly field is now always on-level.

I found this in the description of WARFARE ALIFE OVERHAUL

Ill try to look into your task as well whitewolf9313 .

Edited by: (°ç°)

Mar 27 2021 Anchor

whitewolf9313

Today the exact same thing happened to me too. After I escorted the ecologists back to the scientist's bunker in Jupiter, the "Anomalous Research" from Sakharov quest was completed instead of the "Escort the Ecologist" Tukarev tasked me with.

By digging through "dialogs_jupiter.script", you can see the following function, which is triggered when you reply with "Okay", during the dialogue with the scientists right after they thank you:

function ecolog_companion_task_2_complete_task(a,b)
	-- xQd
	local tm = task_manager.get_task_manager()
	local task_info = tm.task_info
	if (task_info) then
	       if (task_info["sim_default_ecolog_trader_task_1"]) then 
			task_manager.get_task_manager():set_task_completed("sim_default_ecolog_trader_task_1")
               elseif (task_info["yan_stalker_sakharov_task_2"]) then 
			task_manager.get_task_manager():set_task_completed("yan_stalker_sakharov_task_2") -- this is the actual code that executed, which is wrong in our case
               elseif (task_info["jup_b6_scientist_tech_task_1"]) then
			task_manager.get_task_manager():set_task_completed("jup_b6_scientist_tech_task_1") -- this is the code that should have executed in our case
	       end
	end
	-- if db.actor and load_var(db.actor,"warfare_escort_task_smart") then
		-- task_manager.get_task_manager():set_task_completed("sim_default_ecolog_trader_task_1")
	-- else
		-- task_manager.get_task_manager():set_task_completed("jup_b6_scientist_tech_task_1")
	-- end
	-- xQd end
	a:stop_talk()
	b:stop_talk()
end

In order to fix this bug, these 2 lines should be removed from the function:

elseif (task_info["yan_stalker_sakharov_task_2"]) then 
	task_manager.get_task_manager():set_task_completed("yan_stalker_sakharov_task_2")

For the curious, Anomaly defines "yan_stalker_sakharov_task_2" as the "Anomalous Research" task from Sakharov. Therefore, if you have this quest active in your PDA, then the code triggers the completion of "Anomalous Research" instead of "jup_b6_scientist_tech_task_1", which is our "Escort the Ecologists" task.

So why is "yan_stalker_sakharov_task_2" part of this if-else block since it's not even a escort task? Well, years ago, I defined "yan_stalker_sakharov_task_2" in CoC's Warfare addon as an actual ecologist escort task. Warfare was ported to Anomaly mod, but the Anomaly devs converted "yan_stalker_sakharov_task_2" to a fetch-the-artefact quest, and forgot to remove it from the if-else block from above, causing this issue. You can even find the old Sakharov escort quest commented out in st_quests_warfare.xml if you search for "ESCORT ECOGS FOR SAKHAROV TASK".

Now some might wonder, what if the player had all 3 escort tasks active at the same time, and they're trying to complete the last one from the if-else block, namely "jup_b6_scientist_tech_task_1"? Wouldn't the code trigger the completion of "sim_default_ecolog_trader_task_1" instead, since it's the first from the if-else statements?

The answer is no(in CoC's Warfare), because these 3 quests couldn't be operate at the same time(this is enforced as pre-conditions in the tm_.ltx files). When Anomaly devs modified "yan_stalker_sakharov_task_2" to become a fetch task, they also removed this precondition check, allowing "yan_stalker_sakharov_task_2" and "jup_b6_scientist_tech_task_1" to happen simultaneously, thus introducing this bug of not triggering completion of "jup_b6_scientist_tech_task_1" if "yan_stalker_sakharov_task_2" aka "Anomalous Research" is also active.

Edited by: hexef

Oct 21 2021 Anchor

I had the exact same problem with the escort mission not finishing, and just wanted to confirm that this fix does indeed work! Thanks hexef!

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.