-
Notifications
You must be signed in to change notification settings - Fork 1
/
buggyStuff.cs
650 lines (583 loc) · 27.5 KB
/
buggyStuff.cs
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
using System.Text;
using System.Windows.Forms;
using System.Linq;
namespace BuggyExchange
{
class nameLengths
{
public int name { get; set; }
public int number { get; set; }
public nameLengths(int name, int number)
{
this.name = name;
this.number = number;
}
}
public partial class Form1 : Form
{
void parseSaveNow(string file)
{
//need to find all of the rolling stock in the file, find "FrameTypeArray" in the file, number of cars in the save is at this position +58 bytes
buff = File.ReadAllBytes(file);
int found = findInBytes("FrameTypeArray");
if (found == -1)
{
MessageBox.Show("Unable to find 'FrameTypeArray' in this save file. Make sure you dropped a valid save file here.");
this.Text = "Invalid File - Try Again";
return;
}
checkedListBox1.Items.Clear();
//now we need to get the number of cars
numSourceCars = buff[found + 58] + (buff[found + 59] * 256);
if (numSourceCars == 0)
{
MessageBox.Show("Note: this save does not contain any buggies.");
return;
}
//name that shows up, max length of name, max length of number field
Dictionary<string, nameLengths> nameDict = new Dictionary<string, nameLengths>()
{
{"flatcar_logs", new nameLengths( 10, 4 ) },
{"flatcar_stakes",new nameLengths( 10, 4 )},
{"flatcar_cordwood", new nameLengths( 10, 4 )},
{"flatcar_hopper", new nameLengths( 10, 4 )},
{"flatcar_tanker", new nameLengths( 12, 4 )},
{"boxcar", new nameLengths( 15, 4 )}
//{"", 10, 4},
//{"", 10, 4},
//{"", 10, 4},
//{"", 10, 4},
//{"", 10, 4},
//{"", 10, 4}
};
//1234567890123456789012345678901234567890
frameTypes = new string[numSourceCars];
framePositionsX = new float[numSourceCars];
framePositionsY = new float[numSourceCars];
framePositionsZ = new float[numSourceCars];
buggyDrawX = new float[numSourceCars];
buggyDrawY = new float[numSourceCars];
frameRotationsX = new float[numSourceCars];
frameRotationsY = new float[numSourceCars];
frameRotationsZ = new float[numSourceCars];
carShortName = new string[numSourceCars];
carShortNumber = new string[numSourceCars];
cargoShortName = new string[numSourceCars];
// CAR TYPES
int i = 0;
int pos = found + 66;
int l;
while (i < numSourceCars)
{
l = buff[pos - 4]; //this is the length of the string we're getting
frameTypes[i] = buffToString(pos, l);
checkedListBox1.Items.Add(" (" + frameTypes[i].Substring(0, frameTypes[i].Length - 1) + ")");
pos += l + 4;
i++;
}
//-------------------------------------------
// LOCATIONS
found = findInBytes("FrameLocationArray");
if (found == -1)
{
MessageBox.Show("Unable to find 'FrameLocationArray' in this save file. Make sure you dropped a valid save file here.");
this.Text = "Invalid File - Try Again";
checkedListBox1.Items.Clear();
return;
}
FrameLocationArray = getVectorArray(Encoding.ASCII.GetBytes("FrameLocationArray"), 147);
i = 0;
pos = found + 147;
while (i < numSourceCars)
{
framePositionsX[i] = System.BitConverter.ToSingle(buff, pos);
framePositionsY[i] = System.BitConverter.ToSingle(buff, pos + 4);
framePositionsZ[i] = System.BitConverter.ToSingle(buff, pos + 8);
//Debug.WriteLine(framePositionsX[i].ToString() + ", " + framePositionsY[i].ToString() + ", " + framePositionsZ[i].ToString());
//show these on the map so we can click them or highlight or something.
pos += 12;
i++;
}
//-------------------------------------------
// Rotations
found = findInBytes("FrameRotationArray");
if (found == -1)
{
MessageBox.Show("Unable to find 'FrameRotationArray' in this save file. Make sure you dropped a valid save file here.");
this.Text = "Invalid File - Try Again";
checkedListBox1.Items.Clear();
return;
}
FrameRotationArray = getVectorArray(Encoding.ASCII.GetBytes("FrameRotationArray"), 148);
i = 0;
pos = found + 148;
while (i < numSourceCars)
{
frameRotationsX[i] = System.BitConverter.ToSingle(buff, pos);
frameRotationsY[i] = System.BitConverter.ToSingle(buff, pos + 4);
frameRotationsZ[i] = System.BitConverter.ToSingle(buff, pos + 8);
//Debug.WriteLine(frameRotationsX[i].ToString() + ", " + frameRotationsY[i].ToString() + ", " + frameRotationsZ[i].ToString());
//show these on the map so we can click them or highlight or something.
pos += 12;
i++;
}
//the rest of the file data is read in using standardized functions for each type
//FrameNumberArray (string)
FrameNumberArray = getStringArray(FrameNumberHeader, FrameNumberLenPos);
if (FrameNumberArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse buggy Numbers.");
return;
}
else
{
for (i = 0; i < numSourceCars; i++)
{
if (FrameNumberArray[i].Length > 9)
carShortNumber[i] = Encoding.ASCII.GetString(FrameNumberArray[i], 13, FrameNumberArray[i].Length - 14);
}
}
FrameNameArray = getStringArray(FrameNameHeader, FrameNameLenPos);
if (FrameNameArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse buggy Names.");
return;
}
else
{
for (i = 0; i < numSourceCars; i++)
if (FrameNameArray[i].Length == 102) carShortName[i] = "";
else
{
if (FrameNameArray[i].Length > 106)
carShortName[i] = Encoding.ASCII.GetString(FrameNameArray[i], 90, FrameNameArray[i].Length - 107);
else
if (FrameNameArray[i].Length > 9)
carShortName[i] = Encoding.ASCII.GetString(FrameNameArray[i], 13, FrameNameArray[i].Length - 14);
}
}
//Debug.WriteLine("Getting Cargo:");
//FreightTypeArray (string)
FreightTypeArray = getCargoArray(FreightTypeHeader, FreightTypeLenPos);
if (FreightTypeArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse Freight Types.");
return;
}
else
{
for (i = 0; i < numSourceCars; i++)
if (FreightTypeArray[i].Length > 4)
cargoShortName[i] = Encoding.ASCII.GetString(FreightTypeArray[i], 4, FreightTypeArray[i].Length - 5);
}
//Debug.WriteLine("Done Getting Cargo:");
//display these in the list
for (int j = 0; j < numSourceCars; j++)
{
string toadd = "";
if (carShortName[j] != null && carShortName[j].Length > 0)
{
toadd = carShortName[j] + " ";
}
if (carShortNumber[j] != null && carShortNumber[j].Length > 0)
{
toadd += "#" + carShortNumber[j] + " ";
}
if (cargoShortName[j] != null && cargoShortName[j].Length > 0)
toadd += "[" + cargoShortName[j] + "]";
checkedListBox1.Items[j] = toadd + checkedListBox1.Items[j];
}
//--------------------------------------------------------------------------------------------------------
//SmokestackTypeArray (Int)
SmokestackTypeArray = getIntArray(SmokestackTypeHeader, SmokestackTypeLenPos);
if (SmokestackTypeArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse Smokestacks.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//HeadlightTypeArray (Int)
HeadlightTypeArray = getIntArray(HeadlightTypeHeader, HeadlightTypeLenPos);
if (HeadlightTypeArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse Headlights.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//PaintTypeArray (Int)
PaintTypeArray = getIntArray(PaintTypeHeader, PaintTypeLenPos, true);
if (PaintTypeArray == null || PaintTypeArray.Length == 0)
{
this.Text = "Parsing File...";
//old saves don't contain paint data so we'll just add this in manually.
PaintTypeArray = new byte[numSourceCars][];
for (int j = 0; j < numSourceCars; j++)
{
PaintTypeArray[j] = new byte[] { 0x00, 0x00, 0x00, 0x00 };
}
//MessageBox.Show("Error reading file: cannot parse PaintType.");
//nearestBuggy = -1;
//return;
}
//--------------------------------------------------------------------------------------------------------
//BoilerFuelAmountArray (float)
BoilerFuelAmountArray = getIntArray(BoilerFuelAmountHeader, BoilerFuelAmountLenPos);
if (BoilerFuelAmountArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse BoilerFuelAmount.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//BoilerFireTempArray (float)
BoilerFireTempArray = getIntArray(BoilerFireTempHeader, BoilerFireTempLenPos);
if (BoilerFireTempArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse BoilerFireTemp.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//BoilerWaterTempArray (float)
BoilerWaterTempArray = getIntArray(BoilerWaterTempHeader, BoilerWaterTempLenPos);
if (BoilerWaterTempArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse BoilerWaterTemp.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//BoilerWaterLevelArray (float)
BoilerWaterLevelArray = getIntArray(BoilerWaterLevelHeader, BoilerWaterLevelLenPos);
if (BoilerWaterLevelArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse BoilerWaterLevel.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//BoilerPressureArray (float)
BoilerPressureArray = getIntArray(BoilerPressureHeader, BoilerPressureLenPos);
if (BoilerPressureArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse BoilerPressure.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//HeadlightFrontStateArray (bool)
HeadlightFrontStateArray = getBoolArray(HeadlightFrontStateHeader, HeadlightFrontStateLenPos);
if (HeadlightFrontStateArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse HeadlightFrontState.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//HeadlightRearStateArray (bool)
HeadlightRearStateArray = getBoolArray(HeadlightRearStateHeader, HeadlightRearStateLenPos);
if (HeadlightRearStateArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse HeadlightRearState.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//CouplerFrontStateArray (bool)
CouplerFrontStateArray = getBoolArray(CouplerFrontStateHeader, CouplerFrontStateLenPos);
if (CouplerFrontStateArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse CouplerFrontState.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//CouplerRearStateArray (bool)
CouplerRearStateArray = getBoolArray(CouplerRearStateHeader, CouplerRearStateLenPos);
if (CouplerRearStateArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse CouplerRearState.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//TenderFuelAmountArray (float)
TenderFuelAmountArray = getIntArray(TenderFuelAmountHeader, TenderFuelAmountLenPos);
if (TenderFuelAmountArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse TenderFuelAmount.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//TenderWaterAmountArray (float)
TenderWaterAmountArray = getIntArray(TenderWaterAmountHeader, TenderWaterAmountLenPos);
if (TenderWaterAmountArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse TenderWaterAmount.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//CompressorAirPressureArray (float)
CompressorAirPressureArray = getIntArray(CompressorAirPressureHeader, CompressorAirPressureLenPos);
if (CompressorAirPressureArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse CompressorAirPressure.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//MarkerLightsFrontRightStateArray (Int)
MarkerLightsFrontRightStateArray = getIntArray(MarkerLightsFrontRightStateHeader, MarkerLightsFrontRightStateLenPos);
if (MarkerLightsFrontRightStateArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse MarkerLightsFrontRightState.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//MarkerLightsFrontLeftStateArray (Int)
MarkerLightsFrontLeftStateArray = getIntArray(MarkerLightsFrontLeftStateHeader, MarkerLightsFrontLeftStateLenPos);
if (MarkerLightsFrontLeftStateArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse MarkerLightsFrontLeftState.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//MarkerLightsRearRightStateArray (Int)
MarkerLightsRearRightStateArray = getIntArray(MarkerLightsRearRightStateHeader, MarkerLightsRearRightStateLenPos);
if (MarkerLightsRearRightStateArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse MarkerLightsRearRightState.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//MarkerLightsRearLeftStateArray (Int)
MarkerLightsRearLeftStateArray = getIntArray(MarkerLightsRearLeftStateHeader, MarkerLightsRearLeftStateLenPos);
if (MarkerLightsRearLeftStateArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse MarkerLightsRearLeftState.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//MarkerLightsCenterStateArray (Int)
MarkerLightsCenterStateArray = getIntArray(MarkerLightsCenterStateHeader, MarkerLightsCenterStateLenPos);
if (MarkerLightsCenterStateArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse MarkerLightsCenterState.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//FreightAmountArray (Int)
FreightAmountArray = getIntArray(FreightAmountHeader, FreightAmountLenPos);
if (FreightAmountArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse FreightAmount.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//RegulatorValueArray (float)
RegulatorValueArray = getIntArray(RegulatorValueHeader, RegulatorValueLenPos);
if (RegulatorValueArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse RegulatorValue.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//BrakeValueArray (float)
BrakeValueArray = getIntArray(BrakeValueHeader, BrakeValueLenPos);
if (BrakeValueArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse BrakeValue.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//GeneratorValveValueArray (float)
GeneratorValveValueArray = getIntArray(GeneratorValveValueHeader, GeneratorValveValueLenPos);
if (GeneratorValveValueArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse GeneratorValveValue.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//CompressorValveValueArray (float)
CompressorValveValueArray = getIntArray(CompressorValveValueHeader, CompressorValveValueLenPos);
if (CompressorValveValueArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse CompressorValveValue.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//ReverserValueArray (float)
ReverserValueArray = getIntArray(ReverserValueHeader, ReverserValueLenPos);
if (ReverserValueArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse ReverserValue.");
nearestBuggy = -1;
return;
}
//--------------------------------------------------------------------------------------------------------
//SanderAmountArray (float)
SanderAmountArray = getIntArray(SanderAmountHeader, SanderAmountLenPos, true);
if (SanderAmountArray.Length == 0)
{
MessageBox.Show("Error reading file: cannot parse SanderAmount.");
nearestBuggy = -1;
return;
}
scaleChanged();
this.Text = "File Loaded. " + checkedListBox1.Items.Count.ToString() + " buggies found.";
}
byte[] convertHeader(string hex)
{
string[] all = hex.Split(' ');
byte[] tOut = new byte[all.Length];
for (int i = 0; i < all.Length; i++)
tOut[i] = byte.Parse(all[i], System.Globalization.NumberStyles.AllowHexSpecifier);
return tOut;
}
byte[] FrameLocationHeader;
byte[] FrameRotationHeader;
byte[] FrameTypeHeader;
byte[] FrameNameHeader;
byte[] FrameNumberHeader;
byte[] SmokestackTypeHeader;
byte[] HeadlightTypeHeader;
byte[] PaintTypeHeader;
byte[] BoilerFuelAmountHeader;
byte[] BoilerFireTempHeader;
byte[] BoilerWaterTempHeader;
byte[] BoilerWaterLevelHeader;
byte[] BoilerPressureHeader;
byte[] HeadlightFrontStateHeader;
byte[] HeadlightRearStateHeader;
byte[] CouplerFrontStateHeader;
byte[] CouplerRearStateHeader;
byte[] TenderFuelAmountHeader;
byte[] TenderWaterAmountHeader;
byte[] CompressorAirPressureHeader;
byte[] MarkerLightsFrontRightStateHeader;
byte[] MarkerLightsFrontLeftStateHeader;
byte[] MarkerLightsRearRightStateHeader;
byte[] MarkerLightsRearLeftStateHeader;
byte[] MarkerLightsCenterStateHeader;
byte[] FreightTypeHeader;
byte[] FreightAmountHeader;
byte[] RegulatorValueHeader;
byte[] BrakeValueHeader;
byte[] GeneratorValveValueHeader;
byte[] CompressorValveValueHeader;
byte[] ReverserValueHeader;
byte[] SanderAmountHeader;
int FrameLocationLenPos = 41;
int FrameRotationLenPos = 41;
int FrameTypeLenPos = 37;
int FrameNameLenPos = 37;
int FrameNumberLenPos = 39;
int SmokestackTypeLenPos = 42;
int HeadlightTypeLenPos = 41;
int PaintTypeLenPos = 37;
int BoilerFuelAmountLenPos = 44;
int BoilerFireTempLenPos = 42;
int BoilerWaterTempLenPos = 43;
int BoilerWaterLevelLenPos = 44;
int BoilerPressureLenPos = 42;
int HeadlightFrontStateLenPos = 47;
int HeadlightRearStateLenPos = 46;
int CouplerFrontStateLenPos = 45;
int CouplerRearStateLenPos = 44;
int TenderFuelAmountLenPos = 44;
int TenderWaterAmountLenPos = 45;
int CompressorAirPressureLenPos = 49;
int MarkerLightsFrontRightStateLenPos = 55;
int MarkerLightsFrontLeftStateLenPos = 54;
int MarkerLightsRearRightStateLenPos = 54;
int MarkerLightsRearLeftStateLenPos = 53;
int MarkerLightsCenterStateLenPos = 51;
int FreightTypeLenPos = 39;
int FreightAmountLenPos = 41;
int RegulatorValueLenPos = 42;
int BrakeValueLenPos = 38;
int GeneratorValveValueLenPos = 47;
int CompressorValveValueLenPos = 48;
int ReverserValueLenPos = 41;
int SanderAmountLenPos = 40;
string[] carShortName, carShortNumber, cargoShortName;
byte[][] FrameLocationArray;
byte[][] FrameRotationArray;
byte[][] FrameNameArray;
byte[][] FrameNumberArray;
byte[][] SmokestackTypeArray;
byte[][] HeadlightTypeArray;
byte[][] PaintTypeArray;
byte[][] BoilerFuelAmountArray;
byte[][] BoilerFireTempArray;
byte[][] BoilerWaterTempArray;
byte[][] BoilerWaterLevelArray;
byte[][] BoilerPressureArray;
byte[] HeadlightFrontStateArray;
byte[] HeadlightRearStateArray;
byte[] CouplerFrontStateArray;
byte[] CouplerRearStateArray;
byte[][] TenderFuelAmountArray;
byte[][] TenderWaterAmountArray;
byte[][] CompressorAirPressureArray;
byte[][] MarkerLightsFrontRightStateArray;
byte[][] MarkerLightsFrontLeftStateArray;
byte[][] MarkerLightsRearRightStateArray;
byte[][] MarkerLightsRearLeftStateArray;
byte[][] MarkerLightsCenterStateArray;
byte[][] FreightTypeArray;
byte[][] FreightAmountArray;
byte[][] RegulatorValueArray;
byte[][] BrakeValueArray;
byte[][] GeneratorValveValueArray;
byte[][] CompressorValveValueArray;
byte[][] ReverserValueArray;
byte[][] SanderAmountArray;
byte[][] FrameLocationArray2;
byte[][] FrameRotationArray2;
byte[][] FrameNameArray2;
byte[][] FrameNumberArray2;
byte[][] SmokestackTypeArray2;
byte[][] HeadlightTypeArray2;
byte[][] PaintTypeArray2;
byte[][] BoilerFuelAmountArray2;
byte[][] BoilerFireTempArray2;
byte[][] BoilerWaterTempArray2;
byte[][] BoilerWaterLevelArray2;
byte[][] BoilerPressureArray2;
byte[] HeadlightFrontStateArray2;
byte[] HeadlightRearStateArray2;
byte[] CouplerFrontStateArray2;
byte[] CouplerRearStateArray2;
byte[][] TenderFuelAmountArray2;
byte[][] TenderWaterAmountArray2;
byte[][] CompressorAirPressureArray2;
byte[][] MarkerLightsFrontRightStateArray2;
byte[][] MarkerLightsFrontLeftStateArray2;
byte[][] MarkerLightsRearRightStateArray2;
byte[][] MarkerLightsRearLeftStateArray2;
byte[][] MarkerLightsCenterStateArray2;
byte[][] FreightTypeArray2;
byte[][] FreightAmountArray2;
byte[][] RegulatorValueArray2;
byte[][] BrakeValueArray2;
byte[][] GeneratorValveValueArray2;
byte[][] CompressorValveValueArray2;
byte[][] ReverserValueArray2;
byte[][] SanderAmountArray2;
}
}