- preview generation for rubbers, air-mines, crates, barrels
authormikade <redgrinner@gmail.com>
Wed, 27 May 2015 22:34:11 +0900
changeset 10967 1434cec96ca3
parent 10966 a8749503c130
child 10968 d2f9e25d1d79
- preview generation for rubbers, air-mines, crates, barrels - add map previews for the other 6 TechRacer maps - make TechRacer (more or less) work out the box - randomize map by clicking on preview (when map unspecified)
share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
share/hedgewars/Data/Scripts/TechMaps.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Tue May 26 12:00:39 2015 +0300
+++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Wed May 27 22:34:11 2015 +0900
@@ -1,12 +1,11 @@
 ------------------------------------------
--- TECH RACER v0.7
+-- TECH RACER v0.8
 -----------------------------------------
 
 --------------
 -- TO DO
 --------------
--- allow scrolling of maps
--- place waypoints for the registered maps automatically.
+-- allow scrolling of maps (was going to add this in the engine itself, but it can be done now by refreshing preview)
 
 --------------
 --0.2
@@ -54,6 +53,14 @@
 -- (temporarily?) remove ability to place waypoints manually
 -- break stuff?
 
+--------------
+--0.8
+--------------
+-- should (more or less) work "out of the box" now
+-- generate map previews for level
+-- randomly assign a map in the case of no map param
+-- no longer allow custom ammosets (ammo should be specified by map so that records can be valid, though we probably still need to completely limit gameflags)
+
 -----------------------------
 -- SCRIPT BEGINS
 -----------------------------
@@ -170,7 +177,7 @@
 local specialPointsFlag = {}
 local specialPointsCount = 0
 
-mapID = 22
+mapID = nil
 
 --------------------------
 -- hog and team tracking variales
@@ -669,6 +676,10 @@
 		roundLimit = 3
 	end
 
+	if mapID == nil then
+		mapID = 2 + GetRandom(7)
+	end
+
 end
 
 function onGameInit()
@@ -678,7 +689,7 @@
 		MapGen = mgDrawn
 		TemplateFilter = 0
 
-		EnableGameFlags(gfInfAttack, gfDisableWind)
+		EnableGameFlags(gfInfAttack, gfDisableWind, gfBorder)
 		DisableGameFlags(gfSolidLand)
 		CaseFreq = 0
         TurnTime = 90000
@@ -1186,5 +1197,17 @@
     end
 end
 
+function onAmmoStoreInit()
 
+	SetAmmo(amSkip, 9, 0, 0, 0)
 
+	for i = 1, #atkArray do
+		SetAmmo(atkArray[i][1], 0, 0, 0, 1)
+	end
+
+	for i = 1, #utilArray do
+		SetAmmo(utilArray[i][1], 0, 0, 0, 1)
+	end
+
+end
+
--- a/share/hedgewars/Data/Scripts/TechMaps.lua	Tue May 26 12:00:39 2015 +0300
+++ b/share/hedgewars/Data/Scripts/TechMaps.lua	Wed May 27 22:34:11 2015 +0900
@@ -65,7 +65,24 @@
     end
 end
 
-function PreviewRubber()
+function PreviewRubber(x, y, f)
+	if f == 0 then
+        AddPoint(x-79,y,1)
+        AddPoint(x+79,y)
+    elseif f == 1 then
+        AddPoint(x-54,y-54,1)
+        AddPoint(x+54,y+54)
+    elseif f == 2 then
+        AddPoint(x,y-80,1)
+        AddPoint(x,y+80)
+    elseif f == 3 then
+        AddPoint(x-54,y+54,1)
+        AddPoint(x+54,y-54)
+    end
+end
+
+function PreviewPlacedGear(x, y)
+	AddPoint(x,y,2)
 end
 
 function onPreviewInit()
@@ -75,145 +92,1245 @@
     for x = 1, 16 do
         AddPoint(x*100,100,5)
     end
-	if mapID == 4 then
-	---nice rope and airmines landflag testmap
-    -- it'd be nice if these coordinates were stored somewhere generic so they didn't have to be edited twice. Some map array or something
-    PreviewWayPoint(337, 533)
-    PreviewWayPoint(1069, 1367)
-    PreviewWayPoint(884, 729)
-    PreviewWayPoint(1682, 464)
-    PreviewWayPoint(2773, 505)
-    PreviewWayPoint(3512, 929)
-    PreviewWayPoint(4002, 106)
-    PreviewWayPoint(3964, 1520)
-    PreviewWayPoint(2592, 1334)
-	PreviewGirder(194, 388, 7)
-	PreviewGirder(338, 334, 4)
-	PreviewGirder(484, 390, 5)
-	PreviewGirder(139, 543, 6)
-	PreviewGirder(544, 540, 6)
-	PreviewGirder(201, 687, 5)
-	PreviewGirder(485, 684, 7)
-	PreviewGirder(259, 839, 6)
-	PreviewGirder(426, 837, 6)
-	PreviewGirder(259, 999, 6)
-	PreviewGirder(426, 998, 6)
-	PreviewGirder(259, 1159, 6)
-	PreviewGirder(426, 1158, 6)
-	PreviewGirder(259, 1318, 6)
-	PreviewGirder(426, 1318, 6)
-	PreviewGirder(426, 1478, 6)
-	PreviewGirder(259, 1478, 6)
-	PreviewGirder(515, 1477, 4)
-	PreviewGirder(659, 1537, 5)
-	PreviewGirder(774, 1652, 5)
-	PreviewGirder(836, 1799, 6)
-	PreviewGirder(907, 1890, 4)
-	PreviewGirder(1067, 1890, 4)
-	PreviewGirder(1212, 1823, 7)
-	PreviewGirder(1359, 1764, 4)
-	PreviewGirder(1504, 1822, 5)
-	PreviewGirder(1647, 1886, 4)
-	PreviewGirder(1807, 1886, 4)
-	PreviewGirder(1362, 1869, 4)
-	PreviewGirder(1968, 1885, 4)
-	PreviewGirder(2111, 1823, 7)
-	PreviewGirder(2257, 1769, 4)
-	PreviewGirder(2403, 1825, 5)
-	PreviewGirder(2549, 1887, 4)
-	PreviewGirder(2709, 1887, 4)
-	PreviewGirder(2868, 1887, 4)
-	PreviewGirder(2958, 1854, 2)
-	PreviewGirder(2928, 1773, 1)
-	PreviewGirder(2898, 1692, 2)
-	PreviewGirder(2928, 1613, 3)
-	PreviewGirder(3045, 1584, 4)
-	PreviewGirder(3162, 1619, 1)
-	PreviewGirder(3192, 1697, 2)
-	PreviewGirder(3160, 1777, 3)
-	PreviewGirder(3128, 1857, 2)
-	PreviewGirder(3218, 1886, 4)
-	PreviewGirder(3379, 1885, 4)
-	PreviewGirder(3524, 1818, 7)
-	PreviewGirder(3641, 1702, 7)
-	PreviewGirder(3756, 1585, 7)
-	PreviewGirder(4021, 1316, 7)
-	PreviewGirder(3842, 1503, 3)
-	PreviewGirder(3899, 1409, 7)
-	PreviewGirder(3694, 1974, 7)
-	PreviewGirder(3809, 1858, 7)
-	PreviewGirder(3925, 1741, 7)
-	PreviewGirder(4022, 1613, 7)
-	PreviewGirder(2256, 1877, 4)
-	PreviewGirder(3046, 1728, 0)
-	PreviewGirder(501, 1777, 6)
-	PreviewGirder(572, 1868, 4)
-	PreviewGirder(3372, 771, 7)
-	PreviewGirder(3517, 715, 4)
-	PreviewGirder(3663, 774, 5)
-	PreviewGirder(3313, 923, 6)
-	PreviewGirder(3373, 1066, 5)
-	PreviewGirder(3518, 1128, 4)
-	PreviewGirder(3662, 1065, 7)
-	PreviewGirder(3723, 924, 6)
-	PreviewGirder(2474, 1373, 6)
-	PreviewGirder(2474, 1252, 2)
-	PreviewGirder(2507, 1200, 0)
-	PreviewGirder(2626, 1200, 4)
-	PreviewGirder(2716, 1270, 6)
-	PreviewGirder(2505, 1464, 0)
-	PreviewGirder(2625, 1464, 4)
-	PreviewGirder(2716, 1391, 6)
-	PreviewGirder(1544, 300, 7)
-	PreviewGirder(1691, 245, 4)
-	PreviewGirder(1838, 304, 5)
-	PreviewGirder(1487, 453, 6)
-	PreviewGirder(1548, 597, 5)
-	PreviewGirder(1692, 657, 4)
-	PreviewGirder(1835, 593, 7)
-	PreviewGirder(1900, 451, 6)
-	PreviewGirder(3527, 93, 6)
-	PreviewGirder(3586, 238, 5)
-	PreviewGirder(3703, 354, 5)
-	PreviewGirder(3820, 471, 5)
-	PreviewGirder(3938, 588, 5)
-	PreviewGirder(4044, 651, 0)
-	PreviewGirder(3618, 22, 4)
-	PreviewGirder(3779, 22, 4)
-	PreviewGirder(3939, 22, 4)
-	PreviewGirder(4047, 22, 0)
-	PreviewGirder(936, 1198, 7)
-	PreviewGirder(1080, 1143, 4)
-	PreviewGirder(1225, 1202, 5)
-	PreviewGirder(1278, 1352, 6)
-	PreviewGirder(881, 1351, 6)
-	PreviewGirder(943, 1496, 5)
-	PreviewGirder(1219, 1495, 7)
-	PreviewGirder(1160, 1645, 6)
-	PreviewGirder(998, 1649, 6)
-	PreviewGirder(1160, 1766, 2)
-	PreviewGirder(998, 1770, 2)
-	PreviewGirder(1077, 1824, 4)
-	PreviewGirder(1824, 1138, 6)
-	PreviewGirder(834, 606, 7)
-	PreviewGirder(950, 593, 5)
-	PreviewGirder(1035, 683, 1)
-	PreviewGirder(748, 696, 3)
-	PreviewGirder(764, 780, 5)
-	PreviewGirder(850, 870, 1)
-	PreviewGirder(937, 850, 7)
-	PreviewGirder(1018, 768, 7)
-	PreviewGirder(2589, 444, 7)
-	PreviewGirder(2704, 329, 7)
-	PreviewGirder(2604, 560, 5)
-	PreviewGirder(2719, 675, 5)
-	PreviewGirder(2832, 689, 7)
-	PreviewGirder(2947, 573, 7)
-	PreviewGirder(2820, 317, 5)
-	PreviewGirder(2936, 433, 5)
-	PreviewGirder(2987, 489, 1)
-	PreviewGirder(338, 559, 4)
-    end
+
+	if mapID == 1 then
+			--
+	elseif mapID == 2 then
+		PreviewGirder(402, 1863, 0)
+		PreviewGirder(442, 1863, 4)
+		PreviewGirder(2067, 1945, 6)
+		PreviewGirder(1943, 1653, 6)
+		PreviewGirder(1999, 1504, 7)
+		PreviewGirder(2143, 1445, 4)
+		PreviewGirder(2432, 1565, 4)
+		PreviewGirder(2593, 1565, 4)
+		PreviewGirder(2752, 1565, 4)
+		PreviewGirder(2206, 1949, 6)
+		PreviewGirder(2262, 1800, 7)
+		PreviewGirder(2407, 1745, 4)
+		PreviewGirder(2569, 1745, 4)
+		PreviewGirder(2005, 1797, 5)
+		PreviewGirder(2288, 1503, 5)
+		PreviewGirder(2715, 1802, 5)
+		PreviewGirder(2898, 1624, 5)
+		PreviewGirder(3014, 1740, 5)
+		PreviewGirder(2830, 1919, 5)
+		PreviewGirder(3131, 1856, 5)
+		PreviewGirder(3191, 1968, 2)
+		PreviewGirder(3264, 2021, 4)
+		PreviewGirder(2840, 2006, 3)
+		PreviewGirder(396, 665, 1)
+		PreviewGirder(619, 665, 3)
+		PreviewGirder(696, 635, 0)
+		PreviewGirder(319, 637, 0)
+		PreviewGirder(268, 604, 2)
+		PreviewGirder(746, 603, 2)
+		PreviewGirder(325, 495, 7)
+		PreviewGirder(689, 493, 5)
+		PreviewGirder(504, 422, 6)
+		PreviewGirder(595, 422, 4)
+		PreviewGirder(412, 422, 4)
+		PreviewGirder(320, 696, 4)
+		PreviewGirder(249, 786, 6)
+		PreviewGirder(249, 948, 6)
+		PreviewGirder(191, 785, 6)
+		PreviewGirder(191, 946, 6)
+		PreviewGirder(191, 1107, 6)
+		PreviewGirder(249, 1109, 6)
+		PreviewGirder(130, 1251, 7)
+		PreviewGirder(306, 1251, 5)
+		PreviewGirder(72, 1360, 2)
+		PreviewGirder(364, 1360, 2)
+		PreviewGirder(132, 1462, 5)
+		PreviewGirder(304, 1463, 7)
+		PreviewGirder(182, 1616, 6)
+		PreviewGirder(255, 1613, 6)
+		PreviewGirder(217, 1796, 4)
+		PreviewGirder(221, 1381, 0)
+		PreviewGirder(154, 669, 1)
+		PreviewGirder(124, 553, 6)
+		PreviewGirder(326, 467, 3)
+		PreviewGirder(223, 592, 3)
+		PreviewGirder(638, 791, 5)
+		PreviewGirder(752, 907, 5)
+		PreviewGirder(866, 1022, 5)
+		PreviewGirder(1505, 395, 7)
+		PreviewGirder(1445, 544, 6)
+		PreviewGirder(1506, 686, 5)
+		PreviewGirder(1650, 339, 4)
+		PreviewGirder(1797, 397, 5)
+		PreviewGirder(1857, 547, 6)
+		PreviewGirder(1797, 688, 7)
+		PreviewGirder(1652, 754, 4)
+		PreviewGirder(3326, 863, 4)
+		PreviewGirder(3474, 921, 5)
+		PreviewGirder(3180, 921, 7)
+		PreviewGirder(3120, 1071, 6)
+		PreviewGirder(3183, 1214, 5)
+		PreviewGirder(3536, 1071, 6)
+		PreviewGirder(3480, 1214, 7)
+		PreviewGirder(3330, 1279, 4)
+		PreviewGirder(1481, 1133, 7)
+		PreviewGirder(1626, 1078, 4)
+		PreviewGirder(1772, 1135, 5)
+		PreviewGirder(1422, 1280, 6)
+		PreviewGirder(1831, 1286, 6)
+		PreviewGirder(1773, 1429, 7)
+		PreviewGirder(1627, 1492, 4)
+		PreviewGirder(1482, 1427, 5)
+		PreviewGirder(587, 855, 4)
+		PreviewGirder(425, 855, 4)
+		PreviewGirder(302, 822, 1)
+		PreviewGirder(2502, 556, 7)
+		PreviewGirder(2601, 634, 7)
+		PreviewGirder(2616, 441, 7)
+		PreviewGirder(2716, 519, 7)
+		PreviewGirder(3469, 556, 7)
+		PreviewGirder(3696, 763, 7)
+		PreviewGirder(2756, 379, 4)
+		PreviewGirder(2862, 466, 4)
+		PreviewGirder(2918, 379, 4)
+		PreviewGirder(3023, 467, 4)
+		PreviewGirder(3080, 378, 4)
+		PreviewGirder(3616, 503, 4)
+		PreviewGirder(3552, 828, 4)
+		PreviewGirder(3172, 527, 5)
+		PreviewGirder(3232, 428, 5)
+		PreviewGirder(3289, 647, 5)
+		PreviewGirder(3350, 545, 5)
+		PreviewGirder(3406, 764, 5)
+		PreviewGirder(3708, 575, 6)
+		PreviewGirder(3705, 680, 1)
+		PreviewRubber(505, 708, 0)
+		PreviewRubber(175, 451, 0)
+		PreviewRubber(822, 1693, 0)
+		PreviewRubber(982, 1691, 0)
+		PreviewRubber(1142, 1688, 0)
+		PreviewRubber(1302, 1684, 0)
+		PreviewRubber(1450, 1750, 1)
+		PreviewRubber(1566, 1860, 1)
+		PreviewRubber(1680, 1973, 1)
+		PreviewWayPoint(387, 621)
+		PreviewWayPoint(215, 1748)
+		PreviewWayPoint(1617, 1313)
+		PreviewWayPoint(1642, 562)
+		PreviewWayPoint(3318, 1102)
+		PreviewWayPoint(3554, 684)
+		PreviewWayPoint(2142, 1674)
+		PreviewPlacedGear(324, 613)
+		PreviewPlacedGear(2361, 1721)
+		PreviewPlacedGear(2430, 1721)
+		PreviewPlacedGear(2510, 1721)
+		PreviewPlacedGear(2581, 1721)
+		PreviewPlacedGear(405, 1839)
+		PreviewPlacedGear(481, 1839)
+		PreviewPlacedGear(696, 611)
+		PreviewPlacedGear(825, 1664)
+		PreviewPlacedGear(919, 1657)
+		PreviewPlacedGear(1015, 1662)
+		PreviewPlacedGear(1095, 1654)
+		PreviewPlacedGear(1166, 1659)
+		PreviewPlacedGear(1250, 1650)
+		PreviewPlacedGear(1335, 1655)
+	elseif mapID == 3 then
+		PreviewGirder(3703, 157, 7)
+		PreviewGirder(3846, 100, 4)
+		PreviewGirder(3991, 162, 5)
+		PreviewGirder(4049, 311, 6)
+		PreviewGirder(3648, 308, 6)
+		PreviewGirder(3988, 454, 7)
+		PreviewGirder(3843, 515, 4)
+		PreviewGirder(3616, 429, 3)
+		PreviewGirder(3725, 548, 3)
+		PreviewGirder(1155, 95, 6)
+		PreviewGirder(1067, 167, 4)
+		PreviewGirder(906, 167, 4)
+		PreviewGirder(747, 167, 4)
+		PreviewGirder(586, 167, 4)
+		PreviewGirder(426, 167, 4)
+		PreviewGirder(266, 166, 4)
+		PreviewGirder(105, 166, 4)
+		PreviewWayPoint(3892, 478)
+		PreviewWayPoint(1146, 413)
+		PreviewWayPoint(934, 1459)
+		PreviewWayPoint(2635, 1459)
+		PreviewWayPoint(2656, 523)
+		PreviewWayPoint(1958, 834)
+		PreviewWayPoint(555, 864)
+		PreviewPlacedGear(3801, 491)
+		PreviewPlacedGear(3803, 460)
+		PreviewPlacedGear(3799, 429)
+		PreviewPlacedGear(3846, 491)
+		PreviewPlacedGear(3845, 460)
+		PreviewPlacedGear(3845, 429)
+		PreviewPlacedGear(3684, 595)
+		PreviewPlacedGear(3648, 641)
+		PreviewPlacedGear(3613, 695)
+		PreviewPlacedGear(3575, 733)
+		PreviewPlacedGear(3537, 781)
+		PreviewPlacedGear(3505, 829)
+		PreviewPlacedGear(3476, 881)
+		PreviewPlacedGear(3447, 930)
+		PreviewPlacedGear(3418, 979)
+		PreviewPlacedGear(3388, 1021)
+		PreviewPlacedGear(3356, 1072)
+		PreviewPlacedGear(3561, 469)
+		PreviewPlacedGear(3528, 500)
+		PreviewPlacedGear(3496, 545)
+		PreviewPlacedGear(3467, 584)
+		PreviewPlacedGear(3444, 619)
+		PreviewPlacedGear(3404, 656)
+		PreviewPlacedGear(3373, 693)
+		PreviewPlacedGear(3351, 726)
+		PreviewPlacedGear(3329, 756)
+		PreviewPlacedGear(3306, 798)
+		PreviewPlacedGear(3339, 1115)
+		PreviewPlacedGear(3321, 1163)
+		PreviewPlacedGear(3298, 1206)
+		PreviewPlacedGear(3281, 1250)
+		PreviewPlacedGear(3259, 1302)
+		PreviewPlacedGear(3238, 1343)
+		PreviewPlacedGear(3220, 1397)
+		PreviewPlacedGear(3269, 810)
+		PreviewPlacedGear(3225, 788)
+		PreviewPlacedGear(3188, 762)
+		PreviewPlacedGear(3149, 735)
+		PreviewPlacedGear(3106, 709)
+		PreviewPlacedGear(3064, 682)
+		PreviewPlacedGear(3023, 652)
+		PreviewPlacedGear(2983, 619)
+		PreviewPlacedGear(3135, 980)
+		PreviewPlacedGear(3143, 1029)
+		PreviewPlacedGear(3130, 1077)
+		PreviewPlacedGear(3122, 1127)
+		PreviewPlacedGear(3100, 1174)
+		PreviewPlacedGear(3069, 1226)
+		PreviewPlacedGear(3042, 1287)
+		PreviewPlacedGear(3178, 1440)
+		PreviewPlacedGear(3125, 1480)
+		PreviewPlacedGear(3088, 1521)
+		PreviewPlacedGear(2988, 1326)
+		PreviewPlacedGear(2944, 1357)
+		PreviewPlacedGear(2884, 1356)
+		PreviewPlacedGear(2813, 1356)
+		PreviewPlacedGear(2755, 1356)
+		PreviewPlacedGear(2677, 1347)
+		PreviewPlacedGear(2610, 1356)
+		PreviewPlacedGear(2532, 1354)
+		PreviewPlacedGear(3045, 1553)
+		PreviewPlacedGear(2974, 1588)
+		PreviewPlacedGear(2901, 1584)
+		PreviewPlacedGear(2850, 1569)
+		PreviewPlacedGear(2782, 1570)
+		PreviewPlacedGear(2708, 1577)
+		PreviewPlacedGear(2648, 1579)
+		PreviewPlacedGear(2585, 1576)
+		PreviewPlacedGear(2525, 1581)
+		PreviewPlacedGear(2490, 1338)
+		PreviewPlacedGear(2435, 1306)
+		PreviewPlacedGear(2386, 1283)
+		PreviewPlacedGear(2344, 1242)
+		PreviewPlacedGear(3126, 942)
+		PreviewPlacedGear(3070, 919)
+		PreviewPlacedGear(3005, 897)
+		PreviewPlacedGear(2962, 865)
+		PreviewPlacedGear(2907, 838)
+		PreviewPlacedGear(2858, 803)
+		PreviewPlacedGear(2807, 769)
+		PreviewPlacedGear(2764, 741)
+		PreviewPlacedGear(2714, 703)
+		PreviewPlacedGear(2665, 671)
+		PreviewPlacedGear(2613, 629)
+		PreviewPlacedGear(2557, 591)
+		PreviewPlacedGear(2513, 545)
+		PreviewPlacedGear(2450, 537)
+		PreviewPlacedGear(2390, 569)
+		PreviewPlacedGear(2341, 603)
+		PreviewPlacedGear(2299, 649)
+		PreviewPlacedGear(2255, 684)
+		PreviewPlacedGear(2218, 714)
+		PreviewPlacedGear(2173, 756)
+		PreviewPlacedGear(2125, 801)
+		PreviewPlacedGear(2084, 864)
+		PreviewPlacedGear(2113, 933)
+		PreviewPlacedGear(2154, 974)
+		PreviewPlacedGear(2191, 1016)
+		PreviewPlacedGear(2223, 1061)
+		PreviewPlacedGear(2257, 1113)
+		PreviewPlacedGear(2283, 1153)
+		PreviewPlacedGear(2316, 1202)
+		PreviewPlacedGear(2479, 1553)
+		PreviewPlacedGear(2422, 1513)
+		PreviewPlacedGear(2363, 1477)
+		PreviewPlacedGear(2302, 1446)
+		PreviewPlacedGear(2243, 1388)
+		PreviewPlacedGear(2188, 1335)
+		PreviewPlacedGear(2136, 1273)
+		PreviewPlacedGear(2086, 1204)
+		PreviewPlacedGear(2033, 1132)
+		PreviewPlacedGear(1992, 1085)
+		PreviewPlacedGear(1967, 1022)
+		PreviewPlacedGear(2943, 560)
+		PreviewPlacedGear(2890, 511)
+		PreviewPlacedGear(2834, 477)
+		PreviewPlacedGear(2774, 451)
+		PreviewPlacedGear(2710, 428)
+		PreviewPlacedGear(2652, 410)
+		PreviewPlacedGear(2578, 375)
+		PreviewPlacedGear(2482, 342)
+		PreviewPlacedGear(2380, 335)
+		PreviewPlacedGear(2302, 359)
+		PreviewPlacedGear(2256, 409)
+		PreviewPlacedGear(2183, 469)
+		PreviewPlacedGear(2111, 513)
+		PreviewPlacedGear(2049, 558)
+		PreviewPlacedGear(1986, 586)
+		PreviewPlacedGear(1742, 412)
+		PreviewPlacedGear(1684, 376)
+		PreviewPlacedGear(1627, 344)
+		PreviewPlacedGear(1566, 325)
+		PreviewPlacedGear(1505, 298)
+		PreviewPlacedGear(1727, 695)
+		PreviewPlacedGear(1917, 1067)
+		PreviewPlacedGear(1874, 1122)
+		PreviewPlacedGear(1923, 557)
+		PreviewPlacedGear(1863, 501)
+		PreviewPlacedGear(1796, 447)
+		PreviewPlacedGear(1829, 1158)
+		PreviewPlacedGear(1778, 1201)
+		PreviewPlacedGear(1732, 1244)
+		PreviewPlacedGear(1700, 1290)
+		PreviewPlacedGear(1652, 1333)
+		PreviewPlacedGear(1599, 1380)
+		PreviewPlacedGear(1550, 1425)
+		PreviewPlacedGear(1493, 1483)
+		PreviewPlacedGear(1443, 1519)
+		PreviewPlacedGear(1381, 1557)
+		PreviewPlacedGear(1304, 1590)
+		PreviewPlacedGear(1237, 1613)
+		PreviewPlacedGear(1176, 1621)
+		PreviewPlacedGear(1104, 1626)
+		PreviewPlacedGear(1032, 1630)
+		PreviewPlacedGear(964, 1628)
+		PreviewPlacedGear(886, 1615)
+		PreviewPlacedGear(813, 1584)
+		PreviewPlacedGear(750, 1524)
+		PreviewPlacedGear(697, 1473)
+		PreviewPlacedGear(645, 1410)
+		PreviewPlacedGear(602, 1351)
+		PreviewPlacedGear(557, 1284)
+		PreviewPlacedGear(506, 1230)
+		PreviewPlacedGear(467, 1144)
+		PreviewPlacedGear(449, 1066)
+		PreviewPlacedGear(421, 980)
+		PreviewPlacedGear(425, 876)
+		PreviewPlacedGear(422, 789)
+		PreviewPlacedGear(434, 699)
+		PreviewPlacedGear(439, 625)
+		PreviewPlacedGear(481, 551)
+		PreviewPlacedGear(537, 494)
+		PreviewPlacedGear(586, 444)
+		PreviewPlacedGear(633, 393)
+		PreviewPlacedGear(674, 360)
+		PreviewPlacedGear(745, 332)
+		PreviewPlacedGear(1786, 816)
+		PreviewPlacedGear(1768, 744)
+		PreviewPlacedGear(1765, 875)
+		PreviewPlacedGear(1711, 936)
+		PreviewPlacedGear(1629, 1016)
+		PreviewPlacedGear(1579, 1072)
+		PreviewPlacedGear(1520, 1123)
+		PreviewPlacedGear(1462, 1185)
+		PreviewPlacedGear(1415, 1238)
+		PreviewPlacedGear(1361, 1288)
+		PreviewPlacedGear(1298, 1318)
+		PreviewPlacedGear(1230, 1345)
+		PreviewPlacedGear(1161, 1357)
+		PreviewPlacedGear(1097, 1367)
+		PreviewPlacedGear(1033, 1373)
+		PreviewPlacedGear(971, 1333)
+		PreviewPlacedGear(900, 1291)
+		PreviewPlacedGear(840, 1225)
+		PreviewPlacedGear(795, 1156)
+		PreviewPlacedGear(744, 1076)
+		PreviewPlacedGear(706, 995)
+		PreviewPlacedGear(674, 927)
+		PreviewPlacedGear(687, 859)
+		PreviewPlacedGear(719, 781)
+		PreviewPlacedGear(742, 720)
+		PreviewPlacedGear(801, 297)
+		PreviewPlacedGear(880, 280)
+		PreviewPlacedGear(954, 275)
+		PreviewPlacedGear(1020, 268)
+		PreviewPlacedGear(1093, 265)
+		PreviewPlacedGear(1174, 258)
+		PreviewPlacedGear(1270, 257)
+		PreviewPlacedGear(1338, 262)
+		PreviewPlacedGear(1433, 260)
+		PreviewPlacedGear(779, 657)
+		PreviewPlacedGear(824, 624)
+		PreviewPlacedGear(879, 592)
+		PreviewPlacedGear(928, 564)
+		PreviewPlacedGear(995, 544)
+		PreviewPlacedGear(1055, 541)
+		PreviewPlacedGear(1121, 540)
+		PreviewPlacedGear(1184, 534)
+		PreviewPlacedGear(1252, 536)
+		PreviewPlacedGear(1317, 542)
+		PreviewPlacedGear(1380, 553)
+		PreviewPlacedGear(1448, 567)
+		PreviewPlacedGear(1521, 582)
+		PreviewPlacedGear(1580, 600)
+		PreviewPlacedGear(1633, 626)
+		PreviewPlacedGear(1683, 651)
+	elseif mapID == 4 then
+		PreviewGirder(194, 388, 7)
+		PreviewGirder(338, 334, 4)
+		PreviewGirder(484, 390, 5)
+		PreviewGirder(139, 543, 6)
+		PreviewGirder(544, 540, 6)
+		PreviewGirder(201, 687, 5)
+		PreviewGirder(485, 684, 7)
+		PreviewGirder(259, 839, 6)
+		PreviewGirder(426, 837, 6)
+		PreviewGirder(259, 999, 6)
+		PreviewGirder(426, 998, 6)
+		PreviewGirder(259, 1159, 6)
+		PreviewGirder(426, 1158, 6)
+		PreviewGirder(259, 1318, 6)
+		PreviewGirder(426, 1318, 6)
+		PreviewGirder(426, 1478, 6)
+		PreviewGirder(259, 1478, 6)
+		PreviewGirder(515, 1477, 4)
+		PreviewGirder(659, 1537, 5)
+		PreviewGirder(774, 1652, 5)
+		PreviewGirder(836, 1799, 6)
+		PreviewGirder(907, 1890, 4)
+		PreviewGirder(1067, 1890, 4)
+		PreviewGirder(1212, 1823, 7)
+		PreviewGirder(1359, 1764, 4)
+		PreviewGirder(1504, 1822, 5)
+		PreviewGirder(1647, 1886, 4)
+		PreviewGirder(1807, 1886, 4)
+		PreviewGirder(1362, 1869, 4)
+		PreviewGirder(1968, 1885, 4)
+		PreviewGirder(2111, 1823, 7)
+		PreviewGirder(2257, 1769, 4)
+		PreviewGirder(2403, 1825, 5)
+		PreviewGirder(2549, 1887, 4)
+		PreviewGirder(2709, 1887, 4)
+		PreviewGirder(2868, 1887, 4)
+		PreviewGirder(2958, 1854, 2)
+		PreviewGirder(2928, 1773, 1)
+		PreviewGirder(2898, 1692, 2)
+		PreviewGirder(2928, 1613, 3)
+		PreviewGirder(3045, 1584, 4)
+		PreviewGirder(3162, 1619, 1)
+		PreviewGirder(3192, 1697, 2)
+		PreviewGirder(3160, 1777, 3)
+		PreviewGirder(3128, 1857, 2)
+		PreviewGirder(3218, 1886, 4)
+		PreviewGirder(3379, 1885, 4)
+		PreviewGirder(3524, 1818, 7)
+		PreviewGirder(3641, 1702, 7)
+		PreviewGirder(3756, 1585, 7)
+		PreviewGirder(4021, 1316, 7)
+		PreviewGirder(3842, 1503, 3)
+		PreviewGirder(3899, 1409, 7)
+		PreviewGirder(3694, 1974, 7)
+		PreviewGirder(3809, 1858, 7)
+		PreviewGirder(3925, 1741, 7)
+		PreviewGirder(4022, 1613, 7)
+		PreviewGirder(2256, 1877, 4)
+		PreviewGirder(3046, 1728, 0)
+		PreviewGirder(501, 1777, 6)
+		PreviewGirder(572, 1868, 4)
+		PreviewGirder(3372, 771, 7)
+		PreviewGirder(3517, 715, 4)
+		PreviewGirder(3663, 774, 5)
+		PreviewGirder(3313, 923, 6)
+		PreviewGirder(3373, 1066, 5)
+		PreviewGirder(3518, 1128, 4)
+		PreviewGirder(3662, 1065, 7)
+		PreviewGirder(3723, 924, 6)
+		PreviewGirder(2474, 1373, 6)
+		PreviewGirder(2474, 1252, 2)
+		PreviewGirder(2507, 1200, 0)
+		PreviewGirder(2626, 1200, 4)
+		PreviewGirder(2716, 1270, 6)
+		PreviewGirder(2505, 1464, 0)
+		PreviewGirder(2625, 1464, 4)
+		PreviewGirder(2716, 1391, 6)
+		PreviewGirder(1544, 300, 7)
+		PreviewGirder(1691, 245, 4)
+		PreviewGirder(1838, 304, 5)
+		PreviewGirder(1487, 453, 6)
+		PreviewGirder(1548, 597, 5)
+		PreviewGirder(1692, 657, 4)
+		PreviewGirder(1835, 593, 7)
+		PreviewGirder(1900, 451, 6)
+		PreviewGirder(3527, 93, 6)
+		PreviewGirder(3586, 238, 5)
+		PreviewGirder(3703, 354, 5)
+		PreviewGirder(3820, 471, 5)
+		PreviewGirder(3938, 588, 5)
+		PreviewGirder(4044, 651, 0)
+		PreviewGirder(3618, 22, 4)
+		PreviewGirder(3779, 22, 4)
+		PreviewGirder(3939, 22, 4)
+		PreviewGirder(4047, 22, 0)
+		PreviewGirder(936, 1198, 7)
+		PreviewGirder(1080, 1143, 4)
+		PreviewGirder(1225, 1202, 5)
+		PreviewGirder(1278, 1352, 6)
+		PreviewGirder(881, 1351, 6)
+		PreviewGirder(943, 1496, 5)
+		PreviewGirder(1219, 1495, 7)
+		PreviewGirder(1160, 1645, 6)
+		PreviewGirder(998, 1649, 6)
+		PreviewGirder(1160, 1766, 2)
+		PreviewGirder(998, 1770, 2)
+		PreviewGirder(1077, 1824, 4)
+		PreviewGirder(1824, 1138, 6)
+		PreviewGirder(834, 606, 7)
+		PreviewGirder(950, 593, 5)
+		PreviewGirder(1035, 683, 1)
+		PreviewGirder(748, 696, 3)
+		PreviewGirder(764, 780, 5)
+		PreviewGirder(850, 870, 1)
+		PreviewGirder(937, 850, 7)
+		PreviewGirder(1018, 768, 7)
+		PreviewGirder(2589, 444, 7)
+		PreviewGirder(2704, 329, 7)
+		PreviewGirder(2604, 560, 5)
+		PreviewGirder(2719, 675, 5)
+		PreviewGirder(2832, 689, 7)
+		PreviewGirder(2947, 573, 7)
+		PreviewGirder(2820, 317, 5)
+		PreviewGirder(2936, 433, 5)
+		PreviewGirder(2987, 489, 1)
+		PreviewGirder(338, 559, 4)
+		PreviewWayPoint(337, 533)
+		PreviewWayPoint(1069, 1367)
+		PreviewWayPoint(884, 729)
+		PreviewWayPoint(1682, 464)
+		PreviewWayPoint(2773, 505)
+		PreviewWayPoint(3512, 929)
+		PreviewWayPoint(4002, 106)
+		PreviewWayPoint(3964, 1520)
+		PreviewWayPoint(2592, 1334)
+		PreviewPlacedGear(548, 1844)
+		PreviewPlacedGear(595, 1844)
+		PreviewPlacedGear(642, 1844)
+		PreviewPlacedGear(1314, 1845)
+		PreviewPlacedGear(1362, 1845)
+		PreviewPlacedGear(1419, 1845)
+		PreviewPlacedGear(2208, 1853)
+		PreviewPlacedGear(2264, 1853)
+		PreviewPlacedGear(2318, 1853)
+		PreviewPlacedGear(3027, 1704)
+		PreviewPlacedGear(3072, 1704)
+		PreviewPlacedGear(1822, 1042)
+		PreviewPlacedGear(313, 535)
+		PreviewPlacedGear(365, 535)
+		PreviewPlacedGear(313, 504)
+		PreviewPlacedGear(339, 478)
+		PreviewPlacedGear(365, 504)
+		PreviewPlacedGear(3517, 995)
+		PreviewPlacedGear(3448, 858)
+		PreviewPlacedGear(3582, 848)
+		PreviewPlacedGear(3758, 158)
+		PreviewPlacedGear(3964, 297)
+		PreviewPlacedGear(2772, 506)
+		PreviewPlacedGear(2602, 1339)
+		PreviewPlacedGear(1638, 370)
+		PreviewPlacedGear(1743, 522)
+		PreviewPlacedGear(894, 726)
+		PreviewPlacedGear(1080, 1690)
+	elseif mapID == 5 then
+		PreviewRubber(3776, 447, 3)
+		PreviewRubber(3629, 503, 0)
+		PreviewRubber(3486, 446, 1)
+		PreviewRubber(3234, 889, 1)
+		PreviewRubber(3084, 838, 0)
+		PreviewRubber(2943, 909, 3)
+		PreviewRubber(2665, 507, 3)
+		PreviewRubber(2520, 557, 0)
+		PreviewRubber(2377, 496, 1)
+		PreviewRubber(2507, 1263, 1)
+		PreviewRubber(2355, 1212, 0)
+		PreviewRubber(2206, 1269, 3)
+		PreviewRubber(1902, 1270, 1)
+		PreviewRubber(1749, 1221, 0)
+		PreviewRubber(1607, 1288, 3)
+		PreviewRubber(1781, 1659, 1)
+		PreviewRubber(1927, 1706, 0)
+		PreviewRubber(2089, 1702, 0)
+		PreviewRubber(2234, 1649, 3)
+		PreviewRubber(3413, 1631, 1)
+		PreviewRubber(3558, 1676, 0)
+		PreviewRubber(3718, 1673, 0)
+		PreviewRubber(3866, 1616, 3)
+		PreviewRubber(807, 803, 2)
+		PreviewRubber(806, 1131, 2)
+		PreviewRubber(732, 1273, 3)
+		PreviewRubber(583, 1324, 0)
+		PreviewRubber(420, 1324, 0)
+		PreviewRubber(272, 1274, 1)
+		PreviewRubber(222, 1121, 2)
+		PreviewRubber(221, 956, 2)
+		PreviewRubber(221, 792, 2)
+		PreviewRubber(271, 644, 3)
+		PreviewRubber(420, 589, 0)
+		PreviewRubber(584, 588, 0)
+		PreviewRubber(730, 658, 1)
+		PreviewRubber(612, 1846, 1)
+		PreviewRubber(758, 1896, 0)
+		PreviewRubber(903, 1835, 3)
+		PreviewRubber(1051, 1781, 0)
+		PreviewRubber(1210, 1780, 0)
+		PreviewRubber(1356, 1845, 1)
+		PreviewRubber(1501, 1891, 0)
+		PreviewRubber(1438, 431, 3)
+		PreviewRubber(1589, 378, 0)
+		PreviewRubber(1736, 448, 1)
+		PreviewWayPoint(3761, 428)
+		PreviewWayPoint(750, 1801)
+		PreviewWayPoint(511, 1232)
+		PreviewWayPoint(1579, 297)
+		PreviewWayPoint(2007, 1618)
+		PreviewWayPoint(3642, 1601)
+		PreviewPlacedGear(397, 1295)
+		PreviewPlacedGear(461, 1295)
+		PreviewPlacedGear(555, 1295)
+		PreviewPlacedGear(621, 1295)
+		PreviewPlacedGear(759, 1867)
+		PreviewPlacedGear(1504, 1862)
+		PreviewPlacedGear(2521, 528)
+		PreviewPlacedGear(3639, 474)
+		PreviewPlacedGear(3078, 809)
+		PreviewPlacedGear(1752, 1192)
+		PreviewPlacedGear(2349, 1183)
+		PreviewPlacedGear(1582, 349)
+		PreviewPlacedGear(3560, 1647)
+		PreviewPlacedGear(3711, 1644)
+		PreviewPlacedGear(433, 560)
+		PreviewPlacedGear(568, 559)
+		PreviewPlacedGear(1935, 1677)
+		PreviewPlacedGear(2084, 1673)
+		PreviewPlacedGear(1018, 1752)
+		PreviewPlacedGear(1086, 1752)
+		PreviewPlacedGear(1176, 1751)
+		PreviewPlacedGear(1238, 1751)
+		PreviewPlacedGear(2009, 1668)
+		PreviewPlacedGear(3641, 1639)
+		PreviewPlacedGear(3580, 469)
+		PreviewPlacedGear(3700, 467)
+		PreviewPlacedGear(2458, 523)
+		PreviewPlacedGear(2595, 521)
+	elseif mapID == 6 then
+		PreviewGirder(419, 298, 4)
+		PreviewGirder(348, 387, 6)
+		PreviewGirder(521, 359, 0)
+		PreviewGirder(459, 385, 3)
+		PreviewGirder(570, 387, 6)
+		PreviewGirder(601, 298, 0)
+		PreviewGirder(348, 547, 6)
+		PreviewGirder(570, 547, 6)
+		PreviewGirder(348, 707, 6)
+		PreviewGirder(570, 707, 6)
+		PreviewGirder(397, 466, 0)
+		PreviewGirder(458, 491, 1)
+		PreviewGirder(521, 592, 0)
+		PreviewGirder(458, 620, 3)
+		PreviewGirder(397, 713, 0)
+		PreviewGirder(459, 740, 1)
+		PreviewGirder(348, 867, 6)
+		PreviewGirder(570, 866, 6)
+		PreviewGirder(641, 1038, 4)
+		PreviewGirder(800, 1038, 4)
+		PreviewGirder(959, 1038, 4)
+		PreviewGirder(482, 1038, 4)
+		PreviewGirder(323, 1038, 4)
+		PreviewGirder(163, 1038, 4)
+		PreviewGirder(48, 1038, 0)
+		PreviewGirder(813, 1126, 6)
+		PreviewGirder(989, 1127, 6)
+		PreviewGirder(989, 1288, 6)
+		PreviewGirder(989, 1449, 6)
+		PreviewGirder(813, 1287, 6)
+		PreviewGirder(813, 1448, 6)
+		PreviewGirder(900, 1214, 4)
+		PreviewGirder(989, 1570, 2)
+		PreviewGirder(813, 1569, 2)
+		PreviewGirder(813, 1690, 6)
+		PreviewGirder(521, 844, 0)
+		PreviewGirder(457, 870, 3)
+		PreviewGirder(392, 941, 1)
+		PreviewGirder(813, 1851, 6)
+		PreviewGirder(813, 1972, 2)
+		PreviewGirder(989, 1690, 6)
+		PreviewGirder(1044, 1817, 5)
+		PreviewGirder(901, 1979, 4)
+		PreviewGirder(1002, 2005, 1)
+		PreviewGirder(1176, 1873, 4)
+		PreviewGirder(1333, 1873, 4)
+		PreviewGirder(1491, 1873, 4)
+		PreviewGirder(1625, 1815, 7)
+		PreviewGirder(1680, 1688, 6)
+		PreviewGirder(1669, 1980, 7)
+		PreviewGirder(1762, 1929, 0)
+		PreviewGirder(1811, 1853, 6)
+		PreviewGirder(1811, 1692, 6)
+		PreviewGirder(1708, 1735, 3)
+		PreviewGirder(1776, 1734, 1)
+		PreviewGirder(1680, 1527, 6)
+		PreviewGirder(1811, 1532, 6)
+		PreviewGirder(1608, 1437, 4)
+		PreviewGirder(1883, 1443, 4)
+		PreviewGirder(1955, 1354, 6)
+		PreviewGirder(1883, 1264, 4)
+		PreviewGirder(1723, 1264, 4)
+		PreviewGirder(1562, 1264, 4)
+		PreviewGirder(1519, 1354, 6)
+		PreviewRubber(210, 958, 1)
+		PreviewRubber(98, 844, 1)
+		PreviewWayPoint(438, 278)
+		PreviewWayPoint(1870, 1354)
+		PreviewWayPoint(892, 1119)
+		PreviewPlacedGear(1740, 1905)
+		PreviewPlacedGear(1780, 1905)
+		PreviewPlacedGear(1782, 1874)
+		PreviewPlacedGear(1782, 1843)
+		PreviewPlacedGear(368, 274)
+		PreviewPlacedGear(526, 568)
+		PreviewPlacedGear(474, 1014)
+		PreviewPlacedGear(906, 1955)
+		PreviewPlacedGear(837, 1570)
+		PreviewPlacedGear(835, 1361)
+		PreviewPlacedGear(836, 1425)
+		PreviewPlacedGear(833, 1495)
+		PreviewPlacedGear(967, 1566)
+		PreviewPlacedGear(970, 1354)
+		PreviewPlacedGear(967, 1422)
+		PreviewPlacedGear(968, 1493)
+	elseif mapID == 7 then
+		PreviewGirder(3699, 436, 0)
+		PreviewGirder(934, 806, 6)
+		PreviewGirder(934, 969, 6)
+		PreviewGirder(1233, 1342, 5)
+		PreviewGirder(1377, 1403, 4)
+		PreviewGirder(1497, 1376, 3)
+		PreviewGirder(2816, 1284, 7)
+		PreviewGirder(2698, 1401, 7)
+		PreviewGirder(2640, 1552, 6)
+		PreviewGirder(2640, 1718, 6)
+		PreviewGirder(2641, 1881, 6)
+		PreviewGirder(2643, 2007, 2)
+		PreviewGirder(3823, 363, 0)
+		PreviewGirder(233, 596, 6)
+		PreviewGirder(288, 446, 7)
+		PreviewGirder(79, 642, 6)
+		PreviewGirder(80, 479, 6)
+		PreviewGirder(140, 335, 7)
+		PreviewGirder(281, 268, 4)
+		PreviewGirder(343, 334, 2)
+		PreviewGirder(57, 747, 3)
+		PreviewGirder(32, 852, 6)
+		PreviewGirder(33, 1015, 6)
+		PreviewGirder(33, 1179, 6)
+		PreviewGirder(34, 1342, 6)
+		PreviewGirder(1346, 1939, 6)
+		PreviewGirder(1347, 1774, 6)
+		PreviewGirder(1294, 1636, 5)
+		PreviewGirder(1180, 1522, 5)
+		PreviewGirder(1067, 1410, 5)
+		PreviewGirder(931, 1357, 4)
+		PreviewGirder(772, 1358, 4)
+		PreviewGirder(96, 1303, 5)
+		PreviewGirder(236, 1362, 4)
+		PreviewGirder(396, 1363, 4)
+		PreviewGirder(520, 1364, 0)
+		PreviewGirder(696, 1450, 6)
+		PreviewGirder(556, 1454, 6)
+		PreviewGirder(489, 1598, 7)
+		PreviewGirder(697, 1574, 2)
+		PreviewGirder(639, 1681, 7)
+		PreviewGirder(520, 1798, 7)
+		PreviewGirder(369, 1715, 7)
+		PreviewGirder(243, 1716, 5)
+		PreviewGirder(128, 1735, 7)
+		PreviewGirder(133, 1870, 5)
+		PreviewGirder(251, 1987, 5)
+		PreviewGirder(402, 1915, 7)
+		PreviewGirder(276, 1938, 4)
+		PreviewGirder(95, 140, 4)
+		PreviewGirder(257, 140, 4)
+		PreviewGirder(419, 140, 4)
+		PreviewGirder(581, 140, 4)
+		PreviewGirder(742, 140, 4)
+		PreviewGirder(903, 140, 4)
+		PreviewGirder(1064, 141, 4)
+		PreviewGirder(1157, 90, 6)
+		PreviewRubber(3433, 237, 3)
+		PreviewRubber(3581, 185, 0)
+		PreviewRubber(3741, 182, 0)
+		PreviewRubber(3879, 257, 1)
+		PreviewRubber(3921, 411, 2)
+		PreviewRubber(3844, 555, 3)
+		PreviewRubber(3692, 615, 0)
+		PreviewRubber(3529, 618, 0)
+		PreviewRubber(3381, 555, 1)
+		PreviewRubber(3282, 289, 0)
+		PreviewRubber(3223, 514, 0)
+		PreviewRubber(3111, 289, 0)
+		PreviewRubber(3058, 516, 0)
+		PreviewRubber(2947, 287, 0)
+		PreviewRubber(2889, 515, 0)
+		PreviewRubber(2785, 288, 0)
+		PreviewRubber(2788, 578, 2)
+		PreviewRubber(2790, 741, 2)
+		PreviewRubber(2862, 884, 1)
+		PreviewRubber(2749, 1073, 1)
+		PreviewRubber(2865, 1186, 1)
+		PreviewRubber(2979, 990, 1)
+		PreviewRubber(3123, 1036, 0)
+		PreviewRubber(3188, 934, 2)
+		PreviewRubber(3010, 1234, 0)
+		PreviewRubber(3175, 1230, 0)
+		PreviewRubber(3339, 1226, 0)
+		PreviewRubber(3345, 949, 2)
+		PreviewRubber(3405, 804, 3)
+		PreviewRubber(3531, 702, 3)
+		PreviewRubber(3444, 1007, 0)
+		PreviewRubber(3499, 1221, 0)
+		PreviewRubber(3604, 1002, 0)
+		PreviewRubber(3755, 1038, 1)
+		PreviewRubber(3802, 1186, 2)
+		PreviewRubber(3741, 1342, 3)
+		PreviewRubber(3626, 1456, 3)
+		PreviewRubber(3510, 1314, 3)
+		PreviewRubber(3392, 1435, 3)
+		PreviewRubber(3506, 1577, 3)
+		PreviewRubber(2637, 348, 3)
+		PreviewRubber(2583, 496, 2)
+		PreviewRubber(2633, 952, 1)
+		PreviewRubber(2573, 803, 2)
+		PreviewRubber(2474, 556, 0)
+		PreviewRubber(2468, 742, 0)
+		PreviewRubber(2335, 476, 1)
+		PreviewRubber(2214, 358, 1)
+		PreviewRubber(2322, 812, 3)
+		PreviewRubber(2202, 936, 3)
+		PreviewRubber(2060, 305, 0)
+		PreviewRubber(1898, 304, 0)
+		PreviewRubber(1736, 304, 0)
+		PreviewRubber(2085, 1049, 3)
+		PreviewRubber(1966, 1161, 3)
+		PreviewRubber(1818, 1209, 0)
+		PreviewRubber(1657, 1212, 0)
+		PreviewRubber(1947, 685, 3)
+		PreviewRubber(1801, 735, 0)
+		PreviewRubber(1659, 677, 1)
+		PreviewRubber(1491, 902, 3)
+		PreviewRubber(1346, 955, 0)
+		PreviewRubber(1210, 881, 1)
+		PreviewRubber(1576, 305, 0)
+		PreviewRubber(1414, 304, 0)
+		PreviewRubber(1253, 302, 0)
+		PreviewRubber(1108, 374, 3)
+		PreviewRubber(991, 491, 3)
+		PreviewRubber(1557, 1273, 2)
+		PreviewRubber(938, 639, 2)
+		PreviewRubber(999, 1117, 1)
+		PreviewRubber(847, 1079, 0)
+		PreviewRubber(831, 702, 0)
+		PreviewRubber(667, 702, 0)
+		PreviewRubber(687, 1084, 0)
+		PreviewRubber(1115, 1230, 1)
+		PreviewRubber(566, 764, 2)
+		PreviewRubber(525, 1083, 0)
+		PreviewRubber(422, 1024, 2)
+		PreviewRubber(464, 703, 0)
+		PreviewRubber(302, 704, 0)
+		PreviewRubber(297, 795, 2)
+		PreviewRubber(316, 1089, 0)
+		PreviewRubber(1559, 1436, 2)
+		PreviewRubber(1560, 1598, 2)
+		PreviewRubber(1560, 1759, 2)
+		PreviewRubber(1561, 1920, 2)
+		PreviewRubber(1620, 2022, 0)
+		PreviewRubber(3388, 1688, 3)
+		PreviewRubber(3276, 1546, 3)
+		PreviewWayPoint(3820, 342)
+		PreviewWayPoint(3343, 1612)
+		PreviewWayPoint(272, 351)
+		PreviewWayPoint(159, 1774)
+		PreviewWayPoint(2248, 1573)
+		PreviewWayPoint(1379, 1192)
+		PreviewPlacedGear(1757, 706)
+		PreviewPlacedGear(1838, 706)
+		PreviewPlacedGear(1319, 926)
+		PreviewPlacedGear(1389, 926)
+		PreviewPlacedGear(3184, 839)
+		PreviewPlacedGear(3185, 808)
+		PreviewPlacedGear(3677, 412)
+		PreviewPlacedGear(3079, 1007)
+		PreviewPlacedGear(3138, 1007)
+		PreviewPlacedGear(420, 929)
+		PreviewPlacedGear(3195, 1621)
+		PreviewPlacedGear(3155, 1655)
+		PreviewPlacedGear(3112, 1691)
+		PreviewPlacedGear(3078, 1730)
+		PreviewPlacedGear(3044, 1764)
+		PreviewPlacedGear(3011, 1805)
+		PreviewPlacedGear(2998, 1843)
+		PreviewPlacedGear(2986, 1886)
+		PreviewPlacedGear(2978, 1937)
+		PreviewPlacedGear(733, 1753)
+		PreviewPlacedGear(3345, 1773)
+		PreviewPlacedGear(3332, 1806)
+		PreviewPlacedGear(3317, 1840)
+		PreviewPlacedGear(3302, 1873)
+		PreviewPlacedGear(3262, 1902)
+		PreviewPlacedGear(3237, 1937)
+		PreviewPlacedGear(3225, 1978)
+		PreviewPlacedGear(1272, 1839)
+		PreviewPlacedGear(863, 1776)
+		PreviewPlacedGear(712, 1902)
+		PreviewPlacedGear(2361, 1922)
+		PreviewPlacedGear(2360, 1877)
+		PreviewPlacedGear(2362, 1825)
+		PreviewPlacedGear(2364, 1772)
+		PreviewPlacedGear(2364, 1723)
+		PreviewPlacedGear(2362, 1670)
+		PreviewPlacedGear(2395, 1645)
+		PreviewPlacedGear(2426, 1600)
+		PreviewPlacedGear(2434, 1543)
+		PreviewPlacedGear(2435, 1480)
+		PreviewPlacedGear(2406, 1431)
+		PreviewPlacedGear(2362, 1392)
+		PreviewPlacedGear(2313, 1368)
+		PreviewPlacedGear(2249, 1359)
+		PreviewPlacedGear(2202, 1386)
+		PreviewPlacedGear(2151, 1434)
+		PreviewPlacedGear(1039, 1861)
+		PreviewPlacedGear(2154, 1946)
+		PreviewPlacedGear(2156, 1902)
+		PreviewPlacedGear(2155, 1840)
+		PreviewPlacedGear(2152, 1777)
+		PreviewPlacedGear(2161, 1724)
+		PreviewPlacedGear(2128, 1681)
+		PreviewPlacedGear(2094, 1442)
+		PreviewPlacedGear(2036, 1448)
+		PreviewPlacedGear(1976, 1450)
+		PreviewPlacedGear(1924, 1454)
+		PreviewPlacedGear(2082, 1685)
+		PreviewPlacedGear(2046, 1692)
+		PreviewPlacedGear(1999, 1696)
+		PreviewPlacedGear(1961, 1701)
+		PreviewPlacedGear(1939, 1737)
+		PreviewPlacedGear(1925, 1783)
+		PreviewPlacedGear(1916, 1821)
+		PreviewPlacedGear(1904, 1864)
+		PreviewPlacedGear(1888, 1913)
+		PreviewPlacedGear(1870, 1961)
+		PreviewPlacedGear(1100, 1660)
+		PreviewPlacedGear(1876, 1486)
+		PreviewPlacedGear(1826, 1533)
+		PreviewPlacedGear(1799, 1580)
+		PreviewPlacedGear(1784, 1637)
+		PreviewPlacedGear(1765, 1681)
+		PreviewPlacedGear(1755, 1718)
+		PreviewPlacedGear(1726, 1779)
+		PreviewPlacedGear(1718, 1836)
+		PreviewPlacedGear(1705, 1885)
+		PreviewPlacedGear(1696, 1934)
+		PreviewPlacedGear(1685, 1975)
+		PreviewPlacedGear(859, 1569)
+
+	else
+
+		PreviewGirder(430, 1871, 2)
+		PreviewGirder(1249, 1914, 4)
+		PreviewGirder(1394, 1849, 7)
+		PreviewGirder(1522, 1848, 5)
+		PreviewGirder(1578, 1959, 2)
+		PreviewGirder(1545, 2011, 0)
+		PreviewGirder(430, 1749, 6)
+		PreviewGirder(430, 1589, 6)
+		PreviewGirder(358, 1499, 4)
+		PreviewGirder(198, 1499, 4)
+		PreviewGirder(72, 1571, 7)
+		PreviewGirder(339, 1618, 4)
+		PreviewGirder(520, 1499, 4)
+		PreviewGirder(680, 1499, 4)
+		PreviewGirder(839, 1499, 4)
+		PreviewGirder(1000, 1499, 4)
+		PreviewGirder(1404, 1730, 5)
+		PreviewGirder(1288, 1613, 5)
+		PreviewGirder(1200, 1529, 1)
+		PreviewGirder(1125, 1495, 0)
+		PreviewGirder(1667, 2011, 4)
+		PreviewGirder(1812, 1951, 7)
+		PreviewGirder(1964, 2024, 0)
+		PreviewGirder(1957, 1892, 4)
+		PreviewGirder(2103, 1949, 5)
+		PreviewGirder(2242, 2017, 4)
+		PreviewGirder(2404, 2017, 4)
+		PreviewGirder(2548, 1955, 7)
+		PreviewGirder(2635, 1871, 3)
+		PreviewGirder(2749, 1836, 4)
+		PreviewGirder(2751, 1999, 2)
+		PreviewGirder(2749, 1947, 0)
+		PreviewGirder(2865, 1870, 1)
+		PreviewGirder(2954, 1954, 5)
+		PreviewGirder(3061, 2017, 0)
+		PreviewGirder(3137, 1984, 3)
+		PreviewGirder(3169, 1864, 6)
+		PreviewGirder(3169, 1702, 6)
+		PreviewGirder(3170, 1540, 6)
+		PreviewGirder(3170, 1418, 2)
+		PreviewGirder(3138, 1339, 1)
+		PreviewGirder(3107, 1260, 2)
+		PreviewGirder(3153, 1194, 3)
+		PreviewGirder(3230, 1163, 0)
+		PreviewGirder(3305, 1201, 1)
+		PreviewGirder(3334, 1277, 2)
+		PreviewGirder(3227, 1540, 6)
+		PreviewGirder(3228, 1419, 2)
+		PreviewGirder(3334, 1358, 2)
+		PreviewGirder(3280, 1387, 0)
+		PreviewGirder(3227, 1702, 6)
+		PreviewGirder(3227, 1864, 6)
+		PreviewGirder(3253, 1981, 1)
+		PreviewGirder(3366, 2017, 4)
+		PreviewGirder(3528, 2018, 4)
+		PreviewGirder(3689, 2018, 4)
+		PreviewGirder(246, 1262, 4)
+		PreviewGirder(407, 1262, 4)
+		PreviewGirder(568, 1262, 4)
+		PreviewGirder(731, 1262, 4)
+		PreviewGirder(894, 1261, 4)
+		PreviewGirder(1056, 1261, 4)
+		PreviewGirder(1179, 1262, 0)
+		PreviewGirder(1288, 1314, 5)
+		PreviewGirder(1406, 1433, 5)
+		PreviewGirder(1525, 1549, 5)
+		PreviewGirder(1642, 1666, 5)
+		PreviewGirder(1749, 1728, 0)
+		PreviewGirder(1956, 1802, 6)
+		PreviewGirder(1956, 1640, 6)
+		PreviewGirder(1782, 1638, 6)
+		PreviewGirder(1835, 1487, 7)
+		PreviewGirder(1942, 1430, 0)
+		PreviewGirder(2051, 1486, 5)
+		PreviewGirder(2109, 1639, 6)
+		PreviewGirder(2177, 1778, 5)
+		PreviewGirder(2323, 1840, 4)
+		PreviewGirder(49, 1029, 0)
+		PreviewGirder(499, 1172, 6)
+		PreviewGirder(527, 1054, 3)
+		PreviewGirder(604, 1026, 0)
+		PreviewGirder(680, 1056, 1)
+		PreviewGirder(719, 1168, 6)
+		PreviewGirder(89, 728, 4)
+		PreviewGirder(251, 728, 4)
+		PreviewGirder(412, 728, 4)
+		PreviewGirder(572, 728, 4)
+		PreviewGirder(733, 728, 4)
+		PreviewGirder(894, 728, 4)
+		PreviewGirder(1016, 728, 0)
+		PreviewGirder(1067, 799, 6)
+		PreviewGirder(1139, 891, 4)
+		PreviewGirder(1067, 1171, 6)
+		PreviewGirder(1067, 1049, 2)
+		PreviewGirder(1136, 999, 4)
+		PreviewGirder(1005, 854, 2)
+		PreviewGirder(972, 803, 0)
+		PreviewGirder(920, 780, 2)
+		PreviewGirder(891, 1206, 2)
+		PreviewGirder(887, 1150, 0)
+		PreviewGirder(3018, 1311, 4)
+		PreviewGirder(2871, 1369, 7)
+		PreviewGirder(2809, 1523, 6)
+		PreviewGirder(2809, 1647, 2)
+		PreviewGirder(2469, 1777, 7)
+		PreviewGirder(2612, 1715, 4)
+		PreviewGirder(2809, 1702, 0)
+		PreviewGirder(2727, 1694, 0)
+		PreviewGirder(3334, 1481, 6)
+		PreviewGirder(3334, 1643, 6)
+		PreviewGirder(3334, 1804, 6)
+		PreviewGirder(3403, 1940, 5)
+		PreviewGirder(1120, 944, 2)
+		PreviewGirder(1163, 945, 2)
+		PreviewGirder(1141, 781, 5)
+		PreviewGirder(81, 629, 1)
+		PreviewGirder(102, 498, 3)
+		PreviewGirder(81, 373, 1)
+		PreviewGirder(179, 453, 6)
+		PreviewGirder(100, 260, 3)
+		PreviewGirder(179, 330, 2)
+		PreviewGirder(249, 544, 4)
+		PreviewGirder(410, 545, 4)
+		PreviewGirder(571, 543, 4)
+		PreviewGirder(731, 543, 4)
+		PreviewGirder(891, 544, 4)
+		PreviewGirder(1014, 544, 0)
+		PreviewGirder(1779, 1321, 6)
+		PreviewGirder(1779, 1159, 6)
+		PreviewGirder(1779, 997, 6)
+		PreviewGirder(1779, 836, 6)
+		PreviewGirder(1722, 684, 5)
+		PreviewGirder(1137, 545, 4)
+		PreviewGirder(1298, 545, 4)
+		PreviewGirder(1460, 546, 4)
+		PreviewGirder(1608, 600, 5)
+		PreviewGirder(1508, 1005, 4)
+		PreviewGirder(160, 246, 1)
+		PreviewGirder(1821, 1356, 3)
+		PreviewGirder(1938, 1323, 4)
+		PreviewGirder(2086, 1381, 5)
+		PreviewGirder(4004, 2018, 4)
+		PreviewGirder(3934, 1926, 6)
+		PreviewGirder(3965, 1835, 0)
+		PreviewGirder(4015, 1763, 6)
+		PreviewGirder(4015, 1603, 6)
+		PreviewGirder(4015, 1442, 6)
+		PreviewGirder(4015, 1280, 6)
+		PreviewGirder(4014, 1118, 6)
+		PreviewGirder(4014, 956, 6)
+		PreviewGirder(4014, 793, 6)
+		PreviewGirder(4014, 632, 6)
+		PreviewGirder(4014, 469, 6)
+		PreviewGirder(3981, 351, 1)
+		PreviewGirder(3985, 204, 3)
+		PreviewGirder(4045, 156, 0)
+		PreviewGirder(3667, 344, 0)
+		PreviewGirder(4016, 1925, 6)
+		PreviewGirder(3998, 1926, 6)
+		PreviewGirder(3980, 1925, 6)
+		PreviewGirder(3957, 1926, 6)
+		PreviewGirder(3843, 1832, 4)
+		PreviewGirder(3682, 1832, 4)
+		PreviewGirder(3561, 1833, 0)
+		PreviewGirder(3484, 1796, 1)
+		PreviewGirder(3455, 1675, 6)
+		PreviewGirder(3455, 1513, 6)
+		PreviewGirder(3455, 1351, 6)
+		PreviewGirder(1601, 476, 7)
+		PreviewGirder(1706, 421, 0)
+		PreviewGirder(1888, 366, 6)
+		PreviewGirder(3997, 1743, 6)
+		PreviewGirder(3979, 1742, 6)
+		PreviewGirder(3962, 1741, 6)
+		PreviewGirder(3943, 1741, 6)
+		PreviewGirder(2199, 393, 7)
+		PreviewGirder(2304, 337, 0)
+		PreviewGirder(2409, 392, 5)
+		PreviewGirder(2470, 502, 2)
+		PreviewGirder(2412, 606, 7)
+		PreviewGirder(2308, 673, 0)
+		PreviewGirder(2202, 612, 5)
+		PreviewGirder(2138, 507, 2)
+		PreviewGirder(2739, 378, 7)
+		PreviewGirder(2847, 322, 0)
+		PreviewGirder(2953, 378, 5)
+		PreviewGirder(2680, 489, 2)
+		PreviewGirder(3012, 489, 2)
+		PreviewGirder(2736, 594, 5)
+		PreviewGirder(2841, 657, 0)
+		PreviewGirder(2949, 594, 7)
+		PreviewGirder(2448, 837, 7)
+		PreviewGirder(2594, 779, 4)
+		PreviewGirder(2739, 836, 5)
+		PreviewGirder(2390, 950, 2)
+		PreviewGirder(2789, 950, 2)
+		PreviewGirder(2593, 904, 4)
+		PreviewGirder(2727, 1056, 7)
+		PreviewGirder(2452, 1058, 5)
+		PreviewGirder(2510, 1215, 6)
+		PreviewGirder(2663, 1208, 6)
+		PreviewGirder(2510, 1378, 6)
+		PreviewGirder(2664, 1369, 6)
+		PreviewGirder(300, 275, 0)
+		PreviewGirder(439, 274, 0)
+		PreviewGirder(628, 273, 4)
+		PreviewGirder(811, 271, 0)
+		PreviewGirder(737, 373, 4)
+		PreviewGirder(934, 440, 0)
+		PreviewGirder(1075, 439, 0)
+		PreviewGirder(1209, 438, 0)
+		PreviewGirder(1383, 439, 4)
+		PreviewGirder(3547, 344, 4)
+		PreviewGirder(3584, 254, 6)
+		PreviewGirder(3508, 132, 5)
+		PreviewGirder(3335, 1117, 6)
+		PreviewGirder(3335, 956, 6)
+		PreviewGirder(3335, 795, 6)
+		PreviewGirder(3335, 634, 6)
+		PreviewGirder(3335, 513, 2)
+		PreviewGirder(3401, 404, 7)
+		PreviewGirder(3455, 1190, 6)
+		PreviewGirder(3455, 1029, 6)
+		PreviewGirder(3455, 868, 6)
+		PreviewGirder(3455, 705, 6)
+		PreviewGirder(3455, 582, 2)
+		PreviewGirder(3485, 503, 3)
+		PreviewGirder(3601, 475, 4)
+		PreviewGirder(3719, 444, 3)
+		PreviewGirder(3094, 828, 5)
+		PreviewGirder(2064, 947, 7)
+		PreviewGirder(1826, 512, 7)
+		PreviewGirder(3420, 49, 1)
+		PreviewGirder(410, 682, 3)
+		PreviewGirder(528, 653, 4)
+		PreviewGirder(688, 653, 4)
+		PreviewGirder(805, 684, 1)
+		PreviewGirder(528, 672, 4)
+		PreviewGirder(688, 672, 4)
+		PreviewGirder(500, 696, 4)
+		PreviewGirder(701, 696, 4)
+		PreviewWayPoint(383, 1595)
+		PreviewWayPoint(605, 1157)
+		PreviewWayPoint(2296, 517)
+		PreviewWayPoint(2841, 497)
+		PreviewWayPoint(3209, 1286)
+		PreviewWayPoint(3708, 1945)
+		PreviewWayPoint(4075, 1887)
+		PreviewPlacedGear(889, 1126)
+		PreviewPlacedGear(1211, 975)
+		PreviewPlacedGear(3619, 451)
+		PreviewPlacedGear(304, 1594)
+		PreviewPlacedGear(1538, 1987)
+		PreviewPlacedGear(1958, 2000)
+		PreviewPlacedGear(2744, 1923)
+		PreviewPlacedGear(3283, 1363)
+		PreviewPlacedGear(2749, 1812)
+		PreviewPlacedGear(970, 779)
+		PreviewPlacedGear(3284, 1332)
+		PreviewPlacedGear(1082, 975)
+		PreviewPlacedGear(1547, 981)
+		PreviewPlacedGear(1707, 397)
+		PreviewPlacedGear(2309, 649)
+		PreviewPlacedGear(1116, 867)
+		PreviewPlacedGear(2559, 880)
+		PreviewPlacedGear(2630, 880)
+		PreviewPlacedGear(1951, 1406)
+		PreviewPlacedGear(3536, 320)
+		PreviewPlacedGear(3582, 1994)
+		PreviewPlacedGear(682, 349)
+		PreviewPlacedGear(2842, 633)
+		PreviewPlacedGear(506, 1034)
+		PreviewPlacedGear(556, 1002)
+		PreviewPlacedGear(615, 1002)
+		PreviewPlacedGear(676, 1010)
+		PreviewPlacedGear(716, 1050)
+		PreviewPlacedGear(67, 1005)
+
+
+	end
 
     FlushPoints()
 end
@@ -863,6 +1980,7 @@
 
 	---nice rope and airmines landflag testmap
 	------ GIRDER LIST ------
+
 	LoadSprite(194, 388, sprAmGirder, 7, 4294967295, nil, nil, nil, lfNormal)
 	LoadSprite(338, 334, sprAmGirder, 4, 4294967295, nil, nil, nil, lfNormal)
 	LoadSprite(484, 390, sprAmGirder, 5, 4294967295, nil, nil, nil, lfNormal)