/
HelperFuns.cpp
833 lines (704 loc) · 69.4 KB
/
HelperFuns.cpp
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
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
#include "stdafx.h"
#include "HelperFuns.h"
int eggStages[6] = { 43,11,12,21,27 ,35};
int sonicStages[9] = { 3,10,13,22,28,30,31,34 ,64};
int shadowStages[4] = { 4,6,14,40 };
int tailsStages[5] = { 9,17,23,24,36 };
int knuxStages[6] = { 5,7,16,25,32,38 };
int rougeStages[5] = { 44,26,18,8 ,37};
int PilotLines[5] = { 0,2,4,5 ,-1};
int RadioLines[6] = { 1,3,6,1806,2092 ,-1 };
int SonicLines[312] = { 7,8,9,10,11,12,13,16,18,19,20,21,23,25,26,28,30,31,32,65,67,70,72,74,77,80,81,83,85,87,88,95,97,98,103,115,117,133,137,139,143,146,147,148,151,155,157,159,166,168,173,177,178,181,183,184,187,188,196,203,205,210,235,237,240,244,249,250,257,261,264,265,267,268,271,275,277,286,294,300,363,364,367,369,370,371,372,374,376,377,379,381,383,384,435,436,438,440,442,482,484,487,488,495,536,538,541,545,555,576,578,589,611,613,614,636,659,661,663,665,684,692,693,701,716,718,719,916,928,940,952,964,976,988,1000,1013,1025,1037,1049,1061,1073,1085,1098,1109,1120,1131,1142,1153,1164,1175,1186,1197,1375,1381,1462,1468,1503,1505,1507,1509,1511,1513,1515,1517,1519,1521,1523,1525,1527,1529,1531,1533,1535,1537,1539,1541,1543,1545,1547,1549,1551,1553,1555,1557,1559,1561,1563,1565,1567,1569,1571,1573,1575,1577,1579,1581,1583,1585,1587,1589,1591,1593,1595,1597,1599,1601,1603,1605,1606,1607,1608,1610,1612,1613,1750,1751,1785,1790,1795,1810,1811,1900,1901,1906,1908,1926,1927,1997,1998,2131,2133,2138,2140,2144,2146,2151,2152,2155,2156,2157,2161,2162,2229,2236,2237,2238,2239,2240,2241,2242,2243,2247,2248,2249,2250,2251,2252,2253,2254,2255,2286,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2587,2588,2589,2599,2600,2601,2602,2603,2624,2625,2626,2627,2628,2629,2634,2635,2636,2637,2638,2643,2644,2645,2646,2647,2648,2649,2659,2660 ,-1 };
int ShadowLines[227] = { 14,15,22,27,82,84,266,269,270,273,284,287,297,301,314,316,319,323,325,352,353,356,358,361,362,365,366,373,378,389,390,393,394,395,397,426,431,432,433,434,437,439,443,446,448,449,452,457,459,463,472,476,477,557,559,561,563,565,570,572,574,575,577,579,642,650,655,657,664,666,674,691,694,695,913,925,937,949,961,973,985,997,1010,1022,1034,1046,1058,1070,1082,1095,1107,1117,1128,1139,1150,1161,1172,1183,1194,1379,1385,1461,1467,1502,1504,1506,1508,1510,1512,1514,1516,1518,1520,1522,1524,1526,1528,1530,1532,1534,1536,1538,1540,1542,1544,1546,1548,1550,1552,1554,1556,1558,1560,1562,1564,1566,1568,1570,1572,1574,1576,1578,1580,1582,1584,1586,1588,1590,1592,1594,1596,1598,1600,1602,1604,1898,1899,1936,1937,1940,1941,2041,2042,2122,2130,2132,2137,2139,2143,2145,2153,2154,2158,2159,2160,2163,2164,2212,2213,2214,2215,2216,2217,2218,2219,2224,2225,2226,2227,2228,2230,2285,2478,2479,2480,2481,2482,2493,2494,2495,2496,2528,2529,2530,2531,2532,2533,2534,2539,2540,2541,2567,2568,2569,2570,2571,2572,2573,2574,2575,2620,2621,2622,2623,2657,2658 ,-1 };
int NALines[106] = { 17,24,34,37,99,101,106,107,108,109,110,111,112,113,121,140,192,272,315,317,320,328,331,368,375,382,409,410,444,470,595,601,622,625,626,667,891,908,920,932,944,956,968,980,992,1004,1012,1017,1029,1041,1053,1065,1077,1090,1097,1102,1425,1453,1455,1457,1478,1609,1611,1855,1856,1857,1858,1859,1907,1960,1962,1964,1966,1991,2013,2053,2054,2055,2056,2057,2058,2059,2060,2135,2207,2209,2354,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471 ,-1 };
int GUNLines[2] = { 29 ,-1 };
int RougeLines[257] = { 33,38,42,45,46,49,211,214,216,217,219,220,222,224,226,229,231,232,233,289,293,303,327,332,336,339,340,343,385,386,387,399,400,402,404,406,408,412,428,429,430,450,451,453,456,458,461,462,464,466,471,473,474,475,496,497,498,499,500,501,502,505,507,508,510,511,513,515,517,520,522,523,524,558,560,562,564,566,567,568,571,573,591,593,594,596,615,617,618,623,631,632,680,687,699,700,702,712,713,714,912,924,936,948,960,972,984,996,1008,1021,1033,1045,1057,1069,1081,1094,1106,1116,1127,1138,1149,1160,1171,1182,1193,1229,1231,1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,1329,1331,1333,1335,1337,1339,1341,1343,1345,1347,1348,1380,1386,1460,1466,1784,1789,1799,1800,1801,1803,1804,1805,1834,1835,1853,1854,1967,1968,2037,2038,2134,2150,2169,2171,2194,2195,2196,2197,2198,2199,2200,2201,2202,2203,2204,2284,2483,2484,2485,2486,2487,2488,2497,2498,2499,2500,2501,2519,2520,2521,2522,2523,2524,2525,2526,2527,2535,2536,2537,2538,2546,2547,2548,2549,2550,2551,2552,2553,2655,2656 ,-1 };
int KnucklesLines[223] = { 35,36,39,41,44,47,50,89,114,122,123,149,152,158,160,161,162,163,180,182,212,213,215,218,221,223,225,227,228,230,259,260,262,263,291,296,329,330,333,335,338,341,344,479,503,504,506,509,512,514,516,518,519,521,588,590,592,597,606,609,633,658,662,669,670,673,675,677,711,715,910,922,934,946,958,970,982,994,1006,1019,1031,1043,1055,1067,1079,1092,1104,1114,1125,1136,1147,1158,1169,1180,1191,1228,1230,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,1328,1330,1332,1334,1336,1338,1340,1342,1344,1346,1377,1383,1459,1465,1480,1481,1783,1788,1822,1823,1843,1844,1981,1982,1983,2011,2012,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2141,2168,2173,2283,2421,2422,2423,2424,2425,2426,2450,2451,2452,2453,2559,2560,2561,2562,2563,2590,2591,2592,2593,2594,2595,2596,2597,2598,2609,2610,2611,2612,2630,2631,2632,2633,2652,2653,2654 ,-1 };
int EggmanLines[293] = { 40,43,48,51,57,86,90,91,92,93,130,132,135,165,169,208,234,236,238,241,242,243,245,251,253,255,258,285,298,306,307,308,309,310,311,312,313,318,321,322,324,326,334,337,342,345,346,347,349,351,388,391,392,396,398,401,403,405,407,411,413,414,415,416,417,420,422,423,427,441,454,455,460,465,467,468,469,478,481,485,486,489,490,491,525,526,527,528,529,530,532,534,535,537,539,542,543,544,546,549,551,553,556,569,580,581,585,586,587,608,610,612,616,624,629,635,637,676,686,703,706,708,709,909,921,933,945,957,969,981,993,1005,1018,1030,1042,1054,1066,1078,1091,1103,1113,1124,1135,1146,1157,1168,1179,1190,1378,1384,1458,1464,1626,1628,1630,1632,1634,1636,1638,1640,1642,1644,1646,1648,1650,1652,1654,1656,1658,1660,1662,1664,1666,1668,1670,1672,1674,1676,1678,1680,1682,1684,1686,1688,1690,1692,1694,1696,1698,1700,1702,1704,1706,1708,1710,1712,1714,1716,1718,1720,1722,1724,1726,1728,1730,1732,1735,1736,1737,1739,1752,1753,1754,1755,1756,1760,1762,1763,1764,1782,1787,1802,1918,1919,1951,1952,2019,2020,2021,2022,2023,2024,2045,2046,2062,2063,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2079,2080,2081,2082,2083,2084,2085,2142,2165,2170,2282,2472,2473,2474,2475,2476,2477,2489,2490,2491,2492,2502,2503,2504,2505,2506,2507,2508,2509,2510,2511,2512,2542,2543,2544,2545,2554,2555,2556,2557,2558,2564,2565,2566,2650,2651,-1 };
int TailsLines[221] = { 52,53,54,55,56,59,61,63,96,100,104,116,125,127,141,142,153,154,156,164,167,172,179,186,189,191,193,194,197,198,200,201,202,206,207,209,239,246,248,254,256,274,276,288,299,425,480,483,494,540,547,552,554,628,630,634,685,704,705,707,710,917,929,941,953,965,977,989,1001,1014,1026,1038,1050,1062,1074,1086,1099,1110,1121,1132,1143,1154,1165,1176,1187,1198,1376,1382,1463,1469,1627,1629,1631,1633,1635,1637,1639,1641,1643,1645,1647,1649,1651,1653,1655,1657,1659,1661,1663,1665,1667,1669,1671,1673,1675,1677,1679,1681,1683,1685,1687,1689,1691,1693,1695,1697,1699,1701,1703,1705,1707,1709,1711,1713,1715,1717,1719,1721,1723,1725,1727,1729,1731,1733,1734,1761,1786,1791,1792,1793,1794,1796,1797,1798,1892,1893,1931,1932,1989,1990,2017,2018,2147,2167,2172,2259,2260,2261,2262,2263,2264,2265,2266,2270,2271,2272,2273,2274,2275,2276,2287,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2513,2514,2515,2516,2517,2518,2576,2577,2578,2579,2580,2581,2582,2583,2584,2585,2586,2604,2605,2606,2607,2608,2639,2640,2641,2642,2661,2662,-1 };
int AmyLines[122] = { 58,60,62,64,66,68,69,71,73,75,76,78,79,94,105,119,120,124,126,150,170,171,185,190,195,199,204,247,252,278,279,290,295,302,418,419,421,424,492,493,531,533,548,550,607,627,638,639,640,641,643,644,645,646,647,648,656,683,688,717,906,918,930,942,954,966,978,990,1002,1015,1027,1039,1051,1063,1075,1088,1100,1111,1122,1133,1144,1155,1166,1177,1188,2136,2148,2149,2166,2174,2613,2614,2615,2616,2617,2618,2619,2663,2664,2665,2666,2667,2668,2669,2670,2671,2672,2673,2674,2675,2676,2677,2678,2679,2680,2681,2682,2683,2684,2685,2686 ,-1 };
int PoliceLines[3] = { 102,118 ,-1 };
int SecretaryLines[56] = { 128,145,678,681,696,698,914,915,926,927,938,939,950,951,962,963,974,975,986,987,998,999,1009,1011,1023,1024,1035,1036,1047,1048,1059,1060,1071,1072,1083,1084,1087,1096,1108,1118,1119,1129,1130,1140,1141,1151,1152,1162,1163,1173,1174,1184,1185,1195,1196 ,-1 };
int PresidentLines[10] = { 129,131,134,136,138,144,679,682,697 ,-1 };
int AnnouncerLines[18] = { 174,175,176,305,1738,1757,1758,1759,1909,1910,1911,1912,1913,1914,1920,1921,1922 ,-1 };
int NarratorLines[30] = { 280,281,282,304,582,583,584,883,884,885,886,887,888,889,890,892,893,894,895,896,897,898,899,900,901,902,903,904,905 ,-1 };
int MariaLines[41] = { 283,292,354,357,359,360,445,447,649,651,652,653,654,689,690,911,923,935,947,959,971,983,995,1007,1020,1032,1044,1056,1068,1080,1093,1105,1115,1126,1137,1148,1159,1170,1181,1192 ,-1 };
int ReporterLines[3] = { 348,350 ,-1 };
int SoldierLines[14] = { 355,380,603,604,2091,2093,2094,2098,2099,2100,2103,2104,2105 ,-1 };
int GeraldLines[10] = { 598,599,600,602,605,619,620,621,660 ,-1 };
int BiolizardLines[4] = { 668,671,672 ,-1 };
int OmochaoLines[730] = { 720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,907,919,931,943,955,967,979,991,1003,1016,1028,1040,1052,1064,1076,1089,1101,1112,1123,1134,1145,1156,1167,1178,1189,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1454,1456,1470,1471,1472,1473,1474,1475,1476,1477,1479,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1807,1808,1809,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1836,1837,1838,1839,1840,1841,1842,1845,1846,1847,1848,1849,1850,1851,1852,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1894,1895,1896,1897,1902,1903,1904,1905,1915,1916,1917,1923,1924,1925,1928,1929,1930,1933,1934,1935,1938,1939,1942,1943,1944,1945,1946,1947,1948,1949,1950,1953,1954,1955,1956,1957,1958,1959,1961,1963,1965,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1984,1985,1986,1987,1988,1992,1993,1994,1995,1996,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2014,2015,2016,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2039,2040,2043,2044,2047,2048,2049,2050,2051,2052,2061,2064,2075,2076,2077,2078,2086,2087,2088,2089,2090,2095,2096,2097,2101,2102,2106,2118,2119,2120,2121,2123,2124,2125,2126,2127,2128,2129,2191,2192,2193,2205,2206,2208,2210,2211,2220,2221,2222,2223,2231,2232,2233,2234,2235,2244,2245,2246,2256,2257,2258,2267,2268,2269,2277,2278,2279,2280,2281,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410 ,-1 };
int KingBoomBooLines[17] = { 2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190 ,-1 };
int ChaosZeroLines[4] = { 2687,2688,2689 ,-1 };
int ChaoLines[12] = { 2690,2691,2692,2693,2694,2695,2696,2697,2698,2699,2700 ,-1 };
int DarkChaoLines[12] = { 2701,2702,2703,2704,2705,2706,2707,2708,2709,2710,2711 ,-1 };
int MetalSonicLines[5] = { 2712,2713,2714,2715 ,-1 };
int TikalLines[12] = { 2716,2717,2718,2719,2720,2721,2722,2723,2724,2725,2726 ,-1 };
/////HEROES LINES
int SonicLinesHeroes[392] = { 4776,4777,4778,4779,4780,4781,4782,4783,4784,4785,4786,4787,4788,4789,4790,4791,4792,4793,4794,4795,4796,4797,4798,4799,4800,4801,4802,4803,4804,4805,4806,4807,4808,4809,4810,4811,4812,4813,4814,4815,4816,4817,4818,4819,4820,4821,4822,4823,5363,5375,5387,5399,5411,5423,5435,5443,5453,5465,5477,5489,5500,5512,5524,5536,5548,5561,5573,5586,5598,5610,5622,5634,5646,5658,5670,5682,5694,5706,5718,5730,5742,5754,5766,5778,5790,5802,5814,5826,5838,5847,5856,5865,5877,5889,5901,5917,5923,5929,5940,5952,5964,5994,6006,6018,6030,6042,6054,6066,6078,6090,6115,6127,6139,6151,6163,6175,6187,6199,6211,6223,6235,6247,6259,6271,6283,6295,6307,6319,6331,6343,6355,6367,6379,6391,6403,6415,6430,6442,6454,6466,6478,6490,6502,6514,6524,6532,6542,6553,6568,6580,6592,6604,6616,6628,6640,6652,6664,6676,6688,6700,6712,6724,6736,6748,6761,6774,6796,6808,6820,6832,6844,6856,6868,6880,6893,6906,6919,6935,6948,6961,6976,6988,7000,7012,7024,7036,7048,7060,7073,7086,7099,7115,7127,7182,7186,7190,7194,7198,7207,7232,7243,7255,7267,7279,7290,7321,7333,7345,7357,7369,7381,7393,7405,7417,7429,7441,7453,7465,7477,7489,7504,7516,7532,7543,7555,7567,7576,7597,7609,7621,7633,7645,7657,7674,7687,7696,7708,7720,7737,7741,7744,7747,7748,7750,7753,7755,7757,7759,7761,7765,7768,7771,7775,7784,7788,7790,7795,7796,7799,7802,7805,7807,7808,7811,8076,8080,8083,8085,8087,8089,8091,8106,8107,8113,8122,8133,8143,8150,8159,8170,8182,8194,8206,8218,8230,8242,8259,8284,8290,8294,8299,8302,8315,8327,8336,8342,8349,8363,8378,8390,8399,8408,8420,8441,8453,8468,8478,8492,8496,8505,8527,8539,8551,8563,8567,8572,8579,8599,8611,8623,8635,8653,8667,8679,8698,8705,8715,8726,8738,8750,8767,8779,8790,8799,8808,8820,8830,8839,8848,8857,8866,8875,8881,8889,8902,8911,8920,8932,8945,8957,8969,8980,8992,9001,9013,9025,9034,9043,9052,9061,9070,9079,9088,9097,9107,9118,9130,9142,9151,9168,9277,9288,9301,9309,9322,9334,9346,9358,9370,9387,9399,9407,9419,9428,9435,9443,9453,9463,9474,9481,9496,-1};
int TailsLinesHeroes[375] = { 4824,4826,4828,4830,4832,4835,4837,4839,4841,4843,4845,4847,4849,4851,4853,4855,4857,4859,4861,4863,4865,4867,4869,4871,4873,4875,4877,4879,4881,4883,4885,4887,4889,4891,4893,4895,4897,4899,4901,4903,4905,4907,4909,4911,4913,4915,4917,4918,5364,5376,5388,5400,5412,5424,5436,5454,5466,5478,5490,5501,5513,5525,5537,5549,5562,5574,5587,5599,5611,5623,5635,5647,5659,5671,5683,5695,5707,5719,5731,5743,5755,5767,5779,5791,5803,5815,5827,5839,5848,5857,5866,5878,5890,5902,5918,5924,5930,5941,5953,5965,5995,6007,6019,6031,6043,6055,6067,6079,6091,6116,6128,6140,6152,6164,6176,6188,6200,6212,6224,6236,6248,6260,6272,6284,6296,6308,6320,6332,6344,6356,6368,6380,6392,6404,6416,6431,6443,6455,6467,6479,6491,6503,6515,6525,6533,6554,6569,6581,6593,6605,6617,6629,6641,6653,6665,6677,6689,6701,6713,6725,6737,6749,6762,6775,6797,6809,6821,6833,6845,6857,6869,6881,6894,6907,6920,6936,6949,6962,6977,6989,7001,7013,7025,7037,7049,7061,7074,7087,7100,7116,7128,7183,7187,7191,7195,7199,7233,7244,7256,7268,7280,7291,7302,7310,7322,7334,7346,7358,7370,7382,7394,7406,7418,7430,7442,7454,7466,7478,7490,7505,7517,7533,7544,7556,7568,7577,7585,7598,7610,7622,7634,7646,7658,7675,7680,7688,7697,7709,7721,7738,7740,7742,7745,7752,7760,7764,7766,7769,7773,7777,7778,7783,7791,7792,7794,7800,7809,8082,8092,8117,8144,8151,8171,8183,8195,8207,8219,8231,8243,8260,8273,8277,8285,8291,8295,8316,8328,8337,8350,8360,8364,8379,8391,8400,8409,8421,8442,8454,8469,8479,8493,8497,8506,8528,8540,8552,8556,8569,8580,8600,8612,8624,8636,8654,8668,8680,8688,8699,8706,8710,8716,8727,8739,8751,8768,8780,8791,8800,8809,8821,8831,8840,8849,8858,8867,8876,8882,8890,8903,8912,8921,8933,8946,8958,8970,8981,8993,9002,9014,9026,9035,9044,9053,9062,9071,9080,9089,9098,9108,9119,9131,9143,9152,9169,9278,9289,9297,9306,9310,9323,9335,9347,9359,9371,9388,9400,9408,9420,9429,9444,9454,9464,9475,9497,-1 };
int KnucklesLinesHeroes[366] = { 4825,4827,4829,4831,4833,4834,4836,4838,4840,4842,4844,4846,4848,4850,4852,4854,4856,4858,4860,4862,4864,4866,4868,4870,4872,4874,4876,4878,4880,4882,4884,4886,4888,4890,4892,4894,4896,4898,4900,4902,4904,4906,4908,4910,4912,4914,4916,5359,5371,5383,5395,5407,5419,5431,5440,5450,5461,5473,5485,5496,5508,5520,5532,5544,5557,5569,5582,5594,5606,5618,5630,5642,5654,5666,5678,5690,5702,5714,5726,5738,5750,5762,5774,5786,5798,5810,5822,5834,5843,5852,5861,5873,5885,5897,5913,5919,5925,5936,5948,5960,5990,6002,6014,6026,6038,6050,6062,6074,6086,6111,6123,6135,6147,6159,6171,6183,6195,6207,6219,6231,6243,6255,6267,6279,6291,6303,6315,6327,6339,6351,6363,6375,6387,6399,6411,6426,6438,6450,6462,6474,6486,6498,6510,6521,6538,6549,6564,6576,6588,6600,6612,6624,6636,6648,6660,6672,6684,6696,6708,6720,6732,6744,6757,6770,6792,6804,6816,6828,6840,6852,6864,6876,6889,6902,6915,6931,6944,6957,6972,6984,6996,7008,7020,7032,7044,7056,7069,7082,7095,7111,7123,7180,7184,7188,7192,7196,7228,7239,7251,7263,7275,7287,7299,7307,7317,7329,7341,7353,7365,7377,7389,7401,7413,7425,7437,7449,7461,7473,7485,7500,7512,7528,7539,7551,7563,7573,7593,7605,7617,7629,7641,7653,7670,7683,7692,7704,7716,7733,7746,7751,7758,7762,7767,7770,7776,7782,7786,7793,7801,7804,7806,8084,8097,8098,8100,8124,8130,8156,8166,8178,8190,8202,8214,8226,8238,8255,8263,8270,8279,8286,8296,8311,8323,8345,8356,8374,8386,8395,8404,8416,8437,8449,8464,8474,8483,8488,8501,8523,8535,8547,8560,8575,8595,8607,8619,8631,8649,8663,8675,8685,8695,8701,8707,8711,8722,8734,8746,8763,8775,8787,8795,8804,8816,8826,8835,8844,8853,8862,8871,8877,8885,8898,8907,8916,8928,8941,8953,8965,8976,8988,8997,9009,9021,9030,9039,9048,9057,9066,9075,9084,9093,9103,9114,9126,9138,9147,9164,9273,9294,9318,9330,9342,9354,9366,9383,9395,9415,9424,9432,9439,9450,9460,9471,9477,9492,-1 };
int ShadowLinesHeroes[373] = { 4919,4920,4921,4922,4923,4924,4925,4926,4927,4928,4929,4930,4931,4932,4933,4934,4935,4936,4937,4938,4939,4940,4941,4942,4943,4944,4945,4946,4947,4948,4949,4950,4951,4952,4953,4954,4955,4956,4957,4958,4959,4960,4961,4962,4963,4964,4965,4966,5362,5374,5386,5398,5410,5422,5434,5442,5452,5464,5476,5488,5499,5511,5523,5535,5547,5560,5572,5585,5597,5609,5621,5633,5645,5657,5669,5681,5693,5705,5717,5729,5741,5753,5765,5777,5789,5801,5813,5825,5837,5846,5855,5864,5876,5888,5900,5916,5922,5928,5939,5951,5963,5993,6005,6017,6029,6041,6053,6065,6077,6089,6114,6126,6138,6150,6162,6174,6186,6198,6210,6222,6234,6246,6258,6270,6282,6294,6306,6318,6330,6342,6354,6366,6378,6390,6402,6414,6429,6441,6453,6465,6477,6489,6501,6513,6523,6531,6541,6552,6567,6579,6591,6603,6615,6627,6639,6651,6663,6675,6687,6699,6711,6723,6735,6747,6760,6773,6795,6807,6819,6831,6843,6855,6867,6879,6892,6905,6918,6934,6947,6960,6975,6987,6999,7011,7023,7035,7047,7059,7072,7085,7098,7114,7126,7138,7142,7163,7178,7217,7218,7219,7231,7242,7254,7266,7278,7320,7332,7344,7356,7368,7380,7392,7404,7416,7428,7440,7452,7464,7476,7488,7503,7515,7531,7542,7554,7566,7575,7596,7608,7620,7632,7644,7656,7673,7686,7695,7707,7719,7736,7780,7789,7815,7826,7831,7846,7848,7852,7854,7858,7860,7861,7865,7866,7867,7872,7875,7887,8086,8112,8121,8142,8158,8169,8181,8193,8205,8217,8229,8241,8258,8272,8283,8289,8298,8301,8314,8326,8335,8348,8359,8366,8377,8389,8398,8407,8419,8425,8440,8452,8467,8477,8491,8495,8504,8526,8538,8550,8566,8571,8578,8598,8610,8622,8634,8652,8666,8678,8687,8704,8709,8714,8725,8737,8749,8766,8778,8789,8798,8807,8819,8829,8838,8847,8856,8865,8874,8880,8888,8901,8910,8919,8931,8944,8956,8968,8979,8991,9000,9012,9024,9033,9042,9051,9060,9069,9078,9087,9096,9106,9117,9129,9141,9150,9167,9276,9296,9308,9321,9333,9345,9357,9369,9386,9398,9406,9418,9427,9442,9452,9473,9480,9495,-1 };
int RougeLinesHeroes[399] = { 4967,4968,4969,4970,4971,4972,4973,4974,4975,4976,4977,4978,4979,4980,4981,4982,4983,4984,4985,4986,4987,4988,4989,4990,4991,4992,4993,4994,4995,4996,4997,4998,4999,5000,5001,5002,5003,5004,5005,5006,5007,5008,5009,5010,5011,5012,5013,5014,5361,5373,5385,5397,5409,5421,5433,5441,5451,5463,5475,5487,5498,5510,5522,5534,5546,5559,5571,5584,5596,5608,5620,5632,5644,5656,5668,5680,5692,5704,5716,5728,5740,5752,5764,5776,5788,5800,5812,5824,5836,5845,5854,5863,5875,5887,5899,5915,5921,5927,5938,5950,5962,5992,6004,6016,6028,6040,6052,6064,6076,6088,6113,6125,6137,6149,6161,6173,6185,6197,6209,6221,6233,6245,6257,6269,6281,6293,6305,6317,6329,6341,6353,6365,6377,6389,6401,6413,6428,6440,6452,6464,6476,6488,6500,6512,6522,6540,6551,6566,6578,6590,6602,6614,6626,6638,6650,6662,6674,6686,6698,6710,6722,6734,6746,6759,6772,6794,6806,6818,6830,6842,6854,6866,6878,6891,6904,6917,6933,6946,6959,6974,6986,6998,7010,7022,7034,7046,7058,7071,7084,7097,7113,7125,7137,7162,7177,7212,7230,7241,7253,7265,7277,7289,7301,7309,7319,7331,7343,7355,7367,7379,7391,7403,7415,7427,7439,7451,7463,7475,7487,7502,7514,7530,7541,7553,7565,7574,7584,7595,7607,7619,7631,7643,7655,7672,7679,7685,7694,7706,7718,7735,7781,7785,7813,7814,7817,7818,7819,7820,7821,7822,7823,7824,7832,7834,7837,7841,7842,7844,7845,7851,7853,7857,7862,7864,7869,7873,7878,7879,7881,7882,7885,7886,7888,8099,8125,8132,8141,8149,8168,8180,8192,8204,8216,8228,8240,8257,8264,8271,8276,8282,8288,8293,8297,8313,8325,8334,8347,8358,8362,8376,8388,8397,8406,8418,8424,8439,8451,8466,8476,8490,8494,8503,8525,8537,8549,8555,8557,8562,8568,8577,8597,8609,8621,8633,8651,8665,8677,8686,8697,8703,8708,8713,8724,8736,8748,8765,8777,8788,8797,8806,8818,8828,8837,8846,8855,8864,8873,8879,8887,8900,8909,8918,8930,8943,8955,8967,8978,8990,8999,9011,9023,9032,9041,9050,9059,9068,9077,9086,9095,9105,9116,9128,9140,9149,9166,9275,9287,9295,9300,9305,9307,9320,9332,9344,9356,9368,9385,9397,9405,9417,9426,9434,9441,9451,9462,9472,9479,9494 ,-1};
int OmegaLinesHeroes[357] = { 5015,5016,5017,5018,5019,5020,5021,5022,5023,5024,5025,5026,5027,5028,5029,5030,5031,5032,5033,5034,5035,5036,5037,5038,5039,5040,5041,5042,5043,5044,5045,5046,5047,5048,5049,5050,5051,5052,5053,5054,5055,5056,5057,5058,5059,5060,5360,5372,5384,5396,5408,5420,5432,5462,5474,5486,5497,5509,5521,5533,5545,5558,5570,5583,5595,5607,5619,5631,5643,5655,5667,5679,5691,5703,5715,5727,5739,5751,5763,5775,5787,5799,5811,5823,5835,5844,5853,5862,5874,5886,5898,5914,5920,5926,5937,5949,5961,5991,6003,6015,6027,6039,6051,6063,6075,6087,6112,6124,6136,6148,6160,6172,6184,6196,6208,6220,6232,6244,6256,6268,6280,6292,6304,6316,6328,6340,6352,6364,6376,6388,6400,6412,6427,6439,6451,6463,6475,6487,6499,6511,6530,6539,6550,6565,6577,6589,6601,6613,6625,6637,6649,6661,6673,6685,6697,6709,6721,6733,6745,6758,6771,6793,6805,6817,6829,6841,6853,6865,6877,6890,6903,6916,6932,6945,6958,6973,6985,6997,7009,7021,7033,7045,7057,7070,7083,7096,7112,7124,7136,7161,7176,7229,7240,7252,7264,7276,7288,7300,7308,7318,7330,7342,7354,7366,7378,7390,7402,7414,7426,7438,7450,7462,7474,7486,7501,7513,7529,7540,7552,7564,7594,7606,7618,7630,7642,7654,7671,7684,7693,7705,7717,7734,7787,7816,7825,7828,7833,7843,7850,7855,7863,7868,7874,7877,7880,7883,7884,8116,8131,8140,8148,8157,8167,8179,8191,8203,8215,8227,8239,8256,8280,8287,8292,8312,8324,8341,8346,8357,8361,8365,8375,8387,8396,8405,8417,8423,8438,8450,8465,8475,8484,8489,8502,8524,8536,8548,8561,8576,8596,8608,8620,8632,8650,8664,8676,8696,8702,8712,8723,8735,8747,8764,8776,8796,8805,8817,8827,8836,8845,8854,8863,8872,8878,8886,8899,8908,8917,8929,8942,8954,8966,8977,8989,8998,9010,9022,9031,9040,9049,9058,9067,9076,9085,9094,9104,9115,9127,9139,9148,9165,9274,9286,9319,9331,9343,9355,9367,9384,9396,9416,9425,9433,9440,9461,9478,9493,-1 };
int AmyLinesHeroes[364] = { 5061,5062,5063,5064,5065,5066,5067,5068,5069,5070,5071,5072,5073,5074,5075,5076,5077,5078,5079,5080,5081,5082,5083,5084,5085,5086,5087,5088,5089,5090,5091,5092,5093,5094,5095,5096,5097,5098,5099,5100,5101,5102,5103,5104,5105,5106,5107,5108,5354,5366,5378,5390,5402,5414,5426,5438,5445,5456,5468,5480,5492,5503,5515,5527,5539,5552,5564,5577,5589,5601,5613,5625,5637,5649,5661,5673,5685,5697,5709,5721,5733,5745,5757,5769,5781,5793,5805,5817,5829,5868,5880,5892,5904,5907,5910,5931,5943,5955,5967,5973,5979,5985,5997,6009,6021,6033,6045,6057,6069,6081,6106,6118,6130,6142,6154,6166,6178,6190,6202,6214,6226,6238,6250,6262,6274,6286,6298,6310,6322,6334,6346,6358,6370,6382,6394,6406,6421,6433,6445,6457,6469,6481,6493,6505,6516,6535,6544,6559,6571,6583,6595,6607,6619,6631,6643,6655,6667,6679,6691,6703,6715,6727,6739,6751,6764,6787,6799,6811,6823,6835,6847,6859,6871,6883,6896,6909,6925,6938,6951,6967,6979,6991,7003,7015,7027,7039,7051,7063,7076,7089,7106,7118,7130,7140,7153,7156,7165,7171,7211,7223,7234,7246,7258,7270,7282,7296,7304,7312,7324,7336,7348,7360,7372,7384,7396,7408,7420,7432,7444,7456,7468,7480,7495,7507,7523,7535,7546,7558,7570,7588,7600,7612,7624,7636,7648,7665,7699,7711,7728,7754,7756,7810,7812,7889,7890,7893,7895,7899,7900,7907,7909,7912,7914,7916,7918,7920,7926,7927,7930,7932,7937,7938,7940,7945,7954,7956,7962,7966,7967,7974,7977,8081,8090,8093,8108,8119,8127,8135,8145,8153,8161,8173,8185,8197,8209,8221,8233,8250,8266,8278,8306,8318,8330,8352,8369,8381,8411,8432,8444,8456,8459,8471,8480,8485,8498,8518,8530,8542,8565,8590,8602,8614,8626,8644,8658,8670,8682,8690,8717,8729,8741,8758,8770,8782,8811,8823,8832,8841,8850,8859,8868,8892,8895,8904,8913,8925,8936,8948,8960,8972,8983,9004,9016,9100,9109,9121,9133,9159,9268,9283,9299,9303,9313,9325,9337,9349,9361,9378,9390,9402,9446,9466,9487 ,-1};
int CreamLinesHeroes[353] = { 5109,5110,5111,5112,5113,5114,5115,5116,5117,5118,5119,5120,5121,5122,5123,5124,5125,5126,5127,5128,5129,5130,5131,5132,5133,5134,5135,5136,5137,5138,5139,5140,5141,5142,5143,5144,5145,5146,5147,5148,5149,5150,5151,5152,5153,5154,5155,5156,5157,5158,5357,5369,5381,5393,5405,5417,5429,5439,5448,5459,5471,5483,5494,5506,5518,5530,5542,5555,5567,5580,5592,5604,5616,5628,5640,5652,5664,5676,5688,5700,5712,5724,5736,5748,5760,5772,5784,5796,5808,5820,5832,5871,5883,5895,5906,5909,5912,5934,5946,5958,5970,5976,5982,5988,6000,6012,6024,6036,6048,6060,6072,6084,6109,6121,6133,6145,6157,6169,6181,6193,6205,6217,6229,6241,6253,6265,6277,6289,6301,6313,6325,6337,6349,6361,6373,6385,6397,6409,6424,6436,6448,6460,6472,6484,6496,6508,6519,6529,6547,6562,6574,6586,6598,6610,6622,6634,6646,6658,6670,6682,6694,6706,6718,6730,6742,6754,6767,6790,6802,6814,6826,6838,6850,6862,6874,6886,6899,6912,6928,6941,6954,6970,6982,6994,7006,7018,7030,7042,7054,7066,7079,7092,7109,7121,7133,7155,7159,7167,7174,7221,7226,7237,7249,7261,7273,7285,7298,7306,7315,7327,7339,7351,7363,7375,7387,7399,7411,7423,7435,7447,7459,7471,7483,7498,7510,7526,7538,7549,7561,7572,7591,7603,7615,7627,7639,7651,7668,7678,7702,7714,7731,7891,7894,7898,7901,7905,7911,7913,7915,7917,7925,7928,7934,7936,7939,7942,7948,7953,7958,7963,7971,7975,7976,7978,8094,8110,8115,8123,8129,8138,8146,8164,8176,8188,8200,8212,8224,8236,8253,8268,8300,8309,8321,8332,8354,8372,8384,8414,8435,8447,8458,8462,8473,8482,8487,8500,8521,8533,8545,8593,8605,8617,8629,8647,8661,8673,8683,8693,8720,8732,8744,8761,8773,8785,8814,8825,8834,8843,8852,8861,8870,8894,8897,8906,8915,8927,8939,8951,8963,8974,8986,9007,9019,9102,9112,9124,9136,9162,9271,9292,9316,9328,9340,9352,9364,9381,9393,9404,9448,9458,9469,9490,-1 };
int BigLinesHeroes[332] = { 5159,5160,5161,5162,5163,5164,5165,5166,5167,5168,5169,5170,5171,5172,5173,5174,5175,5176,5177,5178,5179,5180,5181,5182,5183,5184,5185,5186,5187,5188,5189,5190,5191,5192,5193,5194,5195,5196,5197,5198,5199,5200,5201,5202,5203,5204,5205,5355,5367,5379,5391,5403,5415,5427,5446,5457,5469,5481,5504,5516,5528,5540,5553,5565,5578,5590,5602,5614,5626,5638,5650,5662,5674,5686,5698,5710,5722,5734,5746,5758,5770,5782,5794,5806,5818,5830,5869,5881,5893,5905,5908,5911,5932,5944,5956,5968,5974,5980,5986,5998,6010,6022,6034,6046,6058,6070,6082,6107,6119,6131,6143,6155,6167,6179,6191,6203,6215,6227,6239,6251,6263,6275,6287,6299,6311,6323,6335,6347,6359,6371,6383,6395,6407,6422,6434,6446,6458,6470,6482,6494,6506,6517,6527,6536,6545,6560,6572,6584,6596,6608,6620,6632,6644,6656,6668,6680,6692,6704,6716,6728,6740,6752,6765,6788,6800,6812,6824,6836,6848,6860,6872,6884,6897,6910,6926,6939,6952,6968,6980,6992,7004,7016,7028,7040,7052,7064,7077,7090,7107,7119,7131,7154,7157,7166,7172,7222,7224,7235,7247,7259,7271,7283,7313,7325,7337,7349,7361,7373,7385,7397,7409,7421,7433,7445,7457,7469,7481,7496,7508,7524,7536,7547,7559,7589,7601,7613,7625,7637,7649,7666,7700,7712,7729,7896,7897,7903,7906,7921,7923,7929,7933,7943,7950,7952,7955,7960,7965,7969,7973,7979,8096,8109,8136,8154,8162,8174,8186,8198,8210,8222,8234,8251,8262,8274,8307,8319,8339,8370,8382,8412,8433,8445,8457,8460,8472,8481,8486,8499,8519,8531,8543,8591,8603,8615,8627,8645,8659,8671,8691,8718,8730,8742,8759,8771,8783,8812,8824,8833,8842,8851,8860,8869,8893,8896,8905,8914,8926,8937,8949,8961,8984,9005,9017,9101,9110,9122,9134,9160,9269,9284,9291,9314,9326,9338,9350,9362,9379,9391,9456,9467,9488,-1 };
int EspioLinesHeroes[367] = { 5206,5207,5208,5209,5210,5211,5212,5213,5214,5215,5216,5217,5218,5219,5220,5221,5222,5223,5224,5225,5226,5227,5228,5229,5230,5231,5232,5233,5234,5235,5236,5237,5238,5239,5240,5241,5242,5243,5244,5245,5246,5247,5248,5249,5250,5251,5252,5358,5370,5382,5394,5406,5418,5430,5449,5460,5472,5484,5495,5507,5519,5531,5543,5556,5568,5581,5593,5605,5617,5629,5641,5653,5665,5677,5689,5701,5713,5725,5737,5749,5761,5773,5785,5797,5809,5821,5833,5842,5851,5860,5872,5884,5896,5935,5947,5959,5971,5977,5983,5989,6001,6013,6025,6037,6049,6061,6073,6085,6110,6122,6134,6146,6158,6170,6182,6194,6206,6218,6230,6242,6254,6266,6278,6290,6302,6314,6326,6338,6350,6362,6374,6386,6398,6410,6419,6425,6437,6449,6461,6473,6485,6497,6509,6520,6548,6557,6563,6575,6587,6599,6611,6623,6635,6647,6659,6671,6683,6695,6707,6719,6731,6743,6756,6769,6791,6803,6815,6827,6839,6851,6863,6875,6888,6901,6914,6930,6943,6956,6971,6983,6995,7007,7019,7031,7043,7055,7068,7081,7094,7110,7122,7134,7160,7169,7175,7220,7227,7238,7250,7262,7274,7286,7294,7316,7328,7340,7352,7364,7376,7388,7400,7412,7424,7436,7448,7460,7472,7484,7493,7499,7511,7527,7550,7562,7580,7583,7592,7604,7616,7628,7640,7652,7661,7669,7682,7691,7703,7715,7724,7732,7836,7839,7947,7982,7991,7996,8001,8005,8009,8014,8019,8025,8026,8036,8039,8050,8054,8058,8062,8067,8102,8111,8139,8147,8165,8177,8189,8201,8213,8225,8237,8246,8254,8269,8310,8322,8333,8344,8355,8373,8385,8394,8403,8415,8427,8430,8436,8448,8463,8508,8511,8514,8522,8534,8546,8559,8570,8574,8582,8587,8594,8606,8618,8630,8639,8642,8648,8662,8674,8684,8694,8721,8733,8745,8754,8762,8774,8786,8794,8803,8815,8884,8923,8940,8952,8964,8975,8987,8996,9008,9020,9029,9038,9047,9056,9065,9074,9083,9092,9113,9125,9137,9146,9155,9163,9272,9281,9293,9317,9329,9341,9353,9365,9374,9382,9394,9411,9414,9423,9431,9438,9449,9459,9470,9483,9491,-1 };
int CharmyLinesHeroes[392] = { 5253,5254,5255,5256,5257,5258,5259,5260,5261,5262,5263,5264,5265,5266,5267,5268,5269,5270,5271,5272,5273,5274,5275,5276,5277,5278,5279,5280,5281,5282,5283,5284,5285,5286,5287,5288,5289,5290,5291,5292,5293,5294,5295,5296,5297,5298,5299,5300,5301,5302,5303,5304,5305,5306,5356,5368,5380,5392,5404,5416,5428,5447,5458,5470,5482,5493,5505,5517,5529,5541,5554,5566,5579,5591,5603,5615,5627,5639,5651,5663,5675,5687,5699,5711,5723,5735,5747,5759,5771,5783,5795,5807,5819,5831,5841,5850,5859,5870,5882,5894,5933,5945,5957,5969,5975,5981,5987,5999,6011,6023,6035,6047,6059,6071,6083,6108,6120,6132,6144,6156,6168,6180,6192,6204,6216,6228,6240,6252,6264,6276,6288,6300,6312,6324,6336,6348,6360,6372,6384,6396,6408,6418,6423,6435,6447,6459,6471,6483,6495,6507,6518,6528,6537,6546,6556,6561,6573,6585,6597,6609,6621,6633,6645,6657,6669,6681,6693,6705,6717,6729,6741,6753,6766,6789,6801,6813,6825,6837,6849,6861,6873,6885,6898,6911,6927,6940,6953,6969,6981,6993,7005,7017,7029,7041,7053,7065,7078,7091,7108,7120,7132,7158,7168,7173,7214,7215,7216,7225,7236,7248,7260,7272,7284,7293,7297,7305,7314,7326,7338,7350,7362,7374,7386,7398,7410,7422,7434,7446,7458,7470,7482,7492,7497,7509,7525,7537,7548,7560,7571,7579,7582,7590,7602,7614,7626,7638,7650,7660,7667,7677,7681,7690,7701,7713,7723,7730,7840,7951,7983,7986,7993,7995,7997,8002,8006,8011,8012,8015,8020,8024,8035,8038,8041,8052,8055,8059,8063,8069,8103,8120,8128,8137,8155,8163,8175,8187,8199,8211,8223,8235,8245,8252,8267,8275,8308,8320,8331,8340,8343,8353,8367,8371,8383,8393,8402,8413,8426,8429,8434,8446,8461,8507,8510,8513,8520,8532,8544,8554,8558,8573,8581,8584,8586,8592,8604,8616,8628,8638,8641,8646,8660,8672,8692,8719,8731,8743,8753,8760,8772,8784,8793,8802,8813,8883,8922,8938,8950,8962,8973,8985,8995,9006,9018,9028,9037,9046,9055,9064,9073,9082,9091,9111,9123,9135,9145,9154,9161,9270,9280,9285,9304,9311,9312,9315,9327,9339,9351,9363,9373,9380,9392,9403,9410,9413,9422,9437,9447,9457,9468,9482,9489 ,-1};
int VectorLinesHeroes[399] = { 5307,5308,5309,5310,5311,5312,5313,5314,5315,5316,5317,5318,5319,5320,5321,5322,5323,5324,5325,5326,5327,5328,5329,5330,5331,5332,5333,5334,5335,5336,5337,5338,5339,5340,5341,5342,5343,5344,5345,5346,5347,5348,5349,5350,5351,5352,5353,5365,5377,5389,5401,5413,5425,5437,5444,5455,5467,5479,5491,5502,5514,5526,5538,5550,5563,5575,5576,5588,5600,5612,5624,5636,5648,5660,5672,5684,5696,5708,5720,5732,5744,5756,5768,5780,5792,5804,5816,5828,5840,5849,5858,5867,5879,5891,5903,5942,5954,5966,5972,5978,5984,5996,6008,6020,6032,6044,6056,6068,6080,6092,6117,6129,6141,6153,6165,6177,6189,6201,6213,6225,6237,6249,6261,6273,6285,6297,6309,6321,6333,6345,6357,6369,6381,6393,6405,6417,6420,6432,6444,6456,6468,6480,6492,6504,6526,6534,6543,6555,6558,6570,6582,6594,6606,6618,6630,6642,6654,6666,6678,6690,6702,6714,6726,6738,6750,6763,6776,6798,6810,6822,6834,6846,6858,6870,6882,6895,6908,6921,6937,6950,6963,6978,6990,7002,7014,7026,7038,7050,7062,7075,7088,7101,7117,7129,7139,7143,7164,7170,7179,7213,7245,7257,7269,7281,7292,7295,7303,7311,7323,7335,7347,7359,7371,7383,7395,7407,7419,7431,7443,7455,7467,7479,7491,7494,7506,7518,7534,7545,7557,7569,7578,7581,7599,7611,7623,7635,7647,7659,7662,7676,7689,7698,7710,7722,7725,7739,7835,7838,7944,7946,7949,7984,7985,7987,7988,7992,7994,7998,8000,8004,8010,8013,8016,8018,8021,8023,8027,8029,8030,8032,8034,8037,8040,8042,8044,8046,8048,8049,8053,8056,8057,8061,8066,8071,8101,8104,8105,8114,8118,8126,8134,8152,8160,8172,8184,8196,8208,8220,8232,8244,8247,8261,8265,8281,8303,8317,8329,8338,8351,8368,8380,8392,8401,8410,8422,8428,8431,8443,8455,8470,8509,8512,8515,8529,8541,8553,8564,8583,8585,8601,8613,8625,8637,8640,8643,8655,8669,8681,8689,8700,8728,8740,8752,8755,8769,8781,8792,8801,8810,8822,8891,8924,8947,8959,8971,8982,8994,9003,9015,9027,9036,9045,9054,9063,9072,9081,9090,9099,9120,9132,9144,9153,9156,9170,9279,9282,9290,9298,9302,9324,9336,9348,9360,9372,9375,9389,9401,9409,9412,9421,9430,9436,9445,9455,9465,9476,9484,9498,-1 };
int EggmanLinesHeroes[127] = { 5551,6093,6094,6095,6096,6097,6098,6099,6100,6101,6102,6103,6104,6105,6755,6768,6777,6778,6779,6780,6781,6782,6783,6784,6785,6786,6887,6900,6913,6922,6923,6924,6929,6942,6955,6964,6965,6966,7067,7080,7093,7102,7103,7104,7105,7210,7519,7520,7521,7522,7586,7587,7663,7664,7726,7727,7743,7749,7763,7772,7774,7797,7798,7803,7827,7829,7830,7847,7849,7856,7870,7871,7876,7908,7910,7919,7922,7931,7957,7961,7968,7989,7990,7999,8003,8007,8008,8017,8022,8028,8031,8033,8043,8045,8047,8051,8060,8064,8065,8068,8070,8072,8075,8077,8078,8079,8248,8249,8304,8305,8516,8517,8588,8589,8656,8657,8756,8757,8934,8935,9157,9158,9376,9377,9485,9486,-1 };
int MetalSonicLinesHeroes[32] = { 7135,7141,7144,7145,7146,7147,7148,7149,7150,7151,7152,7181,7185,7189,7193,7197,7200,7201,7202,7203,7204,7205,7206,7208,7209,7779,7859,7981,8073,8074,8088,-1 };
int CheeseLinesHeroes[13] = { 7892,7902,7904,7924,7935,7941,7959,7964,7970,7972,7980,8095 ,-1};
int OmochaoLinesHeroes[196] = { 9171,9172,9173,9174,9175,9176,9177,9178,9179,9180,9181,9182,9183,9184,9185,9186,9187,9188,9189,9190,9191,9192,9193,9194,9195,9196,9197,9198,9199,9200,9201,9202,9203,9204,9205,9206,9207,9208,9209,9210,9211,9212,9213,9214,9215,9216,9217,9218,9219,9220,9221,9222,9223,9224,9225,9226,9227,9228,9229,9230,9231,9232,9233,9234,9235,9236,9237,9238,9239,9240,9241,9242,9243,9244,9245,9246,9247,9248,9249,9250,9251,9252,9253,9254,9255,9256,9257,9258,9259,9260,9261,9262,9263,9264,9265,9266,9267,9499,9500,9501,9502,9503,9504,9505,9506,9507,9508,9509,9510,9511,9512,9513,9514,9515,9516,9517,9518,9519,9520,9521,9522,9523,9524,9525,9526,9527,9528,9529,9530,9531,9532,9533,9534,9535,9536,9537,9538,9539,9540,9541,9542,9543,9544,9545,9546,9547,9548,9549,9550,9551,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9581,9582,9583,9584,9585,9586,9587,9588,9589,9590,9591,9592,9593,9594,9595,9596,-1 };
/////
///SADX LINES
int NarratorLinesSADX[19] = { 2727,2728,2729,2730,2731,2732,2733,2734,2735,2736,2737,2738,2739,2740,2741,2742,2743,2744,-1 };
int TikalLinesSADX[372] = { 2745,2746,2747,2748,2749,2750,2751,2752,2753,2754,2755,2756,2757,2758,2759,2760,2761,2762,2906,2907,2908,2909,2910,2911,2912,2913,2915,2916,2917,2918,2919,2920,2921,2922,2923,2924,2925,2926,2927,2928,2929,2930,2931,3124,3125,3316,3317,3318,3319,3459,3460,3462,3463,3464,3465,3466,3467,3468,3469,3470,3472,3473,3646,3647,3648,3751,3754,3755,3756,3757,3758,3826,3827,3828,3829,3830,3831,3832,3833,3834,3835,3865,3866,3867,3868,3940,3941,3942,3943,3944,3945,3946,3947,3948,3949,4079,4080,4081,4082,4083,4084,4085,4086,4087,4088,4089,4164,4167,4168,4169,4170,4171,4172,4173,4174,4175,4176,4177,4192,4193,4194,4195,4197,4198,4199,4200,4201,4202,4234,4235,4236,4237,4277,4278,4279,4280,4281,4282,4283,4284,4285,4286,4287,4288,4289,4290,4291,4292,4293,4303,4304,4305,4306,4307,4308,4309,4310,4311,4312,4313,4314,4321,4322,4323,4324,4325,4326,4327,4328,4329,4330,4331,4332,4333,4334,4335,4345,4346,4347,4348,4349,4350,4351,4352,4353,4354,4355,4356,4357,4358,4359,4360,4361,4362,4363,4364,4365,4366,4367,4368,4369,4370,4371,4372,4373,4374,4375,4376,4377,4378,4379,4380,4385,4386,4387,4388,4389,4390,4391,4392,4393,4394,4395,4396,4397,4398,4399,4400,4401,4402,4403,4404,4405,4406,4414,4415,4416,4417,4418,4419,4420,4421,4422,4423,4424,4425,4426,4438,4439,4440,4441,4442,4443,4444,4446,4447,4448,4449,4583,4584,4585,4586,4587,4588,4589,4590,4592,4593,4594,4595,4596,4597,4598,4599,4600,4601,4602,4631,4632,4633,4634,4635,4636,4637,4638,4639,4640,4641,4642,4643,4644,4645,4646,4647,4648,4649,4650,4651,4652,4653,4654,4655,4656,4657,4658,4660,4661,4662,4663,4664,4665,4666,4667,4668,4669,4670,4671,4672,4673,4674,4675,4676,4677,4678,4679,4680,4681,4682,4683,4684,4685,4686,4687,4688,4689,4690,4691,4692,4693,4694,4695,4696,4697,4698,4699,4700,4701,4702,4703,4704,4705,4706,4707,4737,4738,4753,4754,4755,4756,4757,4758,4759,4760,4763,4764,4765,4766,4767,4768,4769,4770 ,-1 };
int SonicLinesSADX[343] = { 2763,2764,2765,2766,2767,2768,2769,2770,2771,2772,2773,2774,2775,2776,2777,2778,2779,2780,2892,2894,2895,2897,2932,2933,2934,2935,2936,2937,2938,2939,2940,2941,2942,2954,2956,2958,2960,2961,2963,2965,2966,2967,2969,2971,2972,2975,2977,2978,2980,2981,2984,2986,2987,2989,2990,2992,2994,2995,3001,3007,3013,3015,3021,3027,3033,3039,3042,3048,3058,3060,3066,3072,3075,3076,3077,3095,3096,3097,3098,3099,3100,3101,3115,3116,3117,3123,3126,3127,3128,3129,3130,3133,3137,3138,3141,3142,3143,3144,3145,3146,3147,3149,3152,3159,3162,3167,3169,3171,3173,3174,3184,3187,3188,3189,3191,3193,3195,3196,3199,3200,3203,3208,3209,3211,3216,3217,3219,3220,3221,3222,3223,3226,3229,3232,3234,3235,3238,3239,3240,3241,3242,3243,3245,3247,3248,3249,3250,3253,3254,3256,3258,3261,3276,3280,3281,3283,3285,3288,3292,3294,3295,3300,3306,3307,3309,3310,3311,3312,3313,3314,3315,3320,3321,3322,3323,3324,3325,3326,3327,3330,3331,3332,3335,3337,3340,3342,3352,3353,3354,3356,3359,3369,3381,3391,3402,3403,3421,3423,3434,3437,3438,3444,3489,3490,3493,3516,3518,3554,3557,3559,3588,3591,3593,3598,3600,3601,3604,3605,3666,3667,3672,3673,3675,3677,3793,3794,3797,3798,3801,3806,3807,3809,3820,3823,3824,3825,3875,3877,4009,4012,4013,4015,4017,4100,4101,4107,4108,4112,4133,4134,4136,4139,4140,4143,4146,4151,4152,4154,4155,4156,4179,4184,4187,4188,4189,4191,4196,4203,4204,4205,4210,4211,4212,4213,4214,4215,4216,4217,4219,4221,4240,4242,4247,4253,4254,4255,4258,4259,4260,4262,4267,4273,4275,4343,4409,4410,4411,4412,4413,4550,4551,4552,4553,4554,4555,4556,4557,4558,4559,4560,4561,4562,4563,4564,4565,4566,4567,4568,4569,4570,4571,4572,4573,4574,4575,4576,4577,4578,4579,4580,4581,4582,4605,4606,4607,4608,4715,4721,4722,4741,4743,4744 ,-1 };
int TailsLinesSADX[261] = { 2781,2782,2783,2784,2785,2786,2787,2788,2789,2790,2791,2792,2793,2794,2795,2796,2797,2798,2962,2970,2976,2985,3002,3008,3016,3022,3028,3034,3043,3049,3053,3061,3067,3073,3078,3079,3080,3102,3103,3104,3105,3106,3118,3148,3150,3151,3153,3154,3155,3156,3157,3164,3182,3183,3185,3186,3194,3197,3198,3215,3218,3252,3255,3257,3259,3260,3262,3266,3282,3286,3336,3338,3339,3341,3343,3344,3345,3346,3347,3348,3349,3350,3351,3355,3357,3358,3360,3361,3362,3363,3364,3366,3371,3374,3376,3378,3380,3382,3390,3392,3393,3394,3395,3397,3398,3400,3401,3404,3405,3406,3407,3410,3411,3412,3414,3415,3420,3427,3428,3432,3433,3439,3440,3441,3442,3443,3445,3446,3447,3448,3449,3450,3451,3452,3453,3454,3455,3456,3457,3458,3461,3471,3475,3477,3478,3479,3480,3481,3482,3483,3484,3485,3486,3487,3488,3491,3492,3494,3498,3508,3512,3513,3514,3515,3519,3524,3529,3530,3531,3532,3533,3534,3535,3536,3537,3541,3542,3546,3547,3553,3555,3556,3558,3655,3674,3686,3813,3818,3819,4014,4025,4060,4135,4137,4138,4141,4153,4178,4180,4181,4182,4183,4185,4186,4190,4222,4223,4229,4230,4231,4233,4238,4239,4241,4246,4248,4256,4257,4261,4266,4268,4274,4276,4344,4527,4528,4529,4530,4531,4532,4533,4534,4535,4536,4537,4538,4539,4540,4541,4542,4543,4544,4545,4546,4547,4548,4549,4609,4610,4611,4709,4710,4720,4723,4724,4742,4745,4748,4749,4751 ,-1 };
int KnucklesLinesSADX[211] = { 2799,2800,2801,2802,2803,2804,2805,2806,2807,2808,2809,2810,2811,2812,2813,2814,2815,2816,2891,2893,2964,2979,2983,2988,2991,3003,3009,3017,3023,3029,3035,3040,3044,3050,3054,3059,3062,3068,3081,3082,3083,3107,3108,3109,3110,3119,3202,3205,3210,3305,3333,3334,3408,3409,3417,3422,3435,3436,3727,3728,3729,3730,3731,3732,3733,3734,3735,3736,3737,3738,3739,3740,3741,3742,3743,3744,3745,3746,3747,3748,3749,3750,3759,3760,3761,3762,3765,3768,3769,3770,3771,3772,3774,3775,3778,3781,3782,3784,3787,3788,3789,3790,3791,3792,3795,3796,3800,3803,3808,3814,3821,3822,3836,3837,3838,3839,3840,3841,3842,3843,3844,3845,3846,3847,3848,3849,3850,3851,3852,3853,3854,3855,3856,3857,3858,3859,3860,3861,3862,3863,3864,3869,3870,3871,3872,3874,3878,3879,3880,3881,3882,3883,3884,3885,3886,3887,3888,3889,3890,3891,3892,3893,3894,3895,3896,3897,4123,4124,4125,4126,4127,4128,4129,4130,4132,4142,4144,4145,4148,4149,4150,4224,4232,4342,4514,4515,4516,4517,4518,4519,4520,4521,4522,4523,4524,4525,4526,4612,4613,4614,4615,4708,4716,4717,4718,4719,4725,4726,4740,4747 ,-1 };
int AmyLinesSADX[249] = { 2817,2818,2819,2820,2821,2822,2823,2824,2825,2826,2827,2828,2829,2830,2831,2832,2833,2834,2974,2993,2997,2999,3004,3010,3018,3024,3030,3036,3045,3051,3055,3063,3069,3074,3084,3085,3086,3087,3111,3120,3224,3225,3227,3228,3230,3231,3233,3236,3237,3244,3246,3251,3263,3265,3267,3275,3277,3278,3279,3284,3287,3495,3497,3499,3507,3509,3510,3511,3517,3560,3561,3562,3563,3564,3565,3566,3567,3568,3569,3570,3571,3572,3573,3574,3575,3576,3577,3578,3579,3580,3581,3582,3583,3584,3585,3586,3587,3589,3590,3592,3594,3595,3596,3597,3599,3602,3603,3606,3607,3608,3609,3610,3611,3612,3613,3615,3617,3619,3620,3622,3623,3624,3625,3629,3630,3631,3633,3634,3637,3638,3639,3640,3643,3644,3645,3650,3652,3654,3656,3664,3665,3668,3669,3670,3671,3676,3678,3679,3680,3681,3683,3684,3685,3687,3688,3689,3690,3691,3692,3693,3694,3695,3696,3697,3698,3699,3700,3701,3702,3703,3704,3705,3706,3707,3708,3709,3710,3711,3712,3713,3714,3715,3716,3717,3718,3719,3720,3721,3722,3723,3724,3725,3726,3969,3971,3973,3975,3976,3978,3979,3980,3981,3985,3986,3987,3989,3990,3993,3994,3995,3996,4008,4010,4011,4016,4018,4019,4020,4021,4022,4023,4024,4026,4218,4220,4338,4457,4458,4459,4460,4461,4462,4463,4464,4465,4466,4467,4468,4469,4470,4616,4617,4618,4619,4620,4727,4728,4746 ,-1 };
int E102LinesSADX[127] = { 2835,2836,2837,2838,2839,2840,2841,2842,2843,2844,2845,2846,2847,2848,2849,2850,2851,2852,2896,2955,2959,2982,2996,3000,3006,3012,3020,3026,3032,3038,3041,3047,3052,3057,3064,3070,3088,3089,3090,3112,3113,3114,3121,3270,3273,3502,3505,3614,3616,3618,3621,3626,3627,3628,3632,3635,3636,3641,3642,3659,3662,3682,3902,3936,3937,3938,3939,3966,3967,3968,3970,3972,3974,3977,3982,3983,3984,3988,3991,3992,4003,4006,4027,4028,4029,4030,4031,4032,4033,4034,4035,4036,4037,4038,4039,4040,4041,4340,4408,4494,4495,4496,4497,4498,4499,4500,4501,4502,4503,4504,4505,4506,4507,4508,4509,4510,4511,4512,4513,4621,4622,4623,4624,4729,4730,4750 ,-1 };
int BigLinesSADX[128] = { 2853,2854,2855,2856,2857,2858,2859,2860,2861,2862,2863,2864,2865,2866,2867,2868,2869,2870,2957,2968,2973,2998,3005,3011,3014,3019,3025,3031,3037,3046,3056,3065,3071,3091,3092,3093,3094,3122,3291,3293,3474,3476,4042,4043,4044,4045,4046,4047,4048,4049,4050,4051,4052,4053,4054,4055,4056,4057,4058,4059,4061,4062,4063,4064,4065,4066,4067,4068,4069,4070,4071,4072,4073,4074,4075,4076,4077,4078,4090,4091,4092,4093,4102,4105,4106,4109,4110,4111,4113,4114,4115,4116,4117,4118,4339,4471,4472,4473,4474,4475,4476,4477,4478,4479,4480,4481,4482,4483,4484,4485,4486,4487,4488,4489,4490,4491,4492,4493,4603,4604,4625,4626,4627,4628,4731,4732,4739 ,-1 };
int EggmanLinesSADX[271] = { 2871,2872,2873,2874,2875,2876,2877,2878,2879,2880,2881,2882,2883,2884,2885,2886,2887,2888,2898,2899,2900,2901,2902,2903,2904,2905,2943,2944,2945,2946,2947,2948,2949,2950,2951,2952,2953,3139,3140,3158,3160,3161,3163,3165,3166,3168,3170,3172,3175,3176,3177,3178,3179,3180,3181,3190,3192,3201,3204,3206,3207,3212,3213,3214,3264,3268,3269,3271,3272,3274,3289,3290,3296,3297,3298,3299,3301,3302,3303,3304,3308,3328,3329,3365,3367,3368,3370,3372,3373,3375,3377,3379,3383,3384,3385,3386,3387,3388,3389,3396,3399,3413,3416,3418,3419,3424,3425,3426,3429,3430,3431,3496,3500,3501,3503,3504,3506,3520,3521,3525,3526,3527,3528,3538,3539,3540,3649,3651,3653,3657,3658,3660,3661,3663,3763,3764,3766,3767,3773,3776,3777,3779,3780,3783,3785,3786,3799,3802,3804,3805,3810,3811,3812,3815,3816,3817,3873,3876,3898,3899,3900,3901,3903,3904,3905,3906,3907,3908,3909,3910,3911,3912,3913,3914,3915,3916,3917,3918,3919,3920,3921,3922,3923,3924,3925,3926,3927,3928,3929,3930,3931,3932,3933,3934,3935,3953,3954,3955,3956,3957,3958,3959,3960,3961,3962,3963,3964,3965,3997,3998,3999,4000,4001,4002,4004,4005,4007,4094,4095,4096,4097,4098,4099,4103,4104,4119,4120,4121,4122,4131,4147,4206,4207,4208,4209,4243,4244,4245,4249,4250,4251,4252,4263,4264,4265,4269,4270,4271,4272,4319,4320,4341,4407,4435,4436,4437,4450,4451,4452,4453,4629,4630,4711,4712,4713,4714,4733,4734,4735,4736 ,-1 };
int SFXLinesSADX[8] = { 2889,2890,4336,4337,4445,4761,4762,-1 };
int CutsceneLinesSADX[3] = { 2914,4752,-1 };
int PoliceLinesSADX[6] = { 3131,3132,3134,3135,3136 ,-1 };
int WomanLinesSADX[8] = { 3522,3523,3544,3545,3548,3552,4228,-1 };
int ManLinesSADX[6] = { 3543,3550,4225,4226,4227,-1 };
int NoneLinesSADX[4] = { 3549,3551,4659,-1 };
int PachacamacLinesSADX[12] = { 3752,3753,4157,4158,4159,4160,4161,4162,4163,4165,4166,-1 };
int E100RobotLinesSADX[4] = { 3950,3951,3952,-1 };
int FemaleAnnouncerLinesSADX[10] = { 4294,4295,4296,4297,4298,4299,4300,4301,4302 ,-1 };
int IntercomLinesSADX[16] = { 4315,4316,4317,4318,4427,4428,4429,4430,4431,4432,4433,4434,4454,4455,4456 ,-1 };
int MaleAnnouncerLinesSADX[5] = { 4381,4382,4383,4384 ,-1 };
int ChantLinesSADX[2] = { 4591 ,-1 };
int MetalSonicLinesSADX[6] = { 4771,4772,4773,4774,4775 ,-1 };
////
int* sonicAll[3] = { SonicLines,SonicLinesHeroes,SonicLinesSADX };
int* tailsAll[3] = { TailsLines,TailsLinesHeroes,TailsLinesSADX };
int* knucklesAll[3] = { KnucklesLines,KnucklesLinesHeroes,KnucklesLinesSADX };
int* rougeAll[2] = { RougeLines,RougeLinesHeroes};
int* eggmanAll[3] = { EggmanLines,EggmanLinesHeroes,EggmanLinesSADX };
int* shadowAll[2] = { ShadowLines,ShadowLinesHeroes};
int* metalAll[3] = { MetalSonicLines,MetalSonicLinesHeroes,MetalSonicLinesSADX };
int* amyAll[3] = { AmyLines, AmyLinesSADX, AmyLinesHeroes };
int* tikalAll[2] = { TikalLines,TikalLinesSADX };
int* omochaoAll[2] = { OmochaoLines, OmochaoLinesHeroes };
int* otherAll[39] = { NarratorLinesSADX,E102LinesSADX ,BigLinesSADX, SFXLinesSADX, CutsceneLinesSADX ,PoliceLinesSADX ,WomanLinesSADX ,ManLinesSADX,
NoneLinesSADX ,PachacamacLinesSADX ,E100RobotLinesSADX ,FemaleAnnouncerLinesSADX ,IntercomLinesSADX ,MaleAnnouncerLinesSADX ,OmegaLinesHeroes ,
CreamLinesHeroes ,BigLinesHeroes ,EspioLinesHeroes ,CharmyLinesHeroes ,VectorLinesHeroes ,CheeseLinesHeroes, PilotLines,RadioLines,NALines,
GUNLines,PoliceLines,SecretaryLines,PresidentLines,AnnouncerLines,NarratorLines,MariaLines,ReporterLines,SoldierLines,GeraldLines,BiolizardLines,
KingBoomBooLines,ChaosZeroLines,ChaoLines,DarkChaoLines};
int** allGames[11]{
sonicAll,
tailsAll,
knucklesAll,
rougeAll,
eggmanAll,
shadowAll,
metalAll,
amyAll,
tikalAll,
omochaoAll,
otherAll
};
int sizeOfArraysAllGame[11] = {
3,3,3,2,3,2,3,3,2,2,39
};
int* allLines[28] = {
PilotLines,
RadioLines,
SonicLines,
ShadowLines,
NALines,
GUNLines,
RougeLines,
KnucklesLines,
EggmanLines,
TailsLines,
AmyLines,
PoliceLines,
SecretaryLines,
PresidentLines,
AnnouncerLines,
NarratorLines,
MariaLines,
ReporterLines,
SoldierLines,
GeraldLines,
BiolizardLines,
OmochaoLines,
KingBoomBooLines,
ChaosZeroLines,
ChaoLines,
DarkChaoLines,
MetalSonicLines,
TikalLines
};
int* mainLines[12] = {
SonicLines,
ShadowLines,
RougeLines,
KnucklesLines,
EggmanLines,
TailsLines,
AmyLines,
ChaosZeroLines,
ChaoLines,
DarkChaoLines,
MetalSonicLines,
TikalLines
};
int* otherLines[16] = {
PilotLines,
RadioLines,
NALines,
GUNLines,
PoliceLines,
SecretaryLines,
PresidentLines,
AnnouncerLines,
NarratorLines,
MariaLines,
ReporterLines,
SoldierLines,
GeraldLines,
BiolizardLines,
OmochaoLines,
KingBoomBooLines
};
TwitchChatter FirstCurrency(TwitchChatter tc, vector<int> rates) {
if (tc.old != true) {
tc.currency += rates[4];
tc.old = true;
}
return tc;
}
TwitchChatter UpdateCurrency(TwitchChatter tc, vector<int> rates) {
if (tc.lastActive + rates[0] < time(NULL)) tc.active = false;
if(tc.active) tc.currency+= rates[2];
return tc;
}
vector<int> setUpRates(string path) {
vector<int> v;
v.push_back(200); //Afk time
v.push_back(20); //update time (Seconds)
v.push_back(1); //currency per update
v.push_back(5); //kinda useless ngl
v.push_back(100); //new user points
v.push_back(2); //points per bit
return v;
}
vector<string> setUpMods(string path) {
vector<string> v;
v.push_back("exant");
v.push_back("prahaha");
v.push_back("prabot");
return v;
}
unordered_map<string, TwitchChatter> startUpScores(string path) {
//CopyFileA((path + "\\Twitch\\chatCurrency.txt").c_str(), (path + "\\Twitch\\chatCurrencyBACKUP.txt").c_str(), false);
unordered_map<string, TwitchChatter> m;
std::ifstream in;
in.open((path + "\\Twitch\\chatCurrency.txt").c_str());
string user;
int bank;
TwitchChatter tc;
while (in >> user) {
in >> bank;
tc.currency = bank;
tc.name = user;
tc.active = false;
tc.old = true;
m[user] = tc;
}
in.close();
return m;
}
unordered_map<string, int> GetCommandCosts(string path) {
unordered_map<string, int> commandCosts;
vector<string> commands = {"!animal","!food","!buy"};
vector<int> costs = {0,0,0};
for (int i = 0; i < commands.size();i++) {
commandCosts[commands[i]] = costs[i];
}
return commandCosts;
}
string lowerCase(string data) {
std::transform(data.begin(), data.end(), data.begin(),
[](unsigned char c) { return tolower(c); });
return data;
}
TwitchMsg parseChat(string s) {
TwitchMsg msg;
s = lowerCase(s);
s = s.substr(s.find(":") + 1);
string u = s.substr(0, s.find("!"));
msg.user = u;
s = s.substr(s.find(":") + 1);
s = s.substr(0, s.find("\n") - 1);
msg.msg = s;
return msg;
}
int sizeOfArray(int* arr) {
int s = 0;
while (*arr != -1) {
arr++;
s++;
}
return s;
}
bool isOmochaoLine(int line) {
for (int i = 0; i < sizeOfArray(OmochaoLines); i++) if (line == OmochaoLines[i]) return true;
return false;
}
bool isMariaLine(int line) {
for (int i = 0; i < sizeOfArray(MariaLines); i++) if (line == MariaLines[i]) return true;
return false;
}
int returnSameCharALLGAMELine(int line) {
for (int i = 0; i < 11; i++) {
for (int j = 0; j < sizeOfArraysAllGame[i]; j++) {
for (int m = 0; m < sizeOfArray(allGames[i][j]); m++) {
if (line == allGames[i][j][m]) return allGames[i][rand() % sizeOfArraysAllGame[i]][rand() % sizeOfArray(allGames[i][j])];
}
}
}
return 17;
}
int returnSameCharLine(int line) {
for (int i = 0; i < 28; i++) {
for (int j = 0; j < sizeOfArray(allLines[i]); j++) {
if (line == allLines[i][j]) return allLines[i][rand() % sizeOfArray(allLines[i])];
}
}
return 17;
}
int returnMainCharLine(int line) {
int r;
for (int i = 0; i < 12; i++) {
for (int j = 0; j < sizeOfArray(mainLines[i]); j++) {
if (line == mainLines[i][j]) {
r = rand() % 12;
return mainLines[r][rand() % sizeOfArray(mainLines[r])];
}
}
}
for (int i = 0; i < 16; i++) {
for (int j = 0; j < sizeOfArray(otherLines[i]); j++) {
if (line == otherLines[i][j]) {
r = rand() % 16;
return otherLines[r][rand() % sizeOfArray(otherLines[r])];
}
}
}
return 17;
}
void PrintPos(NJS_VECTOR a) {
string s = "";
s += "(" + std::to_string(a.x) + ", " + std::to_string(a.y) + ", " + std::to_string(a.z) + ")";
PrintDebug(s.c_str());
}
void PrintInt(int a) {
PrintDebug(std::to_string(a).c_str());
}
void PrintF(float a) {
PrintDebug(std::to_string(a).c_str());
}
int stageToChar(int stage) {
for (int i = 0; i < 9; i++) if (sonicStages[i] == stage) return Characters_Sonic;
for (int i = 0; i < 4; i++) if (shadowStages[i] == stage) return Characters_Shadow;
for (int i = 0; i < 5; i++) if (tailsStages[i] == stage) return Characters_MechTails;
for (int i = 0; i < 6; i++) if (eggStages[i] == stage) return Characters_MechEggman;
for (int i = 0; i < 6; i++) if (knuxStages[i] == stage) return Characters_Knuckles;
for (int i = 0; i < 5; i++) if (rougeStages[i] == stage) return Characters_Rouge;
return -1;
}
void LogThis(std::string file, int seed, vector<StoryEntry>** stories) {
std::ofstream myfile(file);
//myfile.open("LevelLists.txt");
char Chars[Characters_Amy][12] = { "Sonic","Shadow","dead","dead","Knuckles","Rouge","Mech Tails","Mech Eggman" };
char Swaps[Characters_Amy][20] = { "Amy","Metal Sonic","dead","dead","Tikal","Choas","Chao Walker","Dark Chao Walker" };
myfile << "Seed: " << (int)seed << "\n\n";
int j = 0;
for (int i = 0; i < 3; i++)
{
switch (i)
{
case 0:
myfile << "Hero Story\n\n";
break;
case 1:
myfile << "Dark Story\n\n";
break;
case 2:
myfile << "Last Story\n\n";
break;
}
for (StoryEntry* ent = stories[i]->data(); ent->Type != StoryEntryType_End; ++ent) {
switch (ent->Type) {
case StoryEntryType_Event:
myfile << j << ": Entry Type: Cutscene \n\t";
break;
case StoryEntryType_Level:
myfile << j << ":Entry Type: Level \n\t";
break;
case StoryEntryType_Credits:
myfile << j << ":Entry Type: Credits\n\t";
break;
}
++j;
myfile << "Character: ";
if (ent->Character & altcharacter) myfile << Swaps[ent->Character] << "\n\t";
else myfile << Chars[ent->Character] << "\n\t";
myfile << "Level id: " << ent->Level << "\n\t";
for (int x = 0; x < 4; x++)
myfile << "Cutscene Data: " << ent->Events[x] << ", ";
myfile << "\n\n";
}
}
myfile.flush();
myfile.close();
}
int isIn(int a, int* b,int size) {
//int size = sizeof(b) / sizeof(int);
for (int i = 0; i < size; i++) if (b[i] == a) return i;
return -1;
}
bool isMech(int i) {
if (i == Characters_MechTails || i == Characters_MechEggman || i == (Characters_MechTails | altcharacter) || i == (Characters_MechEggman | altcharacter)) return true;
return false;
}
bool isMechless(int i) {
if (i == Characters_Tails || i == Characters_Eggman) return true;
return false;
}
bool isSpeed(int i) {
if (i == Characters_Sonic || i == Characters_Shadow || i == (Characters_Sonic | altcharacter) || i == (Characters_Shadow | altcharacter)) return true;
return false;
}
bool isHunt(int i) {
if (i == Characters_Knuckles || i == Characters_Rouge || i == (Characters_Knuckles | altcharacter) || i == (Characters_Rouge | altcharacter)) return true;
return false;
}
bool sameType(int i, int r) {
if (isHunt(i)) if (isHunt(r)) return true;
if (isMech(i)) if (isMech(r)) return true;
if (isSpeed(i)) if (isSpeed(r)) return true;
if (isMechless(i)) if (isMechless(r)) return true;
return false;
}
boolean isHuntingStage() {
if (CurrentLevel == LevelIDs_MadSpace || CurrentLevel == LevelIDs_SecurityHall || CurrentLevel == LevelIDs_DryLagoon || CurrentLevel == LevelIDs_EggQuarters || CurrentLevel == LevelIDs_WildCanyon || CurrentLevel == LevelIDs_PumpkinHill || CurrentLevel == LevelIDs_AquaticMine || CurrentLevel == LevelIDs_DeathChamber || CurrentLevel == LevelIDs_MeteorHerd)
return true;
return false;
}
int isHuntingStageInt() {
if (CurrentLevel == LevelIDs_MadSpace || CurrentLevel == LevelIDs_SecurityHall || CurrentLevel == LevelIDs_DryLagoon || CurrentLevel == LevelIDs_EggQuarters || CurrentLevel == LevelIDs_WildCanyon || CurrentLevel == LevelIDs_PumpkinHill || CurrentLevel == LevelIDs_AquaticMine || CurrentLevel == LevelIDs_DeathChamber || CurrentLevel == LevelIDs_MeteorHerd)
return 1;
return 0;
}
boolean isHuntingStagei(int CurrentLevel) {
if (CurrentLevel == LevelIDs_MadSpace || CurrentLevel == LevelIDs_SecurityHall || CurrentLevel == LevelIDs_DryLagoon || CurrentLevel == LevelIDs_EggQuarters || CurrentLevel == LevelIDs_WildCanyon || CurrentLevel == LevelIDs_PumpkinHill || CurrentLevel == LevelIDs_AquaticMine || CurrentLevel == LevelIDs_DeathChamber || CurrentLevel == LevelIDs_MeteorHerd)
return true;
return false;
}
double dist(NJS_VECTOR a, NJS_VECTOR b) {
return(pow(pow(a.x - b.x, 2) + pow(a.y - b.y, 2) + pow(a.z - b.z, 2), 0.5));
}
float findClosestMM(int MMID) {
float closestMM = 9999;
float currentMM = 0.0;
for (int i = 0; i < SETObjectCount; i++) {
if (SETEntries[i].ID == MMID) {
currentMM = dist(MainCharObj1[0]->Position, SETEntries[i].Position);
if (currentMM < closestMM) closestMM = currentMM;
}
}
//PrintDebug("end");
return closestMM;
}
bool isBoss() {
switch (CurrentLevel) {
case LevelIDs_SonicVsShadow1:
case LevelIDs_SonicVsShadow2:
case LevelIDs_KnucklesVsRouge:
case LevelIDs_TailsVsEggman1:
case LevelIDs_TailsVsEggman2:
case LevelIDs_EggGolemE:
case LevelIDs_EggGolemS:
case LevelIDs_KingBoomBoo:
case LevelIDs_FinalHazard:
case LevelIDs_Biolizard:
case LevelIDs_BigFoot:
case LevelIDs_HotShot:
case LevelIDs_FlyingDog:
return true;
break;
}
return false;
}
int isAttacking() {
//PrintInt(MainCharObj1[0]->Action);
if ((MainCharObj1[0]->Action == Action_MechlessAttack && !isMech(CurrentCharacter)) ||
(isMechless(CurrentCharacter) && MainCharObj1[0]->Action == Action_Jump)||
MainCharObj1[0]->Action == Action_HomingAttack || MainCharObj1[0]->Action == Action_Somersault1 ||
MainCharObj1[0]->Action == Action_Somersault2 || MainCharObj1[0]->Action == Action_SomersaultFinish || MainCharObj1[0]->Action == Action_MovingSomersault1 ||
MainCharObj1[0]->Action == Action_MovingSomersault2 || MainCharObj1[0]->Action == Action_BounceDown || MainCharObj1[0]->Action == Action_BounceUp ||
MainCharObj1[0]->Action == Action_MovingSomersaultFinish ||
(MainCharObj1[0]->Action == Action_Jump && !isMech(CurrentCharacter) && !isMechless(CurrentCharacter)) ||
(isMech(CurrentCharacter) && MenuButtons_Held[0] & Buttons_B) || MainCharObj1[0]->Action == Action_MechPunch ||
MainCharObj1[0]->Action == Action_Punch || MainCharObj1[0]->Action == Action_Punch2 || MainCharObj1[0]->Action == Action_Punch3 || MainCharObj1[0]->Action == Action_Punch1Run ||
MainCharObj1[0]->Action == Action_Glide || MainCharObj1[0]->Action == Action_Punch2Run || MainCharObj1[0]->Action == Action_Punch3Run || MainCharObj1[0]->Action == Action_SpiralUpper
) {
//PrintDebug("Attacking\n");
return 1;
}
return 0;
}
void setUpSuper() {
WriteData<1>((void*)0x49AB61, 0x66);//232 call FUN_49ece0
WriteData<1>((void*)0x49AB62, 0x90);//122
WriteData<1>((void*)0x49AB63, 0x66);//65
WriteData<1>((void*)0x49AB64, 0x90);//0
WriteData<1>((void*)0x49AB65, 0x90);//0
WriteData<1>((void*)0x49ADC5, 0x66);//232
WriteData<1>((void*)0x49ADC6, 0x90);//22 call FUN_49ece0 sahdow
WriteData<1>((void*)0x49ADC7, 0x66);//63
WriteData<1>((void*)0x49ADC8, 0x90);//0
WriteData<1>((void*)0x49ADC9, 0x90);//0
WriteData<1>((void*)0x49CD64, 0x66);//138 level complete
WriteData<1>((void*)0x49CD65, 0x90);//8
WriteData<1>((void*)0x49CD6D, 0xEB);//116
WriteData<1>((void*)0x6DF2DA, 1);//10
WriteData<1>((void*)0x6DF067, 1);//10
WriteData<1>((void*)0x6EDEE0, 0XC3);//85
WriteData<1>((void*)0x46ECE7, 0xEB);//116
WriteData<1>((void*)0x46ECF9, 64);//68
WriteData<1>((void*)0x46ED00, 0x90);//15
WriteData<1>((void*)0x46ED01, 0xE9);//132
}
void fixSuper() {
WriteData<1>((void*)0x49AB61, 232);//232
WriteData<1>((void*)0x49AB62, 122);//122
WriteData<1>((void*)0x49AB63, 65);//65
WriteData<1>((void*)0x49AB64, 0);//0
WriteData<1>((void*)0x49AB65, 0);//0
WriteData<1>((void*)0x49ADC5, 232);//232
WriteData<1>((void*)0x49ADC6, 22);//22
WriteData<1>((void*)0x49ADC7, 63);//63
WriteData<1>((void*)0x49ADC8, 0);//0
WriteData<1>((void*)0x49ADC9, 0);//0
WriteData<1>((void*)0x49CD64, 138);//138
WriteData<1>((void*)0x49CD65, 8);//8
WriteData<1>((void*)0x49CD6D, 116);//116
WriteData<1>((void*)0x6DF2DA, 10);//10
WriteData<1>((void*)0x6DF067, 10);//10
WriteData<1>((void*)0x6EDEE0, 85);//85
WriteData<1>((void*)0x46ECE7, 116);//116
WriteData<1>((void*)0x46ECF9, 68);//68
WriteData<1>((void*)0x46ED00, 15);//15
WriteData<1>((void*)0x46ED01, 132);//132
}
std::string stageNumToName(int num) {
switch (num) {
case LevelIDs_CityEscape:
return "City Escape";
case LevelIDs_BigFoot:
return "Big Foot";
case LevelIDs_WildCanyon:
return "Wild Canyon";
case LevelIDs_TailsVsEggman1:
return "Tails/Eggman 1";
case LevelIDs_PrisonLane:
return "Prison Lane";
case LevelIDs_MetalHarbor:
return "Metal Harbor";
case LevelIDs_SonicVsShadow1:
return "Sonic/Shadow 1";
case LevelIDs_GreenForest:
return "Green Forest";
case LevelIDs_PumpkinHill:
return "Pumpkin Hill";
case LevelIDs_MissionStreet:
return "Mission Street";
case LevelIDs_AquaticMine:
return "Aquatic Mine";
case 70:
return "Route 101/280";
case LevelIDs_HiddenBase:
return "Hidden Base";
case LevelIDs_PyramidCave:
return "Pyramid Cave";
case LevelIDs_DeathChamber:
return "Death Chamber";
case LevelIDs_KingBoomBoo:
return "King Boom Boo";
case LevelIDs_EggGolemS:
return "Hero Golem";
case LevelIDs_EternalEngine:
return "Eternal Engine";
case LevelIDs_MeteorHerd:
return "Meteor Herd";
case LevelIDs_KnucklesVsRouge:
return "Knuckles/Rouge";
case LevelIDs_CrazyGadget:
return "Crazy Gadget";
case LevelIDs_TailsVsEggman2:
return "Tails/Eggman 2";
case LevelIDs_FinalRush:
return "Final Rush";
case LevelIDs_SonicVsShadow2:
return "Sonic/Shadow 2";
case LevelIDs_IronGate:
return "Iron Gate";
case LevelIDs_HotShot:
return "Hot Shot";
case LevelIDs_DryLagoon:
return "Dry Lagoon";
case LevelIDs_SandOcean:
return "Sand Ocean";
case LevelIDs_RadicalHighway:
return "Radical Highway";
case LevelIDs_EggQuarters:
return "Egg Quarters";
case LevelIDs_LostColony:
return "Lost Colony";
case LevelIDs_WeaponsBed:
return "Weapons Bed";
case LevelIDs_SecurityHall:
return "Security Hall";
case LevelIDs_FlyingDog:
return "Flying Dog";
case LevelIDs_WhiteJungle:
return "White Jungle";
case 71:
return "Route 280";
case LevelIDs_SkyRail:
return "Sky Rail";
case LevelIDs_EggGolemE:
return "Dark Golem";
case LevelIDs_MadSpace:
return "Mad Space";
case LevelIDs_CosmicWall:
return "Cosmic Wall";
case LevelIDs_FinalChase:
return "Final Chase";
case LevelIDs_CannonsCoreT:
return "Cannons Core";
case LevelIDs_Biolizard:
return "Biolizard";
case LevelIDs_FinalHazard:
return "Final Hazard";
}
return "Uh? Oops";
}
void createSplits(vector<StoryEntry>& stages, std::string category, bool showN) {
std::ofstream myfile("RandomizerSplits.lss");
//Header
myfile << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
myfile << "<Run version=\"1.7.0\">\n";
myfile << "<GameIcon />\n<GameName>Sonic Adventure 2: Battle</GameName>\n<CategoryName>Randomizer: ";
myfile << category << "</CategoryName>\n<Metadata>\n";
myfile << "<Run id = \"\" />\n";
myfile << "<Platform usesEmulator = \"False\">\n";
myfile << "</Platform>\n<Region>\n</Region>\n<Variables />\n</Metadata>\n<Offset>00:00:00</Offset>\n<AttemptCount>0</AttemptCount>\n";
myfile << "<AttemptHistory />\n<Segments>\n";
//
for (StoryEntry &ent : stages) {
if (ent.Type == StoryEntryType_Level) {
if (ent.Level == LevelIDs_CannonsCoreT) {
for (int j = 0; j < 5; j++) {
myfile << "<Segment>\n";
myfile << "<Name>";
if (showN)
myfile << stageNumToName(ent.Level) << " " << j;
else
myfile << "Stage: " << ent.Level << " " << j;
myfile << "</Name>\n";
myfile << "<Icon />\n";
myfile << "<SplitTimes>\n<SplitTime name=\"Personal Best\" />\n</SplitTimes>\n<BestSegmentTime />\n<SegmentHistory />";
myfile << "</Segment>\n";
}
}
else {
myfile << "<Segment>\n";
myfile << "<Name>";
if (showN)
myfile << stageNumToName(ent.Level);
else
myfile << "Stage: " << ent.Level;
myfile << "</Name>\n";
myfile << "<Icon />\n";
myfile << "<SplitTimes>\n<SplitTime name=\"Personal Best\" />\n</SplitTimes>\n<BestSegmentTime />\n<SegmentHistory />";
myfile << "</Segment>\n";
}
}
}
//
if (category.compare("173 Emblems") == 0) {
for (int i = 0; i < 124; i++) {
myfile << "<Segment>\n";
myfile << "<Name>";
myfile << "Emblem: " << i + 35;
myfile << "</Name>\n";
myfile << "<Icon />\n";
myfile << "<SplitTimes>\n<SplitTime name=\"Personal Best\" />\n</SplitTimes>\n<BestSegmentTime />\n<SegmentHistory />";
myfile << "</Segment>\n";
}
myfile << "<Segment>\n";
myfile << "<Name>";
myfile << "Chao 9 Emblems";
myfile << "</Name>\n";
myfile << "<Icon />\n";
myfile << "<SplitTimes>\n<SplitTime name=\"Personal Best\" />\n</SplitTimes>\n<BestSegmentTime />\n<SegmentHistory />";
myfile << "</Segment>\n";
myfile << "<Segment>\n";
myfile << "<Name>";
myfile << "Beginner Karts";
myfile << "</Name>\n";
myfile << "<Icon />\n";
myfile << "<SplitTimes>\n<SplitTime name=\"Personal Best\" />\n</SplitTimes>\n<BestSegmentTime />\n<SegmentHistory />";
myfile << "</Segment>\n";
myfile << "<Segment>\n";
myfile << "<Name>";
myfile << "Standard Karts";
myfile << "</Name>\n";
myfile << "<Icon />\n";
myfile << "<SplitTimes>\n<SplitTime name=\"Personal Best\" />\n</SplitTimes>\n<BestSegmentTime />\n<SegmentHistory />";
myfile << "</Segment>\n";
myfile << "<Segment>\n";
myfile << "<Name>";
myfile << "Expert Karts";
myfile << "</Name>\n";
myfile << "<Icon />\n";
myfile << "<SplitTimes>\n<SplitTime name=\"Personal Best\" />\n</SplitTimes>\n<BestSegmentTime />\n<SegmentHistory />";
myfile << "</Segment>\n";
myfile << "<Segment>\n";
myfile << "<Name>";
myfile << "Hero Boss Rush";
myfile << "</Name>\n";
myfile << "<Icon />\n";
myfile << "<SplitTimes>\n<SplitTime name=\"Personal Best\" />\n</SplitTimes>\n<BestSegmentTime />\n<SegmentHistory />";
myfile << "</Segment>\n";
myfile << "<Segment>\n";
myfile << "<Name>";
myfile << "Dark Boss Rush";
myfile << "</Name>\n";
myfile << "<Icon />\n";
myfile << "<SplitTimes>\n<SplitTime name=\"Personal Best\" />\n</SplitTimes>\n<BestSegmentTime />\n<SegmentHistory />";
myfile << "</Segment>\n";
myfile << "<Segment>\n";
myfile << "<Name>";
myfile << "Last Boss Rush";
myfile << "</Name>\n";
myfile << "<Icon />\n";
myfile << "<SplitTimes>\n<SplitTime name=\"Personal Best\" />\n</SplitTimes>\n<BestSegmentTime />\n<SegmentHistory />";
myfile << "</Segment>\n";
}
myfile << "</Segments>\n<AutoSplitterSettings />\n</Run>";
//footer
myfile.close();
}