<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.terranigma.be/index.php?action=history&amp;feed=atom&amp;title=Map_Object_Header</id>
	<title>Map Object Header - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.terranigma.be/index.php?action=history&amp;feed=atom&amp;title=Map_Object_Header"/>
	<link rel="alternate" type="text/html" href="https://www.terranigma.be/index.php?title=Map_Object_Header&amp;action=history"/>
	<updated>2026-07-09T02:35:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://www.terranigma.be/index.php?title=Map_Object_Header&amp;diff=320&amp;oldid=prev</id>
		<title>Crediar: Map title is optional</title>
		<link rel="alternate" type="text/html" href="https://www.terranigma.be/index.php?title=Map_Object_Header&amp;diff=320&amp;oldid=prev"/>
		<updated>2016-07-20T11:30:09Z</updated>

		<summary type="html">&lt;p&gt;Map title is optional&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 11:30, 20 July 2016&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-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&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;! Command !! Size !! Description&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;! Command !! Size !! Description&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;|-&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;|-&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;| FF || 1 || End of header, followed by map title, which is terminated by 0xD4 (see [[Message Format]])&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;| FF || 1 || End of header, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;can be &lt;/ins&gt;followed by map title, which &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;then &lt;/ins&gt;is terminated by 0xD4 (see [[Message Format]])&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;|-&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;|-&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;| FE || 5 || Declare Object with Script&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;| FE || 5 || Declare Object with Script&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key terranig_wiki:diff::1.12:old-305:rev-320 --&gt;
&lt;/table&gt;</summary>
		<author><name>Crediar</name></author>
	</entry>
	<entry>
		<id>https://www.terranigma.be/index.php?title=Map_Object_Header&amp;diff=305&amp;oldid=prev</id>
		<title>Nethraz: Introduction + Table of commands</title>
		<link rel="alternate" type="text/html" href="https://www.terranigma.be/index.php?title=Map_Object_Header&amp;diff=305&amp;oldid=prev"/>
		<updated>2016-02-22T18:28:14Z</updated>

		<summary type="html">&lt;p&gt;Introduction + Table of commands&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;Map Object Header&amp;#039;&amp;#039;&amp;#039; declares the objects (and sprites) that are initially present on a map.&lt;br /&gt;
It also contains the [[Map Flags]] as first two bytes.&lt;br /&gt;
&lt;br /&gt;
The address of the header can be found either at [28000 + 2*map_id] or at [38000 + 2*map_id], only one of these is allowed to be not null. The header is stored in the same 0x8000 bank as the pointer, either 0x82 or 0x83.&lt;br /&gt;
&lt;br /&gt;
After the 2 byte [[Map Flags]], the header consists of a sequence of commands, which is terminated by 0xFF and the map&amp;#039;s title.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
&lt;br /&gt;
If a command declares an [[Objects|Object]], it gets assigned a handle in sequential order (starting from 0x1000) and is appended to the end of the object list.&lt;br /&gt;
&lt;br /&gt;
The first object usually is the Ark Sprite, created by command &amp;#039;&amp;#039;&amp;#039;FD&amp;#039;&amp;#039;&amp;#039; and has the handle 0x1000.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Command !! Size !! Description&lt;br /&gt;
|-&lt;br /&gt;
| FF || 1 || End of header, followed by map title, which is terminated by 0xD4 (see [[Message Format]])&lt;br /&gt;
|-&lt;br /&gt;
| FE || 5 || Declare Object with Script&lt;br /&gt;
|-&lt;br /&gt;
| FD || 7 || Declare Object with Position and Script&lt;br /&gt;
|-&lt;br /&gt;
| FC || ?? || ??&lt;br /&gt;
|-&lt;br /&gt;
| FB || 5 || ??&lt;br /&gt;
|-&lt;br /&gt;
| FA || 3+2*x || Conditional Jump&lt;br /&gt;
|-&lt;br /&gt;
| F0 || 7 || ??&lt;br /&gt;
|-&lt;br /&gt;
| other || 10 or 16 || Declare Sprite with Flags3, Position, Script and optional Death Handler.&lt;br /&gt;
&lt;br /&gt;
If &amp;#039;&amp;#039;&amp;#039;(Extension Flags &amp;amp; 0xC0) == 0xC0&amp;#039;&amp;#039;&amp;#039;, then the command length is 16 and the death handler is specified,&lt;br /&gt;
else the length is 10.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Offset || 0 || 1 || 2 || 3 || 4 || 7 || 10 || 13&lt;br /&gt;
|-&lt;br /&gt;
! Value&lt;br /&gt;
| Flags3 = &amp;lt;br /&amp;gt;(value &amp;amp; 0xC1) &amp;lt;&amp;lt; 8 || X Position || Y Position || Extension Flag || Script || ?? || Death Handler || ??&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nethraz</name></author>
	</entry>
</feed>