Skip to content

Commit

Permalink
戸閉後の発車合図ブザーのタイミングをランダム化
Browse files Browse the repository at this point in the history
メトロ総合プラグイン CS-ATC でのみ有効。
  • Loading branch information
magicant committed Feb 13, 2020
1 parent 8c75c0f commit e1add79
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions Scenarios/magicant/randommap/DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ map フォルダーにある build.sh というシェルスクリプトファイ
- `$ats_update_m1_beacon_type` = この先の停止信号の位置を送るための地上子の種別番号。閉塞の 25, 50, 85, 130, 180, 280, 600 メートル手前に設置される。
- `$ats_update_1_beacon_value`, `$ats_update_2_beacon_value`, `$ats_update_m1_beacon_value` = 上記それぞれの地上子に送る値。
- `$ats_update_transponder` = 上記地上子のストラクチャーキー。
- `$conductor_timing_beacon_type` = 戸閉後に車掌が合図ブザーを鳴らすまでの時間を設定する地上子の種別番号。
- `$ballast_5m_count` = `ballast_5m_<ID>` ストラクチャーのバリエーション。

なお、距離の単位は全てメートルである。
Expand Down
2 changes: 1 addition & 1 deletion Scenarios/magicant/randommap/map_misc/init_csatc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ $ats_update_m1_beacon_type = 9999999;
$ats_update_m1_beacon_value = 0;
$ats_update_transponder = null;

// TODO 一駅ごとに、発車合図ブザーのタイミングを変更する
$conductor_timing_beacon_type = 33;
2 changes: 2 additions & 0 deletions Scenarios/magicant/randommap/map_misc/init_snp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ $ats_update_2_beacon_value = 0;
$ats_update_m1_beacon_type = 3;
$ats_update_m1_beacon_value = 9;
$ats_update_transponder = 'atsp_transponder';

$conductor_timing_beacon_type = 9999999;
2 changes: 2 additions & 0 deletions Scenarios/magicant/randommap/map_misc/init_swp2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ $ats_update_2_beacon_value = 2;
$ats_update_m1_beacon_type = 3;
$ats_update_m1_beacon_value = 9;
$ats_update_transponder = 'atsp_transponder';

$conductor_timing_beacon_type = 9999999;
5 changes: 5 additions & 0 deletions Scenarios/magicant/randommap/map_misc/station.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ BveTs Map 2.02
// $tasc_long_beacon_type = 前の駅の直後に置く TASC 地上子の番号
// $tasc_500m_beacon_type = 500 メートル手前に置く TASC 地上子の番号
// $tasc_11m_beacon_type = 11 メートル手前に置く TASC 地上子の番号
// $conductor_timing_beacon_type = 発車合図タイミングを設定する地上子の番号
// $_door_direction = ドアが開く方向
// $_underrun_limit = 許容されるアンダーラン距離
// $_overrun_limit = 許容されるオーバーラン距離
Expand Down Expand Up @@ -38,4 +39,8 @@ $distance - 500;
$distance - 11;
Beacon.Put($tasc_11m_beacon_type, -1, 11000);

// 発車合図タイミング設定地上子も置く
$distance - 11;
Beacon.Put($conductor_timing_beacon_type, -1, floor(abs(rand(8) - 3) + 0.5));

$previous_station_location = $distance;

0 comments on commit e1add79

Please sign in to comment.