[LOGGED] [1900.8] Non Player Side turn Hostile (from Unfriendly) when Save is Loaded

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
Knightpawn
Posts: 717
Joined: Mon Dec 02, 2024 12:28 pm

[LOGGED] [1900.8] Non Player Side turn Hostile (from Unfriendly) when Save is Loaded

Post by Knightpawn »

(Not sure if this is specific to 1900.8 or legacy builts)

I was playing Icebreakers. The scenario has an elaborate point system that works as a ladder that makes Russia consider NATO as hostile if enough "heat points" are scored. Before saving Russia had not crossed the ladder and was still treating NATO as Unfriendly. But after I save and load the save, Russia treats Nato as Hostile, despite that the ladder threshold is show to be the same as before the save.

My theory is that it has to do with the activation of two air intercept strike missions. They are set to intercept unfriendly planes that enter into a specified range. But once the intercept mission acquires a specific target is a sufficient condition to change posture from Unfriendly to Hostile upon loading a save - but not if one continues playing without saving.

In short: If before the save there is at least one strike mission of Side A with an assigned target of Side B, when the save is loaded Side A will treat Side B as hostile regardless of the just unfriendly posture immediately before the save
Attachments
Change of Posture.zip
(1.08 MiB) Downloaded 4 times
User avatar
Deserere
Posts: 590
Joined: Wed Oct 13, 2021 1:15 pm

Re: [1900.8] Non Player Side turn Hostile (from Unfriendly) when Save is Loaded

Post by Deserere »

LOGGED: 0017599
Si Spiritus pro nobis, quis contra nos?
Knightpawn
Posts: 717
Joined: Mon Dec 02, 2024 12:28 pm

Re: [LOGGED] [1900.8] Non Player Side turn Hostile (from Unfriendly) when Save is Loaded

Post by Knightpawn »

For the particular scenario I think I have a fix with a new repeatable event

Trigger: scenario is loaded
Condition: Checks that another event that turns Russia Hostile is still active (i.e. Russia should not supposed to be hostile yet)
Action: Russia considers NATO unfriendly.

But I believe that a general fix is needed for Air intercepts launched against non hostile bogeys and for inactive strikes with assigned targets as each time a save is loaded and the intercept has "targets" (assigned before the save), then the posture changes.

Here is the condition

Code: Select all

-- Condition: event X (non-repeatable) has not yet fired
local ev = ScenEdit_GetEvent('Russia Becomes Hostile', 4)   -- level 4 = event detail only
if ev == nil then
  return false                          -- event missing/renamed: fail safe
end
local a = ev.isActive
-- docs list isActive as Yes/No; some builds return a boolean, so accept both
if a == true or a == 'Yes' or a == 'yes' or a == 'True' then
  return true
end
return false
and the action

Code: Select all

-- Action: Russia posture towards NATO = Unfriendly
local ok = ScenEdit_SetSidePosture('Russia', 'NATO', 'U')
if not ok then
  print('SetSidePosture failed: ' .. tostring(_errmsg_))
end
still testing it
Kushan04
Posts: 1267
Joined: Tue Jun 28, 2005 9:27 pm
Location: USA
Contact:

Re: [LOGGED] [1900.8] Non Player Side turn Hostile (from Unfriendly) when Save is Loaded

Post by Kushan04 »

While this can be fixed via Lua, I want the dev team to look at it before I implement any changes into the scenario.
Post Reply

Return to “Tech Support”