# HG changeset patch # User Darkvater # Date 1110501144 0 # Node ID 28905e48cb5456be9bdd0613617a9e00c71d50bd # Parent 0e6f39e00dafe9e5464af6bdd1cba8f5f58dc0f7 (svn r1988) - Docs: Added graphical representation of tile-data to docs section diff -r 0e6f39e00daf -r 28905e48cb54 docs/landscape.html --- a/docs/landscape.html Thu Mar 10 22:03:55 2005 +0000 +++ b/docs/landscape.html Fri Mar 11 00:32:24 2005 +0000 @@ -11,7 +11,7 @@

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. +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.

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). diff -r 0e6f39e00daf -r 28905e48cb54 docs/landscape_grid.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/landscape_grid.html Fri Mar 11 00:32:24 2005 +0000 @@ -0,0 +1,230 @@ + + + + + Transport Tycoon Savegame +Internals - Landscape #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.
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
type_map_owner[L1]_map2[L2]_map3[lo& hi,L3]_map_type_and_height[L4]_map5[L5]
groundXXXX XXXXOOOO OOOO OOOO OOOOXXXX OOOO OOXX XXXXXXXX    XXXXXXXX XOXX
railXXXX XXXXXXXX XXXX OOOO OOOO
+
XXXX XXXX XXXO OOOO
+
XXXX    XXXXXXXX XXXX
+
+
    +
  • depot/checkpoint
  • +
+
-inherit-OOOO OOOO OOOO OOOOXXXX XOOO XXXX XXXX-inherit-XXXO OOXX
roadXXXX XXXXXXXX XXXX XXXX XXXXOOOO OOOO XXXX XXXXXXXX    XXXXXXXX XXXX
+
    +
  • level crossing
  • +
+
-inherit-XXXX XXXX XXXX XXXXXXXX XXXX XXXX XXXX-inherit-OOXX XXXX
+
    +
  • road depot
  • +
+
-inherit-OOOO OOOO OOOO OOOOOOOO OOOO OOOO OOOX-inherit-XXXX XXXX
townXXXX XXXXXXXX XXXX XXXX XXXX
+
XXXX XXXX XXXX XXXX
+
XXXX    XXXXXXXX XXOX
treesXXXX XXXXXXXX XXOO OOOO OOOOXXXX XXXX OOXX XXXXXXXX    XXXXXXXO OOXX
stationXXXX XXXXXXXX XXXX XXXX XXXXXXXX XOOO XXXX XXXXXXXX    XXXXXXXX XXXX
waterXXXX XXXXOOOO OOOO OOOO OOOOOOOO OOOO OOOO OOOOXXXX    XXXXXXXX XXXX
industryXXXX XOOXXXXX XXXX XXXX XXXXOOOO OOOO OOOO OOOOXXXX    XXXXXXXX XXXX
+
    +
  • bubble/sugar/toffee
  • +
+
-inherit--inherit-XXXX XXXX OOOO OOOO-inherit--inherit-
+
    +
  • toy factory
  • +
+
-inherit--inherit-XXXX XXXX XXXX XXXX-inherit--inherit-
+
    +
  • gold/copper/coal
  • +
+
XXXX +XXXX-inherit--inherit--inherit--inherit-
+
    +
  • oil wells
  • +
+
-inherit--inherit--inherit--inherit--inherit-
+
    +
  • power station
  • +
+
XXXX XXOX-inherit--inherit--inherit--inherit-
tunnelXXXX XXXXOOOO OOOO OOOO OOOOXXXX OOOO OOOO OOOXXXXX    XXXXXXXX XXXX
+
    +
  • bridge
  • +
+
XXXX XXXXXXXX XXXX OOOO OOOOXXXX XXXX OOOO OOOXXXXX    XXXXXXXX XXXX
various (HQ)XXXX XXXXOOOO OOOO OOOO OOOOOOOO OOOO OOOO OOOOXXXX    XXXXXXXX XXXX
+
+ +