
I've been working on a custom Bridge Speeds and Lengths for my games and have the following code:
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 32)
// Escapes: 2+ 2- 2< 2> 2u< 2u> 2/ 2% 2u/ 2u% 2* 2& 2| 2^ 2sto = 2s 2rst = 2r 2psto 2ror = 2rot 2cmp 2ucmp 2<< 2u>> 2>>
// Escapes: 71 70 7= 7! 7< 7> 7G 7g 7gG 7GG 7gg 7c 7C
// Escapes: D= = DR D+ = DF D- = DC Du* = DM D* = DnF Du<< = DnC D<< = DO D& D| Du/ D/ Du% D%
// Format: spritenum imagefile depth xpos ypos xsize ysize xrel yrel zoom flags
0 * 4 22 00 00 00
1 * 29 08 07 03 F8 01 01 "Increase Bridges Speed" 00 //Name of GRF
2 * 8 00 06 01 01 00 0C \w96 //Wooden Speed
3 * 8 00 06 01 01 00 09 \w0 //Wooden Minimum Length
4 * 8 00 06 01 01 00 0A \w126 //Wooden Maximum Length
5 * 8 00 06 01 01 01 0C \w160 //Concrete Speed
6 * 8 00 06 01 01 01 09 \w0 //Concrete Minimum Length
7 * 8 00 06 01 01 01 0A \w4 //Concrete Maximum Length
8 * 8 00 06 01 01 02 0C \w240 //Girder, Steel Speed
9 * 8 00 06 01 01 02 09 \w0 //Girder, Steel Minimum Length
10 * 8 00 06 01 01 02 0A \w4 //Girder, Steel Maximum Length
11 * 8 00 06 01 01 03 0C \w160 //Suspension, Concrete Speed
12 * 8 00 06 01 01 03 09 \w5 //Suspension, Concrete Steel Minimum Length
13 * 8 00 06 01 01 03 0A \w126 //Suspension, Concrete Steel Maximum Length
14 * 8 00 06 01 01 04 0C \w200 //Suspension, Steel (Bronze) Speed
15 * 8 00 06 01 01 04 09 \w5 //Suspension, Steel (Bronze) Minimum Length
16 * 8 00 06 01 01 04 0A \w126 //Suspension, Steel (Bronze) Maximum Length
17 * 8 00 06 01 01 05 0C \w240 //Suspension, Steel (Golden) Speed
18 * 8 00 06 01 01 05 09 \w5 //Suspension, Steel (Golden) Minimum Length
19 * 8 00 06 01 01 05 0A \w126 //Suspension, Steel (Golden) Maximum Length
20 * 8 00 06 01 01 06 0C \w319 //Cantilever, Steel (Bronze) Speed
21 * 8 00 06 01 01 06 09 \w5 //Cantilever, Steel (Bronze) Minimum Length
22 * 8 00 06 01 01 06 0A \w126 //Cantilever, Steel (Bronze) Maximum Length
23 * 8 00 06 01 01 07 0C \w368 //Cantilever, Steel (Brown) Speed
24 * 8 00 06 01 01 07 09 \w5 //Cantilever, Steel (Brown) Minimum Length
25 * 8 00 06 01 01 07 0A \w126 //Cantilever, Steel (Brown) Maximum Length
26 * 8 00 06 01 01 08 0C \w448 //Cantilever, Steel (Red) Speed
27 * 8 00 06 01 01 08 09 \w5 //Cantilever, Steel (Red) Minimum Length
28 * 8 00 06 01 01 08 0A \w126 //Cantilever, Steel (Red) Maximum Length
29 * 8 00 06 01 01 09 0C \w448 //Girder, Steel Speed
30 * 8 00 06 01 01 09 09 \w0 //Girder, Steel Minimum Length
31 * 8 00 06 01 01 09 0A \w4 //Girder, Steel Maximum Length
32 * 8 00 06 01 01 0A 0C \w519 //Tubular, Steel (Bronze) Speed
33 * 8 00 06 01 01 0B 0C \w647 //Tubular, Steel (Golden) Speed
34 * 8 00 06 01 01 0C 0C \w696 //Tubular, Silicon Speed
// The two Tiles of bridge head's are not included in the Length number. If you want a max of 6 use number 4
// 0C Properties Speed
// 09 Properties MIN Length
// 0A Properties MAX Length
// For Help:
// https://wiki.openttd.org/Bridge_types
// http://newgrf-specs.tt-wiki.net/wiki/Action0/Bridges
But I noticed that some NML GRF's in OpenTTD NewGRF Settings Window, have the Set Parameters button disabled, if no parameters exist it doesn't let you click the button (at least it seems that way).
I've looked at the Specs page, but couldn't find anything over if it's OpenTTD that chooses when to do that or if it has to be included in the code.
Thank you
