https://www.ufopaedia.org/index.php?title=Talk:MAP.DAT&feed=atom&action=historyTalk:MAP.DAT - Revision history2024-03-29T10:47:07ZRevision history for this page on the wikiMediaWiki 1.35.4https://www.ufopaedia.org/index.php?title=Talk:MAP.DAT&diff=28372&oldid=prevBomb Bloke at 02:31, 28 June 20102010-06-28T02:31:26Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:31, 28 June 2010</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 30:</td>
<td colspan="2" class="diff-lineno">Line 30:</td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"></td>
<td class="diff-marker"> </td>
<td style="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;"></td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"><div>What I meant was I wasn't sure how you would figure out the order the MCD files are collated. Looking at your file gives me the order, but I wasn't sure if there was some sort of specific order. I thought it was possible it would be collated alphabetically. However, it's collated in a way they just happened to code it to be collated. So, if I'm catching this correctly, the values in Map.DAT refer to this collated MCD. [[User:Hatfarm|Hatfarm]] 22:19, 27 June 2010 (EDT)</div></td>
<td class="diff-marker"> </td>
<td style="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;"><div>What I meant was I wasn't sure how you would figure out the order the MCD files are collated. Looking at your file gives me the order, but I wasn't sure if there was some sort of specific order. I thought it was possible it would be collated alphabetically. However, it's collated in a way they just happened to code it to be collated. So, if I'm catching this correctly, the values in Map.DAT refer to this collated MCD. [[User:Hatfarm|Hatfarm]] 22:19, 27 June 2010 (EDT)</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"><div>: Yes. I've actually just finished a [[MAPS|write-up]] of how the .MAP files are processed by the game engine, and how those index translations are calculated. They're handled slightly differently to MAP.DAT, in which all the values have been pre-translated and map directly into the collated MCD array. - [[User:Bomb Bloke|Bomb Bloke]] 22:31, 27 June 2010 (EDT)</div></td>
</tr>
</table>Bomb Blokehttps://www.ufopaedia.org/index.php?title=Talk:MAP.DAT&diff=28369&oldid=prevHatfarm at 02:19, 28 June 20102010-06-28T02:19:21Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:19, 28 June 2010</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 29:</td>
<td colspan="2" class="diff-lineno">Line 29:</td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"><div>: If it's still not making sense to you after reading that java file I mentioned, run my battlescape editor, then hit the esc button to close the main window. You'll still have a text console remaining on the screen, which'll show you the exact MCD files loaded, in the order it loaded them. - [[User:Bomb Bloke|Bomb Bloke]] 11:44, 27 June 2010 (EDT)</div></td>
<td class="diff-marker"> </td>
<td style="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;"><div>: If it's still not making sense to you after reading that java file I mentioned, run my battlescape editor, then hit the esc button to close the main window. You'll still have a text console remaining on the screen, which'll show you the exact MCD files loaded, in the order it loaded them. - [[User:Bomb Bloke|Bomb Bloke]] 11:44, 27 June 2010 (EDT)</div></td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"></td>
<td class="diff-marker"> </td>
<td style="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;"></td>
</tr>
<tr>
<td class="diff-marker">−</td>
<td style="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;"><div>What I meant was I wasn't sure how you would figure out the order the MCD files are collated. Looking at your file gives me the order, but I wasn't sure if there was some sort of specific order. I thought it was possible it would be collated alphabetically. <del class="diffchange diffchange-inline">Anyway</del>, <del class="diffchange diffchange-inline">thanks</del> <del class="diffchange diffchange-inline">for</del> <del class="diffchange diffchange-inline">your</del> <del class="diffchange diffchange-inline">help</del>.</div></td>
<td class="diff-marker">+</td>
<td style="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;"><div>What I meant was I wasn't sure how you would figure out the order the MCD files are collated. Looking at your file gives me the order, but I wasn't sure if there was some sort of specific order. I thought it was possible it would be collated alphabetically. <ins class="diffchange diffchange-inline">However</ins>, <ins class="diffchange diffchange-inline">it's</ins> <ins class="diffchange diffchange-inline">collated</ins> <ins class="diffchange diffchange-inline">in</ins> <ins class="diffchange diffchange-inline">a way they just happened to code it to be collated</ins>.<ins class="diffchange diffchange-inline"> So, if I'm catching this correctly, the values in Map.DAT refer to this collated MCD. [[User:Hatfarm|Hatfarm]] 22:19, 27 June 2010 (EDT)</ins></div></td>
</tr>
</table>Hatfarmhttps://www.ufopaedia.org/index.php?title=Talk:MAP.DAT&diff=28368&oldid=prevHatfarm at 02:04, 28 June 20102010-06-28T02:04:46Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:04, 28 June 2010</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 28:</td>
<td colspan="2" class="diff-lineno">Line 28:</td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"></td>
<td class="diff-marker"> </td>
<td style="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;"></td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"><div>: If it's still not making sense to you after reading that java file I mentioned, run my battlescape editor, then hit the esc button to close the main window. You'll still have a text console remaining on the screen, which'll show you the exact MCD files loaded, in the order it loaded them. - [[User:Bomb Bloke|Bomb Bloke]] 11:44, 27 June 2010 (EDT)</div></td>
<td class="diff-marker"> </td>
<td style="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;"><div>: If it's still not making sense to you after reading that java file I mentioned, run my battlescape editor, then hit the esc button to close the main window. You'll still have a text console remaining on the screen, which'll show you the exact MCD files loaded, in the order it loaded them. - [[User:Bomb Bloke|Bomb Bloke]] 11:44, 27 June 2010 (EDT)</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"><div>What I meant was I wasn't sure how you would figure out the order the MCD files are collated. Looking at your file gives me the order, but I wasn't sure if there was some sort of specific order. I thought it was possible it would be collated alphabetically. Anyway, thanks for your help.</div></td>
</tr>
</table>Hatfarmhttps://www.ufopaedia.org/index.php?title=Talk:MAP.DAT&diff=28367&oldid=prevBomb Bloke at 15:44, 27 June 20102010-06-27T15:44:10Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:44, 27 June 2010</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 16:</td>
<td colspan="2" class="diff-lineno">Line 16:</td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"></td>
<td class="diff-marker"> </td>
<td style="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;"></td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"><div>:: How do you know which value points to U_Ext02 and which value points to U_Wall02? I mean, is a value of 15 for U_Ext02 and then 62 is U_Wall02? Is it just alphabetical? Also, what is the value of 1 (the reserved bit)? I know I just count up the BLANKS.MCD tiles, then the Terrain tiles, then the x-com ship tiles, then the UFO tiles? That's the order they go in? It still doesn't tell me whether U_Ext or U_Wall02 would be first, but it least gives me something to go on. Thanks. [[User:Hatfarm|Hatfarm]] 10:45, 27 June 2010 (EDT)</div></td>
<td class="diff-marker"> </td>
<td style="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;"><div>:: How do you know which value points to U_Ext02 and which value points to U_Wall02? I mean, is a value of 15 for U_Ext02 and then 62 is U_Wall02? Is it just alphabetical? Also, what is the value of 1 (the reserved bit)? I know I just count up the BLANKS.MCD tiles, then the Terrain tiles, then the x-com ship tiles, then the UFO tiles? That's the order they go in? It still doesn't tell me whether U_Ext or U_Wall02 would be first, but it least gives me something to go on. Thanks. [[User:Hatfarm|Hatfarm]] 10:45, 27 June 2010 (EDT)</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"><div>: I'm not sure what you're on about with your first two questions. Are you talking about where the indexes for each of these separate MCD files would be located within the collated version? That was my first guess, but then you asked if it was "alphabetical"?! The records are only referred to via numbers... There's no way you can refer to them alphabetically. O_o</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"><div>: To determine the index for the first record of U_Ext02 within the collated MCD array, you'd need to keep track of exactly how many MCD records you'd added before adding that first U_Ext02 record. Note that you only need to do this for the purpose of assembling a map out of modules (not when loading a pre-assembled [[MAP.DAT]] file), and for keeping offsets 44 and 46 within your MCD records accurate as you build your collated array (which the tactical game engine does every time it starts up).</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"><div>: I also have no idea what you mean by "the reserved bit".</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"><div>: Yes, the ordering is as I've written it...</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"><div>: Say the game wants to know what MCD files it needs to load to represent a Battleship. It refers to a hardcoded string array which is compiled directly into the tactical executable. This array holds multiple lists of filenames (though I think the extensions are inferred, to memory), in the order it expects the game engine to load them. The files are loaded in whatever order then appear within that hard-coded array.</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"><div>: If it's still not making sense to you after reading that java file I mentioned, run my battlescape editor, then hit the esc button to close the main window. You'll still have a text console remaining on the screen, which'll show you the exact MCD files loaded, in the order it loaded them. - [[User:Bomb Bloke|Bomb Bloke]] 11:44, 27 June 2010 (EDT)</div></td>
</tr>
</table>Bomb Blokehttps://www.ufopaedia.org/index.php?title=Talk:MAP.DAT&diff=28366&oldid=prevHatfarm at 15:12, 27 June 20102010-06-27T15:12:39Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:12, 27 June 2010</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 15:</td>
<td colspan="2" class="diff-lineno">Line 15:</td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"><div>: The details on the MCD stuff really belong on a dedicated MCD page, which I'll make at some point. - [[User:Bomb Bloke|Bomb Bloke]] 22:41, 26 June 2010 (EDT)</div></td>
<td class="diff-marker"> </td>
<td style="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;"><div>: The details on the MCD stuff really belong on a dedicated MCD page, which I'll make at some point. - [[User:Bomb Bloke|Bomb Bloke]] 22:41, 26 June 2010 (EDT)</div></td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"></td>
<td class="diff-marker"> </td>
<td style="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;"></td>
</tr>
<tr>
<td class="diff-marker">−</td>
<td style="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;"><div>:: How do you know which value points to U_Ext02 and which value points to U_Wall02? I mean, is a value of 15 for U_Ext02 and then 62 is U_Wall02? Is it just alphabetical? Also, what <del class="diffchange diffchange-inline">are</del> the <del class="diffchange diffchange-inline">0</del> <del class="diffchange diffchange-inline">and</del> 1 <del class="diffchange diffchange-inline">reserved bits, are those just </del>the <del class="diffchange diffchange-inline">BLANKS.MCD</del> <del class="diffchange diffchange-inline">stuff first</del>? <del class="diffchange diffchange-inline"> Oh, wait,</del> I <del class="diffchange diffchange-inline">may have just figured it out from what you've already said, so</del> I just count up the BLANKS.MCD tiles, then the Terrain tiles, then the x-com ship tiles, then the UFO tiles? That's the order they go in? It still doesn't tell me whether U_Ext or U_Wall02 would be first, but it least gives me something to go on. Thanks. [[User:Hatfarm|Hatfarm]] 10:45, 27 June 2010 (EDT)</div></td>
<td class="diff-marker">+</td>
<td style="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;"><div>:: How do you know which value points to U_Ext02 and which value points to U_Wall02? I mean, is a value of 15 for U_Ext02 and then 62 is U_Wall02? Is it just alphabetical? Also, what <ins class="diffchange diffchange-inline">is</ins> the <ins class="diffchange diffchange-inline">value</ins> <ins class="diffchange diffchange-inline">of</ins> 1 <ins class="diffchange diffchange-inline">(</ins>the <ins class="diffchange diffchange-inline">reserved</ins> <ins class="diffchange diffchange-inline">bit)</ins>? I <ins class="diffchange diffchange-inline">know</ins> I just count up the BLANKS.MCD tiles, then the Terrain tiles, then the x-com ship tiles, then the UFO tiles? That's the order they go in? It still doesn't tell me whether U_Ext or U_Wall02 would be first, but it least gives me something to go on. Thanks. [[User:Hatfarm|Hatfarm]] 10:45, 27 June 2010 (EDT)</div></td>
</tr>
</table>Hatfarmhttps://www.ufopaedia.org/index.php?title=Talk:MAP.DAT&diff=28365&oldid=prevHatfarm at 14:48, 27 June 20102010-06-27T14:48:17Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 14:48, 27 June 2010</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 15:</td>
<td colspan="2" class="diff-lineno">Line 15:</td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"><div>: The details on the MCD stuff really belong on a dedicated MCD page, which I'll make at some point. - [[User:Bomb Bloke|Bomb Bloke]] 22:41, 26 June 2010 (EDT)</div></td>
<td class="diff-marker"> </td>
<td style="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;"><div>: The details on the MCD stuff really belong on a dedicated MCD page, which I'll make at some point. - [[User:Bomb Bloke|Bomb Bloke]] 22:41, 26 June 2010 (EDT)</div></td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"></td>
<td class="diff-marker"> </td>
<td style="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;"></td>
</tr>
<tr>
<td class="diff-marker">−</td>
<td style="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;"><div>:: How do you know which value points to U_Ext02 and which value points to U_Wall02? I mean, is a value of 15 for U_Ext02 and then 62 is U_Wall02? Is it just alphabetical? [[User:Hatfarm|Hatfarm]] 10:45, 27 June 2010 (EDT)</div></td>
<td class="diff-marker">+</td>
<td style="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;"><div>:: How do you know which value points to U_Ext02 and which value points to U_Wall02? I mean, is a value of 15 for U_Ext02 and then 62 is U_Wall02? Is it just alphabetical?<ins class="diffchange diffchange-inline"> Also, what are the 0 and 1 reserved bits, are those just the BLANKS.MCD stuff first? Oh, wait, I may have just figured it out from what you've already said, so I just count up the BLANKS.MCD tiles, then the Terrain tiles, then the x-com ship tiles, then the UFO tiles? That's the order they go in? It still doesn't tell me whether U_Ext or U_Wall02 would be first, but it least gives me something to go on. Thanks.</ins> [[User:Hatfarm|Hatfarm]] 10:45, 27 June 2010 (EDT)</div></td>
</tr>
</table>Hatfarmhttps://www.ufopaedia.org/index.php?title=Talk:MAP.DAT&diff=28364&oldid=prevHatfarm at 14:45, 27 June 20102010-06-27T14:45:12Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 14:45, 27 June 2010</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 14:</td>
<td colspan="2" class="diff-lineno">Line 14:</td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"></td>
<td class="diff-marker"> </td>
<td style="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;"></td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"><div>: The details on the MCD stuff really belong on a dedicated MCD page, which I'll make at some point. - [[User:Bomb Bloke|Bomb Bloke]] 22:41, 26 June 2010 (EDT)</div></td>
<td class="diff-marker"> </td>
<td style="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;"><div>: The details on the MCD stuff really belong on a dedicated MCD page, which I'll make at some point. - [[User:Bomb Bloke|Bomb Bloke]] 22:41, 26 June 2010 (EDT)</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"><div>:: How do you know which value points to U_Ext02 and which value points to U_Wall02? I mean, is a value of 15 for U_Ext02 and then 62 is U_Wall02? Is it just alphabetical? [[User:Hatfarm|Hatfarm]] 10:45, 27 June 2010 (EDT)</div></td>
</tr>
</table>Hatfarmhttps://www.ufopaedia.org/index.php?title=Talk:MAP.DAT&diff=28337&oldid=prevBomb Bloke at 02:41, 27 June 20102010-06-27T02:41:26Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:41, 27 June 2010</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 8:</td>
<td colspan="2" class="diff-lineno">Line 8:</td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"></td>
<td class="diff-marker"> </td>
<td style="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;"></td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"><div>BB you've outdown yourself with this redo, really well done. REALLY clear now, thanks for the info. I think I had put it all together after looking at all of the files together, but having it all here makes it a lot easier to refer to. [[User:Hatfarm|Hatfarm]] 22:03, 26 June 2010 (EDT)</div></td>
<td class="diff-marker"> </td>
<td style="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;"><div>BB you've outdown yourself with this redo, really well done. REALLY clear now, thanks for the info. I think I had put it all together after looking at all of the files together, but having it all here makes it a lot easier to refer to. [[User:Hatfarm|Hatfarm]] 22:03, 26 June 2010 (EDT)</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"><div>: Regarding where the MCD array, it's always made up of BLANKS.MCD first, followed by the MCD files for the terrain, the X-COM dropship, then the UFO. This "collated" table never gets saved to the HDD, as it's always possible to re-assemble it from scratch when loading a save game, based on the terrain and what craft are present.</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"><div>: Some terrains and UFOs are, themselves, made up of multiple MCD files. For example, the Battleship uses U_Ext02, U_Wall02, U_Pods and U_Bits. An urban map uses Roads, Urbits, Urban and Frniture. All of these "mini-sets" are hardcoded into the Tactical executable and aren't yet documented on this wiki. If you look at the file "TilesetLister.java" in my toolkit you'll see these listed out. The one method in that file, "String[] getList(int[], int)", expects the entire contents of [[GEODATA.DAT]] as the int[], and offset 20 of [[MISSION.DAT|MISDATA/MISSION.DAT]] as the int.</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"></td>
</tr>
<tr>
<td colspan="2" class="diff-empty"> </td>
<td class="diff-marker">+</td>
<td style="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;"><div>: The details on the MCD stuff really belong on a dedicated MCD page, which I'll make at some point. - [[User:Bomb Bloke|Bomb Bloke]] 22:41, 26 June 2010 (EDT)</div></td>
</tr>
</table>Bomb Blokehttps://www.ufopaedia.org/index.php?title=Talk:MAP.DAT&diff=28335&oldid=prevHatfarm at 02:03, 27 June 20102010-06-27T02:03:13Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:03, 27 June 2010</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"><div>:: Yes, the actual MCD file used by a map is a composite of the terrain, UFO, and X-COM tilesets. I <b>think</b> the order of tile set indexes is terrain, then UFO, then X-COM. You have problems if there are more than 253 non-blank tiles (0 and 1 are reserved indexes). -- [[User:Zaimoni|Zaimoni]] 19:32, 26 June 2010 (CDT)</div></td>
<td class="diff-marker"> </td>
<td style="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;"><div>:: Yes, the actual MCD file used by a map is a composite of the terrain, UFO, and X-COM tilesets. I <b>think</b> the order of tile set indexes is terrain, then UFO, then X-COM. You have problems if there are more than 253 non-blank tiles (0 and 1 are reserved indexes). -- [[User:Zaimoni|Zaimoni]] 19:32, 26 June 2010 (CDT)</div></td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"></td>
<td class="diff-marker"> </td>
<td style="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;"></td>
</tr>
<tr>
<td class="diff-marker">−</td>
<td style="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;"><div>BB you've outdown yourself with this redo, really well done. REALLY clear now, thanks for the info. I think I had put it all together after looking at all of the files together, but having it all here makes it a lot easier to refer to.</div></td>
<td class="diff-marker">+</td>
<td style="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;"><div>BB you've outdown yourself with this redo, really well done. REALLY clear now, thanks for the info. I think I had put it all together after looking at all of the files together, but having it all here makes it a lot easier to refer to.<ins class="diffchange diffchange-inline"> [[User:Hatfarm|Hatfarm]] 22:03, 26 June 2010 (EDT)</ins></div></td>
</tr>
</table>Hatfarmhttps://www.ufopaedia.org/index.php?title=Talk:MAP.DAT&diff=28334&oldid=prevHatfarm at 02:02, 27 June 20102010-06-27T02:02:55Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:02, 27 June 2010</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"><div>:: Yes, the actual MCD file used by a map is a composite of the terrain, UFO, and X-COM tilesets. I <b>think</b> the order of tile set indexes is terrain, then UFO, then X-COM. You have problems if there are more than 253 non-blank tiles (0 and 1 are reserved indexes). -- [[User:Zaimoni|Zaimoni]] 19:32, 26 June 2010 (CDT)</div></td>
<td class="diff-marker"> </td>
<td style="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;"><div>:: Yes, the actual MCD file used by a map is a composite of the terrain, UFO, and X-COM tilesets. I <b>think</b> the order of tile set indexes is terrain, then UFO, then X-COM. You have problems if there are more than 253 non-blank tiles (0 and 1 are reserved indexes). -- [[User:Zaimoni|Zaimoni]] 19:32, 26 June 2010 (CDT)</div></td>
</tr>
<tr>
<td class="diff-marker"> </td>
<td style="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;"></td>
<td class="diff-marker"> </td>
<td style="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;"></td>
</tr>
<tr>
<td class="diff-marker">−</td>
<td style="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;"><div><del class="diffchange diffchange-inline">Whoever</del> <del class="diffchange diffchange-inline">redid</del> <del class="diffchange diffchange-inline">this</del> <del class="diffchange diffchange-inline">page</del> <del class="diffchange diffchange-inline">did</del> <del class="diffchange diffchange-inline">an</del> <del class="diffchange diffchange-inline">amazing</del> <del class="diffchange diffchange-inline">job</del>. REALLY clear now, thanks for the info. I think I had put it all together after looking at all of the files together, but having it all here makes it a lot easier to refer to.</div></td>
<td class="diff-marker">+</td>
<td style="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;"><div><ins class="diffchange diffchange-inline">BB</ins> <ins class="diffchange diffchange-inline">you've</ins> <ins class="diffchange diffchange-inline">outdown</ins> <ins class="diffchange diffchange-inline">yourself with this</ins> <ins class="diffchange diffchange-inline">redo,</ins> <ins class="diffchange diffchange-inline">really</ins> <ins class="diffchange diffchange-inline">well</ins> <ins class="diffchange diffchange-inline">done</ins>. REALLY clear now, thanks for the info. I think I had put it all together after looking at all of the files together, but having it all here makes it a lot easier to refer to.</div></td>
</tr>
</table>Hatfarm