<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://temp.ufopaedia.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AAlien_Infiltration</id>
	<title>Talk:Alien Infiltration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://temp.ufopaedia.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AAlien_Infiltration"/>
	<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;action=history"/>
	<updated>2026-05-03T10:11:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62266&amp;oldid=prev</id>
		<title>Morgan525 at 09:32, 8 December 2014</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62266&amp;oldid=prev"/>
		<updated>2014-12-08T09:32:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:32, 8 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot;&gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::For other random points on the globe, the game passes the location&amp;#039;s coordinates to two routines which compares them to arrays of map coordinates that define the zone/country blocks (as we see in [[Geoscape_(EU) |Geoscape map]]).  Once it determines which block(s) the coordinates fall into, the arrays will returns the zone (and country, if there is one for the coordinates) to which those blocks are assigned.  It is these two arrays that determine what zone and/or country gets awarded/penalized points for X-COM / UFO activity. If you like, I can make some screenshots of the code to show how this works.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::For other random points on the globe, the game passes the location&amp;#039;s coordinates to two routines which compares them to arrays of map coordinates that define the zone/country blocks (as we see in [[Geoscape_(EU) |Geoscape map]]).  Once it determines which block(s) the coordinates fall into, the arrays will returns the zone (and country, if there is one for the coordinates) to which those blocks are assigned.  It is these two arrays that determine what zone and/or country gets awarded/penalized points for X-COM / UFO activity. If you like, I can make some screenshots of the code to show how this works.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::OK, so the conditions are something like: If Sign Pact is successful, then check one by one the countries for that region to find the first one who wasn&amp;#039;t been infiltrated yet. That means the assignment to countries to regions is somewhere on the EXE? And yes please, show me the screenshot about the infiltration code, I&amp;#039;m not an expert but I may be able to figure it out. :) [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 18:59, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::OK, so the conditions are something like: If Sign Pact is successful, then check one by one the countries for that region to find the first one who wasn&amp;#039;t been infiltrated yet. That means the assignment to countries to regions is somewhere on the EXE? And yes please, show me the screenshot about the infiltration code, I&amp;#039;m not an expert but I may be able to figure it out. :) [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 18:59, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;::Correct.  The &quot;sign pact&quot; section contain the assignment of countries to each zone.  For example, if the alien complete an infiltration mission in North America: (1) the routine finds the entry for the North America zone (2) checks the status for the USA in DIPLOMAT.DAT (3) if not 0, it sets the byte to have the USA sign a pact at the end of the month. If the USA status already indicates that it is in a pact, it then sets the byte to have Canada sign a pact.  In this code, Russia is only accessible if the mission occurs in Siberia. -[[User:Morgan525|Tycho]] ([[User talk:Morgan525|talk]]) 04:32, 8 December 2014 (EST)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key tempufo_wiki:diff:1.41:old-62265:rev-62266:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Morgan525</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62265&amp;oldid=prev</id>
		<title>Morgan525 at 09:25, 8 December 2014</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62265&amp;oldid=prev"/>
		<updated>2014-12-08T09:25:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:25, 8 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::Not that I see. The routine that handles updating the data every 30 minutes will go through the MISSIONS.DAT database and decrease all timers for active missions. When a timer reaches zero, it spawns the UFO to which the mission counter refers, increases the counter, and then sets the timer for the new stage.  When you shoot down a UFO, this time gets increased.  In the case of infiltration, if the value of the next stage is greater than 8, the &amp;quot;sign pact&amp;quot; routine runs.  In zones where there is more than one country, the MISSON.DAT entry resets back to stage 0 so the aliens will start to infiltrate the next country in that zone. -[[User:Morgan525|Tycho]] ([[User talk:Morgan525|talk]]) 22:51, 2 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::Not that I see. The routine that handles updating the data every 30 minutes will go through the MISSIONS.DAT database and decrease all timers for active missions. When a timer reaches zero, it spawns the UFO to which the mission counter refers, increases the counter, and then sets the timer for the new stage.  When you shoot down a UFO, this time gets increased.  In the case of infiltration, if the value of the next stage is greater than 8, the &amp;quot;sign pact&amp;quot; routine runs.  In zones where there is more than one country, the MISSON.DAT entry resets back to stage 0 so the aliens will start to infiltrate the next country in that zone. -[[User:Morgan525|Tycho]] ([[User talk:Morgan525|talk]]) 22:51, 2 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::Since you mentioned it, what&amp;#039;s the oversight that causes that Russia can&amp;#039;t be infiltrated? I&amp;#039;ve heard about this for years but no one ever explained why this happens. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 14:15, 3 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::Since you mentioned it, what&amp;#039;s the oversight that causes that Russia can&amp;#039;t be infiltrated? I&amp;#039;ve heard about this for years but no one ever explained why this happens. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 14:15, 3 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Everyone believes that (western) &lt;/del&gt;Russia is part of Europe&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, which it is, &lt;/del&gt;&amp;lt;u&amp;gt;but only the western part and only for determining the cost of starting a base.&amp;lt;/u&amp;gt;  &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;In &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code for determining what country will sign a pact, as the result &lt;/del&gt;of &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;successful &lt;/del&gt;infiltration, Russia &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;is part of &lt;/del&gt;Siberia. However, the chance of an infiltration mission in Siberia is 0 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;from the beginning of the game&lt;/del&gt;. - [[User:Morgan525|Tycho]] ([[User talk:Morgan525|talk]]) 16:06, 3 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::Russia is part of Europe &amp;lt;u&amp;gt;but only the western part and only for determining the cost of starting a base &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or awarding points for alien/X-com activity&lt;/ins&gt;.&amp;lt;/u&amp;gt;  &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;For &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;purposes &lt;/ins&gt;of infiltration, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the programmers made the path to infiltrating &lt;/ins&gt;Russia &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;go though &lt;/ins&gt;Siberia. However, the chance of an infiltration mission in Siberia is 0. - [[User:Morgan525|Tycho]] ([[User talk:Morgan525|talk]]) 16:06, 3 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::That&amp;#039;s something I had already noticed (no infiltration missions set for Siberia) but the confirmation required is how the countries are assigned to the geographical areas used by the MissionZones. Meanwhile I did a search for a previous post where I talked about this and Warboy1982 states that the location of the countries&amp;#039; name is what determines the assignment of a country to a region, which makes sense. Thanks [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 17:20, 3 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::That&amp;#039;s something I had already noticed (no infiltration missions set for Siberia) but the confirmation required is how the countries are assigned to the geographical areas used by the MissionZones. Meanwhile I did a search for a previous post where I talked about this and Warboy1982 states that the location of the countries&amp;#039; name is what determines the assignment of a country to a region, which makes sense. Thanks [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 17:20, 3 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::If you look at the differences between the zone map and the country map under the [[Geoscape_(EU) |Geoscape map]].  It would seem that any alien activity that occurs within what we consider Western Russia/Eastern Europe would have the alien scores penalize the Europe zone then Russia specifically. -[[User:Morgan525|Tycho]] ([[User talk:Morgan525|talk]])&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::If you look at the differences between the zone map and the country map under the [[Geoscape_(EU) |Geoscape map]].  It would seem that any alien activity that occurs within what we consider Western Russia/Eastern Europe would have the alien scores penalize the Europe zone then Russia specifically. -[[User:Morgan525|Tycho]] ([[User talk:Morgan525|talk]])&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Morgan525</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62264&amp;oldid=prev</id>
		<title>Morgan525 at 09:20, 8 December 2014</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62264&amp;oldid=prev"/>
		<updated>2014-12-08T09:20:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:20, 8 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::In my case, at least, I&amp;#039;ve been playing OpenXcom 0.9, and I eliminated an Infiltration mission utterly, and cleansed the Base (it was the first one they built, too, and right in Washington, D.C.- just a short jaunt away from my HQ near the Lake Erie/Ontario merged body of water on the Geoscape weirdness- silly low-polygon limits resulting in quirky and inaccurate terrain layouts), and, even though the month hasn&amp;#039;t ended, the savegame data seems to imply no pact status changes, so I think it&amp;#039;s dealt with. The Infiltration mission&amp;#039;s still active, though, but it&amp;#039;s been essentially reset back to the first wave and postponed HEAVILY, by at least another month, it seems. Not sure if it&amp;#039;s going to just continue or eventually vanish from the savegame when the spawn countdown depletes, but either way, it seems like a major victory. --[[User:StormhawkAPS|StormhawkAPS]] 14:14, 4 October 2013 (EDT)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::In my case, at least, I&amp;#039;ve been playing OpenXcom 0.9, and I eliminated an Infiltration mission utterly, and cleansed the Base (it was the first one they built, too, and right in Washington, D.C.- just a short jaunt away from my HQ near the Lake Erie/Ontario merged body of water on the Geoscape weirdness- silly low-polygon limits resulting in quirky and inaccurate terrain layouts), and, even though the month hasn&amp;#039;t ended, the savegame data seems to imply no pact status changes, so I think it&amp;#039;s dealt with. The Infiltration mission&amp;#039;s still active, though, but it&amp;#039;s been essentially reset back to the first wave and postponed HEAVILY, by at least another month, it seems. Not sure if it&amp;#039;s going to just continue or eventually vanish from the savegame when the spawn countdown depletes, but either way, it seems like a major victory. --[[User:StormhawkAPS|StormhawkAPS]] 14:14, 4 October 2013 (EDT)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There is no way to completely stop an infiltration mission.  The most you can do is delay the outcome by shooting down every UFO that preforms the mission, which heavily delays the arrival of the next UFO.  The final &quot;wave&quot; of ships spawns in rapid succession.  It is possible to delay this outcome by intercepting one of the initial ships in the wave but this usually can only be done if you have avengers and can intercept the first ships very quickly as there are only &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a few hours &lt;/del&gt;between &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;each ship&lt;/del&gt;. Once the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;last ship &lt;/del&gt;in the mission has been spawned, the pact is sealed.  There is no way to recover a country that has signed a pact.  &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The &lt;/del&gt;game &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;will &lt;/del&gt;not end if you lose all the countries, including Russia. (Russia can&#039;t be infiltrated normally due to a oversight.)-[[User:Morgan525|Tycho]] ([[User talk:Morgan525|talk]])&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There is no way to completely stop an infiltration mission.  The most you can do is delay the outcome by shooting down every UFO that preforms the mission, which heavily delays the arrival of the next UFO.  The final &quot;wave&quot; of ships spawns in rapid succession.  It is possible to delay this outcome by intercepting one of the initial ships in the wave but this usually can only be done if you have avengers and can intercept the first ships very quickly as there are only &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;an hour &lt;/ins&gt;between &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;these ships&lt;/ins&gt;. Once the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;second battleship &lt;/ins&gt;in the mission has been spawned, the pact is sealed.  There is &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;u&amp;gt;&lt;/ins&gt;no way&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/u&amp;gt; &lt;/ins&gt;to recover a country that has signed a pact.  &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;However, the &lt;/ins&gt;game &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;does &lt;/ins&gt;not end if you lose all the countries, including Russia. (&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Even though &lt;/ins&gt;Russia can&#039;t be infiltrated normally due to a oversight.)-[[User:Morgan525|Tycho]] ([[User talk:Morgan525|talk]])&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: What of the current wave of aliens that are running the infiltration mission? Can you cause them to reset and start over after holding them off for a certain amount of time? -[[User:NKF|NKF]] ([[User talk:NKF|talk]]) 00:00, 2 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: What of the current wave of aliens that are running the infiltration mission? Can you cause them to reset and start over after holding them off for a certain amount of time? -[[User:NKF|NKF]] ([[User talk:NKF|talk]]) 00:00, 2 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Morgan525</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62263&amp;oldid=prev</id>
		<title>Morgan525 at 09:15, 8 December 2014</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62263&amp;oldid=prev"/>
		<updated>2014-12-08T09:15:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:15, 8 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l22&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::That&amp;#039;s not at all what I&amp;#039;ve seen in the code: When the game is updating missions, it cycles through every entry in MISSIONS.DAT file. Each &amp;quot;line&amp;quot; of the MISSION.DAT refers to a specific region already. When the game determines that a pact will be signed, it already knows what zone it is checking. It then passes the zone data to the &amp;quot;sign pact/spawn base&amp;quot; subroutine which then goes through a series of conditional statements. As it goes through the proper zone section, it checks the DIPLOM.DAT status of each country that has been hard-coded to be in that region: literally each byte for &amp;quot;satisfaction rating&amp;quot; in DIPLOMAT.DAT is specified: check this byte, if &amp;#039;0&amp;#039; check this byte instead).  Once the first country that it finds whose status is not &amp;#039;0&amp;#039; (in pact), it sets it to zero, and resets the entry in MISSIONS.DAT to start infiltrating the zone again.  the location of the country name in never referenced.)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::That&amp;#039;s not at all what I&amp;#039;ve seen in the code: When the game is updating missions, it cycles through every entry in MISSIONS.DAT file. Each &amp;quot;line&amp;quot; of the MISSION.DAT refers to a specific region already. When the game determines that a pact will be signed, it already knows what zone it is checking. It then passes the zone data to the &amp;quot;sign pact/spawn base&amp;quot; subroutine which then goes through a series of conditional statements. As it goes through the proper zone section, it checks the DIPLOM.DAT status of each country that has been hard-coded to be in that region: literally each byte for &amp;quot;satisfaction rating&amp;quot; in DIPLOMAT.DAT is specified: check this byte, if &amp;#039;0&amp;#039; check this byte instead).  Once the first country that it finds whose status is not &amp;#039;0&amp;#039; (in pact), it sets it to zero, and resets the entry in MISSIONS.DAT to start infiltrating the zone again.  the location of the country name in never referenced.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::That doesn&amp;#039;t the whole question behind this discussion: where are the countries assigned (hard-coded as you mention) to regions? According to the info about the [[DIPLOM.DAT]] there isn&amp;#039;t anything there that assigns countries to regions, only if the country has signed a pact or not. There needs to be some place in the code where it states: Country #0 belongs to region #0, Countries #1 and #2 to region #1, etc.[[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 16:46, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::That doesn&amp;#039;t the whole question behind this discussion: where are the countries assigned (hard-coded as you mention) to regions? According to the info about the [[DIPLOM.DAT]] there isn&amp;#039;t anything there that assigns countries to regions, only if the country has signed a pact or not. There needs to be some place in the code where it states: Country #0 belongs to region #0, Countries #1 and #2 to region #1, etc.[[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 16:46, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::For purposes of infiltration, the countries per zone are determined by a set of conditional statements in the &#039;sign pact / spawn base&#039; routine, very similar to how the research tree is established through a long series of conditional statements that constantly reference RESEARCH.DAT.  In this case, the conditional statements reference DIPLOMAT.DAT to determine which countries have already signed a pact, and proceeds down the list for that zone. (A-&amp;gt;B-&amp;gt;C etc.) When the last country in the list has signed, the routine zeros the entry for infiltration missions for that zone in the ZONAL.DAT array.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::For purposes of infiltration, the countries per zone are determined by a set of conditional statements in the &#039;sign pact / spawn base&#039; routine, very similar to how the research tree is established through a long series of conditional statements that constantly reference RESEARCH.DAT.  In this case, the conditional statements reference DIPLOMAT.DAT to determine which countries have already signed a pact, and proceeds down the list for that zone. (A-&amp;gt;B-&amp;gt;C etc.) When the last country in the list has signed, the routine &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;s&amp;gt;&lt;/ins&gt;zeros the entry for infiltration missions for that zone in the ZONAL.DAT array.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/s&amp;gt; disables the infiltration mission in MISSION.DAT.  The entry for infiltration in that zone was disabled in ACTS.DAT when the mission is initiated (so the game doesn&#039;t ever select the same mission in the same zone twice.)-[[User:Morgan525|Tycho]] ([[User talk:Morgan525|talk]]) 04:15, 8 December 2014 (EST) &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::For other random points on the globe, the game passes the location&amp;#039;s coordinates to two routines which compares them to arrays of map coordinates that define the zone/country blocks (as we see in [[Geoscape_(EU) |Geoscape map]]).  Once it determines which block(s) the coordinates fall into, the arrays will returns the zone (and country, if there is one for the coordinates) to which those blocks are assigned.  It is these two arrays that determine what zone and/or country gets awarded/penalized points for X-COM / UFO activity. If you like, I can make some screenshots of the code to show how this works.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::For other random points on the globe, the game passes the location&amp;#039;s coordinates to two routines which compares them to arrays of map coordinates that define the zone/country blocks (as we see in [[Geoscape_(EU) |Geoscape map]]).  Once it determines which block(s) the coordinates fall into, the arrays will returns the zone (and country, if there is one for the coordinates) to which those blocks are assigned.  It is these two arrays that determine what zone and/or country gets awarded/penalized points for X-COM / UFO activity. If you like, I can make some screenshots of the code to show how this works.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::OK, so the conditions are something like: If Sign Pact is successful, then check one by one the countries for that region to find the first one who wasn&amp;#039;t been infiltrated yet. That means the assignment to countries to regions is somewhere on the EXE? And yes please, show me the screenshot about the infiltration code, I&amp;#039;m not an expert but I may be able to figure it out. :) [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 18:59, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::OK, so the conditions are something like: If Sign Pact is successful, then check one by one the countries for that region to find the first one who wasn&amp;#039;t been infiltrated yet. That means the assignment to countries to regions is somewhere on the EXE? And yes please, show me the screenshot about the infiltration code, I&amp;#039;m not an expert but I may be able to figure it out. :) [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 18:59, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Morgan525</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62191&amp;oldid=prev</id>
		<title>Hobbes at 23:59, 4 December 2014</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62191&amp;oldid=prev"/>
		<updated>2014-12-04T23:59:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:59, 4 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot;&gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::For purposes of infiltration, the countries per zone are determined by a set of conditional statements in the &amp;#039;sign pact / spawn base&amp;#039; routine, very similar to how the research tree is established through a long series of conditional statements that constantly reference RESEARCH.DAT.  In this case, the conditional statements reference DIPLOMAT.DAT to determine which countries have already signed a pact, and proceeds down the list for that zone. (A-&amp;gt;B-&amp;gt;C etc.) When the last country in the list has signed, the routine zeros the entry for infiltration missions for that zone in the ZONAL.DAT array.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::For purposes of infiltration, the countries per zone are determined by a set of conditional statements in the &amp;#039;sign pact / spawn base&amp;#039; routine, very similar to how the research tree is established through a long series of conditional statements that constantly reference RESEARCH.DAT.  In this case, the conditional statements reference DIPLOMAT.DAT to determine which countries have already signed a pact, and proceeds down the list for that zone. (A-&amp;gt;B-&amp;gt;C etc.) When the last country in the list has signed, the routine zeros the entry for infiltration missions for that zone in the ZONAL.DAT array.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::For other random points on the globe, the game passes the location&amp;#039;s coordinates to two routines which compares them to arrays of map coordinates that define the zone/country blocks (as we see in [[Geoscape_(EU) |Geoscape map]]).  Once it determines which block(s) the coordinates fall into, the arrays will returns the zone (and country, if there is one for the coordinates) to which those blocks are assigned.  It is these two arrays that determine what zone and/or country gets awarded/penalized points for X-COM / UFO activity. If you like, I can make some screenshots of the code to show how this works.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::For other random points on the globe, the game passes the location&amp;#039;s coordinates to two routines which compares them to arrays of map coordinates that define the zone/country blocks (as we see in [[Geoscape_(EU) |Geoscape map]]).  Once it determines which block(s) the coordinates fall into, the arrays will returns the zone (and country, if there is one for the coordinates) to which those blocks are assigned.  It is these two arrays that determine what zone and/or country gets awarded/penalized points for X-COM / UFO activity. If you like, I can make some screenshots of the code to show how this works.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:::OK, so the conditions are something like: If Sign Pact is successful, then check one by one the countries for that region to find the first one who wasn&#039;t been infiltrated yet. That means the assignment to countries to regions is somewhere on the EXE? And yes please, show me the screenshot about the infiltration code, I&#039;m not an expert but I may be able to figure it out. :) [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 18:59, 4 December 2014 (EST)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hobbes</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62188&amp;oldid=prev</id>
		<title>Morgan525 at 23:48, 4 December 2014</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62188&amp;oldid=prev"/>
		<updated>2014-12-04T23:48:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:48, 4 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l22&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::That&amp;#039;s not at all what I&amp;#039;ve seen in the code: When the game is updating missions, it cycles through every entry in MISSIONS.DAT file. Each &amp;quot;line&amp;quot; of the MISSION.DAT refers to a specific region already. When the game determines that a pact will be signed, it already knows what zone it is checking. It then passes the zone data to the &amp;quot;sign pact/spawn base&amp;quot; subroutine which then goes through a series of conditional statements. As it goes through the proper zone section, it checks the DIPLOM.DAT status of each country that has been hard-coded to be in that region: literally each byte for &amp;quot;satisfaction rating&amp;quot; in DIPLOMAT.DAT is specified: check this byte, if &amp;#039;0&amp;#039; check this byte instead).  Once the first country that it finds whose status is not &amp;#039;0&amp;#039; (in pact), it sets it to zero, and resets the entry in MISSIONS.DAT to start infiltrating the zone again.  the location of the country name in never referenced.)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::That&amp;#039;s not at all what I&amp;#039;ve seen in the code: When the game is updating missions, it cycles through every entry in MISSIONS.DAT file. Each &amp;quot;line&amp;quot; of the MISSION.DAT refers to a specific region already. When the game determines that a pact will be signed, it already knows what zone it is checking. It then passes the zone data to the &amp;quot;sign pact/spawn base&amp;quot; subroutine which then goes through a series of conditional statements. As it goes through the proper zone section, it checks the DIPLOM.DAT status of each country that has been hard-coded to be in that region: literally each byte for &amp;quot;satisfaction rating&amp;quot; in DIPLOMAT.DAT is specified: check this byte, if &amp;#039;0&amp;#039; check this byte instead).  Once the first country that it finds whose status is not &amp;#039;0&amp;#039; (in pact), it sets it to zero, and resets the entry in MISSIONS.DAT to start infiltrating the zone again.  the location of the country name in never referenced.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::That doesn&amp;#039;t the whole question behind this discussion: where are the countries assigned (hard-coded as you mention) to regions? According to the info about the [[DIPLOM.DAT]] there isn&amp;#039;t anything there that assigns countries to regions, only if the country has signed a pact or not. There needs to be some place in the code where it states: Country #0 belongs to region #0, Countries #1 and #2 to region #1, etc.[[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 16:46, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::That doesn&amp;#039;t the whole question behind this discussion: where are the countries assigned (hard-coded as you mention) to regions? According to the info about the [[DIPLOM.DAT]] there isn&amp;#039;t anything there that assigns countries to regions, only if the country has signed a pact or not. There needs to be some place in the code where it states: Country #0 belongs to region #0, Countries #1 and #2 to region #1, etc.[[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 16:46, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;::For purposes of infiltration, the countries per zone are determined by a set of conditional statements in the &#039;sign pact / spawn base&#039; routine, very similar to how the research tree is established through a long series of conditional statements that constantly reference RESEARCH.DAT.  In this case, the conditional statements reference DIPLOMAT.DAT to determine which countries have already signed a pact, and proceeds down the list for that zone. (A-&amp;gt;B-&amp;gt;C etc.) When the last country in the list has signed, the routine zeros the entry for infiltration missions for that zone in the ZONAL.DAT array. &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;::For other random points on the globe, the game passes the location&#039;s coordinates to two routines which compares them to arrays of map coordinates that define the zone/country blocks (as we see in [[Geoscape_(EU) |Geoscape map]]).  Once it determines which block(s) the coordinates fall into, the arrays will returns the zone (and country, if there is one for the coordinates) to which those blocks are assigned.  It is these two arrays that determine what zone and/or country gets awarded/penalized points for X-COM / UFO activity. If you like, I can make some screenshots of the code to show how this works.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Morgan525</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62171&amp;oldid=prev</id>
		<title>Hobbes at 21:53, 4 December 2014</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62171&amp;oldid=prev"/>
		<updated>2014-12-04T21:53:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:53, 4 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l21&quot;&gt;Line 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::::From a coding perspective, since the Alien Infiltrations are generated for Regions and not specific countries, then there needs to be a way in the code to determine what country will sign a pact if the mission is successful in that region. The game solves this by checking the location on the globe of the Countries&amp;#039; names and the region where they are located. In the image above the &amp;quot;Russia&amp;quot; label is clearly located in the Siberia region, so any Alien Infiltration missions in Europe will never result in Russia signing a pact. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 09:41, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::::From a coding perspective, since the Alien Infiltrations are generated for Regions and not specific countries, then there needs to be a way in the code to determine what country will sign a pact if the mission is successful in that region. The game solves this by checking the location on the globe of the Countries&amp;#039; names and the region where they are located. In the image above the &amp;quot;Russia&amp;quot; label is clearly located in the Siberia region, so any Alien Infiltration missions in Europe will never result in Russia signing a pact. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 09:41, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::That&amp;#039;s not at all what I&amp;#039;ve seen in the code: When the game is updating missions, it cycles through every entry in MISSIONS.DAT file. Each &amp;quot;line&amp;quot; of the MISSION.DAT refers to a specific region already. When the game determines that a pact will be signed, it already knows what zone it is checking. It then passes the zone data to the &amp;quot;sign pact/spawn base&amp;quot; subroutine which then goes through a series of conditional statements. As it goes through the proper zone section, it checks the DIPLOM.DAT status of each country that has been hard-coded to be in that region: literally each byte for &amp;quot;satisfaction rating&amp;quot; in DIPLOMAT.DAT is specified: check this byte, if &amp;#039;0&amp;#039; check this byte instead).  Once the first country that it finds whose status is not &amp;#039;0&amp;#039; (in pact), it sets it to zero, and resets the entry in MISSIONS.DAT to start infiltrating the zone again.  the location of the country name in never referenced.)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::That&amp;#039;s not at all what I&amp;#039;ve seen in the code: When the game is updating missions, it cycles through every entry in MISSIONS.DAT file. Each &amp;quot;line&amp;quot; of the MISSION.DAT refers to a specific region already. When the game determines that a pact will be signed, it already knows what zone it is checking. It then passes the zone data to the &amp;quot;sign pact/spawn base&amp;quot; subroutine which then goes through a series of conditional statements. As it goes through the proper zone section, it checks the DIPLOM.DAT status of each country that has been hard-coded to be in that region: literally each byte for &amp;quot;satisfaction rating&amp;quot; in DIPLOMAT.DAT is specified: check this byte, if &amp;#039;0&amp;#039; check this byte instead).  Once the first country that it finds whose status is not &amp;#039;0&amp;#039; (in pact), it sets it to zero, and resets the entry in MISSIONS.DAT to start infiltrating the zone again.  the location of the country name in never referenced.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;But &lt;/del&gt;where are the countries assigned (&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;hardcoded&lt;/del&gt;) to regions? According to the info about the [[DIPLOM.DAT]] there isn&#039;t anything there that assigns countries to regions, only if the country has signed a pact or not. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 16:46, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;That doesn&#039;t the whole question behind this discussion: &lt;/ins&gt;where are the countries assigned (&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;hard-coded as you mention&lt;/ins&gt;) to regions? According to the info about the [[DIPLOM.DAT]] there isn&#039;t anything there that assigns countries to regions, only if the country has signed a pact or not&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. There needs to be some place in the code where it states: Country #0 belongs to region #0, Countries #1 and #2 to region #1, etc&lt;/ins&gt;.[[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 16:46, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key tempufo_wiki:diff:1.41:old-62170:rev-62171:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Hobbes</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62170&amp;oldid=prev</id>
		<title>Hobbes at 21:46, 4 December 2014</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62170&amp;oldid=prev"/>
		<updated>2014-12-04T21:46:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:46, 4 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l21&quot;&gt;Line 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::::From a coding perspective, since the Alien Infiltrations are generated for Regions and not specific countries, then there needs to be a way in the code to determine what country will sign a pact if the mission is successful in that region. The game solves this by checking the location on the globe of the Countries&amp;#039; names and the region where they are located. In the image above the &amp;quot;Russia&amp;quot; label is clearly located in the Siberia region, so any Alien Infiltration missions in Europe will never result in Russia signing a pact. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 09:41, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::::From a coding perspective, since the Alien Infiltrations are generated for Regions and not specific countries, then there needs to be a way in the code to determine what country will sign a pact if the mission is successful in that region. The game solves this by checking the location on the globe of the Countries&amp;#039; names and the region where they are located. In the image above the &amp;quot;Russia&amp;quot; label is clearly located in the Siberia region, so any Alien Infiltration missions in Europe will never result in Russia signing a pact. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 09:41, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::That&amp;#039;s not at all what I&amp;#039;ve seen in the code: When the game is updating missions, it cycles through every entry in MISSIONS.DAT file. Each &amp;quot;line&amp;quot; of the MISSION.DAT refers to a specific region already. When the game determines that a pact will be signed, it already knows what zone it is checking. It then passes the zone data to the &amp;quot;sign pact/spawn base&amp;quot; subroutine which then goes through a series of conditional statements. As it goes through the proper zone section, it checks the DIPLOM.DAT status of each country that has been hard-coded to be in that region: literally each byte for &amp;quot;satisfaction rating&amp;quot; in DIPLOMAT.DAT is specified: check this byte, if &amp;#039;0&amp;#039; check this byte instead).  Once the first country that it finds whose status is not &amp;#039;0&amp;#039; (in pact), it sets it to zero, and resets the entry in MISSIONS.DAT to start infiltrating the zone again.  the location of the country name in never referenced.)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::That&amp;#039;s not at all what I&amp;#039;ve seen in the code: When the game is updating missions, it cycles through every entry in MISSIONS.DAT file. Each &amp;quot;line&amp;quot; of the MISSION.DAT refers to a specific region already. When the game determines that a pact will be signed, it already knows what zone it is checking. It then passes the zone data to the &amp;quot;sign pact/spawn base&amp;quot; subroutine which then goes through a series of conditional statements. As it goes through the proper zone section, it checks the DIPLOM.DAT status of each country that has been hard-coded to be in that region: literally each byte for &amp;quot;satisfaction rating&amp;quot; in DIPLOMAT.DAT is specified: check this byte, if &amp;#039;0&amp;#039; check this byte instead).  Once the first country that it finds whose status is not &amp;#039;0&amp;#039; (in pact), it sets it to zero, and resets the entry in MISSIONS.DAT to start infiltrating the zone again.  the location of the country name in never referenced.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:::But where are the countries assigned (hardcoded) to regions? According to the info about the [[DIPLOM.DAT]] there isn&#039;t anything there that assigns countries to regions, only if the country has signed a pact or not. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 16:46, 4 December 2014 (EST)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hobbes</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62168&amp;oldid=prev</id>
		<title>Morgan525 at 21:13, 4 December 2014</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62168&amp;oldid=prev"/>
		<updated>2014-12-04T21:13:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:13, 4 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:CountryNames.png]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:CountryNames.png]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::::From a coding perspective, since the Alien Infiltrations are generated for Regions and not specific countries, then there needs to be a way in the code to determine what country will sign a pact if the mission is successful in that region. The game solves this by checking the location on the globe of the Countries&amp;#039; names and the region where they are located. In the image above the &amp;quot;Russia&amp;quot; label is clearly located in the Siberia region, so any Alien Infiltration missions in Europe will never result in Russia signing a pact. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 09:41, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::::From a coding perspective, since the Alien Infiltrations are generated for Regions and not specific countries, then there needs to be a way in the code to determine what country will sign a pact if the mission is successful in that region. The game solves this by checking the location on the globe of the Countries&amp;#039; names and the region where they are located. In the image above the &amp;quot;Russia&amp;quot; label is clearly located in the Siberia region, so any Alien Infiltration missions in Europe will never result in Russia signing a pact. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 09:41, 4 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;::That&#039;s not at all what I&#039;ve seen in the code: When the game is updating missions, it cycles through every entry in MISSIONS.DAT file. Each &quot;line&quot; of the MISSION.DAT refers to a specific region already. When the game determines that a pact will be signed, it already knows what zone it is checking. It then passes the zone data to the &quot;sign pact/spawn base&quot; subroutine which then goes through a series of conditional statements. As it goes through the proper zone section, it checks the DIPLOM.DAT status of each country that has been hard-coded to be in that region: literally each byte for &quot;satisfaction rating&quot; in DIPLOMAT.DAT is specified: check this byte, if &#039;0&#039; check this byte instead).  Once the first country that it finds whose status is not &#039;0&#039; (in pact), it sets it to zero, and resets the entry in MISSIONS.DAT to start infiltrating the zone again.  the location of the country name in never referenced.)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Morgan525</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62128&amp;oldid=prev</id>
		<title>Hobbes at 14:41, 4 December 2014</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Talk:Alien_Infiltration&amp;diff=62128&amp;oldid=prev"/>
		<updated>2014-12-04T14:41:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:41, 4 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::PS - I&amp;#039;ll eventually write a page about how the game generates Alien Missions based on what was discovered by OpenXcom&amp;#039;s developers. There&amp;#039;s already information about this on the respective game file pages but it would be nice to describe the whole process. It will contain a lot of spoilers though. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 19:14, 3 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::PS - I&amp;#039;ll eventually write a page about how the game generates Alien Missions based on what was discovered by OpenXcom&amp;#039;s developers. There&amp;#039;s already information about this on the respective game file pages but it would be nice to describe the whole process. It will contain a lot of spoilers though. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 19:14, 3 December 2014 (EST)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::I don&amp;#039;t understand what is meant that the location of the countries&amp;#039; name has to do with the zone, except maybe from a developer&amp;#039;s standpoint as they were coding  the game. It&amp;#039;s an array that determines in what zone a set of coordinates belongs to. Am I misunderstanding your meaning? I see that most of western Russia falls under the Europe zone for this purpose. Also, the game doesn&amp;#039;t randomly choose the country in a zone at the time of a successful infiltration.  The order is predetermined. The landing sites of the final UFOs are chosen randomly, but that has no impact on what country will sign (as you mentioned).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:::I don&amp;#039;t understand what is meant that the location of the countries&amp;#039; name has to do with the zone, except maybe from a developer&amp;#039;s standpoint as they were coding  the game. It&amp;#039;s an array that determines in what zone a set of coordinates belongs to. Am I misunderstanding your meaning? I see that most of western Russia falls under the Europe zone for this purpose. Also, the game doesn&amp;#039;t randomly choose the country in a zone at the time of a successful infiltration.  The order is predetermined. The landing sites of the final UFOs are chosen randomly, but that has no impact on what country will sign (as you mentioned).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;::::This image should explain it better &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Image:CountryNames.png]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;::::From a coding perspective, since the Alien Infiltrations are generated for Regions and not specific countries, then there needs to be a way in the code to determine what country will sign a pact if the mission is successful in that region. The game solves this by checking the location on the globe of the Countries&#039; names and the region where they are located. In the image above the &quot;Russia&quot; label is clearly located in the Siberia region, so any Alien Infiltration missions in Europe will never result in Russia signing a pact. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 09:41, 4 December 2014 (EST)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hobbes</name></author>
	</entry>
</feed>