[BUG?] | Achievements | "Clear Skies" & "Wishful Thinking" |

MarkedOne
Scavenger
Posts: 2
Joined: 04 May 2016, 06:43

[BUG?] | Achievements | "Clear Skies" & "Wishful Thinking" |

Postby MarkedOne » 04 May 2016, 06:53

Hello,
first of all thanks for a great sandbox mod, it rocks!
Would you kindly please explain me how to get this two achievements: "Clear Skies" & "Wishful Thinking" and are they fully implemented into the mod in its current state?
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Call of Chernobyl version: 1.3.2
Mods: OWR, Absolute nature/absoulte structures (They can't bug scripts because they are only visual mods with retexture and etc)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Asking this because I have unpacked the db's and edited the "achievements.script" and according to the code it must be working, atleast the clear skies one, but even after I shot the heli with the RPG I didn't get it.

Code: Select all

function clear_skies_functor()
   if not (db.actor and db.actor.afterFirstUpdate) then
      return false
   end
   if has_alife_info("achieved_clear_skies") then
      return true
   end
   if (xr_statistic.actor_statistic.heli_rocket_kills >= 1) then
      db.actor:give_info_portion("achieved_clear_skies")
      news_manager.send_tip(db.actor, "st_achievement_12_unlock", nil, "clear_skies", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.clear_skies.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.clear_skies.rpt)
   end
   return has_alife_info("achieved_clear_skies")
end

Code: Select all

function wishful_thinking_functor()
   if not (db.actor and db.actor.afterFirstUpdate) then
      return false
   end
   if (has_alife_info("achieved_wishful_thinking")) then
      return true
   end
   if (has_alife_info("achieved_wishful_thinking_trigger")) then
      db.actor:give_info_portion("achieved_wishful_thinking")
      news_manager.send_tip(db.actor, "st_achievement_11_unlock", nil, "wishful_thinking", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.wishful_thinking.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.wishful_thinking.rpt)
   end
   if (level.name() == "l12u_sarcofag") then
      db.actor:give_info_portion("achieved_wishful_thinking_trigger")
   end
   return has_alife_info("achieved_wishful_thinking")
end

So I went futher and edited the script by adding all achivements for trigger, the next code gives all achivements except "clear_skies" & "wishful_thinking", thats why I'm kinda curious are these achievements ready or they are still WIP?

Code: Select all

function heavy_pockets_functor()
   if not (db.actor and db.actor.afterFirstUpdate) then
      return false
   end
   if (has_alife_info("achieved_heavy_pockets")) then
      return true
   end
   if (db.actor:money() >= 1000000) then
      db.actor:give_info_portion("achieved_duga_free")
      news_manager.send_tip(db.actor, "st_achievement_4_unlock", nil, "duga_free", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.duga_free.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.duga_free.rpt)
      db.actor:give_info_portion("achieved_clear_skies")
      news_manager.send_tip(db.actor, "st_achievement_12_unlock", nil, "clear_skies", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.clear_skies.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.clear_skies.rpt)
      db.actor:give_info_portion("achieved_geologist")
      news_manager.send_tip(db.actor, "st_achievement_13_unlock", nil, "geologist", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.geologist.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.geologist.rpt)
      db.actor:give_info_portion("achieved_heavy_pockets")
      news_manager.send_tip(db.actor, "st_achievement_1_unlock", nil, "heavy_pockets", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.heavy_pockets.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.heavy_pockets.rpt)
      db.actor:give_info_portion("achieved_infopreneur")
      news_manager.send_tip(db.actor, "st_achievement_3_unlock", nil, "infopreneur", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.infopreneur.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.infopreneur.rpt)
      db.actor:give_info_portion("achieved_mechanized_warfare")
      news_manager.send_tip(db.actor, "st_achievement_7_unlock", nil, "mechanized_warfare", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.mechanized_warfare.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.mechanized_warfare.rpt)
      db.actor:give_info_portion("achieved_patriarch")
      news_manager.send_tip(db.actor, "st_achievement_14_unlock", nil, "patriarch", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.patriarch.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.patriarch.rpt)
      db.actor:give_info_portion("achieved_radiotherapy")
      news_manager.send_tip(db.actor, "st_achievement_2_unlock", nil, "radiotherapy", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.radiotherapy.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.radiotherapy.rpt)
      db.actor:give_info_portion("achieved_rag_and_bone")
      news_manager.send_tip(db.actor, "st_achievement_9_unlock", nil, "rag_and_bone", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.rag_and_bone.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.rag_and_bone.rpt)
      db.actor:give_info_portion("achieved_silver_or_lead")
      news_manager.send_tip(db.actor, "st_achievement_6_unlock", nil, "silver_or_lead", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.silver_or_lead.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.silver_or_lead.rpt)
      db.actor:give_info_portion("achieved_tourist")
      news_manager.send_tip(db.actor, "st_achievement_8_unlock", nil, "tourist", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.tourist.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.tourist.rpt)
      db.actor:give_info_portion("achieved_well_dressed")
      news_manager.send_tip(db.actor, "st_achievement_5_unlock", nil, "well_dressed", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.well_dressed.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.well_dressed.rpt)
      db.actor:give_info_portion("achieved_wishful_thinking")
      news_manager.send_tip(db.actor, "st_achievement_11_unlock", nil, "wishful_thinking", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.wishful_thinking.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.wishful_thinking.rpt)
      db.actor:give_info_portion("achieved_completionist")
      news_manager.send_tip(db.actor, "st_achievement_10_unlock", nil, "completionist", nil, nil)
      xr_statistic.inc_actor_rank(xr_statistic.rank_rep.completionist.rnk)
      xr_statistic.inc_actor_reputation(xr_statistic.rank_rep.completionist.rpt)
   end
   return has_alife_info("achieved_heavy_pockets")
end

P.S. Are you going to make a quest for disabling the generators psi-field too like it was with the X-16 (Yantar) and X-19 (Radar)?

User avatar
Darryl
Adventurer
Posts: 207
Joined: 17 Jul 2014, 10:47

Re: [BUG?] | Achievements | "Clear Skies" & "Wishful Thinking" |

Postby Darryl » 04 May 2016, 11:39

I couldn't think of a reasonable reward for either of them so they were never finished or made available in-game.
You can enable them by uncommenting them in configs/misc/achievements.ltx and then you should be able to unlock them in-game.

In the case of 'Wishful Thinking' I couldn't even think of a good way to unlock it, anything the wish granter gives you deliberately changes the game which may not be something the player wants in order to unlock all achievements.

Consider it as cut content which never made it into the final release. :D

MarkedOne
Scavenger
Posts: 2
Joined: 04 May 2016, 06:43

Re: [BUG?] | Achievements | "Clear Skies" & "Wishful Thinking" |

Postby MarkedOne » 04 May 2016, 14:28

I see, thanks for answer.
And thanks again for the great mod with working alife and awesome freeplay.
=UPD:05.05.16=
I have an idea if it could be possible to make due the of limitations of the xray engine.
If player got the achievement clear skies it will give the ability to intercept the frequency of the helicopter, just a simple script that enables the voice files of the helicopter crew.
And found a typo in "configs\text\eng\st_achievement.xml"
line 128 "acheive" at the description of the Completionist achievement.

User avatar
Darryl
Adventurer
Posts: 207
Joined: 17 Jul 2014, 10:47

Re: [BUG?] | Achievements | "Clear Skies" & "Wishful Thinking" |

Postby Darryl » 06 May 2016, 06:25

Cheers.


Return to “General Discussion”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest