Question about defcon for coders

Have a question about how to mod something? Or have an issue with one of our mod tools? Post here.

Moderators: Balthagor, Moderators

Post Reply
User avatar
DesTryke
Sergeant
Posts: 15
Joined: Oct 21 2021
Human: Yes

Question about defcon for coders

Post by DesTryke »

Is there a way to disable automatic defcon change in .HAPX? Maybe there is a link to the code to disable it?
User avatar
Balthagor
Supreme Ruler
Posts: 22099
Joined: Jun 04 2002
Human: Yes
Location: BattleGoat Studios

Re: Question about defcon for coders

Post by Balthagor »

The HAPX files are just the User Interface. The mechanic for how Defcon changes is hard coded.
Chris Latour
BattleGoat Studios
chris@battlegoat.com
User avatar
DesTryke
Sergeant
Posts: 15
Joined: Oct 21 2021
Human: Yes

Re: Question about defcon for coders

Post by DesTryke »

Balthagor wrote: Oct 22 2021 The HAPX files are just the User Interface. The mechanic for how Defcon changes is hard coded.
I have defcon changer interface from 2020 and it works. Maybe there is a way to break the automatic defcon change through some priorities for the interface commands?
User avatar
Balthagor
Supreme Ruler
Posts: 22099
Joined: Jun 04 2002
Human: Yes
Location: BattleGoat Studios

Re: Question about defcon for coders

Post by Balthagor »

Minister priorities are not connected to the rules that were added for DEFCON. When you change it in the interface you took from 2020, you're just changing a displayed value in the UI, it likely changes nothing in the game mechanics and calculations. I expect you're pushing a button that's no longer connected to code.
Chris Latour
BattleGoat Studios
chris@battlegoat.com
Post Reply

Return to “Modding Issues & Support”