long-war-2 / lwotc

Port of Long War 2 to XCOM 2's War of the Chosen expansion
342 stars 89 forks source link

Disable the Lost and Abandoned mission #521

Closed Favid closed 5 years ago

Favid commented 5 years ago

Toggling the Lost and Abandoned mission on will result in LWOTC not working properly. Though this is mentioned in the setup guides, many players don't read them and will enable the mission, not realizing that their game will eventually stop working. To prevent this, we should prevent the player from toggling the mission on.

UIShellNarrativeContent.BuildMenu() handles creating the checkbox option in the new campaign screens. This will require a Highlander change to let mods force disable the checkbox. Need to figure out exactly how to do this. An ideal way would be for the Highlander to emit an event when building the checkbox, and a mod can listen to the event and pass in a value to make the Highlander disable the checkbox. Can mods listen for events in the main menu?

Favid commented 5 years ago

Something similar to this Highlander issue may work here: https://github.com/X2CommunityCore/X2WOTCCommunityHighlander/issues/148

pledbrook commented 5 years ago

Thanks, I was planning to raise this issue myself today. Disabling the option is obviously the correct solution. We should disable the Precision Explosives second wave option as well.

Note that the Covert Infiltration mod has already implemented this.

Favid commented 5 years ago

Should we also prevent the The Nest and The Lost Towers from being turned on? This was the case in LW2.