From fea811a4b7734e57bc982860a23574bdf96beb4b Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 11 Mar 2005 18:31:56 +0000 Subject: (svn r1991) - Fix: Fix some of the gaping holes in the colouring, and added some additional info --- docs/landscape.html | 15 ++--- docs/landscape_grid.html | 155 +++++++++++++++++++++++++---------------------- 2 files changed, 88 insertions(+), 82 deletions(-) (limited to 'docs') diff --git a/docs/landscape.html b/docs/landscape.html index 4b57808a1..2f4f6c775 100644 --- a/docs/landscape.html +++ b/docs/landscape.html @@ -2,22 +2,19 @@ - + -Transport Tycoon Deluxe savegame internals +OpenTTD Landscape Internals

Landscape

-Five arrays are used to encode the information of the contents of each tile. These arrays are referred to as map_owner, map2, map3_lo, type_and_height and map5. 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 Landscape grid page. +Five arrays are used to encode the information of the contents of each tile. These arrays are referred to as "map_owner", "map2", "map3_lo|_hi", "map_type_and_height" and "map5". 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 Landscape grid page.

-Owner values 00 through 07 are companies (they're indices into the array of companies), 10 is no owner, 11 appears to be reserved for water, 80 and above are towns (in this case the low 7 bits contain an index into the town array). -

-

-TTD's class-specific periodic tile processing routine is called once every +256 ticks for each tile. +OTTD's class-specific periodic tile processing routine is called once every +256 ticks for each tile.

@@ -606,13 +603,13 @@ map5 bit 5 set:
-Classes B through F are reserved. The presence of a tile in one of the reserved classes will crash TTD. +Classes B through F are reserved. The presence of a tile in one of the reserved classes will crash OTTD.

-Copyright © 2003 by Marcin Grzegorczyk.
+Original Copyright © 2003 by Marcin Grzegorczyk for TTDLX.
Transport Tycoon and Transport Tycoon Deluxe are Copyright © by Chris Sawyer. All the other trademarks are the property of their respective owners.
diff --git a/docs/landscape_grid.html b/docs/landscape_grid.html index 6703a75d8..df11897c4 100644 --- a/docs/landscape_grid.html +++ b/docs/landscape_grid.html @@ -2,47 +2,57 @@ - Transport Tycoon Savegame -Internals - Landscape #2 + + OpenTTD Landscape Internals - #2 +

Landscape

-Five -arrays are used to encode the information of the contents of the tile. -This can be seen in the Landscape -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.
+Five arrays are used to encode the information of the contents of the tile. +This can be seen in the Landscape 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. +

+

+ - - - - - - + + + + + + - + - - + + - + - - - + + - - - + + - + - + - - + + - + - + - - + + - - + + - + - - - - + + + + - + - + - + - + - - + + - - + + - + - + @@ -161,11 +171,10 @@ the array so you can quickly see what is used and what is not.
- + @@ -174,7 +183,7 @@ XXXX @@ -186,45 +195,45 @@ XXXX - + - + - - + + - - + + - + - - + +
type_map_owner[L1]_map2[L2]_map3[lo& hi,L3]_map_type_and_height[L4]_map5[L5]class_map_owner[L1] (8)_map2[L2] (16)_map3[lo& hi,L3] (16)_map_type_and_height[L4] (8)_map5[L5] (8)
ground(0) ground XXXX XXXXOOOO OOOO OOOO OOOOXXXX OOOO OOXX XXXXOOOO OOOO OOOO OOOOXXXX OOOO OOXX XXXX XXXX    XXXXXXXX XOXXXXXX XOXX
railXXXX XXXXXXXX XXXX OOOO OOOO
+
(1) railXXXX XXXXXXXX XXXX OOOO OOOO
XXXX XXXX XXXO OOOO
+
XXXX XXXX XXXO OOOO
XXXX    XXXX XXXX XXXX
@@ -51,105 +61,105 @@ the array so you can quickly see what is used and what is not.
    -
  • depot/checkpoint
  • +
  • depot/checkpoint
-inherit-OOOO OOOO OOOO OOOOXXXX XOOO XXXX XXXXOOOO OOOO OOOO OOOOXXXX XOOO XXXX XXXX -inherit-XXXO OOXXXXXO OOXX
road(2) road XXXX XXXXXXXX XXXX XXXX XXXXOOOO OOOO XXXX XXXXXXXX XXXX XXXX XXXXOOOO OOOO XXXX XXXX XXXX    XXXX XXXX XXXX
    -
  • level crossing
  • +
  • level crossing
-inherit-XXXX XXXX XXXX XXXXXXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX -inherit-OOXX XXXXOOXX XXXX
    -
  • road depot
  • +
  • road depot
-inherit-OOOO OOOO OOOO OOOOOOOO OOOO OOOO OOOXOOOO OOOO OOOO OOOOOOOO OOOO OOOO OOOX -inherit- XXXX XXXX
townXXXX XXXX(3) townXXXX XXXX XXXX XXXX XXXX XXXX
XXXX XXXX XXXX XXXX
XXXX    XXXXXXXX XXOXXXXX XXOX
treesXXXX XXXXXXXX XXOO OOOO OOOOXXXX XXXX OOXX XXXX(4) treesXXXX XXXXXXXX XXOO OOOO OOOOXXXX XXXX OOXX XXXX XXXX    XXXXXXXO OOXXXXXO OOXX
station(5) station XXXX XXXX XXXX XXXX XXXX XXXXXXXX XOOO XXXX XXXXXXXX XOOO XXXX XXXX XXXX    XXXX XXXX XXXX
water(6) water XXXX XXXXOOOO OOOO OOOO OOOOOOOO OOOO OOOO OOOOOOOO OOOO OOOO OOOOOOOO OOOO OOOO OOOO XXXX    XXXX XXXX XXXX
industryXXXX XOOX(8) industryXXXX XOOX XXXX XXXX XXXX XXXXOOOO OOOO OOOO OOOOOOOO OOOO OOOO OOOO XXXX    XXXX XXXX XXXX
    -
  • bubble/sugar/toffee
  • +
  • bubble/sugar/toffee
-inherit- -inherit-XXXX XXXX OOOO OOOOXXXX XXXX OOOO OOOO -inherit- -inherit-
    -
  • toy factory
  • +
  • toy factory
-inherit-
    -
  • gold/copper/coal
  • +
  • gold/copper/coal
XXXX -XXXXXXXX XXXX -inherit- -inherit- -inherit-
    -
  • oil wells
  • +
  • oil wells
-inherit-
    -
  • power station
  • +
  • power station
XXXX XXOXXXXX XXOX -inherit- -inherit- -inherit- -inherit-
tunnel(9) tunnel XXXX XXXXOOOO OOOO OOOO OOOOXXXX OOOO OOOO OOOXOOOO OOOO OOOO OOOOXXXX OOOO OOOO OOOX XXXX    XXXX XXXX XXXX
    -
  • bridge
  • +
  • bridge
XXXX XXXXXXXX XXXX OOOO OOOOXXXX XXXX OOOO OOOXXXXX XXXX OOOO OOOOXXXX XXXX OOOO OOOX XXXX    XXXX XXXX XXXX
various (HQ)(10) various (HQ) XXXX XXXXOOOO OOOO OOOO OOOOOOOO OOOO OOOO OOOOOOOO OOOO OOOO OOOOOOOO OOOO OOOO OOOO XXXX    XXXX XXXX XXXX
-
+ -- cgit v1.2.3-54-g00ecf