File: example_industry.nfo

package info (click to toggle)
nml 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,932 kB
  • sloc: python: 20,457; ansic: 109; makefile: 68
file content (146 lines) | stat: -rw-r--r-- 3,209 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
// 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 \d22

1 * 54 14 "C" "INFO"
"B" "VRSN" \w4 \dx00000001
"B" "MINV" \w4 \dx00000001
"B" "NPAR" \w1 00
"B" "PALS" \w1 "A"
"B" "BLTR" \w1 "8"
00
00
2 * 165 08 08 "NML\04" "NML Example NewGRF: Industry" 00 "\8ENML Example NewGRF: Industry\0D\98This NewGRF is intended to provide a coding example for the high-level NewGRF-coding language NML." 00
3 * 37 04 00 FF 01 \wxD000 "\0DGoods produced this month: \90\7C" 00

4 * 52 00 08 \b1 0B FF \wx0000
09 "PASS" "COAL" "MAIL" "OIL_" "LVST"
"GOOD" "GRAI" "WOOD" "IORE" "STEL"
"VALU"

// Name: consume_all_prod
5 * 17 02 0A FF 02 \b3 01 01 08 02 06 03 \b2 09 80 05 81 82

// Name: consume_all_prod@registers
6 * 82 02 0A FF 89
7D 01 20 \dxFFFFFFFF
\2/ 1A 20 \dx00000002
\2+ 7D 02 20 \dxFFFFFFFF
\2sto 1A 20 \dx00000080
\2r 7D 03 20 \dxFFFFFFFF
\2* 1A 20 \dx00000002
\2sto 1A 20 \dx00000081
\2r 1A 20 \dx00000000
\2sto 1A 00 \dx00000082
\b1
\wx00FF \dx00000000 \dx00000000
\wx00FF //

// Name: do_nothing_prod
7 * 7 02 0A FE 02 \b0 \b0 80

// Name: do_nothing_prod@registers
8 * 30 02 0A FE 89
1A 20 \dx00000000
\2sto 1A 00 \dx00000080
\b1
\wx00FE \dx00000000 \dx00000000
\wx00FE //

// Name: factory_production_switch
9 * 69 02 0A FF 89
6F 01 20 \dxFFFFFFFF
\2sto 1A 20 \dx00000001
\2r 6F 08 20 \dxFFFFFFFF
\2sto 1A 20 \dx00000002
\2r 6F 06 20 \dxFFFFFFFF
\2sto 1A 20 \dx00000003
\2r 6F 01 00 \dxFFFFFFFF
\b1
\wx00FE \dx00000000 \dx00000000 	// 0 .. 0: do_nothing_prod;
\wx00FF // default: consume_all_prod;

// Name: @CB_FAILED_PROD
10 * 15 02 0A FE 00 \wx0000 \wx0000 \wx0000 \wx0000 \wx0000 00

// Name: @CB_FAILED0A
11 * 23 02 0A FE 89
0C 00 \dx0000FFFF
\b1
\wx8000 \dx00000000 \dx00000000 	// graphics callback -> return 0
\wx00FE // Non-graphics callback, return graphics result

// Name: extra_text_switch
12 * 31 02 0A FD 89
6A 05 20 \dxFFFFFFFF
\2sto 1A 00 \dx00000100
\b1
\wx00FE \dx00000001 \dx00000000 	// Bogus range to avoid nvar == 0
\wx8000 // default: return string(STR_INDUSTRY_EXTRA_TEXT);

13 * 27 00 0A \b6 01 FF \wx0000
08 06
09 06
25 \b2
09 05
26 \b3
01 08 06
27 \b2
00 00
28 \b0 \b0
14 * 11 00 0A \b2 01 FF \wx0000
21 02
22 01

// Name: @action3_0
15 * 23 02 0A FF 89
18 00 \dx000000FF
\b1
\wx00FF \dx00000000 \dx00000000 	// factory_production_switch;
\wx00FE // @CB_FAILED0A;

// Name: @action3_1
16 * 33 02 0A FE 89
0C 00 \dx0000FFFF
\b2
\wx00FF \dx00000000 \dx00000000 	// @action3_0;
\wx00FD \dx0000003A \dx0000003A 	// extra_text_switch;
\wx00FE // @CB_FAILED0A;

17 * 7 03 0A 01 00 \b0
\wx00FE 	// @action3_1;

18 * 13 00 09 \b3 01 FF \wx0000
08 27
09 27
12 02

19 * 13 00 09 \b3 01 FF \wx0001
08 28
09 28
12 02

20 * 13 00 09 \b3 01 FF \wx0002
08 29
09 29
12 02

21 * 13 00 09 \b3 01 FF \wx0003
08 2A
09 2A
12 02

22 * 26 00 0A \b6 01 FF \wx0001
08 09
09 09
25 \b3
04 06 07
26 \b0
27 \b3
08 0C 04
28 \b0 \b0