	1 * 1	01 04 04 04
	1 images/vehicles.pcx   56  611  01  24  29 -13  -3 // 042D x, container stacker S old - empty
	1 images/vehicles.pcx   21  611  01  24  29  -5   2 // 042E y, container stacker S old - empty
	1 images/vehicles.pcx   56  649  01  23  29 -13  -5 // 042F x, container stacker S new - empty
	1 images/vehicles.pcx   21  649  01  25  29  -5   1 // 0430 y, container stacker S new - empty

	1 images/vehicles.pcx  146  611  01  26  40 -13  -3 // 042D x, container stacker S old - level 1
	1 images/vehicles.pcx   91  611  01  21  49 -25   3 // 042E y, container stacker S old - level 1
	1 images/vehicles.pcx  146  649  01  28  40 -13  -5 // 042F x, container stacker S new - level 1
	1 images/vehicles.pcx   91  649  01  23  49 -25   1 // 0430 y, container stacker S new - level 1

	1 images/vehicles.pcx  247  611  01  33  40 -13  -5 // 042D x, container stacker S old - level 2
	1 images/vehicles.pcx  192  611  01  26  49 -25   2 // 042E y, container stacker S old - level 2
	1 images/vehicles.pcx  247  649  01  33  40 -13  -5 // 042F x, container stacker S new - level 2
	1 images/vehicles.pcx  192  649  01  27  49 -25   1 // 0430 y, container stacker S new - level 2

	1 images/vehicles.pcx  348  611  01  33  40 -13  -5 // 042D x, container stacker S old - level 3
	1 images/vehicles.pcx  293  611  01  32  49 -25  -4 // 042E y, container stacker S old - level 3
	1 images/vehicles.pcx  348  649  01  33  40 -13  -5 // 042F x, container stacker S new - level 3
	1 images/vehicles.pcx  293  649  01  32  49 -25  -4 // 0430 y, container stacker S new - level 3

	1 * 1	02 04 10 // ID
		0E 01
		\w0 \w1 \w1 \w1 \w1 \w1 \w2 \w2 \w2 \w2 \w2 \w3 \w3 \w3
		\w3

	1 * 1	02 04 11 // ID
		0E 01
		\w0 \w0 \w1 \w1 \w1 \w1 \w1 \w2 \w2 \w2 \w2 \w2 \w3 \w3
		\w3

	1 * 1	02 04 12 // ID
		0E 01
		\w0 \w0 \w0 \w1 \w1 \w1 \w1 \w1 \w2 \w2 \w2 \w2 \w2 \w3
		\w3

	1 * 1	02 04 13 // ID
		0E 01
		\w0 \w0 \w0 \w0 \w1 \w1 \w1 \w1 \w1 \w2 \w2 \w2 \w2 \w2
		\w3

	1 * 1	02 04 00 // ID
		80
		00 // no more cargo (triggered by random in graphics chain)
		12 // use bits 18 and 19
		04
		\wx0010
		\wx0011
		\wx0012
		\wx0013

	1 * 1	02 04 01 // ID
		00 01
		\w0


	1 * 1	00 04 0A 01 CONT_STACKER
		08 "ISRP"

		// Sprite layout
		1A 02
			// 00 (x)
			42
			\dx00000F8D \wx0002 // ground sprite
			10 // register
			\dx8000042F \wx0040 // ground overlay sprite (child)
			00 00 80 // x/y/z offset
			04 // value for variable 10
			\dx8000842D \wx0002
			00 00 00 // x/y/z offset
			10 10 17 // x/y/z extent
			05 // registers

			// 01 (y)
			42
			\dx00000F8D \wx0002 // ground sprite
			10 // register
			\dx80000430 \wx0040 // ground overlay sprite (child)
			00 00 80 // x/y/z offset
			04 // value for variable 10
			\dx8000842E \wx0002
			00 00 00 // x/y/z offset
			10 10 17 // x/y/z extent
			05 // registers


		0B 03 // use callback to determine date availability (1) and layout (2)

		// Only allow a 1 x 1 layout
		0C FE
		0D FE

		10 \w600 // set little/lots threshold

		12 \dxC0003824 // cargo types for randomisation triggers

		11 00 // no pylons
		14 FF // no wires

		15 FF // prevent trains entering the tile from any direction


	// Test variable 10 for real sprites
	1 * 1	02 04 1B // ID
		81 10 // additional information for sprite selection
		00 0F
		01
		\wx0080 04 04 // ground overlay sprites
		\wx0000 // container stacker sprites

	// Test variable 10 for real sprites - no suitable cargo
	1 * 1	02 04 1A // ID
		81 10 // additional information for sprite selection
		00 0F
		01
		\wx0080 04 04 // ground overlay sprites
		\wx0001 // container stacker sprites - empty

	// Offset for later type stacker
	1 * 1	02 04 08 // ID
		85 FA // date station was built
		00 \wxFFFF
		01
		\wx8000 \w0 \w01/01/1980
		\wx8002

	// Offset for later type stacker - purchase
	1 * 1	02 04 09 // ID
		85 00 // current date
		00 \wxFFFF
		01
		\wx8000 \w0 \w01/01/1980
		\wx8002

//@@WARNING DISABLE 100
//@@WARNING DISABLE 170

	1 * 1	02 04 26 // ID
		85
		7E 08 // get offset for later type stacker
		20 \wx7FFF
		\2sto 1A
		20 \wx0005 // store in register - stacker variety sprite offset
		\2rst
		7E BF // get normal/snow/desert offset
		20 \wx7FFF
		\2sto 1A
		00 \wx0010 // store in register - ground sprite offset
		01
		\wx001B \w0 \w0
		\wx001B

	// Empty
	1 * 1	02 04 27 // ID
		85
		7E 08 // get offset for later type stacker
		20 \wx7FFF
		\2sto 1A
		20 \wx0005 // store in register - stacker variety sprite offset
		\2rst
		7E BF // get normal/snow/desert offset
		20 \wx7FFF
		\2sto 1A
		00 \wx0010 // store in register - ground sprite offset
		01
		\wx001A \w0 \w0
		\wx001A

	// Purchase
	1 * 1	02 04 2E // ID
		85
		7E 09 // get offset for later type stacker
		20 \wx7FFF
		\2sto 1A
		20 \wx0005 // store in register - stacker variety sprite offset
		\2rst
		1A // all bits on
		20 \w0 // val = 0
		\2sto 1A
		00 \wx0010 // store in register - ground sprite offset
		01
		\wx001B \w0 \w0
		\wx001B

//@@WARNING ENABLE 100
//@@WARNING ENABLE 170


	// Check for availability
	1 * 1	02 04 0C // ID
		81 01 // current year
		00 FF
		01
		\wx8000 \b0 \b1960 // do not allow build before 1960
		\wx8001

	1 * 1	02 04 10 // ID
		81 0C // callback
		00 FF
		01
		\wx8000 14 14 // sprite layout
		\wx0026 // real sprites

	// For purchase list
	1 * 1	02 04 11 // ID
		81 0C // callback
		00 FF
		02
		\wx000C 13 13 // date availability
		\wx8000 14 14 // sprite layout
		\wx002E // real sprites

//@@WARNING DISABLE 113

	// Random action 2 outside callback triggers re-randomisation
	1 * 1	02 04 09 // ID
		80
		02 // no more cargo
		12 // trigger bits 18 and 19
		04
		\wx0027
		\wx0027
		\wx0027
		\wx0027

//@@WARNING ENABLE 113

	// No suitable cargo
	1 * 1	02 04 12 // ID
		81 0C // callback
		00 FF
		01
		\wx8000 14 14 // sprite layout
		\wx0009 // real sprites

	1 * 1	03 04
		01 CONT_STACKER
		15
		02 \wx0010 // mail
		05 \wx0010 // goods
		0B \wx0010 // paper
		0C \wx0010 // food
		0D \wx0010 // fruit
		1E \wx0010 // fish
		1F \wx0010 // wool
		20 \wx0010 // glass
		21 \wx0010 // ceramics
		22 \wx0010 // bricks
		23 \wx0010 // vehicles
		2A \wx0010 // building materials
		2B \wx0010 // engineering supplies
		2D \wx0010 // farm supplies
		30 \wx0010 // manufacturing supplies
		31 \wx0010 // recyclables
		32 \wx0010 // scrap metal
		37 \wx0010 // sugar
		38 \wx0010 // coffee
		3B \wx0010 // vehicle parts
		FF \wx0011 // purchase list
		\wx0012 // no suitable cargo


	1 * 1	01 04 04 02
	1 images/vehicles.pcx   21  321  01  21  29 -19   8 // 042D x, reach stacker N
	1 images/vehicles.pcx   56  321  01  21  29  -8   8 // 042E y, reach stacker N
	1 images/vehicles.pcx   91  321  01  36  51 -24  -7 // 042D x, reach stacker N
	1 images/vehicles.pcx  148  321  01  36  34  -8  -7 // 042E y, reach stacker N
	1 images/vehicles.pcx  188  321  01  41  51 -24 -12 // 042D x, reach stacker N
	1 images/vehicles.pcx  245  321  01  41  51 -25 -12 // 042E y, reach stacker N
	1 images/vehicles.pcx  302  321  01  41  53 -26 -12 // 042D x, reach stacker N
	1 images/vehicles.pcx  361  321  01  41  53 -25 -12 // 042E y, reach stacker N

	1 * 1	02 04 10 // ID
		0E 01
		\w0 \w1 \w1 \w1 \w1 \w1 \w2 \w2 \w2 \w2 \w2 \w3 \w3 \w3
		\w3

	1 * 1	02 04 11 // ID
		0E 01
		\w0 \w0 \w1 \w1 \w1 \w1 \w1 \w2 \w2 \w2 \w2 \w2 \w3 \w3
		\w3

	1 * 1	02 04 12 // ID
		0E 01
		\w0 \w0 \w0 \w1 \w1 \w1 \w1 \w1 \w2 \w2 \w2 \w2 \w2 \w3
		\w3

	1 * 1	02 04 13 // ID
		0E 01
		\w0 \w0 \w0 \w0 \w1 \w1 \w1 \w1 \w1 \w2 \w2 \w2 \w2 \w2
		\w3

	1 * 1	02 04 00 // ID
		80
		00 // no more cargo (triggered by random in graphics chain)
		12 // use bits 18 and 19
		04
		\wx0010
		\wx0011
		\wx0012
		\wx0013

	1 * 1	02 04 01 // ID
		00 01
		\w0


	1 * 1	00 04 0A 01 REACH_STACKER
		08 "ISRP"

		// Sprite layout
		1A 02
			// 00 (x)
			42
			\dx00000F8D \wx0002 // ground sprite
			10 // register
			\dx8000042F \wx0040 // ground overlay sprite (child)
			00 00 80 // x/y/z offset
			04 // value for variable 10
			\dx8000842D \wx0000
			00 00 00 // x/y/z offset
			10 10 16 // x/y/z extent

			// 01 (y)
			42
			\dx00000F8D \wx0002 // ground sprite
			10 // register
			\dx80000430 \wx0040 // ground overlay sprite (child)
			00 00 80 // x/y/z offset
			04 // value for variable 10
			\dx8000842E \wx0000
			00 00 00 // x/y/z offset
			10 10 16 // x/y/z extent


		0B 03 // use callback to determine date availability (1) and layout (2)

		// Only allow a 1 x 1 layout
		0C FE
		0D FE

		10 \w600 // set little/lots threshold

		12 \dxC0003824 // cargo types for randomisation triggers

		11 00 // no pylons
		14 FF // no wires

		15 FF // prevent trains entering the tile from any direction


	// Test variable 10 for real sprites
	1 * 1	02 04 1B // ID
		81 10 // additional information for sprite selection
		00 0F
		01
		\wx0080 04 04 // ground overlay sprites
		\wx0000 // reach stacker sprites

	// Test variable 10 for real sprites - no suitable cargo
	1 * 1	02 04 1A // ID
		81 10 // additional information for sprite selection
		00 0F
		01
		\wx0080 04 04 // ground overlay sprites
		\wx0001 // reach stacker sprites - empty

//@@WARNING DISABLE 100
//@@WARNING DISABLE 170

	1 * 1	02 04 26 // ID
		85
		7E BF // get normal/snow/desert offset
		20 \wx7FFF
		\2sto 1A
		00 \wx0010 // store in register - ground sprite offset
		01
		\wx001B \w0 \w0
		\wx001B

	// Empty
	1 * 1	02 04 27 // ID
		85
		7E BF // get normal/snow/desert offset
		20 \wx7FFF
		\2sto 1A
		00 \wx0010 // store in register - ground sprite offset
		01
		\wx001A \w0 \w0
		\wx001A

	// Purchase
	1 * 1	02 04 2E // ID
		85
		1A // all bits on
		20 \w0 // val = 0
		\2sto 1A
		00 \wx0010 // store in register - ground sprite offset
		01
		\wx001B \w0 \w0
		\wx001B

//@@WARNING ENABLE 100
//@@WARNING ENABLE 170


	// Check for availability
	1 * 1	02 04 0C // ID
		81 01 // current year
		00 FF
		01
		\wx8000 \b0 \b1995 // do not allow build before 1995
		\wx8001

	1 * 1	02 04 10 // ID
		81 0C // callback
		00 FF
		01
		\wx8000 14 14 // sprite layout
		\wx0026 // real sprites

	// For purchase list
	1 * 1	02 04 11 // ID
		81 0C // callback
		00 FF
		02
		\wx000C 13 13 // date availability
		\wx8000 14 14 // sprite layout
		\wx002E // real sprites

//@@WARNING DISABLE 113

	// Random action 2 outside callback triggers re-randomisation
	1 * 1	02 04 09 // ID
		80
		02 // no more cargo
		12 // trigger bits 18 and 19
		04
		\wx0027
		\wx0027
		\wx0027
		\wx0027

//@@WARNING ENABLE 113

	// No suitable cargo
	1 * 1	02 04 12 // ID
		81 0C // callback
		00 FF
		01
		\wx8000 14 14 // sprite layout
		\wx0009 // real sprites

	1 * 1	03 04
		01 REACH_STACKER
		15
		02 \wx0010 // mail
		05 \wx0010 // goods
		0B \wx0010 // paper
		0C \wx0010 // food
		0D \wx0010 // fruit
		1E \wx0010 // fish
		1F \wx0010 // wool
		20 \wx0010 // glass
		21 \wx0010 // ceramics
		22 \wx0010 // bricks
		23 \wx0010 // vehicles
		2A \wx0010 // building materials
		2B \wx0010 // engineering supplies
		2D \wx0010 // farm supplies
		30 \wx0010 // manufacturing supplies
		31 \wx0010 // recyclables
		32 \wx0010 // scrap metal
		37 \wx0010 // sugar
		38 \wx0010 // coffee
		3B \wx0010 // vehicle parts
		FF \wx0011 // purchase list
		\wx0012 // no suitable cargo
