Skip to content

Commit

Permalink
Prepare: #26 (TODO)
Browse files Browse the repository at this point in the history
  • Loading branch information
telk5093 committed Mar 3, 2024
1 parent 6278abe commit 35cc272
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 7 deletions.
32 changes: 25 additions & 7 deletions ko_signal_set.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ grf {
name : string(STR_GRF_NAME_WITH_VER);
desc : string(STR_GRF_DESC);
url : string(STR_GRF_URL);
version : 5;
version : 1210;
min_compatible_version : 1;

param 1 {
// is Realistic
is_realistic {
Expand All @@ -21,7 +21,7 @@ grf {
bit: 0;
def_value: 1;
}

// Use TVM
use_tvm {
type: bool;
Expand All @@ -30,7 +30,7 @@ grf {
bit: 2;
def_value: 1;
}

// Use caution signals(Y and YG) together
use_caution_signal {
type: bool;
Expand Down Expand Up @@ -78,7 +78,7 @@ grf {
bit: 3;
def_value: 0;
}

// for path signal
use_blue_path {
type: bool;
Expand All @@ -87,7 +87,7 @@ grf {
bit: 4;
def_value: 0;
}

// for Oneway path signal
use_blue_oneway_path {
type: bool;
Expand All @@ -96,7 +96,7 @@ grf {
bit: 5;
def_value: 0;
}

// for programmable signal
use_blue_programmable {
type: bool;
Expand All @@ -106,6 +106,24 @@ grf {
def_value: 0;
}
}
/*
// Force TVM signal side
param 3 {
force_tvm_signal_side {
type: int;
name: string(STR_PARAM_FORCE_TVM_SIGNAL_SIDE_NAME);
desc: string(STR_PARAM_FORCE_TVM_SIGNAL_SIDE_DESC);
min_value: 0;
max_value: 2;
def_value: 0;
names: {
0: string(STR_PARAM_TVM_SIGNAL_SIDE_TRAFFIC_SIDE);
1: string(STR_PARAM_TVM_SIGNAL_SIDE_LEFT_SIDE);
2: string(STR_PARAM_TVM_SIGNAL_SIDE_RIGHT_SIDE);
};
}
}
*/
}

// Notice
Expand Down
5 changes: 5 additions & 0 deletions lang/english.lng
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ STR_PARAM_USE_TVM_NAME :Change semaphore block signal
STR_PARAM_USE_TVM_DESC :Change semaphore block signal to TVM block sign which is used for high speed rails, which is the same graphics for red and green state. (default: enabled)
STR_PARAM_USE_CAUTION_SIGNALS_NAME :Use caution signals
STR_PARAM_USE_CAUTION_SIGNALS_DESC :Use deceleration(YG) and caution(Y) signals for electric combo, exit signals respectively. (default: enabled)
# STR_PARAM_FORCE_TVM_SIGNAL_SIDE_NAME :Position of the TVM signal's side
# STR_PARAM_FORCE_TVM_SIGNAL_SIDE_DESC :Force TVM signal's position regardless of the driving traffic side. (default: As driving traffic side)
# STR_PARAM_TVM_SIGNAL_SIDE_TRAFFIC_SIDE :As driving traffic side
# STR_PARAM_TVM_SIGNAL_SIDE_LEFT_SIDE :Left
# STR_PARAM_TVM_SIGNAL_SIDE_RIGHT_SIDE :Right
STR_PARAM_USE_BLUE_AS_OPEN_BLOCK_NAME :Use blue signal for block signal
STR_PARAM_USE_BLUE_AS_OPEN_BLOCK_DESC :If enabled, use blue signal for block signal instead of green. (default: disabled)
STR_PARAM_USE_BLUE_AS_OPEN_ENTRY_NAME :Use blue signal for entry signal
Expand Down
5 changes: 5 additions & 0 deletions lang/korean.lng
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ STR_PARAM_USE_TVM_NAME :구식 폐색 신호기를 TVM
STR_PARAM_USE_TVM_DESC :구식 폐색 신호기를 고속철도에서 사용하는 TVM 폐색 표지로 변경합니다. TVM 폐색 표지는 진행/정지 신호가 구분되지 않습니다. (기본값: 켬)
STR_PARAM_USE_CAUTION_SIGNALS_NAME :주의 신호 사용
STR_PARAM_USE_CAUTION_SIGNALS_DESC :전자식 복합, 출구 신호기의 진행 신호를 각각 감속(YG), 주의(Y) 신호로 변경합니다. (기본값: 켬)
# STR_PARAM_FORCE_TVM_SIGNAL_SIDE_NAME :TVM 신호 위치
# STR_PARAM_FORCE_TVM_SIGNAL_SIDE_DESC :TVM 신호기의 위치를 통행 방향과 상관없이 강제할 수 있습니다 (기본값: 통행 방향)
# STR_PARAM_TVM_SIGNAL_SIDE_TRAFFIC_SIDE :통행 방향
# STR_PARAM_TVM_SIGNAL_SIDE_LEFT_SIDE :좌측
# STR_PARAM_TVM_SIGNAL_SIDE_RIGHT_SIDE :우측
STR_PARAM_USE_BLUE_AS_OPEN_BLOCK_NAME :폐색 신호기에 청색 신호 사용
STR_PARAM_USE_BLUE_AS_OPEN_BLOCK_DESC :이 설정을 켜면, 폐색 신호기에 녹색 신호 대신 청색 신호를 사용합니다. (기본값: 끔)
STR_PARAM_USE_BLUE_AS_OPEN_ENTRY_NAME :입구 신호기에 청색 신호 사용
Expand Down
1 change: 1 addition & 0 deletions src/semaphore.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ replacenew(PRE_SIGNAL_SEMAPHORE_PBS, "", 176) {

// TVM
if (use_tvm) {
// if (force_tvm_signal_side == 2 || (force_tvm_signal_side == 0 && traffic_side == TRAFFIC_SIDE_RIGHT)) {
if (traffic_side == TRAFFIC_SIDE_RIGHT) {
replacenew(PRE_SIGNAL_SEMAPHORE_PBS, "", 48) {
// Just replace block signal only
Expand Down

0 comments on commit 35cc272

Please sign in to comment.