2005-03-11 00:32:24 +00:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
2005-03-11 18:31:56 +00:00
|
|
|
<meta name="Description" content="Structure of OpenTTD (OTTD) landscape arrays #2">
|
|
|
|
<title>OpenTTD Landscape Internals - #2</title>
|
|
|
|
<style type="text/css">
|
2006-01-15 10:26:07 +00:00
|
|
|
span.abuse { font-family: "Courier New", Courier, mono; background-color: rgb(255, 58, 31); }
|
|
|
|
span.free { font-family: "Courier New", Courier, mono; background-color: rgb(30, 178, 54); }
|
|
|
|
span.used { font-family: "Courier New", Courier, mono; }
|
|
|
|
td.bits { white-space: nowrap; text-align: center; font-family: "Courier New", Courier, mono; }
|
|
|
|
td.caption { white-space: nowrap; text-align: left; }
|
|
|
|
td li { white-space: nowrap; text-align: left; }
|
|
|
|
th { white-space: nowrap; text-align: center; }
|
2005-03-11 18:31:56 +00:00
|
|
|
</style>
|
2005-03-11 00:32:24 +00:00
|
|
|
</head>
|
|
|
|
<body style="direction: ltr;">
|
|
|
|
<h3 style="font-weight: bold;">Landscape</h3>
|
2005-07-21 06:13:17 +00:00
|
|
|
<span style="font-weight: bold;"></span>Five attributes hold the information about a tile.
|
2005-03-11 18:31:56 +00:00
|
|
|
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.
|
2005-03-11 00:32:24 +00:00
|
|
|
<ul>
|
2006-01-15 10:26:07 +00:00
|
|
|
<li><span style="font-weight: bold;"><span class="free">O</span></span> - bit is free</li>
|
|
|
|
<li><span style="font-weight: bold;"><span class="used">X</span></span> - bit is used</li>
|
|
|
|
<li><span style="font-weight: bold;"><span class="abuse"> </span></span> - bit of attribute is abused for different purposes</li>
|
2005-03-11 00:32:24 +00:00
|
|
|
</ul>
|
2005-03-11 18:31:56 +00:00
|
|
|
<p>
|
|
|
|
<ul>
|
2005-07-21 06:13:17 +00:00
|
|
|
<li><span style="font-weight: bold;">type_height</span> - 8 bits in size, stores tile height (lower 4 bits) and tile class (upper 4 bits)</li>
|
2005-10-04 17:34:50 +00:00
|
|
|
<li><span style="font-weight: bold;">m1</span> - 8 bits in size, used to identify the owner of that tile (eg piece of rail, bridge, etc.)</li>
|
2005-07-21 06:13:17 +00:00
|
|
|
<li><span style="font-weight: bold;">m2</span> - 16 bits in size, used to identify the index of the given tile (object) in the (object-)array</li>
|
2006-01-15 09:17:01 +00:00
|
|
|
<li><span style="font-weight: bold;">m3</span> - 8 bits in size, is used for general storage</li>
|
|
|
|
<li><span style="font-weight: bold;">m4</span> - 8 bits in size, is used for general storage</li>
|
2005-07-21 06:13:17 +00:00
|
|
|
<li><span style="font-weight: bold;">m5</span> - 8 bits in size, is used for general storage</li>
|
2005-03-11 18:31:56 +00:00
|
|
|
</ul>
|
|
|
|
|
2006-01-16 15:23:06 +00:00
|
|
|
<table align=center border="1" cellpadding="2" cellspacing="2">
|
2005-03-11 00:32:24 +00:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<th colspan=2>class</th>
|
2006-01-15 10:26:07 +00:00
|
|
|
<th>m1 (8)</th>
|
|
|
|
<th>m2 (16)</th>
|
|
|
|
<th>m3 (8)</th>
|
|
|
|
<th>m4 (8)</th>
|
|
|
|
<th>type_height (8)</th>
|
|
|
|
<th>m5 (8)</th>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
2005-07-07 15:21:55 +00:00
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td colspan=2 class="caption">bits</td>
|
2006-01-15 10:46:36 +00:00
|
|
|
<td class="bits">7654 3210</td>
|
|
|
|
<td class="bits">FEDC BA98 7654 3210</td>
|
|
|
|
<td class="bits">7654 3210</td>
|
|
|
|
<td class="bits">7654 3210</td>
|
|
|
|
<td class="bits">7654 3210</td>
|
|
|
|
<td class="bits">7654 3210</td>
|
2005-07-07 15:21:55 +00:00
|
|
|
</tr>
|
2005-03-11 00:32:24 +00:00
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td>0</td>
|
|
|
|
<td class="caption">ground</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO OOOO OOOO</span></td>
|
2006-01-15 10:46:36 +00:00
|
|
|
<td class="bits"><span class="free">OOOO</span> XXXX</td>
|
|
|
|
<td class="bits">XXXX XX<span class="free">OO</span></td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td rowspan=3>1</td>
|
|
|
|
<td class="caption">rail</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
2006-01-15 10:46:36 +00:00
|
|
|
<td class="bits"><span class="free">OOOO OOOO</span> XXXX XXXX</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
- The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
2006-01-29 18:57:26 +00:00
|
|
|
<td class="bits"><span class="free">OOOO O</span>XXX</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td class="caption">depot</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO OOOO OOOO</span></td>
|
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
- The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
2006-01-29 18:57:26 +00:00
|
|
|
<td class="bits"><span class="free">OOOO</span> XXXX</td>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td class="bits"><span class="free">OOOO</span> XXXX</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">XX<span class="free">OO O</span>XXX</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="caption">waypoint</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">XXXX XXXX XXXX XXXX</td>
|
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
- The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
2006-01-29 18:57:26 +00:00
|
|
|
<td class="bits"><span class="free">OOO</span>X XXXX</td>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td class="bits"><span class="free">OOOO</span> XXXX</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">-inherit-</td>
|
2006-01-15 10:46:36 +00:00
|
|
|
<td class="bits">XX<span class="free">OO O</span>XXX</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td rowspan=3>2</td>
|
|
|
|
<td class="caption">road</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td class="bits">XXXX XXXX XXXX XXXX</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits"><span class="free">OOOO OOOO</span></td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td class="caption">level crossing</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
- The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
2006-01-29 18:57:26 +00:00
|
|
|
<td class="bits">XXXX XX<span class="free">OO</span></td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td class="caption">road depot</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO OOOO OOOO</span></td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO</span></td>
|
2006-01-15 10:46:36 +00:00
|
|
|
<td class="bits">X<span class="free">OOO OOOO</span></td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td>3</td>
|
|
|
|
<td class="caption">town</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits"><span class="abuse">XXXX XXXX</span></td>
|
|
|
|
<td class="bits">XXXX XXXX XXXX XXXX</td>
|
2006-01-15 10:46:36 +00:00
|
|
|
<td class="bits">XX<span class="free">OO OOOO</span></td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
2006-01-15 10:46:36 +00:00
|
|
|
<td class="bits">X<span class="free">O</span>XX XXXX</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td>4</td>
|
|
|
|
<td class="caption">trees</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
2006-01-26 18:36:14 +00:00
|
|
|
<td class="bits"><span class="free">OOOO OOOO</span> XXXX XXXX</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
2006-01-15 10:46:36 +00:00
|
|
|
<td class="bits">XXXX XX<span class="free">OO</span></td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
2006-01-15 10:46:36 +00:00
|
|
|
<td class="bits">XX<span class="free">OO O</span>XXX</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td>5</td>
|
|
|
|
<td class="caption">station</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX XXXX XXXX</td>
|
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
- The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
2006-01-29 18:57:26 +00:00
|
|
|
<td class="bits"><span class="free">OOO</span>X XXXX</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td>6</td>
|
|
|
|
<td class="caption">water</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO OOOO OOOO</span></td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO</span></td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO</span></td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td rowspan=6>8</td>
|
|
|
|
<td class="caption">industry</td>
|
2006-01-15 10:46:36 +00:00
|
|
|
<td class="bits"><span class="abuse">X</span><span class="free">OO</span><span class="abuse">X XXXX</span></td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX XXXX XXXX</td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO</span></td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO</span></td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td>bubble/sugar/toffee</td>
|
|
|
|
<td class="bits"><span class="abuse">X</span><span class="free">OOO OOOO</span></td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO</span></td>
|
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td>toy factory</td>
|
|
|
|
<td class="bits"><span class="abuse">X</span><span class="free">OOO OOOO</span></td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td>gold/copper/coal</td>
|
|
|
|
<td class="bits"><span class="abuse">XX</span><span class="free">OO OO</span><span class="abuse">XX</span></td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td>oil wells</td>
|
|
|
|
<td class="bits"><span class="abuse">X</span><span class="free">OOO OO</span><span class="abuse">XX</span></td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td>power station</td>
|
|
|
|
<td class="bits"><span class="abuse">X</span><span class="free">O</span><span class="abuse">XX XX</span><span class="free">OO</span></td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
|
|
|
<td class="bits">-inherit-</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-03-14 09:00:10 +00:00
|
|
|
<td rowspan=3>9</td>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td class="caption">tunnel</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO OOOO OOOO</span></td>
|
2006-01-15 10:46:36 +00:00
|
|
|
<td class="bits"><span class="free">OOOO</span> XXXX</td>
|
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
- The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
2006-01-29 18:57:26 +00:00
|
|
|
<td class="bits">X<span class="free">OOO OOOO</span></td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-03-14 09:00:10 +00:00
|
|
|
<td>bridge ramp</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO</span> <span class="abuse">XXXX</span> <span class="free">OOOO</span></td>
|
|
|
|
<td class="bits"><span class="free">OOOO</span> XXXX</td>
|
|
|
|
<td class="bits">X<span class="free">OOO OOOO</span></td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXX<span class="free">O O</span>XXX</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>bridge middle part</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
2006-01-15 10:46:36 +00:00
|
|
|
<td class="bits"><span class="free">OOOO OOOO</span> <span class="abuse">XXXX XXXX</span></td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
- The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
2006-01-29 18:57:26 +00:00
|
|
|
<td class="bits">X<span class="free">OOO OOOO</span></td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-01-16 15:23:06 +00:00
|
|
|
<td>A</td>
|
|
|
|
<td class="caption">various (HQ)</td>
|
2006-01-15 10:26:07 +00:00
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO OOOO OOOO</span></td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO</span></td>
|
|
|
|
<td class="bits"><span class="free">OOOO OOOO</span></td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
|
|
|
<td class="bits">XXXX XXXX</td>
|
2005-03-11 00:32:24 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2005-03-11 18:31:56 +00:00
|
|
|
|
2005-03-11 00:32:24 +00:00
|
|
|
</body>
|
|
|
|
</html>
|