From e46a5d343356b4052de57474e615307a1a6b6ce3 Mon Sep 17 00:00:00 2001 From: ElectricityMachine <47489506+ElectricityMachine@users.noreply.github.com> Date: Mon, 21 Nov 2022 19:16:01 +0000 Subject: [PATCH 1/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ed315da..63a78d3 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,11 @@ SG+ is a macro script written in Python that streamlines your signalling experie - Decreases setup and train clearing time significantly - Allows the signaller to focus on more important things than just clicking to change aspects - Quickly get in and out of a camera view (signals only for now) +- Use numpad 1-7 to copy zone opening messages to your clipboard (1 for A, 2 for B, etc.) ### Planned features: - Rewrite camera code to use the aspect code to detect the image - Implement a visual indicator -- Premade chat messages on numpad - TRTS Audio cue ### Known issues: From 73061bbe40b60d75dd338d7837de96eb515c77e1 Mon Sep 17 00:00:00 2001 From: PolaX3 <99782012+PolaX3@users.noreply.github.com> Date: Tue, 29 Nov 2022 23:13:16 +0700 Subject: [PATCH 2/5] Update script.py --- script.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.py b/script.py index 6d437be..146cbe0 100644 --- a/script.py +++ b/script.py @@ -184,7 +184,7 @@ def scan_for_dialog(type): if flag: return True else: - if debug: print("IMAGE DETECTION: Dialog not found") # If you encounter this but the dialog is on the screen, please submit an issue on GitHub detailing + if debug: print("IMAGE DETECTION: Dialog not found") # If you encounter this but the dialog is on the screen, please submit an issue on GitHub detailing the problem return False elif type == "station": if debug: print("None") @@ -194,10 +194,10 @@ def send_zone_message(zone): switch = { 'A': "Zone A (Stepford Area, Willowfield, Whitefield branches) is now under manual signalling control.", 'B': "Zone B (St. Helens Bridge, Coxly, Beaulieu Park corridor) is now under manual signalling control.", - 'C': "Zone C (Stepford Airport Area) is now under manual siganlling control.", + 'C': "Zone C (Stepford Airport Area) is now under manual signalling control.", 'D': "Zone D (Morganstown to Leighton West) is now under manual signalling control.", 'E': "Zone E (Llyn-by-the-Sea to Edgemead) is now under manual signalling control.", - 'F': "Zone F (Benton area + Waterline up to not including Airport West and Morganstown) is now under manual signalling control.", + 'F': "Zone F (Benton area + Waterline up to but not including Airport West and Morganstown) is now under manual signalling control.", 'G': "Zone G (James St. to Esterfield) is now under manual signalling control." } From c43bc37fdfc35f9814fe7d8d09ed9c113a75907f Mon Sep 17 00:00:00 2001 From: PolaX3 <99782012+PolaX3@users.noreply.github.com> Date: Thu, 1 Dec 2022 21:11:22 +0700 Subject: [PATCH 3/5] Update script.py --- script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.py b/script.py index 146cbe0..17f6ef9 100644 --- a/script.py +++ b/script.py @@ -1,5 +1,5 @@ # ElectricityMachine -# Version: 0.2.8 +# Version: 0.2.9 # Description: A script to automate tasks when signalling for SCR # Keybinds: 1 2 3 for Danger, Caution, and Proceed signal settings. C for Camera # How to use: Hover over a signal and press the corresponding keybind to perform the action @@ -22,7 +22,7 @@ starttime = time.time() colorama.init() # Needed to work on Windows devices, see colorama docs -version = "v0.2.8" +version = "v0.2.9" key_wait = 0 backspace_wait = 0 dialog_wait = 0.085 From 89961a7c5d2ea1600fd5a7354ddff9ce472e1c04 Mon Sep 17 00:00:00 2001 From: PolaX3 <99782012+PolaX3@users.noreply.github.com> Date: Thu, 1 Dec 2022 21:33:40 +0700 Subject: [PATCH 4/5] Update README.md --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 63a78d3..3f10a82 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Reproducing this issue has been tricky, it seems to work some times but not othe ### Description -SG+ is a macro script written in Python that streamlines your signalling experience by allowing you to change a signal aspect or open a camera view with only one button press. +SG+ is a macro script written in Python that streamlines your signalling experience by allowing you to change a signal aspect, announce your signalling presence, or open a camera view with only one button press. ### Will this get me demoted? Am I safe to use this? **There is nothing to indicate you will be demoted or banned for using this script.** The onus is still on the signaller to signal trains in a safe and proper manner. It is not an exploit and does not automate signalling entirely. It is just to aid the signaller in their task of efficiently running their zone and keeping time. If you have had trouble with a member of staff as a result from using this script, **contact me immediately (scroll down) or open an issue.** @@ -21,13 +21,13 @@ SG+ is a macro script written in Python that streamlines your signalling experie - Hover over a signal and press 1, 2, or 3, corresponding to the aspect you wish to change the signal to. - Hover over a signal and press C to enter camera view. Once in camera view, press C again to exit. - Press F1 to enable or disable the script. You only need to do this if you are chatting or typing things to prevent false activations. +- Use numpad 1-7 to copy zone opening messages to your clipboard ### Features -- Only one button press is needed to change a signal aspect +- Only one button press is needed to change a signal aspect or copy zone opening messages to your clipboard - Decreases setup and train clearing time significantly - Allows the signaller to focus on more important things than just clicking to change aspects - Quickly get in and out of a camera view (signals only for now) -- Use numpad 1-7 to copy zone opening messages to your clipboard (1 for A, 2 for B, etc.) ### Planned features: - Rewrite camera code to use the aspect code to detect the image @@ -35,7 +35,7 @@ SG+ is a macro script written in Python that streamlines your signalling experie - TRTS Audio cue ### Known issues: -- Sometimes, pressing C to enter the camera view of a signal does not work correctly. This is due to changes in 1.9 with the signalling interface and requires a rewrite to make fully functional. Because this is a low-priority feature of this script, especially because the cameras have rendering bugs in the current version, it will not be fixed for a while until the cameras in-game are fixed. +- Sometimes, pressing C to enter the camera view of a signal does not work correctly. This is due to changes in 1.9 with the signalling interface and requires a rewrite to make it fully functional. Because this is a low-priority feature of this script, especially because the cameras have rendering bugs in the current version, it will not be fixed for a while until the cameras in-game are fixed. ### Controls: @@ -47,6 +47,7 @@ SG+ is a macro script written in Python that streamlines your signalling experie |2|Change currently hovered signal to Caution| |3|Change currently hovered signal to Proceed| |C|Enter camera mode of currently hovered signal. If you are already in camera mode, it will exit camera mode| +|Numpad 1-7|Copy the opening message for each zones (1 for zone A, 2 for zone B, etc.)| --- ### **Installation** @@ -67,4 +68,4 @@ SG+ is a macro script written in Python that streamlines your signalling experie By using this script, you MUST adhere to the license terms in the LICENSE file. ### Contact information -If you have issues or need to contact me, please reach me on Discord at ElectricityMachine (hashtag) One Seven Five Three. The Discord username is spelt that way to avoid scrapers and bots. +If you have issues or need to contact me, please reach me on Discord at ElectricityMachine (hashtag) One Seven Five Three. The Discord username is spelt this way to avoid scrapers and bots. From 8d379d374181b475ef8e6252e44b8de45727b2a9 Mon Sep 17 00:00:00 2001 From: PolaX3 <99782012+PolaX3@users.noreply.github.com> Date: Thu, 1 Dec 2022 21:36:40 +0700 Subject: [PATCH 5/5] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3f10a82..cb66f13 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

ATTENTION: A new SCR update has broken the functionality of the script. If you notice a "Desk Exit" dialog appear when you change a signal, please try a different server or don't use the script.

-Reproducing this issue has been tricky, it seems to work some times but not other times. If you are affected by the issue, remember it is NOT caused by me, but rather an SCR/ROBLOX update. +Reproducing this issue has been tricky, it seems to work sometimes but not other times. If you are affected by the issue, remember that it is NOT caused by me, but rather an SCR/ROBLOX update.

SCR: SG+

@@ -26,7 +26,7 @@ SG+ is a macro script written in Python that streamlines your signalling experie ### Features - Only one button press is needed to change a signal aspect or copy zone opening messages to your clipboard - Decreases setup and train clearing time significantly -- Allows the signaller to focus on more important things than just clicking to change aspects +- Allows the signaller to focus on more important things rather than just clicking to change aspects - Quickly get in and out of a camera view (signals only for now) ### Planned features: