// Parameters
// ==========

	// Parameter 0 controls the docks
	// (0 - enables new graphics, 1 - disables new graphics)

	// If parameter 0 = 0 check if newwaterw.grf is active
	1 * 1	09 00 01 \7= 01 03 // if p0 = 1 skip 3
	1 * 1	09 88 04 \7gg 62 70 01 02 02 // if not newwater skip 2
	1 * 1	09 88 04 \7G 62 70 01 02 01 // if newwater active skip 1 (we can overwrite the docks)
	1 * 1	0B 02 7F 05 "newwater(w).grf" 00 // error "indstatr.grf must be loaded after newwater(w).grf"

	// Parameter 1 controls the ship depot
	// (0 - enables new graphics, 1 - disables new graphics)


// Parameter controlling recolour sprites (see actionasprites.nfo)
// ----------------------------------------------------------------
	// Parameter 10 - recolour sprite ID base


// Parameters controlling overlay graphics used dependent on the track type
// ------------------------------------------------------------------------

// Parameters for railtypes GRFs
	// Parameter 1A indicates that maglev has been replaced with a "normal" railtype
	1 * 1	0D 1A \D= FF FF 00 00 00 00 // set parameter 1A to 0
	// Parameter 19 indicates that monorail has been replaced with a "normal" railtype
	1 * 1	0D 19 \D= FF FF 00 00 00 00 // set parameter 19 to 0
	// Parameter 16 indicates a "fine scale" railtypes GRF is loaded
	1 * 1	0D 16 \D= FF FF 00 00 00 00 // set parameter 16 to 0
	// Look for pb_trax
	1 * 1	09 88 04 \7gg 44 44 23 03 01 // if not pb_trax skip 1
	1 * 1	0D 16 \D= FF FF 01 00 00 00 // set parameter 16 to 01
	// Look for xussr tracks
	1 * 1	09 88 04 \7gg 41 4B 41 08 03 // if not xussr skip 3
	1 * 1	0D 11 \D= 00 FE 41 4B 41 08 // set parameter 11 to xussr parameter 0
	1 * 1	09 11 04 \70 04 01 // if p11 bit 4 is off skip 1 (new tracks off)
	1 * 1	0D 16 \D= FF FF 01 00 00 00 // set parameter 16 to 01

// Parameters for track replacement GRFs
	// Parameters 14 and 15 are used for old rail track sets which change track
	// graphics using action A rather than using the railtypes feature.
	// They are also used when a railtypes GRF replaces monorail or maglev.
	// They are set by the detection of various track replacement GRFs.
	// Parameter 14
	//     02 - Monorail
	//     04 - Normal rail
	// Parameter 15
	//     03 - Maglev
	//     05 - Normal rail
	1 * 1	0D 15 \D= FF FF 03 00 00 00 // set parameter 15 to 03
	1 * 1	0D 14 \D= FF FF 02 00 00 00 // set parameter 14 to 02

	// Parameter 13 is used to store the state of ngrails(w).grf parameter 2
	1 * 1	0D 13 \D= FF FF 00 00 00 00 // set parameter 13 to 0

	// Check for FRISS
	1 * 1	09 88 04 \7gg 4A 56 02 01 02 // if not friss rails skip 2
	1 * 1	0D 19 \D= FF FF 01 00 00 00 // set parameter 19 to 01 (metro track replaces monorail)
	1 * 1	0D 14 \D= FF FF 00 00 00 00 // set parameter 14 to 04 (use normal rail overlay)

	// Check for NuTracks
	1 * 1	09 88 04 \7gg 44 4A 54 01 06 // if not nutracks skip 6
	1 * 1	0D 11 \D= 16 FE 44 4A 54 01 // set parameter 11 to nutracks parameter 0x16 (22 - enable narrow gauge)
	1 * 1	09 11 04 \7! 01 00 00 00 04 // if p11 != 1 skip 4 (narrow gauge off)
	1 * 1	0D 1A \D= FF FF 01 00 00 00 // set parameter 1A to 01 (narrow gauge replaces maglev)
	1 * 1	0D 15 \D= FF FF 05 00 00 00 // set parameter 15 to 05 (use normal rail overlay)
	1 * 1	0D 19 \D= FF FF 01 00 00 00 // set parameter 19 to 01 (narrow gauge with catenary replaces monorail)
	1 * 1	0D 14 \D= FF FF 04 00 00 00 // set parameter 14 to 04 (use normal rail overlay)

	// Look for Metro rails
	1 * 1	09 88 04 \7gg 58 53 4D 01 01 // if not metro rails skip 1
	1 * 1	0D 14 \D= FF FF 04 00 00 00 // set parameter 14 to 04

	// Look for Metro Track Set
	1 * 1	09 88 04 \7gg FB FB 04 02 0E // if not metro track skip 14
	1 * 1	0D 17 \D= 04 FE FB FB 04 02 // set parameter 17 to metro track parameter 04
	1 * 1	0D 18 \D= 05 FE FB FB 04 02 // set parameter 18 to metro track parameter 05
	1 * 1	09 17 04 \7! 02 00 00 00 02 // if p17 != 2 skip 2
	1 * 1	0D 19 \D= FF FF 01 00 00 00 // set parameter 19 to 01 (metro track replaces monorail)
	1 * 1	0D 14 \D= FF FF 04 00 00 00 // set parameter 14 to 04
	1 * 1	09 17 04 \7! 03 00 00 00 02 // if p17 != 3 skip 2
	1 * 1	0D 1A \D= FF FF 01 00 00 00 // set parameter 1A to 01 (metro track replaces maglev)
	1 * 1	0D 15 \D= FF FF 05 00 00 00 // set parameter 15 to 05
	1 * 1	09 18 04 \7! 02 00 00 00 02 // if p18 != 2 skip 2
	1 * 1	0D 19 \D= FF FF 01 00 00 00 // set parameter 19 to 01 (metro track with catenary replaces monorail)
	1 * 1	0D 14 \D= FF FF 04 00 00 00 // set parameter 14 to 04
	1 * 1	09 18 04 \7! 03 00 00 00 02 // if p18 != 3 skip 2
	1 * 1	0D 1A \D= FF FF 01 00 00 00 // set parameter 1A to 01 (metro track with catenary replaces maglev)
	1 * 1	0D 15 \D= FF FF 05 00 00 00 // set parameter 15 to 05

	// Look for NG rails parameter
	1 * 1	09 88 04 \7gg 73 66 02 01 05 // if not ngrails skip 5
	1 * 1	0D 13 \D= 02 FE 73 66 02 01 // set parameter 13 to ngrails parameter 2
	1 * 1	09 13 04 \7! 02 00 00 00 01 // if p13 != 2 skip 1
	1 * 1	0D 14 \D= FF FF 04 00 00 00 // set parameter 14 to 04
	1 * 1	09 13 04 \7! 04 00 00 00 01 // if p13 != 4 skip 1
	1 * 1	0D 15 \D= FF FF 05 00 00 00 // set parameter 15 to 05

	// Look for Canadian Trains and Railways (uses maglev slot for narrow gauge rails)
	1 * 1	09 88 08 \7GG 97 85 82 90 FF FF FF F0 04 // if canrail v2.0 skip 4
	1 * 1	09 88 08 \7GG 97 87 E2 80 FF FF FF F0 03 // if canrail v1.6 skip 3
	1 * 1	09 88 04 \7GG 97 83 E2 81 02 // if canrail v1.2 skip 2
	1 * 1	09 88 04 \7GG 43 41 53 62 01 // if cansetw 0.3 to 1.1 skip 1
	1 * 1	09 88 04 \7gg 43 41 53 61 01 // if not cansetw 0.2 skip 1
	1 * 1	0D 15 \D= FF FF 05 00 00 00 // set parameter 15 to 05
