BveTs Map 2.00: utf-8
#0.3キロ地点から網干手前まで

$Shikama + 340;	#多分ここに架線柱(航空写真ではわからない)
Track['ForHimeji'].Position(102.5, -1.491);
Track['ForUmeda'].Position(109.5, -1.491);
$TB_Track = 'ForHimeji'; $TB_distance = $Shikama + 340; include 'TrackEnd.txt';
$TB_Track = 'ForUmeda'; $TB_distance = $Shikama + 340; include 'TrackEnd.txt';
Repeater['EmbL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'GreenEmb');
Repeater['EmbR'].Begin('ForAboshi', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'GrassEmb');
Structure['poleCL'].Put0('ForAboshi', 0, 0);	#架線柱
Structure['Line23'].Put0('ForAboshi', 1, 22.99);

$Shikama + 363;
Structure['poleS6'].Put0('ForAboshi', 0, 0);
Structure['Line18'].Put0('ForAboshi', 1, 17.99);

$Shikama + 381;
Structure['poleS6'].Put0('ForAboshi', 0, 0);
Structure['Line43'].Put0('ForAboshi', 1, 42.99);

$Shikama + 424;	#緩和曲線開始
Gradient.BeginTransition();
$Height = $Height + 4.374;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 1286.1661260914225);
Structure['poleD5'].Put0('ForAboshi', 0, 0);
Structure['Line46'].Put0('ForAboshi', 1, 45.99);

$Shikama + 460;
Gradient.Begin(-1.0);	#-1‰(!?)
$Height = $Height + 0.46790830546547113;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 0);

$Shikama + 470;
Repeater['pole'].Begin0('ForAboshi', 0, 0, 44.2, 'poleD5');
Repeater['line'].Begin0('ForAboshi', 0, 0, 44.2, 'Line44');

$Shikama + 490;
Structure['EmbWall'].Put('ForAboshi', 3, 0, 0, 0, 180, 0, 1, 1.99);
Repeater['EmbL'].End();
Repeater['EmbR'].End();
Repeater['bridge'].Begin0('ForAboshi', 1, 4.99, 5.00, 'bridge_SY');
Repeater['BallastForAboshi'].Begin0('ForAboshi', 1, 4.99, 5.00, 'ballast2_5');

$Shikama + 505;
Repeater['bridge'].End();
Structure['EmbWall'].Put0('ForAboshi', 1, 1.99);
Repeater['EmbL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'GrassEmb');
Repeater['EmbR'].Begin('ForAboshi', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'GrassEmb');
Repeater['BallastForAboshi'].Begin0('ForAboshi', 1, 4.99, 5.00, 'ballast_5');

$Shikama + 645.6;
Repeater['pole'].End();
Repeater['line'].End();
Structure['poleD5'].Put0('ForAboshi', 0, 0);
Structure['Line50'].Put0('ForAboshi', 1, 50.19);

$Shikama + 695.8;
Structure['poleS6'].Put0('ForAboshi', 0, 0);
Structure['Line37'].Put0('ForAboshi', 1, 36.99);

$Shikama + 716;
Structure['EmbWall'].Put('ForAboshi', 3, 0, 0, 0, 180, 0, 1, 1.99);
Repeater['EmbL'].End();
Repeater['EmbR'].End();
Repeater['BallastForAboshi'].Begin0('ForAboshi', 1, 4.99, 5.00, 'tie_5');

$Shikama + 726;
Structure['EmbWall'].Put0('ForAboshi', 1, 1.99);
Repeater['EmbL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'GrassEmb');
Repeater['EmbR'].Begin('ForAboshi', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'GrassEmb');
Repeater['BallastForAboshi'].Begin0('ForAboshi', 1, 4.99, 5.00, 'ballast_5');

$Shikama + 729.5;	#勾配緩和曲線開始
Gradient.BeginTransition();
$Height = $Height - 0.2535;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, -65000.03249999186);

$Shikama + 733;
Structure['poleS6'].Put0('ForAboshi', 0, 0);
Structure['Line46'].Put0('ForAboshi', 1, 45.49);

$Shikama + 778.5;	#勾配終了
Gradient.End();
$Height = $Height -0.024499993876816006;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 0);
Repeater['pole'].Begin('ForAboshi', 0, 0, -1.5, 0, 0, 0, 0, 0, 45, 'poleCL4');
Repeater['line'].Begin0('ForAboshi', 1, 44.99, 45, 'Line45');

$Shikama + 830;
Repeater['EmbL'].End();
Repeater['EmbR'].End();
Repeater['BallastForAboshi'].Begin0('ForAboshi', 1, 4.99, 5.00, 'tie_5');

$Shikama + 835;
Repeater['EmbL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'GrassEmb');
Repeater['EmbR'].Begin('ForAboshi', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'GrassEmb');
Repeater['BallastForAboshi'].Begin0('ForAboshi', 1, 4.99, 5.00, 'ballast_5');

$Shikama + 852;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, -26600.3324979219);
Gradient.BeginTransition();

$Shikama + 890;
Repeater['Ground'].End();
Repeater['line'].End();

$Shikama + 895;
Repeater['EmbL'].End();
Repeater['EmbR'].End();
Repeater['WallL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'guarderL');

$Shikama + 913.5;
Structure['Line35'].Put0('ForAboshi', 1, 34.99);

$Shikama + 915;
$WaterHeight = $Height + 2.5 + 0.07460443522928363;
Track['Liver'].Position(0, $WaterHeight * (-1));
Repeater['Liver'].Begin0('Liver', 0, 24.99, 25.00, 'liver');

$Shikama + 945;
$WaterHeight = $WaterHeight + 0.08796921739112194;
Track['Liver'].Position(0, $WaterHeight * (-1));
Repeater['Liver'].End();
$Height = $Height + 0.08796921739112194 + 1;	#夢前川での高さのつじつま合わせのため1mさげる
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 0);
Repeater['Ground'].Begin0('Height', 0, 24.99, 25.00, 'grass1');
Structure['livWall'].Put0('Height', 0, 0);

$Shikama + 948;
Repeater['pole'].End();
Structure['poleCL4'].Put0('ForAboshi', 0, 0);
Structure['Line45'].Put0('ForAboshi', 1, 44.99);

$Shikama + 960;
Repeater['WallL'].End();
Repeater['EmbL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'GrassEmb');
Repeater['EmbR'].Begin('ForAboshi', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'GrassEmb');

$Shikama + 985;	#登り勾配
$Height = $Height + 0.3324979219012225;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 0);
Gradient.Begin(5);

$Shikama + 993;
Structure['poleS6'].Put('ForAboshi', -0.5, 0, 0, 0, 0, 0, 0, 0);
Structure['Line27'].Put0('ForAboshi', 1, 26.49);

$Shikama + 999.6;
Curve.BeginTransition();

$Shikama + 1000;
Gradient.BeginTransition();
$Height = $Height + 0.075;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 28000.349997812526);

$Shikama + 1019.5;
Structure['poleS9'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);
Structure['Line28'].Put0('ForAboshi', 1, 27.49);

$Shikama + 1047;
Structure['poleS9'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);
Structure['Line27'].Put0('ForAboshi', 1, 26.49);

$Shikama + 1073.5;
Structure['poleCL4'].Put0('ForAboshi', 0, 0);
Structure['Line27'].Put0('ForAboshi', 1, 26.99);

$Shikama + 1100.5;
Structure['poleCL4'].Put0('ForAboshi', 0, 0);
Structure['Line29'].Put0('ForAboshi', 1, 28.99);

$Shikama + 1129.5;
Structure['poleC5'].Put0('ForAboshi', 0, 0);
Structure['Line27'].Put0('ForAboshi', 1, 26.99);

$Shikama + 1096;
Curve.Begin(-550);

$Shikama + 1140;
Gradient.End();
$Height = $Height + 0.34999781252918183;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 0);

$Shikama + 1156.5;
Structure['poleSR'].Put0('ForAboshi', 0, 0);
Structure['Line28'].Put0('ForAboshi', 1, 27.49);

$Shikama + 1160;
Repeater['EmbL'].End();
Repeater['EmbR'].End();
Repeater['guarderL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'guarderH');
Repeater['guarderR'].Begin('ForShikama', 1, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'guarderM');
Repeater['guarderR2'].Begin('ForShikama', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'GuardBase');
Repeater['pier'].Begin0('ForAboshi', 1, 9.99, 10.00, 'pier51');

$Shikama + 1184;
Repeater['pole'].Begin0('ForAboshi', 0, 0, 30, 'poleSR');
Repeater['line'].Begin0('ForAboshi', 0, 29.99, 30, 'Line30');

$Shikama + 1344;	#架線柱から10m地点のはず
Curve.BeginTransition();

$Shikama + 1440;	#多分あってる
Curve.End();

$Shikama + 1450;
Beacon.Put(123, 0, 4);	#車上時素式タイマ(始)
Structure['Ats90'].Put('ForAboshi', -2, -0.5, 0, 0, 0, 0, 0, 0);
Repeater['line'].End();

$Shikama + 1454;
Structure['Line37'].Put0('ForAboshi', 1, 36.49);

$Shikama + 1462.5;
Beacon.Put(123, 0, 4);	#車上時素式タイマ(終)
Repeater['pole'].End();

$Shikama + 1490.5;
Structure['poleSR'].Put0('ForAboshi', 0, 0);
Structure['Line39'].Put0('ForAboshi', 1, 38.99);

$Shikama + 1529.5;
Structure['poleSR3'].Put0('ForAboshi', 0, 0);
Structure['Line52'].Put0('ForAboshi', 1, 51.49);

$Shikama + 1581;
Repeater['pole'].Begin0('ForAboshi', 0, 0, 51, 'poleSR4');
Repeater['line'].Begin0('ForAboshi', 1, 50.99, 51, 'Line51');

$Shikama + 1589;
Gradient.BeginTransition();
Gradient.Begin(7);
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 0);

$Shikama + 1683;
Repeater['line'].End();
Structure['Line37'].Put0('ForAboshi', 1, 36.99);

$Shikama + 1720;
Repeater['pole'].End();
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line46'].Put0('ForAboshi', 1, 45.49);

$Shikama + 1728;	#架線柱 + 8m
Gradient.BeginTransition();
Gradient.End();
$Height = $Height + 0.973;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 0);

$Shikama + 1765.5;
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line44'].Put0('ForAboshi', 1, 43.99);

$Shikama + 1809.5;
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line46'].Put0('ForAboshi', 1, 45.49);

$SigPos = 1851;
$Shikama + $SigPos - 150;
Beacon.Put(121, 1, 1);
Structure['A'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos - 30;	#S点だが実質T点みたいな動作するので。
Beacon.Put(121, 1, 2);
Structure['S'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos;
Section.Begin(0, 3, 7);
Structure['Sig_GYR'].Put('ForAboshi', 3, 0, 0.01, 0, 0, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', 3, 0, 0.01, 0, 0, 0, 0, 0);
Signal['GYR'].Put(0, 'ForAboshi', 3, 0);

$Shikama + 1855;
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line42'].Put0('ForAboshi', 1, 41.49);

$Shikama + 1896.5;
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line37'].Put0('ForAboshi', 1, 36.49);

$Shikama + 1933;
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line30'].Put0('ForAboshi', 1, 29.99);

$Shikama + 1953;
Curve.BeginTransition();

$Shikama + 1963;
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line38'].Put0('ForAboshi', 1, 37.99);

$Shikama + 2001;
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line38'].Put0('ForAboshi', 1, 37.99);

$Shikama + 2005;
Curve.Begin(-800);

$Shikama + 2039;
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line36'].Put0('ForAboshi', 1, 35.99);

$Shikama + 2075;
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line34'].Put0('ForAboshi', 1, 33.49);

$Shikama + 2108.5;
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line38'].Put0('ForAboshi', 1, 37.99);

$Shikama + 2146.5;
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line39'].Put0('ForAboshi', 1, 38.49);

$SigPos = 2151;
$Shikama + $SigPos - 150;
Beacon.Put(121, 1, 1);
Structure['A'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos - 30;	#S点だが実質T点みたいな動作するので。
Beacon.Put(121, 1, 2);
Structure['S'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos;
Section.Begin(0, 3, 8);
Structure['Sig_NYR'].Put('ForAboshi', 3, 0, 0.01, 0, 0, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', 3, 0, 0.01, 0, 0, 0, 0, 0);
Signal['GYR'].Put(0, 'ForAboshi', 3, 0);

$Shikama + 2185;
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line36'].Put0('ForAboshi', 1, 35.99);

$Shikama + 2221;
Structure['poleCL'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line39'].Put0('ForAboshi', 1, 38.99);

$Shikama + 2219.1;
Curve.BeginTransition();

$Shikama + 2250;
Structure['guarderH'].Put('ForAboshi', -2, 0, 2, 0, -90, 0, 3, 0);
Track['dammy1'].Position(-5, 0);
Repeater['guarderL'].Begin0('dammy1', 1, 4.99, 5.00, 'guarderH');
Structure['ballastBase_100'].Put('ForAboshi', -4, 0, 0, 0, 0, 0, 1, 0);
Repeater['guarderL2'].Begin('dammy1', 1, 0, 0, 0, 0, 0, 1, 4.99, 5.00, 'GuardBase');

$Shikama + 2257;
Curve.End();

$Shikama + 2260;
$TB_Track = 'ForShikama'; $TB_interval = 100; $TB_distance = $Shikama + 2260; include 'TrackBegin.txt';
#標識通りだと理論上分岐できないので勝手に決める
$dist_sign = 1;
$dist = $Shikama + 2260;
Structure['poleC10'].Put('ForAboshi', -1.75, 0, 0, 0, 0, 0, 0, 0);
Structure['poleC10'].Put('ForShikama', -1.75, 0, 41, 0, 0, 0, 0, 0);
Structure['Line41'].Put0('ForAboshi', 1, 40.99);
include 'NishiShikama_Curve.txt';

$Shikama + 2301;
Structure['Line31'].Put0('ForAboshi', 1, 30.99);

$Shikama + 2324;
Repeater['guarderR'].End();
Repeater['guarderR2'].End();
Repeater['guarderL'].End();
Repeater['guarderL2'].End();

$Shikama + 2325;	#西飾磨駅スタート
Track['ForShikama'].Position(3.5, 0);
Track['dammy3'].Position(9.5, 0);
Track['dammy4'].Position(-6, 0);
SpeedLimit.Begin(45);
Repeater['FormFA'].Begin0('ForAboshi', 1, 0, 4.00, 'FormEdge51');
Repeater['FormFS'].Begin('ForShikama', 0, 0, 5.00, 0, 180, 0, 1, 0, 4.00, 'FormEdge51');
Structure['formWall51'].Put0('ForAboshi', 1, 3.99);
Structure['formWall51'].Put('ForShikama', 0, 0, 4, 0, 180, 0, 1, 3.99);
Structure['platform51'].PutBetween('ForAboshi', 'dammy4');
Structure['platform51'].PutBetween('dammy3', 'ForShikama');
Structure['formSection51'].Put0('ForAboshi', 1, 0);
Structure['formSection51'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 1, 0);
Repeater['FootWallFA'].Begin0('ForAboshi', 1, 0, 5.00, 'FormWall51C');
Repeater['FootWallFS'].Begin('ForShikama', 0, 0, 5.1, 0, 180, 0, 1, 0, 5.00, 'FormWall51C');
Repeater['formFootFA'].Begin('ForAboshi', 0, 0, 5, 0, 0, 0, 1, 0, 25.00, 'FormFoot51');
Repeater['formFootFS'].Begin('ForShikama', 0, 0, 10.1, 0, 180, 0, 1, 0, 25.00, 'FormFoot51');

$Shikama + 2329;
Structure['formWall51'].Put0('ForAboshi', 1, 3.99);
Structure['formWall51'].Put('ForShikama', 0, 0, 4, 0, 180, 0, 1, 3.99);
Structure['platform51'].PutBetween('ForAboshi', 'dammy4');
Structure['platform51'].PutBetween('dammy3', 'ForShikama');

$Shikama + 2332;
Structure['poleC15'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);
Structure['Line46'].Put0('ForAboshi', 1, 45.99);

$Shikama + 2333;
Structure['formWall51'].Put0('ForAboshi', 1, 3.99);
Structure['formWall51'].Put('ForShikama', 0, 0, 4, 0, 180, 0, 1, 3.99);
Structure['platform51'].PutBetween('ForAboshi', 'dammy4');
Structure['platform51'].PutBetween('dammy3', 'ForShikama');

$Shikama + 2337;
Structure['formWall51'].Put0('ForAboshi', 1, 3.99);
Structure['formWall51'].Put('ForShikama', 0, 0, 4, 0, 180, 0, 1, 3.99);
Structure['platform51'].PutBetween('ForAboshi', 'dammy4');
Structure['platform51'].PutBetween('dammy3', 'ForShikama');

$Shikama + 2341;	#ホーム広くなる
Repeater['WallL'].Begin('ForAboshi', -2, 0, 0, 0, 0, 0, 1, 3.99, 4.00, 'formWall51');
Repeater['WallR'].Begin('ForShikama', 2, 0, 4.00, 0, 180, 0, 1, 3.99, 4.00, 'formWall51');
Repeater['platFormFA'].Begin('ForAboshi', 0, 0, 0, 0, 0, 0, 1, 3.99, 4.00, 'platform51');
Repeater['platFormFS'].Begin('ForShikama', 8, 0, 0, 0, 0, 0, 1, 3.99, 4.00, 'platform51');
Structure['formSection51'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 1, 0);
Structure['formSection51'].Put('ForShikama', 2, 0, 0, 0, 180, 0, 1, 0);

$Shikama + 2357;	#屋根(7m1セット?)
Repeater['WallL'].Begin0('ForAboshi', 1, 2.79, 2.80, 'FormWall51B');
Repeater['WallR'].Begin('ForShikama', 0, 0, 2.80, 0, 180, 0, 1, 2.79, 2.80, 'FormWall51B');
Repeater['PoleFA'].Begin0('ForAboshi', 1, 1.39, 1.40, 'FormPole51A',, 'FormPole51B',, 'FormPole51B',, 'FormPole51A',, 'FormPole51B',, 'FormPole51A',,, 'FormPole51B',,, 'FormPole51A',, 'FormPole51B',, 'FormPole51A');
Repeater['PoleFS'].Begin('ForShikama', 0, 0, 0, 0, 180, 0, 1, 1.39, 1.40, 'FormPole51A',, 'FormPole51B',, 'FormPole51B',, 'FormPole51A',, 'FormPole51B',, 'FormPole51A',,, 'FormPole51B',,, 'FormPole51A',, 'FormPole51B',, 'FormPole51A');
Repeater['RoofFA'].Begin0('ForAboshi', 1, 0.09, 0.10, 'FormRoof51');
Repeater['RoofFS'].Begin('ForShikama', 0, 0, 0.10, 0, 180, 0, 1, 0.09, 0.10, 'FormRoof51');
Structure['FormBeam51'].Put0('ForAboshi', 1, 0);
Structure['FormBeam51'].Put('ForShikama', 0, 0, 28.0, 0, 180, 0, 1, 0);

$Shikama + 2378;
Structure['poleC15'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);
Structure['Line44'].Put0('ForAboshi', 1, 43.99);

$Shikama + 2385;	#屋根終わり
Repeater['WallL'].Begin('ForAboshi', -2, 0, 0, 0, 0, 0, 1, 3.99, 4.00, 'formWall51');
Repeater['WallR'].Begin('ForShikama', 2, 0, 4.00, 0, 180, 0, 1, 3.99, 4.00, 'formWall51');
$Shikama + 2385.01;
Repeater['PoleFA'].End();
Repeater['PoleFS'].End();
Repeater['RoofFA'].End();
Repeater['RoofFS'].End();

$Shikama + 2398;
Station['SY51'].Put(0, -2, 2);
Structure['Stop3'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);

$Shikama + 2401;	#ホーム狭くなる
Repeater['WallL'].End();
Repeater['WallR'].End();
Repeater['platFormFA'].End();
Repeater['platFormFS'].End();
Structure['platform51'].PutBetween('ForAboshi', 'dammy4');
Structure['platform51'].PutBetween('dammy3', 'ForShikama');
Structure['formWall51'].Put0('ForAboshi', 1, 0);
Structure['formWall51'].Put('ForShikama', 0, 0, 4, 0, 180, 0, 1, 0);
Structure['formSection51'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 1, 0);
Structure['formSection51'].Put('ForShikama', 2, 0, 0, 0, 180, 0, 1, 0);

$Shikama + 2405;
Structure['platform51'].PutBetween('ForAboshi', 'dammy4');
Structure['platform51'].PutBetween('dammy3', 'ForShikama');
Structure['formWall51'].Put0('ForAboshi', 1, 0);
Structure['formWall51'].Put('ForShikama', 0, 0, 4, 0, 180, 0, 1, 0);
Structure['formSection51'].Put('ForAboshi', 0, 0, 4, 0, 0, 0, 1, 0);
Structure['formSection51'].Put('ForShikama', 0, 0, 4, 0, 180, 0, 1, 0);

$Shikama + 2409;	#西飾磨駅終了
Repeater['FormFA'].End();
Repeater['FormFS'].End();
Repeater['FootWallFA'].End();
Repeater['FootWallFS'].End();
Repeater['formFootFA'].End();
Repeater['formFootFS'].End();
Track['dammy3'].Position(9.5, 0);
Track['dammy4'].Position(-6, 0);

$Shikama + 2406;
$dist_sign = -1;
$dist = $Shikama + 2406;
include 'NishiShikama_Curve.txt';
Structure['Sig_GNR'].Put('ForAboshi', -2.5, 0, 7.01, 0, 0, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', -2.5, 0, 7.01, 0, 0, 0, 0, 0);
Signal['GYR'].Put(1, 'ForAboshi', -2.5, 0, 7, 0, 0, 0, 0, 0);

$SigPos = 2413;
#標識が見当たらなかったのでA点とT点を撤去
#$Shikama + $SigPos - 150;
#Beacon.Put(121, 1, 1);

#$Shikama + $SigPos - 30;	#S点だが実質T点みたいな動作するので。
#Beacon.Put(121, 1, 2);

$Shikama + $SigPos;
Section.Begin(0, 0, 7);
Beacon.Put(122, 0, 0);

$Shikama + 2422;
Structure['Line31'].Put0('ForAboshi', 1, 31.49);

$Shikama + 2452.5;
Structure['Line50'].Put0('ForAboshi', 1, 49.99);

$Shikama + 2469;	#分岐合流
Repeater['BallastFS'].End();
Repeater['RailR_FS'].End();
Repeater['RailL_FS'].End();
SpeedLimit.Begin(80);
$TB_Track = 'ForShikama'; $TB_interval = 5; $TB_distance = $Shikama + 2459; include 'TrackBegin.txt';
$TB_Track = 'ForShikama'; $TB_distance = $Shikama + 2469; include 'TrackEnd.txt';
Structure['poleC10'].Put('ForShikama', -1.75, 0, -47, 0, 0, 0, 0, 0);
Structure['poleC10'].Put('ForShikama', -1.75, 0, -16.5, 0, 0, 0, 0, 0);

$Shikama + 2470;
Track['dammy1'].Position(-5,0);
Repeater['guarderL'].End();
Repeater['guarderL2'].End();
Structure['guarderH'].Put('ForAboshi', -7.1, 0, -2, 0, 90, 0, 3, 0);
Structure['ballastBase_100'].Put('ForAboshi', -4, 0, -101.00, 0, 0, 0, 1, 0);
Repeater['guarderL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'guarderH');

distance - 60;	#カーブがあり、ずれる懸念があるため
Repeater['guarderL'].Begin0('dammy1', 1, 4.99, 5.00, 'guarderH');
Repeater['guarderL2'].Begin('dammy1', 1, 0, 0, 0, 0, 0, 1, 4.99, 5.00, 'GuardBase');
Repeater['guarderR'].Begin('ForShikama', 1, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'guarderM');
Repeater['guarderR2'].Begin('ForShikama', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'GuardBase');

$Shikama + 2478;
Curve.BeginTransition();

$Shikama + 2503;
Curve.Begin(1800);

$Shikama + 2502;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line42'].Put0('ForAboshi', 1, 41.99);

$Shikama + 2538;
Curve.BeginTransition();

$Shikama + 2544;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line39'].Put0('ForAboshi', 1, 38.99);

$Shikama + 2558;
Curve.End();

$Shikama + 2582;
Curve.BeginTransition();

$Shikama + 2583;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line49'].Put0('ForAboshi', 1, 48.49);

$Shikama + 2602;
Curve.Begin(-1800);

$Shikama + 2631.5;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line50'].Put0('ForAboshi', 1, 49.99);

$Shikama + 2637;
Curve.BeginTransition();

$Shikama + 2657;
Curve.End();

#$Shikama + 2667;
#Gradient.BeginTransition();
#Gradient.Begin(0.5);	#0.3か0.5
#Gradient.BeginTransition();
#Gradient.End();

$Shikama + 2681.5;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line45'].Put0('ForAboshi', 1, 44.99);

$Shikama + 2726.5;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line54'].Put0('ForAboshi', 1, 53.49);

$Shikama + 2780;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line39'].Put0('ForAboshi', 1, 38.99);

$Shikama + 2819;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line46'].Put0('ForAboshi', 1, 45.49);

$Shikama + 2864.5;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line45'].Put0('ForAboshi', 1, 44.49);

$Shikama + 2909;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line46'].Put0('ForAboshi', 1, 45.49);

$Shikama + 2954.5;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line45'].Put0('ForAboshi', 1, 44.49);

$SigPos = 2991.5;
$Shikama + $SigPos - 150;
Beacon.Put(121, 1, 1);
Structure['A'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos - 30;	#S点だが実質T点みたいな動作するので。
Beacon.Put(121, 1, 2);
Structure['S'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos;
Structure['Sig_GYR'].Put('ForAboshi', 2.5, 0, 0, 0, 0, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', 2.5, 0, 0, 0, 0, 0, 0, 0);
#$Shikama + 2991.5;
Signal['GYR'].Put(1, 'ForAboshi', 2.5, 0, -0.01, 0, 0, 0, 0, 0);
Section.Begin(0, 3, 7);

$Shikama + 2999;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line46'].Put0('ForAboshi', 1, 45.99);

$Shikama + 3043;
Gradient.BeginTransition();
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 1640.5124199468896);

$Shikama + 3045;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line42'].Put0('ForAboshi', 1, 41.49);

$Shikama + 3058;
Curve.BeginTransition();

$Shikama + 3084;
Gradient.Begin(-25);
$Height = $Height -0.5124199468895707;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 0);

$Shikama + 3086.5;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line51'].Put0('ForAboshi', 1, 50.49);

$Shikama + 3090;	#80km/h速度照査
Beacon.Put(123, 0, 4);
Structure['Ats80'].Put('ForShikama', -2, -0.5, 0, 0, 0, 0, 0, 0);

$Shikama + 3101.12;
Beacon.Put(123, 0, 4);

$Shikama + 3102;
Curve.Begin(-1200);

$Shikama + 3124+2;
Curve.BeginTransition();

$Shikama + 3137;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line42'].Put0('ForAboshi', 1, 41.99);

$Shikama + 3163+2;
Curve.End();

$Shikama + 3179;
Curve.BeginTransition();
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line35'].Put0('ForAboshi', 1, 34.99);

$Shikama + 3180;
Repeater['guarderL'].End();
Repeater['guarderR'].End();
Repeater['guarderR2'].End();
Repeater['EmbL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'GrassEmb');
Repeater['EmbR'].Begin('ForAboshi', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'GrassEmb');
Repeater['pier'].End();

$Shikama + 3214;
Structure['poleCL'].Put0('ForShikama', 0, 0);
Structure['Line35'].Put0('ForAboshi', 1, 34.49);

$Shikama + 3223;
Curve.Begin(1200);

$Shikama + 3248.5;
Structure['poleC5'].Put0('ForShikama', 0, 0);
Structure['Line35'].Put0('ForAboshi', 1, 34.99);

$Shikama + 3249-2;
Curve.BeginTransition();

$Shikama + 3259;
Gradient.BeginTransition();
$Height = $Height -4.375;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, -1080.337447282098);

$Shikama + 3283.5;
Structure['poleC5'].Put0('ForShikama', 0, 0);
Structure['Line28'].Put0('ForAboshi', 1, 27.49);

$Shikama + 3286;	#標識が見当たらなかったのでこの辺と予想
Curve.End();
Gradient.End();
$Height = $Height -0.33744728209796904;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 0);

$SigPos = 3294.5;
$Shikama + $SigPos - 150;
Beacon.Put(121, 1, 1);
Structure['A'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos - 30;	#S点だが実質T点みたいな動作するので。
Beacon.Put(121, 1, 2);
Structure['S'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos;
Structure['Sig_YRNG'].Put('ForAboshi', -2.5, 4, 0.01, 0, 0, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', -2.5, 0, 0.01, 0, 0, 0, 0, 0);
Signal['YRYG'].Put(1, 'ForAboshi', -2.5, 0, 0, 0, 0, 0, 0, 0);
Section.Begin(0, 0, 6);	#場内なのでR→R→YG

$Shikama + 3304;
Repeater['ballastForAboshi'].End();

$Shikama + 3305;
Repeater['EmbL'].End();
Repeater['EmbR'].End();

#$Shikama + 3308;	#ここから夢前川橋梁
RollingNoise.Change(2);
Repeater['ballastForAboshi'].Begin0('ForAboshi', 1, 24.99, 25.00, 'tie_25');
Repeater['guarder'].Begin0('ForAboshi', 1, 4.99, 5.00, 'bridge_SY');

$Shikama + 3311;
Structure['poleSR'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line49'].Put0('ForAboshi', 1, 48.49);

$Shikama + 3340;
Repeater['Ground'].End();

$Shikama + 3359.5;
Structure['poleSR'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line46'].Put0('ForAboshi', 1, 45.49);

#$Shikama + 3350;
$Shikama + 3360;
$WaterHeight = $Height + 2.0;
Track['Liver'].Position(0, $WaterHeight * (-1));
Repeater['Liver'].Begin0('Liver', 0, 24.99, 25.00, 'liver');
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 0);

$Shikama + 3405;
Structure['poleSR'].Put('ForAboshi', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line46'].Put0('ForAboshi', 1, 45.49);

$Shikama + 3436.5;
$Height = 0.287455092157586 + 2.725 + 0.973;
Track['Liver'].Position(0, $WaterHeight * (-1));
Repeater['Liver'].End();
Track['Height'].Position(0, $Height * (-1) -0.5);
Repeater['Ground'].Begin0('Height', 0, 24.99, 25.00, 'grass1');
Structure['livWall'].Put0('Height', 0, 0);

$Shikama + 3450.5;
Structure['poleSR'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line40'].Put0('ForAboshi', 1, 39.49);

$Shikama + 3479;	#橋梁終わり
$Shikama + 3480;
RollingNoise.Change(0);
Repeater['BallastForAboshi'].Begin0('ForAboshi', 1, 4.99, 5.00, 'ballast_5');
Repeater['guarder'].End();
Structure['livWall'].Put('ForAboshi', 0, -0.5, 0, 0, 0, 0, 0, 0);

$Shikama + 3480;
Repeater['EmbL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'GrassEmb');
Repeater['EmbR'].Begin('ForShikama', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'GrassEmb');

$Shikama + 3487;	#分岐開始(52mで分岐する感じだと思うので相対半径194mにしてみる)
Track['ForShikama'].Position(0, 0, 194);
$TB_Track = 'ForShikama'; $TB_interval = 5; $TB_distance = $Shikama + 3487; include 'TrackBegin.txt';

$Shikama + 3490;
Structure['poleC10'].Put('ForAboshi', 2, 0, 0, 0, 0, 0, 0, 0);
Structure['Line45'].Put0('ForAboshi', 1, 44.99);

$Shikama + 3513;	#分岐中間地点
Track['ForShikama'].Position(1.75, 0, -194);

$Shikama + 3518;
Curve.BeginTransition();

$Shikama + 3525.5;	#未使用ホームはここから開始
Structure['Form52'].Put0('ForAboshi', 1, 11.49);

$SigPos = 3533;
$Shikama + $SigPos - 150;
Beacon.Put(121, 1, 1);
Structure['A'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos - 30;
Beacon.Put(121, 1, 2);
Structure['S'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos;
Structure['Sig_YRNY'].Put('ForAboshi', -2.5, 4, 0.01, 0, 0, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', -2.5, 0, 0.01, 0, 0, 0, 0, 0);
Signal['YRGY'].Put(1, 'ForAboshi', -2.5, 0, 0, 0, 0, 0, 0, 0);
Section.Begin(0, 2, 3);	#YY(2)で終わりのはずだが半重複を考えてY(3)まで設定しておく
SpeedLimit.End();

$Shikama + 3535;
Structure['poleC15'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);
Structure['Line45'].Put0('ForAboshi', 1, 44.99);

$Shikama + 3537;
Structure['FormEdge51'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 1, -3.99);
Structure['platform51'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 1, -3.99);
Structure['FormBegin52'].Put('ForShikama', 0, 0, -3.95, 0, 180, 0, 1, -3.99);
Structure['FormFoot52'].Put('ForShikama', 0, 0, 1.1, 0, 180, 0, 1, -3.99);
Repeater['FormFA'].Begin0('ForAboshi', 1, 4.99, 5.00, 'FormEdge');
Repeater['platformFA'].Begin0('ForAboshi', 1, 4.99, 5.00, 'platform');
Repeater['FormFS'].Begin('ForShikama', 0, 0, 5.1, 0, 180, 0, 1, -4.99, 5.00, 'FormEdge');
Repeater['platformFS'].Begin('ForShikama', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'platform');
Structure['FormBegin52'].Put0('ForAboshi', 1, 4.99);
Repeater['FormWallL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'FormWall52');
Repeater['FormWallR'].Begin('ForShikama', 0, 0, 5.05, 0, 180, 0, 1, 4.99, 5.00, 'FormWall52');
Repeater['FormFootL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'FormFoot52');
Repeater['FormFootR'].Begin('ForShikama', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'FormFoot52');
Gradient.BeginTransition();
Gradient.Begin(-7);
$Height = 0.287455092157586 + 2.725 + 0.973;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 0);

$Shikama + 3539;	#分岐終わり？
Track['ForShikama'].Position(3.5, 0, 0);

$Shikama + 3545;
Curve.Begin(780);

$Shikama + 3557;
Repeater['FormWallL'].Begin0('ForAboshi', 1, 2.49, 2.50, 'FormWall51B');
Repeater['FormWallR'].Begin('ForShikama', 0, 0, 2.50, 0, 180, 0, 1, 2.49, 2.50, 'FormWall51B');
Repeater['FormRoofL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'FormRoof52');
Repeater['FormRoofR'].Begin('ForShikama', 0, 0, 5.05, 0, 180, 0, 1, 4.99, 5.00, 'FormRoof52');

$Shikama + 3572;
Repeater['FormWallL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'FormWall52');
Repeater['FormWallR'].Begin('ForShikama', 0, 0, 5.05, 0, 180, 0, 1, 4.99, 5.00, 'FormWall52');
Repeater['FormRoofL'].End();
Repeater['FormRoofR'].End();

$Shikama + 3580;
Structure['poleC15'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);
Structure['Line33'].Put0('ForAboshi', 1, 32.49);
SpeedLimit.Begin(75);

$Shikama + 3587;	#ホーム狭くなる
Repeater['FormFA'].Begin0('ForAboshi', 1, 4.99, 5.00, 'FormEdge53');
Repeater['FormFS'].Begin('ForShikama', 0, 0, 5.1, 0, 180, 0, 1, -4.99, 5.00, 'FormEdge53');
Repeater['platformFA'].Begin0('ForAboshi', 1, 4.99, 5.00, 'platform52');
Repeater['platformFS'].Begin('ForShikama', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'platform52');
Repeater['FormWallL'].Begin('ForAboshi', -2, 0, 0, 0, 0, 0, 1, 4.99, 5.00, 'FormWall40');
Repeater['FormWallR'].Begin('ForShikama', 2, 0, 5.05, 0, 180, 0, 1, 4.99, 5.00, 'FormWall40');

$Shikama + 3593;
Station['SY52'].Put(0, -2, 2);	#夢前川 - SY52 -
Structure['Stop3'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);

$Shikama + 3595;
Curve.BeginTransition();

$Shikama + 3599;
Track['ForShikama'].Position(3.5, 0, -194);
Repeater['FormFS'].End();
Repeater['platformFS'].End();
Repeater['FormFootR'].End();
Repeater['FormWallR'].End();

$Shikama + 3604;
Repeater['FormFA'].End();
Repeater['platformFA'].End();
Repeater['FormFootL'].End();
Repeater['FormWallL'].End();

$Shikama + 3610;	#Curve.End()を挟んでいないが大丈夫そう？
Curve.Begin(380);


$SigPos = 3612.5;
$Shikama + $SigPos - 150;
#Beacon.Put(121, 1, 1);
#Structure['A'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos - 30;
Beacon.Put(121, 1, 2);
Structure['S'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos;
Structure['poleC15'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);
Structure['Sig_GNR'].Put('ForAboshi', -2.5, 0, 0.01, 0, 0, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', -2.5, 0, 0.01, 0, 0, 0, 0, 0);
Signal['GYR'].Put(1, 'ForAboshi', -2.5, 0, 0, 0, 0, 0, 0, 0);
Beacon.Put(121, 8, 0);
#Section.Begin(0);
Section.Begin(0, 0, 7, 8);
Structure['Line28'].Put0('ForAboshi', 1, 27.49);

$Shikama + 3617;
Curve.BeginTransition();

$Shikama + 3629;
Track['ForShikama'].Position(1.75, 0, 194);

$Shikama + 3633;
Curve.End();

$Shikama + 3640;
Structure['poleC8'].Put('ForAboshi', 1.5, 0, 0, 0, 0, 0, 0, 0);
Structure['Line28'].Put0('ForAboshi', 1, 27.49);

$Shikama + 3650;
Curve.BeginTransition();

$Shikama + 3655;	#分岐合流
Track['ForShikama'].Position(0, 0, 0);
$TB_Track = 'ForShikama'; $TB_distance = $Shikama + 3655; include 'TrackEnd.txt';

$Shikama + 3667.5;
Structure['poleC5'].Put0('ForAboshi', 0, 0);
Structure['Line24'].Put0('ForAboshi', 1, 23.99);

$Shikama + 3670;
Curve.Begin(450);

$Shikama + 3676;
Gradient.BeginTransition();
Gradient.Begin(-25);
$Height = 0.287455092157586 + 2.725;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 0);

$Shikama + 3679;
Curve.BeginTransition();

$Shikama + 3691.5;
Structure['poleC8'].Put('ForAboshi', 1.5, 0, 0, 0, 0, 0, 0, 0);
Structure['Line39'].Put0('ForAboshi', 1, 38.49);

$Shikama + 3700;
Curve.Begin(780);

$Shikama + 3730;
Structure['poleC8'].Put('ForAboshi', 1.5, 0, 0, 0, 0, 0, 0, 0);
Structure['Line44'].Put0('ForAboshi', 1, 43.99);

$Shikama + 3763;	#逆向き場内

$Shikama + 3774;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line47'].Put0('ForAboshi', 1, 46.99);

$Shikama + 3785;
Gradient.BeginTransition();
$Height = 0.287455092157586;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, -920.2874550921575);

$Shikama + 3808;
Gradient.End();
$Height = 0;
Track['Height'].Y.Interpolate($Height * (-1) - 0.5, 0);
Repeater['EmbL'].End();
Repeater['EmbR'].End();

$Shikama + 3821;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line35'].Put0('ForAboshi', 1, 34.49);

$Shikama + 3855.5;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line35'].Put0('ForAboshi', 1, 34.99);

$Shikama + 3871;
Curve.BeginTransition();

$Shikama + 3888;
Curve.End();

$Shikama + 3890.5;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line34'].Put0('ForAboshi', 1, 33.99);

$Shikama + 3901;	#カーブ後最初の踏切

$Shikama + 3924.5;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line37'].Put0('ForAboshi', 1, 36.49);

$Shikama + 3961;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line48'].Put0('ForAboshi', 1, 47.99);

$Shikama + 4009;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line45'].Put0('ForAboshi', 1, 44.99);

$Shikama + 4036;	#踏切

$Shikama + 4054;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line52'].Put0('ForAboshi', 1, 51.99);

$SigPos = 4095;
$Shikama + $SigPos - 150;
Beacon.Put(121, 1, 1);
Structure['A'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos - 30;
Beacon.Put(121, 1, 2);
Structure['S'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos;
Structure['Sig_GYR'].Put('ForAboshi', -2.5, 0, 0, 0, 0, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', -2.5, 0, 0, 0, 0, 0, 0, 0);
Signal['GYR'].Put(1, 'ForAboshi', -2.5, 0, 0, 0, 0, 0, 0, 0);
Section.Begin(0, 3, 7, 8);

$Shikama + 4106;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line44'].Put0('ForAboshi', 1, 43.99);

$Shikama + 4126;	#速度75(点制御スイッチが見える。枕木16本 = 約10m強?)
Beacon.Put(123, 0, 4);
Structure['Ats75'].Put('ForAboshi', -2, -0.5, 0, 0, 0, 0, 0, 0);

$Shikama + 4136.5;
Beacon.Put(123, 0, 4);

$Shikama + 4149.5;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line47'].Put0('ForAboshi', 1, 46.99);

$Shikama + 4151;	#踏切

$Shikama + 4196;
Structure['poleC5'].Put0('ForAboshi', 0, 0);
Structure['Line49'].Put0('ForAboshi', 1, 48.99);

$Shikama + 4244.5;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line50'].Put0('ForAboshi', 1, 49.99);

$Shikama + 4294.5;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line49'].Put0('ForAboshi', 1, 48.99);

$Shikama + 4306;	#A標?
Beacon.Put(121, 1, 1);
Structure['A'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + 4337.5;	#踏切

$Shikama + 4343.5;
Structure['poleC5'].Put0('ForAboshi', 0, 0);
Structure['Line38'].Put0('ForAboshi', 1, 37.99);

$Shikama + 4381;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line39'].Put0('ForAboshi', 1, 38.99);

$Shikama + 4385;	#ここにS標があるのか？(地図ではよくわからなかったので前面展望から推測)
Beacon.Put(121, 1, 2);
Structure['S'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + 4420;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line42'].Put0('ForAboshi', 1, 41.99);

$Shikama + 4452;	#YRNG
Structure['Sig_YRNG'].Put('ForAboshi', -2.5, 4, 0, 0, 0, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', -2.5, 0, 0, 0, 0, 0, 0, 0);
Signal['YRYG'].Put(1, 'ForAboshi', -2.5, 0, 0, 0, 0, 0, 0, 0);
Section.Begin(0, 3, 6, 8);

$Shikama + 4461.5;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line47'].Put0('ForAboshi', 1, 46.99);

$Shikama + 4508.5;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line45'].Put0('ForAboshi', 1, 44.99);

$Shikama + 4519;	#踏切

$Shikama + 4553;
Structure['poleC5'].Put0('ForAboshi', 0, 0);
Structure['Line34'].Put0('ForAboshi', 1, 33.99);
Structure['Line34'].Put('ForShikama', -2.9, 0, 0, 0, 4.9, 0, 1, 33.99);

$Shikama + 4564;	#分岐点
Track['ForShikama'].Position(0, 0, 145.5);
$TB_Track = 'ForShikama'; $TB_interval = 5; $TB_distance = $Shikama + 4564; include 'TrackBegin.txt';

$Shikama + 4586.5;
Track['ForShikama'].Position(1.75, 0, -145.5);
Structure['poleC10'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);
Structure['Line16'].Put0('ForAboshi', 1, 15.99);
Structure['Line16'].Put0('ForShikama', 1, 15.99);

$Shikama + 4594;
Structure['Bridge53'].Put('ForAboshi', 2, 0, 0, 0, 0, 0, 0, 2.3);

$Shikama + 4602;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line22'].Put0('ForAboshi', 1, 21.99);
Structure['Line22'].Put0('ForShikama', 1, 21.99);

$Shikama + 4609;	#分岐終わり
Track['ForShikama'].Position(3.5, 0, 0);

$SigPos = 4612;	#NYR
$Shikama + $SigPos - 150;
Beacon.Put(121, 1, 1);
Structure['A'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos - 30;
Beacon.Put(121, 1, 2);
Structure['S'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos;
Structure['Sig_NYR'].Put('ForAboshi', -2.5, 0, 0.01, 0, 0, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', -2.5, 0, 0.01, 0, 0, 0, 0, 0);
Signal['GYR'].Put(1, 'ForAboshi', -2.5, 0, 0, 0, 0, 0, 0, 0);
Section.Begin(0, 3);

$Shikama + 4618;
Track['dammy1'].Position(0, -1.3);
Track['dammy3'].Position(3.5, -1.3);
Repeater['EdgeFA'].Begin0('dammy1', 1, 4.99, 5, 'FormEdge53');
Repeater['EdgeFS'].Begin('dammy3', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5, 'FormEdge53');
Repeater['FormFA'].Begin('dammy1', 0.5, 0, 0, 0, 0, 0, 1, 4.99, 5, 'platform56');
Repeater['FormFS'].Begin('dammy3', 8, 0, 0, 0, 0, 0, 1, 4.99, 5, 'platform56');
Repeater['FormFootL'].Begin0('dammy1', 1, 4.99, 5.00, 'FormFoot52');
Repeater['FormFootR'].Begin('dammy3', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'FormFoot52');

$Shikama + 4623.5;
Structure['poleC20'].Put('ForAboshi', 2, 0, 0, 0, 0, 0, 0, 0);	#C19
Structure['Line31'].Put0('ForAboshi', 1, 30.99);
Structure['Line31'].Put0('ForShikama', 1, 30.99);

$Shikama + 4628;
Track['dammy1'].Position(0, 0);
Track['dammy3'].Position(3.5, 0);
Track['dammy1'].Position(0.5, 0);
Track['dammy2'].Position(-8.5, 0);
Track['dammy3'].Position(3, 0);
Track['dammy4'].Position(12, 0);
Repeater['EdgeFA'].Begin0('ForAboshi', 1, 4.99, 5, 'FormEdge53');
Repeater['EdgeFS'].Begin('ForShikama', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5, 'FormEdge53');
Repeater['FormFootL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'FormFoot52');
Repeater['FormFootR'].Begin('ForShikama', 0, 0, 5.1, 0, 180, 0, 1, 4.99, 5.00, 'FormFoot52');
Repeater['FormWallL'].Begin0('ForAboshi', 1, 4.99, 5.00, 'FormWall52');
Repeater['FormWallR'].Begin('ForShikama', 0, 0, 5.05, 0, 180, 0, 1, 4.99, 5.00, 'FormWall52');
Repeater['WallFA'].Begin('ForAboshi', 0, 1.2, 0, 0, 0, 0, 1, 4.99, 5.00, 'FormWall53');
Repeater['WallFS'].Begin('ForShikama', 0, 1.2, 5, 0, 180, 0, 1, 4.99, 5.00, 'FormWall53');
Repeater['FormFA'].End();
Repeater['FormFS'].End();
Structure['platform56'].PutBetween('dammy1', 'dammy2');
Structure['platform56'].PutBetween('dammy4', 'dammy3');

$Shikama + 4633;
Structure['platform56'].PutBetween('dammy1', 'dammy2');
Structure['platform56'].PutBetween('dammy4', 'dammy3');

$Shikama + 4638;
Structure['platform56'].PutBetween('dammy1', 'dammy2');
Structure['platform56'].PutBetween('dammy4', 'dammy3');

#$Shikama + 4640;
Structure['FormObj53-1'].Put0('ForAboshi', 1, 9.99);
Structure['FormObj53-2'].Put0('ForShikama', 1, 9.99);

$Shikama + 4637;
Repeater['FormWallL'].End();
Repeater['FormWallR'].End();
Repeater['WallFA'].End();
Repeater['WallFS'].End();

$Shikama + 4643;
Structure['platform56'].PutBetween('dammy1', 'dammy2');
Structure['platform56'].PutBetween('dammy4', 'dammy3');

$Shikama + 4648;
Structure['platform56'].PutBetween('dammy1', 'dammy2');
Structure['platform56'].PutBetween('dammy4', 'dammy3');
Repeater['WallFA'].Begin0('ForAboshi', 1, 4.99, 5.00, 'FormWall53');
Repeater['WallFS'].Begin('ForShikama', 0, 0, 5, 0, 180, 0, 1, 4.99, 5.00, 'FormWall53');

$Shikama + 4653;
Structure['platform56'].PutBetween('dammy1', 'dammy2');
Structure['platform56'].PutBetween('dammy4', 'dammy3');

$Shikama + 4654.5;
Structure['poleC20'].Put('ForAboshi', 3, 0, 0, 0, 0, 0, 0, 0);	#C17
Structure['Line35'].Put0('ForAboshi', 1, 34.99);
Structure['Line35'].Put0('ForShikama', 1, 34.99);

$Shikama + 4658;
Structure['platform56'].PutBetween('dammy1', 'dammy2');
Structure['platform56'].PutBetween('dammy4', 'dammy3');

$Shikama + 4663;
Structure['platform56'].PutBetween('dammy1', 'dammy2');
Structure['platform56'].PutBetween('dammy4', 'dammy3');

$Shikama + 4668;
Structure['platform56'].PutBetween('dammy1', 'dammy2');
Structure['platform56'].PutBetween('dammy4', 'dammy3');

$Shikama + 4673;
Structure['platform56'].PutBetween('dammy1', 'dammy2');
Structure['platform56'].PutBetween('dammy4', 'dammy3');

$Shikama + 4678;
Structure['platform56'].PutBetween('dammy1', 'dammy2');
Structure['platform56'].PutBetween('dammy4', 'dammy3');

$Shikama + 4683;
Structure['platform56'].PutBetween('dammy1', 'dammy2');
Structure['platform56'].PutBetween('dammy4', 'dammy3');

$Shikama + 4691;	#広畑駅
Station['SY53'].Put(0, -2, 2);
Structure['StopAll'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);

$Shikama + 4687;
Repeater['WallFA'].End();
Repeater['WallFS'].End();

$Shikama + 4688;
Track['dammy2'].Position(-8.5, 0);
Track['dammy4'].Position(12, 0);
Track['dammy5'].Position(-7, 0);
Track['dammy6'].Position(3.5 + 7.5, 0);
Structure['platform56'].PutBetween('dammy1', 'dammy5');
Structure['platform56'].PutBetween('dammy6', 'dammy3');
Structure['FormWall40'].Put('ForAboshi', -2.5, 0, 0, 0, 0, 0, 1, 4.99);
Structure['FormWall40'].Put('ForShikama', 3.0, 0, 5.1, 0, 180, 0, 1, 4.99);

$Shikama + 4689.5;
Structure['poleC20'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);	#C17
Structure['Line34'].Put0('ForAboshi', 1, 33.99);
Structure['Line34'].Put0('ForShikama', 1, 33.99);

$Shikama + 4693;	#ホームここまで
Track['dammy1'].Position(0.5, 0);
Track['dammy2'].Position(-7, 0);
Track['dammy3'].Position(3, 0);
Track['dammy4'].Position(3.5 + 7.5, 0);
Track['dammy5'].Position(-7, 0);
Track['dammy6'].Position(3.5 + 7.5, 0);
Repeater['EdgeFA'].End();
Repeater['EdgeFS'].End();
Repeater['FormFootL'].End();
Repeater['FormFootR'].End();
Gradient.BeginTransition();
Track['Height'].Y.Interpolate($Height * (-1) -0.5, -1333.3873322398777);

$Shikama + 4704;
Gradient.Begin(9);
$Height = $Height + 0.053998906544297655;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 4723.5;
Structure['poleC8'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);
Structure['Line41'].Put0('ForAboshi', 1, 40.99);
Structure['Line28'].Put0('ForShikama', 1, 27.99);

$SigPos = 4724.5;	#GNR
$Shikama + $SigPos - 150;
Beacon.Put(121, 1, 1);
Structure['A'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos - 30;
Beacon.Put(121, 1, 2);
Structure['S'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos;
Structure['Sig_GNR'].Put('ForAboshi', -2.2, 0, 0.01, 0, 0, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', -2.5, 0, 0.01, 0, 0, 0, 0, 0);
Signal['GYR'].Put(1, 'ForAboshi', -2.2, 0, 0, 0, 0, 0, 0, 0);
Section.Begin(0);
#Section.Begin(0, 0, 0, 8);

$Shikama + 4742;	#合流開始
Track['ForShikama'].Position(3.5, 0, -145.5);

$Shikama + 4751.5;
Structure['poleCL'].Put('ForShikama', 0, 0, 0, 0, 180, 0, 0, 0);
Structure['Line13'].Put0('ForShikama', 1, 12.99);

$Shikama + 4764.5;
Track['ForShikama'].Position(1.75, 0, 145.5);
Structure['poleC8'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);
Structure['Line43'].Put0('ForAboshi', 1, 42.99);
Structure['Line43'].Put('ForShikama', 0, 0, 0, 0, -4, 0, 1, 42.99);

$Shikama + 4788;	#合流完了
Track['ForShikama'].Position(0, 0, 0);
$TB_Track = 'ForShikama'; $TB_interval = 5; $TB_distance = $Shikama + 4564; include 'TrackBegin.txt';
$Height = $Height + 0.747;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, -1667.1391735020936);
Gradient.BeginTransition();
$TB_Track = 'ForShikama'; $TB_distance = $Shikama + 4787; include 'TrackEnd.txt';

$Shikama + 4802;
Gradient.Begin(18);
$Height = $Height + 0.2024959002051787;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 4807;
Structure['poleC5'].Put0('ForAboshi', 0, 0);
Structure['Line50'].Put0('ForAboshi', 1, 49.99);

$Shikama + 4857;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line50'].Put0('ForAboshi', 1, 49.99);

$Shikama + 4871;
Gradient.BeginTransition();
$Height = $Height + 1.278;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 750.121490160094);

$Shikama + 4887;
Repeater['BallastForAboshi'].Begin0('ForAboshi', 3, 4.99, 5.00, 'tie_5');

$Shikama + 4892;
Repeater['BallastForAboshi'].Begin0('ForAboshi', 3, 4.99, 5.00, 'Ballast_5');

$Shikama + 4900;
Gradient.Begin(-18);
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama = $Shikama - 2;	#ずれを見つけたが補正のために1個ずつ書き換えるのがめんどかったので

$Shikama + 4905;
Curve.BeginTransition();

$Shikama + 4909;
Structure['poleD5'].Put0('ForAboshi', 0, 0);
Structure['Line46'].Put0('ForAboshi', 1, 45.99);

$Shikama + 4955;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line49'].Put0('ForAboshi', 1, 48.99);

$Shikama + 4990;
Gradient.BeginTransition();
$Height = $Height - 1.62;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, -1555.8075351468617);

$Shikama + 5004;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line44'].Put0('ForAboshi', 1, 43.99);

$Shikama + 5018;
Gradient.End();
$Height = $Height - 0.25197959130611025;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);
Curve.Begin(-960);

$Shikama + 5048;
Structure['poleD5'].Put0('ForAboshi', 0, 0);
Structure['Line51'].Put0('ForAboshi', 1, 50.99);

$Shikama + 5078;	#踏切
$Shikama + 5094;	#踏切終わり

$Shikama + 5099;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line47'].Put0('ForAboshi', 1, 46.99);

$Shikama + 5145.5;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line48'].Put0('ForAboshi', 1, 47.99);

$SigPos = 5148;	#GYR
$Shikama + $SigPos - 150;
Beacon.Put(121, 1, 1);
Structure['A'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos - 30;
Beacon.Put(121, 1, 2);
Structure['S'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos;
Structure['Sig_GYR'].Put('ForAboshi', 2.2, 0, 0.01, 0, 0, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', 2.5, 0, 0.01, 0, 0, 0, 0, 0);
Signal['GYR'].Put(1, 'ForAboshi', 2.2, 0, 0, 0, 0, 0, 0, 0);
Section.Begin(0, 3, 7, 8);

$Shikama + 5150.8;
Structure['Sig_GNR'].Put('ForAboshi', 2.2, 0, 0.1, 0, 180, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', 2.5, 0, 0, 0, 0, 0, 0, 0);

$Shikama + 5193;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line49'].Put0('ForAboshi', 1, 48.99);

$Shikama + 5242;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line50'].Put0('ForAboshi', 1, 49.99);

$Shikama + 5276;
Gradient.BeginTransition();
Track['Height'].Y.Interpolate($Height * (-1) -0.5, -1889.1948641069037);

$Shikama + 5292;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line50'].Put0('ForAboshi', 1, 49.99);

$Shikama + 5310;
Gradient.Begin(18);
$Height = $Height + 0.30597521801453065;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 5316.5;	#踏切
$Shikama + 5327;	#踏切終わり

$Shikama + 5340;
Curve.BeginTransition();

$Shikama + 5342;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line46'].Put0('ForAboshi', 1, 45.99);

$Shikama + 5375;
Curve.End();

$Shikama + 5388;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line42'].Put0('ForAboshi', 1, 41.99);

$Shikama + 5400;
Gradient.BeginTransition();
$Height = $Height + 1.62;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 1111.2910965334727);

$SigPos = 5408.5;	#NYR
$Shikama + $SigPos - 150;
Beacon.Put(121, 1, 1);
Structure['A'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos - 30;
Beacon.Put(121, 1, 2);
Structure['S'].Put('ForAboshi', -2, 0, 0, 0, 0, 0, 0, 0);

$Shikama + $SigPos;
Structure['Sig_NYR'].Put('ForAboshi', 2.2, 0, 0.01, 0, 0, 0, 0, 0);
Structure['SigPole'].Put('ForAboshi', 2.5, 0, 0.01, 0, 0, 0, 0, 0);
Signal['GYR'].Put(1, 'ForAboshi', 2.2, 0, 0, 0, 0, 0, 0, 0);
Section.Begin(0, 3, 7, 8);

$Shikama + 5420;
Gradient.End();
$Height = $Height + 0.17998542236148296;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 5430.25;
Structure['poleCL'].Put0('ForAboshi', 0, 0);
Structure['Line35'].Put0('ForAboshi', 1, 34.99);

$Shikama + 5458;	#分岐開始
Track['ForShikama'].Position(0, 0, 179.446429);
$TB_Track = 'ForShikama'; $TB_interval = 5; $TB_distance = distance; include 'TrackBegin.txt';

$Shikama + 5465.5;
Structure['poleC8'].Put0('ForAboshi', 0, 0);

$Shikama + 5483;
Track['ForShikama'].Position(1.75, 0, -179.446429);

$Shikama + 5497;	#川

$Shikama + 5508;	#橋脚(11m間隔で3本) & 分岐終わり
Track['ForShikama'].Position(3.5, 0, 0);

$Shikama + 5559.5;
Gradient.BeginTransition();
Gradient.Begin(-5);
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);
Track['dammy1'].Position(-8.0, 0);
$TB_Track = 'dammy1'; $TB_interval = 5; $TB_distance = distance; include 'TrackBegin.txt';

$Shikama + 5568.5;	#ホーム開始
Repeater['FormFA'].Begin0('ForAboshi', 1, -4.99, 5.00, 'FormEdge53');

$Shikama + 5573.5;	#FSホーム開始
Repeater['FormFS'].Begin('ForShikama', 0, 0, 5.1, 0, 180, 0, 1, -4.99, 5.00, 'FormEdge53');

$Shikama + 5631;	#天満
#Station['SY54'].Put(0, -2, 2);
Structure['Stop3'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);

$Shikama + 5634;	#FS合流開始
Track['ForShikama'].Position(3.5, 0, -228.892857);
Track['dammy1'].Position(-8.0, 0, 285.722321);

$Shikama + 5638.5;	#ホーム終了
Repeater['FormFA'].End();
Repeater['FormFS'].End();

$Shikama + 5645.5;	#踏切

$Shikama + 5662.25;
Track['ForShikama'].Position(1.75, 0, 228.892857);
Track['dammy1'].Position(-6.6, 0);
Track['dammy2'].Position(-6.6, 0, -285.722321);
$TB_Track = 'dammy2'; $TB_interval = 5; $TB_distance = distance; include 'TrackBegin.txt';

$Shikama + 5690.5;	#分岐合流
Track['ForShikama'].Position(0, 0, 0);
$TB_Track = 'ForShikama'; $TB_distance = distance; include 'TrackEnd.txt';
Track['dammy2'].Position(-6.0, 0, 359.62);

$Shikama + 5695;
Track['dammy1'].Position(-6.6 + (6.6 - 2.5) * (5690.5 - 5662.25) / (5690.5 - 5662.25), 0, -496.3665486725745);

$Shikama + 5717.3;	#側線合流
Track['dammy1'].Position(0, 0);
$TB_Track = 'dammy1'; $TB_distance = distance; include 'TrackEnd.txt';
Track['dammy2'].Position(-7.0, 0);

$Shikama + 5742;	#側線終了
Track['dammy2'].Position(-7.0, 0);
$TB_Track = 'dammy2'; $TB_distance = distance; include 'TrackEnd.txt';

$Shikama + 5747;	#踏切開始

$Shikama + 5730;
Gradient.BeginTransition();
Track['Height'].Y.Interpolate($Height * (-1) -0.5, -1111.156110199898);

$Shikama + 5740;
Gradient.Begin(9);
$Height = $Height + 0.04499908878691471;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 5933;
Gradient.BeginTransition();
$Height = $Height + 1.737;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 666.6936661199388);

$Shikama + 5939;
Gradient.End();
$Height = $Height + 0.026999453272146923;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 6066;
Gradient.BeginTransition();
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 3176.929555077335);

$Shikama + 6120;
Gradient.Begin(-17);
$Height = $Height - 0.4589668420412381;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 6189.5;
Gradient.BeginTransition();
$Height = $Height - 1.1815;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, -2618.025281498915);

$Shikama + 6234;
Gradient.End();
$Height = $Height - 0.378222675385814;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 6922;
Gradient.BeginTransition();
Track['Height'].Y.Interpolate($Height * (-1) -0.5, -3800.1899952502376);

$Shikama + 6960;
Gradient.Begin(10);
$Height = $Height + 0.18999525023733843;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 7045;
Gradient.BeginTransition();
$Height = $Height + 0.85;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 3000.1499962501875);

$Shikama + 7075;	#踏切開始
Gradient.End();
$Height = $Height + 0.14999625018737106;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 7088;	#川開始

$Shikama + 7106;	#川終了

$Shikama + 7140.5;	#分岐開始
Track['ForShikama'].Position(0, 0, 179.44642857142858);
$TB_Track = 'ForShikama'; $TB_interval = 5; $TB_distance = distance; include 'TrackBegin.txt';

$Shikama + 7165.5;
Track['ForShikama'].Position(1.75, 0, -179.44642857142858);

$Shikama + 7190.5;	#分岐終了
Track['ForShikama'].Position(3.5, 0);

$Shikama + 7207;	#ホーム開始
Repeater['FormFA'].Begin0('ForAboshi', 1, -4.99, 5.00, 'FormEdge');
Repeater['FormFS'].Begin('ForShikama', 0, 0, 5.1, 0, 180, 0, 1, -4.99, 5.00, 'FormEdge');

$Shikama + 7267.5;	#平松
#Station['SY55'].Put(0, -2, 2);
Structure['StopAll'].Put('ForAboshi', 1.75, 0, 0, 0, 0, 0, 0, 0);

$Shikama + 7272;	#ホーム終了
Repeater['FormFA'].End();
Repeater['FormFS'].End();

$Shikama + 7277;	#合流開始
Track['ForShikama'].Position(3.5, 0, -179.44642857142858);

$Shikama + 7287;
SpeedLimit.Begin(75);

$Shikama + 7302;
Track['ForShikama'].Position(1.75, 0, 179.44642857142858);

$Shikama + 7327;	#合流完了
Track['ForShikama'].Position(0, 0, 0);
$TB_Track = 'ForShikama'; $TB_distance = distance; include 'TrackEnd.txt';

$Shikama + 7333;
Gradient.BeginTransition();
Track['Height'].Y.Interpolate($Height * (-1) -0.5, -3300.1649958752064);

$Shikama + 7366;
Gradient.Begin(10);
$Height = $Height + 0.16499587520610967;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 7481;
Gradient.BeginTransition();
$Height = $Height + 1.15;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 1900.0949976251188);

$Shikama + 7500;
Gradient.End();
$Height = $Height + 0.09499762511865129;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 7524;	#川

$Shikama + 7553;	#終わり

$Shikama + 7565.5;
Gradient.BeginTransition();
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 2091.1936965394384);

$Shikama + 7573.5;
Curve.BeginTransition();

$Shikama + 7600;
Gradient.Begin(-16.5);
$Height = $Height - 0.2846056303475277;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 7611;
Curve.Begin(740, 0.07);

$Shikama + 7647;
Curve.BeginTransition();

$Shikama + 7676.5;
Curve.End();

$Shikama + 7700;
Gradient.BeginTransition();
$Height = $Height - 1.65;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, -666.7574104908354);

$Shikama + 7711;
Gradient.End();
$Height = $Height - 0.09074382416877569;
Track['Height'].Y.Interpolate($Height * (-1) -0.5, 0);

$Shikama + 7960;	#新網干駅分岐点


#R = (L**2 + D**2)/4D