Jump to content

How does the game determine where to send Alien Terror missions?


magic9mushroom

Recommended Posts

Okay, I know ACTS.DAT isn't used when determining where to send Terror missions (since all the Terror values are 0), and my understanding is that ZONAL.DAT isn't used either (from what I hear, the aliens continue to attempt Terror after all values in ZONAL.DAT have been set to zero; moreover, there are several zones in ZONAL.DAT which don't have any cities).

 

So, how does the game determine where to send the Alien Terror mission for a given month? I can't find any data about it on UFOpaedia.

 

-m9m

Link to comment
Share on other sites

I believe it's just randomly chosen from from ZONAL first, then a city either within the zone or nearby to it (at least that's how I remember it was explained. Not sure who anymore, maybe it was Seb76 or Zaimoni). ;)

 

- Zombie

Link to comment
Share on other sites

I believe it's just randomly chosen from from ZONAL first, then a city either within the zone or nearby to it (at least that's how I remember it was explained. Not sure who anymore, maybe it was Seb76 or Zaimoni). wink.png

 

- Zombie

 

Nope. Just tested this with a hacked ZONAL.DAT: I set everything except Europe to 00, but on three reloads I got Terror in Europe, North America and South America. My guess would be a fixed value in the executable, but I've no idea how to extract stuff from there.

Link to comment
Share on other sites

Nope. Just tested this with a hacked ZONAL.DAT: I set everything except Europe to 00, but on three reloads I got Terror in Europe, North America and South America. My guess would be a fixed value in the executable, but I've no idea how to extract stuff from there.

 

Here are the regional weights when the game spawns a Terror mission (source: OpenXCom)

  • North America: 18
  • Arctic: 4
  • Antarctic: 4
  • South America: 10
  • Europe: 16
  • North Africa: 12
  • South Africa: 8
  • Central Asia: 12
  • Southeast Asia: 15
  • Siberia: 10
  • Australia: 10

Link to comment
Share on other sites

Here are the regional weights when the game spawns a Terror mission (source: OpenXCom)

  • North America: 18
  • Arctic: 4
  • Antarctic: 4
  • South America: 10
  • Europe: 16
  • North Africa: 12
  • South Africa: 8
  • Central Asia: 12
  • Southeast Asia: 15
  • Siberia: 10
  • Australia: 10

I am 99.99% sure you're wrong about Arctic and Antarctic. If OpenXCom agrees with you then it's wrong too.

 

(I tested this 132 times, enough to get 10 instances for every other zone there. Zero for Arctic and Antarctic. The probability of never rolling that 8 out of 119 is 0.000102; that's well into significant territory.)

Link to comment
Share on other sites

I am 99.99% sure you're wrong about Arctic and Antarctic. If OpenXCom agrees with you then it's wrong too.

 

It's not possible to have Terror missions in the Arctic/Antarctic because there are no cities on those regions, that's why you're getting 0 missions. I should have removed those values from the list, like I removed the values for the Atlantic/Indian oceans (no cities there too). Those values are only used for determining Retaliation missions in the case of the Arctic/Antarctic/Atlantic/Indian.

 

(I tested this 132 times, enough to get 10 instances for every other zone there. Zero for Arctic and Antarctic. The probability of never rolling that 8 out of 119 is 0.000102; that's well into significant territory.)

 

While testing 132 times is a lot of effort, even if you tested 1000 times you could still get a series of results that doesn't correspond to the theoretical distribution based on the predefined weights, regardless of the probability of that series of results happening. That's the problem with those empirical tests - if you're only relying on those results you could be basing your entire conclusions on flawed data because the sample was not large enough.

 

OpenXCom reverse engineered the original code, so it determined how exactly the values on the game files (ZONAL.DAT and others) are used by the engine. The developers had to figure it all out by themselves so it's possible that mistakes were made, and Warboy has figured out a couple of them simply because of my questions that made him recheck the original code.

 

It's a matter of deductive vs inductive logic

Link to comment
Share on other sites

 

 

It's not possible to have Terror missions in the Arctic/Antarctic because there are no cities on those regions, that's why you're getting 0 missions. I should have removed those values from the list, like I removed the values for the Atlantic/Indian oceans (no cities there too). Those values are only used for determining Retaliation missions in the case of the Arctic/Antarctic/Atlantic/Indian.

 

You're the one who said those were the regional weights for a Terror mission. :P

 

But yeah, the initial values for ZONAL.DAT minus the six regions without cities (Arctic, Antarctic, Pacific, N Atlantic, S Atlantic, Indian Ocean) sounds pretty plausible.

Link to comment
Share on other sites

But yeah, the initial values for ZONAL.DAT minus the six regions without cities (Arctic, Antarctic, Pacific, N Atlantic, S Atlantic, Indian Ocean)

 

Pacific has a city (Hawaii) so terror missions can spawn there

 

You're the one who said those were the regional weights for a Terror mission. tongue.png

 

I was trying to make it simple to understand since the values are also used for Retaliation :P

Link to comment
Share on other sites

Incidentally...

 

While testing 132 times is a lot of effort, even if you tested 1000 times you could still get a series of results that doesn't correspond to the theoretical distribution based on the predefined weights, regardless of the probability of that series of results happening. That's the problem with those empirical tests - if you're only relying on those results you could be basing your entire conclusions on flawed data because the sample was not large enough.

 

OpenXCom reverse engineered the original code, so it determined how exactly the values on the game files (ZONAL.DAT and others) are used by the engine. The developers had to figure it all out by themselves so it's possible that mistakes were made, and Warboy has figured out a couple of them simply because of my questions that made him recheck the original code.

 

It's a matter of deductive vs inductive logic

 

I'm aware of the issue. That's why I didn't at any point make claims about what the ratios were (only what they weren't), and went for a 99.9% confidence before even saying what they weren't.

 

Theory is the only way to get understandable and trustworthy answers, certainly, but if a theory doesn't explain empirical facts it's not describing reality. What we just found out about the zone selection for Retaliation is a good example of how you need both; explanations without testing are treacherous, while tests without explanations are blind. :)

Link to comment
Share on other sites

What we just found out about the zone selection for Retaliation is a good example of how you need both; explanations without testing are treacherous, while tests without explanations are blind. smile.png

 

Exactly. This is why I like people still testing the original game to see how their results compare to OpenXCom's implementation of those same features :)

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...