Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed" mission states still display as succeeded #15126

Open
1 of 2 tasks
Regalis11 opened this issue Nov 12, 2024 Discussed in #15028 · 1 comment
Open
1 of 2 tasks

"Failed" mission states still display as succeeded #15126

Regalis11 opened this issue Nov 12, 2024 Discussed in #15028 · 1 comment
Assignees
Labels
Bug Something isn't working Code Programming task Modding Modding-related feature request or issue, or a bug that only occurs with mods Ticket The issue has been converted into an issue report.

Comments

@Regalis11
Copy link
Collaborator

Discussed in #15028

Originally posted by ubertpendragon November 2, 2024

Disclaimers

  • I have searched the issue tracker to check if the issue has already been reported.
  • My issue happened while using mods.

What happened?

When setting the state of missions to "Failed" using MissionStateAction, the failure text is properly displayed, but the game still shows a positive check mark on the mission
image

Mission type: abandonedoutpost
<MissionStateAction missionidentifier="hostagesituation" operation="Set" value="5" />

public override int State
{
get { return base.State; }
set
{
if (state != value)
{
base.State = value;
if (state == HostagesKilledState && !hostagesKilledMessage.IsNullOrEmpty())
{
CreateMessageBox(string.Empty, hostagesKilledMessage);
}
}
}
}
public override bool DisplayAsCompleted => State > 0 && requireRescue.None();
public override bool DisplayAsFailed => State == HostagesKilledState;

Failure states usually don't really work across the board and are hard to find in the code as well

Reproduction steps

  1. Start a Dynamic Europa campaign https://steamcommunity.com/sharedfiles/filedetails/?id=2532991202
  2. setreputation coalition 50
  3. triggerevent missionevent_hostagesituation
  4. Go to the station with the mission
  5. Use this event:
    <ScriptedEvent identifier="MISSIONSTATEACTIONTEST">
      <MissionStateAction missionidentifier="hostagesituation" operation="Set" value="5" />
    </ScriptedEvent>

Bug prevalence

Happens every time I play

Single player or multiplayer?

Single player

-

No response

Version

v1.6.19.1 (Unto the Breach Update Hotfix 2)

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

No response

@Regalis11 Regalis11 added Bug Something isn't working Code Programming task Modding Modding-related feature request or issue, or a bug that only occurs with mods Ticket The issue has been converted into an issue report. labels Nov 12, 2024
@Regalis11 Regalis11 self-assigned this Nov 12, 2024
@Regalis11
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Code Programming task Modding Modding-related feature request or issue, or a bug that only occurs with mods Ticket The issue has been converted into an issue report.
Projects
None yet
Development

No branches or pull requests

1 participant