Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Author Topic: combatFreighterCombatUseFractionWhenPriority fraction is (usually) ignored  (Read 520 times)

Dark.Revenant

  • Admiral
  • *****
  • Posts: 2902
    • View Profile
    • Sc2Mafia

combatFreighterCombatUseFractionWhenPriority is set to 0.2 and a large-sized combat freighter (for example the Venture) is marked Priority.  No other ships are marked Priority.

Expected behavior: 20% of cruisers will be Ventures.
Actual behavior: 100% of cruisers are Ventures.

Expected behavior is established if (in the above example), all cruiser-sized ships are marked Priority.  In effect, the Priority is overriding the CombatUseFraction; a fraction of 0 means no Ventures, a fraction of >0 means all Ventures; 0.2 is essentially identical to 1.
« Last Edit: June 08, 2023, 11:40:54 PM by Dark.Revenant »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 26086
    • View Profile

Thank you for the report! If I'm understanding right, this is working as intended - it's not meant to let you cross-pollinate priority and non-priority ships; the fleet factory code is not set up for that. Its only function is as you describe in "expected behavior is established".
Logged

Zsar

  • Captain
  • ****
  • Posts: 325
    • View Profile

What does the "WhenPriority" in "combatFreighterCombatUseFractionWhenPriority" mean, if it specifically does not work, "when [pertaining ships are marked as] priority"?
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 26086
    • View Profile

Per what DR said in his post, it specifically does work when the ships are marked priority, it just does not allow the selection of non-priority ships as a fallback.

combatFreighterCombatUseFractionWhenPriority applies to priority ships, combatFreighterCombatUseFraction applies to non-priority ships, there's no value that applies to priority ships but then allows picking non-priority if that check fails, snice fleet creation just doesn't work like that.
Logged