summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/landscape.html2
-rw-r--r--docs/landscape_grid.html230
2 files changed, 231 insertions, 1 deletions
diff --git a/docs/landscape.html b/docs/landscape.html
index 0690b3405..4b57808a1 100644
--- a/docs/landscape.html
+++ b/docs/landscape.html
@@ -11,7 +11,7 @@
<h3><a name="Landscape">Landscape</a></h3>
<p>
-Five arrays are used to encode the information of the contents of each tile. These arrays are referred to as <a href="#_landscape1">map_owner</a>, <a href="#_landscape2">map2</a>, <a href="#_landscape3">map3_lo</a>, <a href="#_landscape4">type_and_height</a> and <a href="#_landscape5">map5</a>. The known encodings are listed in the table below. The most important value is the class of a tile, stored in the upper 4 bits of the type_and_height array.
+Five arrays are used to encode the information of the contents of each tile. These arrays are referred to as <a href="#_landscape1">map_owner</a>, <a href="#_landscape2">map2</a>, <a href="#_landscape3">map3_lo</a>, <a href="#_landscape4">type_and_height</a> and <a href="#_landscape5">map5</a>. The known encodings are listed in the table below. The most important value is the class of a tile, stored in the upper 4 bits of the type_and_height array. The lower 4 bits are used to encode the height and slope data. For a graphical represenation of the tile-layout have a look at <a href="landscape_grid.html">Landscape grid</a> page.
</p>
<p>
<a name="OwnershipInfo">Owner values</a> <tt>00</tt> through <tt>07</tt> are companies (they're indices into the <a href="#_CompanyArray">array of companies</a>), <tt>10</tt> is no owner, <tt>11</tt> appears to be reserved for water, <tt>80</tt> and above are towns (in this case the low 7 bits contain an index into the <a href="#_TownArray">town array</a>).
diff --git a/docs/landscape_grid.html b/docs/landscape_grid.html
new file mode 100644
index 000000000..6703a75d8
--- /dev/null
+++ b/docs/landscape_grid.html
@@ -0,0 +1,230 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+ <title>Transport Tycoon Savegame
+Internals - Landscape #2</title>
+</head>
+<body style="direction: ltr;">
+<h3 style="font-weight: bold;">Landscape</h3>
+<span style="font-weight: bold;"></span>Five
+arrays are used to encode the information of the contents of the tile.
+This can be seen in the <a href="landscape.html">Landscape</a>
+document. This page tries to give an overview of used and free bits of
+the array so you can quickly see what is used and what is not.<br>
+<ul>
+ <li><span style="font-weight: bold;">O</span>
+- bit is free</li>
+ <li><span style="font-weight: bold;">X</span>
+- bit is used</li>
+</ul>
+<table style="text-align: left;" border="1" cellpadding="2"
+ cellspacing="2" width="100%">
+ <tbody>
+ <tr>
+ <td style="white-space: nowrap; text-align: left;">type</td>
+ <td style="white-space: nowrap; text-align: center;">_map_owner[L1]</td>
+ <td style="white-space: nowrap; text-align: center;">_map2[L2]</td>
+ <td style="white-space: nowrap; text-align: center;">_map3[lo&amp; hi,L3]</td>
+ <td style="white-space: nowrap; text-align: center;">_map_type_and_height[L4]</td>
+ <td style="white-space: nowrap; text-align: center;">_map5[L5]</td>
+ </tr>
+ <tr>
+ <td style="white-space: nowrap; text-align: left;">ground</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX</td>
+ <td style="white-space: nowrap; text-align: center;"><span style="background-color: rgb(30, 178, 54);">OOOO OOOO OOOO OOOO</span></td>
+ <td style="white-space: nowrap; text-align: center;">XXXX <span style="background-color: rgb(30, 178, 54);">OOOO OO</span>XX XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX&nbsp;&nbsp;&nbsp;&nbsp;XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX X<span style="background-color: rgb(30, 178, 54);">O</span>XX</td>
+ </tr>
+ <tr>
+ <td style="white-space: nowrap; text-align: left;">rail</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX <span style="background-color: rgb(30, 178, 54);">OOOO OOOO</span><br>
+ </td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX XXX<span style="background-color: rgb(30, 178, 54);">O OOOO</span><br>
+ </td>
+ <td style="white-space: nowrap; text-align: center;">XXXX&nbsp;&nbsp;&nbsp;&nbsp;XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX<br>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <ul>
+ <li>depot/checkpoint</li>
+ </ul>
+ </td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;"><span style="background-color: rgb(30, 178, 54);">OOOO OOOO OOOO OOOO</span></td>
+ <td style="text-align: center;">XXXX X<span style="background-color: rgb(30, 178, 54);">OOO</span> XXXX XXXX</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="white-space: nowrap; text-align: center;">XXX<span style="background-color: rgb(30, 178, 54);">O OO</span>XX</td>
+ </tr>
+ <tr>
+ <td>road</td>
+ <td style="text-align: center;">XXXX XXXX</td>
+ <td style="text-align: center;">XXXX XXXX XXXX XXXX</td>
+ <td style="text-align: center;"><span style="background-color: rgb(30, 178, 54);">OOOO OOOO</span> XXXX XXXX</td>
+ <td style="text-align: center;">XXXX&nbsp;&nbsp;&nbsp;&nbsp;XXXX</td>
+ <td style="text-align: center;">XXXX XXXX</td>
+ </tr>
+ <tr>
+ <td>
+ <ul>
+ <li>level crossing</li>
+ </ul>
+ </td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">XXXX XXXX XXXX XXXX</td>
+ <td style="text-align: center;">XXXX XXXX XXXX XXXX</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;"><span style="background-color: rgb(30, 178, 54);">OO</span>XX XXXX</td>
+ </tr>
+ <tr>
+ <td>
+ <ul>
+ <li>road depot</li>
+ </ul>
+ </td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;"><span style="background-color: rgb(30, 178, 54);">OOOO OOOO OOOO OOOO</span></td>
+ <td style="text-align: center;"><span style="background-color: rgb(30, 178, 54);">OOOO OOOO OOOO OOO</span>X</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">XXXX XXXX</td>
+ </tr>
+ <tr>
+ <td style="white-space: nowrap; text-align: left;">town</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX XXXX XXXX<br>
+ </td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX XXXX XXXX<br>
+ </td>
+ <td style="white-space: nowrap; text-align: center;">XXXX&nbsp;&nbsp;&nbsp;&nbsp;XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXOX</td>
+ </tr>
+ <tr>
+ <td style="white-space: nowrap; text-align: left;">trees</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XX<span style="background-color: rgb(30, 178, 54);">OO OOOO OOOO</span></td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX OOXX XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX&nbsp;&nbsp;&nbsp;&nbsp;XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXX<span style="background-color: rgb(30, 178, 54);">O OO</span>XX</td>
+ </tr>
+ <tr>
+ <td style="white-space: nowrap; text-align: left;">station</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX XXXX XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XOOO XXXX XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX&nbsp;&nbsp;&nbsp;&nbsp;XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX</td>
+ </tr>
+ <tr>
+ <td style="white-space: nowrap; text-align: left;">water</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX</td>
+ <td style="white-space: nowrap; text-align: center;"><span style="background-color: rgb(30, 178, 54);">OOOO OOOO OOOO OOOO</span></td>
+ <td style="white-space: nowrap; text-align: center;"><span style="background-color: rgb(30, 178, 54);">OOOO OOOO OOOO OOOO</span></td>
+ <td style="white-space: nowrap; text-align: center;">XXXX&nbsp;&nbsp;&nbsp;&nbsp;XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX</td>
+ </tr>
+ <tr>
+ <td style="white-space: nowrap; text-align: left;">industry</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX X<span style="background-color: rgb(30, 178, 54);">OO</span>X</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX XXXX XXXX</td>
+ <td style="white-space: nowrap; text-align: center;"><span style="background-color: rgb(30, 178, 54);">OOOO OOOO OOOO OOOO</span></td>
+ <td style="white-space: nowrap; text-align: center;">XXXX&nbsp;&nbsp;&nbsp;&nbsp;XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX</td>
+ </tr>
+ <tr>
+ <td>
+ <ul>
+ <li>bubble/sugar/toffee</li>
+ </ul>
+ </td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">XXXX XXXX <span style="background-color: rgb(30, 178, 54);">OOOO OOOO</span></td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ </tr>
+ <tr>
+ <td>
+ <ul>
+ <li>toy factory</li>
+ </ul>
+ </td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">XXXX XXXX XXXX XXXX</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ </tr>
+ <tr>
+ <td>
+ <ul>
+ <li>gold/copper/coal</li>
+ </ul>
+ </td>
+ <td style="text-align: center;">XXXX
+XXXX</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ </tr>
+ <tr>
+ <td>
+ <ul>
+ <li>oil wells</li>
+ </ul>
+ </td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ </tr>
+ <tr>
+ <td>
+ <ul>
+ <li>power station</li>
+ </ul>
+ </td>
+ <td style="text-align: center;">XXXX XX<span style="background-color: rgb(30, 178, 54);">O</span>X</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ <td style="text-align: center;">-inherit-</td>
+ </tr>
+ <tr>
+ <td style="white-space: nowrap; text-align: left;">tunnel</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX</td>
+ <td style="white-space: nowrap; text-align: center;"><span style="background-color: rgb(30, 178, 54);">OOOO OOOO OOOO OOOO</span></td>
+ <td style="white-space: nowrap; text-align: center;">XXXX <span style="background-color: rgb(30, 178, 54);">OOOO OOOO OOO</span>X</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX&nbsp;&nbsp;&nbsp;&nbsp;XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX</td>
+ </tr>
+ <tr>
+ <td>
+ <ul>
+ <li>bridge</li>
+ </ul>
+ </td>
+ <td style="text-align: center;">XXXX XXXX</td>
+ <td style="text-align: center;">XXXX XXXX <span style="background-color: rgb(30, 178, 54);">OOOO OOOO</span></td>
+ <td style="text-align: center;">XXXX XXXX <span style="background-color: rgb(30, 178, 54);">OOOO OOO</span>X</td>
+ <td style="text-align: center;">XXXX&nbsp;&nbsp;&nbsp;&nbsp;XXXX</td>
+ <td style="text-align: center;">XXXX XXXX</td>
+ </tr>
+ <tr>
+ <td style="white-space: nowrap; text-align: left;">various (HQ)</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX</td>
+ <td style="white-space: nowrap; text-align: center;"><span style="background-color: rgb(30, 178, 54);">OOOO OOOO OOOO OOOO</span></td>
+ <td style="white-space: nowrap; text-align: center;"><span style="background-color: rgb(30, 178, 54);">OOOO OOOO OOOO OOOO</span></td>
+ <td style="white-space: nowrap; text-align: center;">XXXX&nbsp;&nbsp;&nbsp;&nbsp;XXXX</td>
+ <td style="white-space: nowrap; text-align: center;">XXXX XXXX</td>
+ </tr>
+ </tbody>
+</table>
+<br>
+</body>
+</html>