Author Topic: Mission generation question.  (Read 13978 times)

Offline Nord

  • Commander
  • *****
  • Posts: 1747
  • The Gate is open.
    • View Profile
Mission generation question.
« on: January 17, 2017, 11:05:19 am »
Please explain me a thing about missions:
When we use missionscript to spawn an alien probe mission, in first month (script gameStart), this kind of missions can be spawned also separately, by globe, regions, and so on? And if yes, how can i define "firstMonth" for all UFO missions?
And if no, so why there is no missionscripts for all other UFO missions?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9098
    • View Profile
Re: Mission generation question.
« Reply #1 on: January 17, 2017, 11:37:50 am »
Please explain me a thing about missions:
When we use missionscript to spawn an alien probe mission, in first month (script gameStart), this kind of missions can be spawned also separately, by globe, regions, and so on? And if yes, how can i define "firstMonth" for all UFO missions?
And if no, so why there is no missionscripts for all other UFO missions?

Man, this is EXTREMELY hard to read and understand.
I'll try to answer... but I have no idea if I'm even answering the correct questions.

- You can spawn missions "separately" (whatever what means); by mission type, by region, by race, etc.
- I don't have a slightest clue what you mean by "by globe", so I'll skip that
- You can define first month by the "firstMonth" attribute (at the top of the vanilla mission script file, there is a documentation of all available ruleset attributes... read that, if you haven't already)
- There is no (complicated) mission script for other missions, because they are using a different approach (which was there before mission scripting), using alien strategy table, as described here:
 * https://openxcom.org/forum/index.php/topic,3287.msg77582.html#msg77582
 * https://openxcom.org/forum/index.php/topic,3287.msg77736.html#msg77736
 * https://www.ufopaedia.org/index.php/Alien_Missions_in_Enemy_Unknown_(OpenXcom)

Code: [Select]
  - type: recon
    firstMonth: 1
  - type: invasion
    firstMonth: 6

This code covers all 5 standard missions (probe, interdiction, resource raid, infiltration and alien base).

Offline Nord

  • Commander
  • *****
  • Posts: 1747
  • The Gate is open.
    • View Profile
Re: Mission generation question.
« Reply #2 on: January 17, 2017, 12:03:51 pm »
Man, this is EXTREMELY hard to read and understand.
I'll try to answer... but I have no idea if I'm even answering the correct questions.
Sorry for that. I am ashamed constantly with my por english.
Quote
- There is no (complicated) mission script for other missions, because they are using a different approach
Exactly what i mean when writing "by regions", just wasnt know a " mission table" term. By the way, ufopedia link is empty or broken.

So you mean that this code in missionScripts:
Code: [Select]
  - type: recon
    firstMonth: 1
  - type: invasion
    firstMonth: 6
Will take effect on vanilla missions?
That's what i wanted to hear, thank you once more.
« Last Edit: January 17, 2017, 12:08:35 pm by Nord »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9098
    • View Profile
Re: Mission generation question.
« Reply #3 on: January 17, 2017, 12:20:43 pm »
By the way, ufopedia link is empty or broken.

The link is fine, it's just the forum ignores the last character for some reason... copy-paste the URL directly to your browser and it should work.

So you mean that this code in missionScripts:
Code: [Select]
  - type: recon
    firstMonth: 1
  - type: invasion
    firstMonth: 6
Will take effect on vanilla missions?

Yes, this code is executing those 5 vanilla missions, which I mentioned before.

Offline Nord

  • Commander
  • *****
  • Posts: 1747
  • The Gate is open.
    • View Profile
Re: Mission generation question.
« Reply #4 on: January 17, 2017, 12:54:20 pm »
Ok, i understand. Thank you.
But if i want to define firstmonth for each type of vanilla mission separately?(Do i place this word right? :-) )
 

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9098
    • View Profile
Re: Mission generation question.
« Reply #5 on: January 17, 2017, 01:28:07 pm »
But if i want to define firstmonth for each type of vanilla mission separately?(Do i place this word right? :-) )

Then you would need to stop using the "mission table" and define all missions separately using mission script.

Offline Nord

  • Commander
  • *****
  • Posts: 1747
  • The Gate is open.
    • View Profile
Re: Mission generation question.
« Reply #6 on: January 17, 2017, 01:52:58 pm »
Aaaaand... I got it. Thank you again.

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Mission generation question.
« Reply #7 on: January 17, 2017, 07:50:41 pm »
But if i want to define firstmonth for each type of vanilla mission separately?(Do i place this word right? :-) )

If I'm understanding you correctly you want to be able to determine the month of appearance of the 5 missions? So that Probe missions would appear from month 0 onwards, then Resource Raid from month 1, etc.?

Offline Nord

  • Commander
  • *****
  • Posts: 1747
  • The Gate is open.
    • View Profile
Re: Mission generation question.
« Reply #8 on: January 18, 2017, 10:35:26 am »
Something like this, yes. But "recon" and "invasion" is good enough too.

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Mission generation question.
« Reply #9 on: January 18, 2017, 06:17:50 pm »
Something like this, yes. But "recon" and "invasion" is good enough too.

Fair enough. I asked because at a certain point I considered something similar to my Area 51 mod, and although it's feasible I dropped the idea due to other reasons. And if you were interested I'd be willing to have a try, although I'd need more specific info about what your goals for this feature.

Offline Nord

  • Commander
  • *****
  • Posts: 1747
  • The Gate is open.
    • View Profile
Re: Mission generation question.
« Reply #10 on: January 18, 2017, 08:56:25 pm »
Well... First of all, i work on TFTD mod. And idea was simple - move USOs to the second-third month, because other types of missions must take place before them.

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Mission generation question.
« Reply #11 on: January 18, 2017, 09:54:10 pm »
Well... First of all, i work on TFTD mod.

UFO, TFTD, Apoc, Dune, Terminator... names change but how missionScript works stays the same :)

Quote
And idea was simple - move USOs to the second-third month, because other types of missions must take place before them.

Do you literally mean no USOs during the first-second months?

Offline Nord

  • Commander
  • *****
  • Posts: 1747
  • The Gate is open.
    • View Profile
Re: Mission generation question.
« Reply #12 on: January 19, 2017, 07:11:18 am »
Yes.

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Mission generation question.
« Reply #13 on: January 19, 2017, 05:52:03 pm »
Yes.

The issue would be which non-UFO missions would replace the vanilla ones during the first months. And, while not related to the missionScripts, I can't help thinking about the effect this will have on research, since you're creating a bottleneck by restricting the recover of Aquaplastics, Zrbite and other USO components after the initial months.

Offline Nord

  • Commander
  • *****
  • Posts: 1747
  • The Gate is open.
    • View Profile
Re: Mission generation question.
« Reply #14 on: January 19, 2017, 09:01:43 pm »
The issue would be which non-UFO missions would replace the vanilla ones during the first months. And, while not related to the missionScripts, I can't help thinking about the effect this will have on research, since you're creating a bottleneck by restricting the recover of Aquaplastics, Zrbite and other USO components after the initial months.
New missions are allready implemented(all, except first one... one more sprite needed). And research tree are reworked too. I need to draw some more ufopedia pages and two or three spritesheets for units, and release version will be done. Just have not much free time now.