Author Topic: [DONE][Suggestion] Option to force percentageOutsideUfo on any mission  (Read 1427 times)

Offline Delian

  • Commander
  • *****
  • Posts: 507
    • View Profile
When a deployment for a mission site (alien mission with objective: 3) uses customUfo setting and then uses an addUFO mapscript command, the added ufo is currently not recognized as an actual ufo, so in the deployment data, the percentageOutsideUfo setting of the deployed units is ignored when placing units on the map.

I suggest that the functionality of "percentageOutsideUfo" be extended to work for mission sites that had a custom ufo placed on them. This would make it easier for modders to control how enemy units are deployed on such missions.
« Last Edit: April 29, 2024, 01:57:21 am by Delian »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9104
    • View Profile
Re: percentageOutsideUfo not functioning with customUfo+addUfo
« Reply #1 on: April 21, 2024, 03:25:58 pm »
Not a bug.

It works as intended (and as documented).

Please open a suggestion, if a new functionality is desired.

Offline Delian

  • Commander
  • *****
  • Posts: 507
    • View Profile
Re: percentageOutsideUfo not functioning with customUfo+addUfo
« Reply #2 on: April 21, 2024, 03:58:04 pm »
Ah, sorry, didn't read documentation carefully enough. As for making a suggestion, I can't, because I'm not a modder and it's not a QoL suggestion.

However, one thing I can say is that most deployments in XPZ have custom (not 0 or 100) percentageOutsideUfo value set for each unit, even though it doesn't function. So I can only assume that Dio thought percentageOutsideUfo worked for mission sites as he put some thought into what value to set each time.

Well, nevermind then. Can be closed.
« Last Edit: April 21, 2024, 04:17:56 pm by Delian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Answered] percentageOutsideUfo not functioning with customUfo+addUfo
« Reply #3 on: April 21, 2024, 11:57:02 pm »
For what it's worth, making percentageOutsideUfo work with customUfo would be very useful to me. Seconded!

Offline Delian

  • Commander
  • *****
  • Posts: 507
    • View Profile
Re: [Answered] percentageOutsideUfo not functioning with customUfo+addUfo
« Reply #4 on: April 22, 2024, 12:17:37 am »
Ok, since SS is interested and he is a modder... I edited the first post into a suggestion.
« Last Edit: April 29, 2024, 02:00:35 am by Delian »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9104
    • View Profile
Re: [DONE][Suggestion] Option to force percentageOutsideUfo on any mission
« Reply #5 on: August 16, 2024, 04:42:34 pm »
Done.

Sample ruleset:

Code: [Select]
alienDeployments:
  - type: STR_TERROR_MISSION
    forcePercentageOutsideUfo: true  # percentageOutsideUfo will be forced even though this is not UFO crash/landing site
    customUfo: STR_HARVESTER

mapScripts:
  - type: URBAN
    commands:
    - type: addUFO
    - type: addCraft
    - type: fillArea
      blocks: [3, 4, 10, 11, 12, 13, 14]
      freqs: [3, 3, 2, 2, 2, 2, 2]

Offline Delian

  • Commander
  • *****
  • Posts: 507
    • View Profile
Re: [DONE][Suggestion] Option to force percentageOutsideUfo on any mission
« Reply #6 on: August 16, 2024, 05:27:10 pm »
Great. Deployments in XPZ are troubled with bugs where all the units would either spawn inside a building (custom ufo), or outside. This will make fixing such bugs and customizing deployments in general much easier.