magic9mushroom Posted July 8, 2018 Share Posted July 8, 2018 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 More sharing options...
Zombie Posted July 8, 2018 Share Posted July 8, 2018 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 More sharing options...
magic9mushroom Posted July 9, 2018 Author Share Posted July 9, 2018 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 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 More sharing options...
Hobbes Posted July 11, 2018 Share Posted July 11, 2018 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: 18Arctic: 4Antarctic: 4South America: 10Europe: 16North Africa: 12South Africa: 8Central Asia: 12Southeast Asia: 15Siberia: 10Australia: 10 Link to comment Share on other sites More sharing options...
magic9mushroom Posted July 11, 2018 Author Share Posted July 11, 2018 Here are the regional weights when the game spawns a Terror mission (source: OpenXCom)North America: 18Arctic: 4Antarctic: 4South America: 10Europe: 16North Africa: 12South Africa: 8Central Asia: 12Southeast Asia: 15Siberia: 10Australia: 10I 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 More sharing options...
Hobbes Posted July 11, 2018 Share Posted July 11, 2018 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 More sharing options...
magic9mushroom Posted July 11, 2018 Author Share Posted July 11, 2018 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. 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 More sharing options...
Hobbes Posted July 11, 2018 Share Posted July 11, 2018 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. I was trying to make it simple to understand since the values are also used for Retaliation Link to comment Share on other sites More sharing options...
magic9mushroom Posted July 11, 2018 Author Share Posted July 11, 2018 Pacific has a city (Hawaii) so terror missions can spawn there No, that's from TFTD. Hawaii isn't a marked location in UFO. (And in any case, it didn't show up in my test.) Link to comment Share on other sites More sharing options...
Hobbes Posted July 11, 2018 Share Posted July 11, 2018 No, that's from TFTD. Hawaii isn't a marked location in UFO. (And in any case, it didn't show up in my test.) Thanks for the correction Link to comment Share on other sites More sharing options...
magic9mushroom Posted July 12, 2018 Author Share Posted July 12, 2018 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 More sharing options...
Hobbes Posted July 12, 2018 Share Posted July 12, 2018 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. 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 More sharing options...
magic9mushroom Posted March 18, 2020 Author Share Posted March 18, 2020 Does somebody know what the weights are for TFTD? I know the zones which don't get Alien Surface Attacks are different (it's Antarctic/Arctic only, of the zones in ZONAL.DAT). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now