Skip to content

Commit

Permalink
出発時刻設定試験
Browse files Browse the repository at this point in the history
  • Loading branch information
magicant committed Dec 26, 2020
1 parent 98eedc1 commit 0823138
Show file tree
Hide file tree
Showing 5 changed files with 223 additions and 186 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
* 5a. ATC 試験
* 5b. swp2 試験
* 5c. 自動発進試験
* 5d. 出発時刻設定試験
6. ORP 試験
7. 停止位置修正試験

Expand Down
188 changes: 2 additions & 186 deletions Scenarios/magicant/autopilot_signal/map_main.txt
Original file line number Diff line number Diff line change
@@ -1,188 +1,4 @@
BveTs Map 2.02

Station.Load('stations.csv');
Structure.Load('structures\structures.csv');
Signal.Load('signals.csv');

Section.SetSpeedLimit(0, 25, 45, 75, 100);

0;
Background.Change('bg');
//Repeater['ground'].Begin(0, 0, -0.5, 0, 0, 0, 0, 3, 50, 50, 'ground_concrete_50');
Repeater['ballast'].Begin0(0, 3, 5, 5, 'ballast_5');
Repeater['ballast_l'].Begin0(0, 1, 25, 25, 'ballast_l_25');
Repeater['ballast_r'].Begin0(0, 1, 25, 25, 'ballast_r_25');
Repeater['wirepoles'].Begin(0, 0, 0, 0, 0, 180, 0, 0, 0, 40, 'wirepole_inner', 'wirepole_outer');
Repeater['trolleywire'].Begin(0, 0, 0, 0, 0, 0, 0, 1, 40, 40, 'trolleywire_40a', 'trolleywire_40b');

// 'fence_l' は map_station.txt で置く
Repeater['fence_r'].Begin(0, 4, 0, 0, 0, 0, 0, 1, 5, 5, 'fence_5');
Repeater['railsideset_l'].Begin(0, -7.5, 0, 0, 0, 0, 0, 0, 50, 50,
'railsideset_l_1_50', 'railsideset_l_2_50');
Repeater['houses_l'].Begin(0, -20, 0, 15, 0, 0, 0, 0, 50, 25,
'house_j', 'house_i', 'house_h', 'house_g', 'house_f',
'house_e', 'house_d', 'house_c', 'house_b', 'house_a',
'house_t', 'house_s', 'house_r', 'house_q', 'house_p',
'house_o', 'house_n', 'house_m', 'house_l', 'house_k');
Repeater['railsideset_r'].Begin(0, 7, 0, 0, 0, 0, 0, 0, 50, 50,
'railsideset_r_1_50', 'railsideset_r_2_50',
'railsideset_r_3_50', 'railsideset_r_1_50',
'railsideset_r_4_50');
Repeater['houses_r'].Begin(0, 20, 0, 15, 0, 0, 0, 0, 50, 25,
'house_a', 'house_b', 'house_c', 'house_d', 'house_e',
'house_f', 'house_g', 'house_h', 'house_i', 'house_j',
'house_k', 'house_l', 'house_m', 'house_n', 'house_o',
'house_p', 'house_q', 'house_r', 'house_s', 'house_t');

Beacon.Put(1011, -1, 0);
Beacon.Put(1011, -1, 1025);
Beacon.Put(1011, -1, 2045);
Beacon.Put(1011, -1, 3075);
Beacon.Put(1011, -1, 4100);

Station['station0'].Put(-1, -2, 2);
$distance = distance;
include 'map_station.txt';

$distance + 26;
Section.Begin(0, 2, 4);
$distance = distance;
include 'map_signal_85.txt';

$distance + 400;
Section.Begin(0, 2, 4);
$distance = distance;
include 'map_signal_280.txt';

$distance + 400;
Section.Begin(0, 2, 4);
$distance = distance;
include 'map_signal_280.txt';

distance + 215;
Station['station1'].Put(-1, -2, 2);
$distance = distance;
include 'map_station.txt';

$distance + 26;
Section.Begin(0, 2, 4);
$distance = distance;
include 'map_signal_180.txt';

$distance + 700;
Section.Begin(0, 2, 3);
$distance = distance;
include 'map_signal_600.txt';

$distance + 300;
Section.Begin(0, 2);
$distance = distance;
include 'map_signal_280.txt';

$distance + 215;
Station['station2'].Put(-1, -2, 2);
$distance = distance;
include 'map_station.txt';

$distance + 26;
Section.Begin(0, 2, 4);
$distance = distance;
include 'map_signal_180.txt';

$distance + 601;
Section.Begin(0, 2, 2, 3, 4);
$distance = distance;
include 'map_signal_600.txt';

$distance + 200;
Section.Begin(0, 1, 2, 4);
$distance = distance;
include 'map_signal_180.txt';

$distance + 100;
Section.Begin(0, 2, 4);
$distance = distance;
include 'map_signal_85.txt';
Beacon.Put(1012, 0, 420);
Beacon.Put(1012, 1, 4320);
Structure['transponder_p'].Put(0, 0, 0, -3, 0, 0, 0, 3, 0);

PreTrain.Pass('12:04:41');

$distance + 215;
Station['station3'].Put(-1, -2, 2);
$distance = distance;
include 'map_station.txt';

$distance + 26;
Section.Begin(0, 2, 3, 4);
$distance = distance;
// include 'map_signal_180.txt';
Signal['signal_5'].Put(0, 0, -2, 3.8);
Structure['signal_pole'].Put(0, -2, 3.3, 0, 0, 0, 0, 0, 0);
Beacon.Put(1012, 1, 43320);
Structure['transponder_p'].Put(0, 0, 0, -3, 0, 0, 0, 3, 0);

PreTrain.Pass('12:04:42');

$distance + 500;
Section.Begin(0, 2, 3, 3, 4);
$distance = distance;
// include 'map_signal_280.txt';
Signal['signal_5'].Put(0, 0, -2, 3.8);
Structure['signal_pole'].Put(0, -2, 3.3, 0, 0, 0, 0, 0, 0);
Beacon.Put(1012, 1, 4320);
Beacon.Put(1012, 2, 4320);
Structure['transponder_p'].Put(0, 0, 0, -3, 0, 0, 0, 3, 0);

PreTrain.Pass('12:05:28');

$distance + 400;
Section.Begin(0, 2, 3, 4);
$distance = distance;
// include 'map_signal_280.txt';
Signal['signal_5'].Put(0, 0, -2, 3.8);
Structure['signal_pole'].Put(0, -2, 3.3, 0, 0, 0, 0, 0, 0);
// Beacon.Put(1012, 1, 4320); // 手前に設置済み
// Structure['transponder_p'].Put(0, 0, 0, -3, 0, 0, 0, 3, 0);

PreTrain.Pass('12:05:55');

$distance + 500;
Section.Begin(0, 2, 3, 4);
$distance = distance;
// include 'map_signal_280.txt';
Signal['signal_5'].Put(0, 0, -2, 3.8);
Structure['signal_pole'].Put(0, -2, 3.3, 0, 0, 0, 0, 0, 0);
Beacon.Put(1012, 1, 4200);
Structure['transponder_p'].Put(0, 0, 0, -3, 0, 0, 0, 3, 0);

PreTrain.Pass('12:06:08');

$distance + 215;
Station['station4'].Put(-1, -2, 2);
$distance = distance;
include 'map_station.txt';

$distance + 26;
Section.Begin(0, 0, 2, 4);
$distance = distance;
// include 'map_signal_280.txt';
Signal['signal_5'].Put(0, 0, -2, 3.8);
Structure['signal_pole'].Put(0, -2, 3.3, 0, 0, 0, 0, 0, 0);
Beacon.Put(1012, 1, 4320);
Structure['transponder_p'].Put(0, 0, 0, -3, 0, 0, 0, 3, 0);

PreTrain.Pass('12:06:30');

$distance + 400;
Section.Begin(0, 2, 3, 4);
$distance = distance;
// include 'map_signal_280.txt';
Signal['signal_5'].Put(0, 0, -2, 3.8);
Structure['signal_pole'].Put(0, -2, 3.3, 0, 0, 0, 0, 0, 0);
Beacon.Put(1012, 1, 4320);
Structure['transponder_p'].Put(0, 0, 0, -3, 0, 0, 0, 3, 0);

PreTrain.Pass('12:06:35');

$door_open = 1;
include 'map_route.txt';
16 changes: 16 additions & 0 deletions Scenarios/magicant/autopilot_signal/map_main_no_door_open.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
BveTs Map 2.02

$door_open = 0;
include 'map_route.txt';

$station0 - 2;
Beacon.Put(1032, -1, (12 * 60 + 0) * 60 + 10); // 12:00:10
$station1 - 2;
Beacon.Put(1032, -1, (12 * 60 + 1) * 60 + 30); // 12:01:30
$station2 - 2;
Beacon.Put(1032, -1, -1); // すぐ出発可能
Beacon.Put(1003, -1, 10); // 自動発進有効化
$stop_signal - 85;
// Beacon.Put(..., -1, (12 : 60 + 4) * 60 + 42); // 12:04:42
$station3 - 2;
Beacon.Put(1032, -1, (12 * 60 + 5) * 60 + 31); // 12:05:31
Loading

0 comments on commit 0823138

Please sign in to comment.