[Script] Torn Race Manager | Tools & Userscripts | TORN

[Script] Torn Race Manager

    • GNSC4 [268863]
    • Role: Civilian
    • Level: 100
    • Posts: 251
    • Karma: 123
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 06:45:00 - 06/03/25 (1 month ago)
    |
    Last replied 18:14:50 - 27/03/25 (22 days ago)

    I have written this script loosely based on Shlefter Script


     

    Features List:

     

    • Auto Join Race based on Preset
    • Create Race with 1 Click after Preset Creation
    • Alerts when you are not actively in a race or waiting for a race to start
      • Alerts are clickable to show a button layout of your create a race presets to create a race from anywhere in torn.
      • Race Alerts must be enabled in the Race Config GUI
    • Filters for Custom Racing page
    • In Tab Custom Race Refreshing (no need to reload the full page to find races anymore)
    • Race Creation URL is handed without loading the URL so you don't run into refresh issues failing to create a race on refresh
    • Amazing GUI Graphics
    • Key Parts Displayed in Car List Dropdown for easier determination of which car to use.
    • One Click Racing now works again for PDA
    • One Click Offical Races

     


     

    Known Bugs:

     

    • None Currently Known

     


     

    Installation:



    Tested On Chrome with TamperMonkey and on Torn PDA


    Torn PDA
    is now Fully Compatible as long as you install it using the link below. 

    Link to Script

    903bfd17a72949c85f8fb66cb1297cbb.png

    bcdf7dfc068e52296c7dac24c4cfa258.png

    71571ea2dbf6331905073d5235f50145.png

    Last edited by GNSC4 on 18:10:58 - 27/03/25 (22 days ago)
    • GNSC4 [268863]
    • Role: Civilian
    • Level: 100
    • Posts: 251
    • Karma: 123
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:16:12 - 06/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Patch Notes

     



    2.35   Changed GMT for TCT

     



    3.0.3  Major Version Update Added 1 Click Race Buttons

     


     

    3.1.1 

    • Updated the GUI to look nicer and be scrollable for smaller screens.
    • When the GUI opens, the Torn Banner is not clickable, nor can you scroll the background. This change was made for mobile users predominately
    • Removed pop-ups on Race Creation
      Race Creation now opens a new tab, so you don't have a tab open that continues to create the race (close this tab after the race is created or navigate away)
    • Fully Compatible with Torn PDA as long as GMforPDA is installed and set to run at start

     


     

    3.1.5

    • Added Fetch Url instead of creating a new tab for race creation 
    • Added Status Bar for Quick Buttons to display Success or Error Messages on creation
    • Made race name requirement more obvious and removed fall back default name

     


     

    3.1.6

    • Updated namespace for better compatibility with Greasyfork
    • Added page refresh 1.5 sec after race creation, allowing time for user to see Success or error message in status box before refresh

     


     

    3.5.0

    • Fixed Timing issue with Presets
    • Added Race Filters to Custom Events Page
    • Added Presets for Auto Join
    • Added Auto Join Feature with Selective GUI
    • Added You are not in a race Alert to the top of all Pages
      • Alert is clickable and shows presets for fast-launching races from any page
    • Added a lot of debug code to F12 console just in case there are any issues with the new features (will remove a few days after release if no issues are reported)

     

     



    3.5.1

    • Fixed Auto Join error on loading from non-custom Race Page
    • Known Bug - PDA support is broken. looking into it as quickly as possible to get a patch released.
      • Auto Join Race is working on PDA, Detecting Race started and Creating 1 click races is not functioning on PDA at the moment working on it as quickly as possible
      • PDA Auto Join drop-down currently allows you to choose more than one track, this does not work as it was not an intended feature. Only select one track per preset.

     


     

    3.5.8

    • Fixed time issue (Again, sorry!)  
    • Fixed GUI that doesn't always show the save option for Auto Join.  
    • Fixed issue where Cars were not always found.  
    • Added Cars ID to the saved presets instead of searching for it each time (saving API key usage; why didn't I do this from the start?). 
    • Fixed Creating Races from inside of the GUI 
      • PDA is still bugged for presets; I'm trying to fix it, but I thought I'd release this update for PC while I continue to work on Torn PDA.

     



    3.5.9

    • Added Key Parts to the Car Dropdown - To determine which car is which when you have multiple of the same car type

     


     

    3.6.1

    • Renamed Script to Torn Race Manager to align with all the added features.
    • Added ability to minimize the Preset GUI on the race page.

      • To Maximize the GUI after minimizing you must click the top of the maximize button (This is a bug I'll fix it but I'm going to be out of town for 4 days so I wanted to get this out before I left)

     


     

    3.6.3 

    • Fixed Quick Launch Presets for PDA

     


     

    3.6.12

    • Fixed Race Alerts for PDA
    • Added delay before checking for Race Alerts so that it doesn't appear before checking for a race.
    • New Race Detection Method that is more reliable but requires Icons turned on if disabled with a script or settings it will not function

     


     

    3.6.26

    • Added some changes for mobile or extremely small screens to make the GUI's be centered on the screen and stay within screen borders

     


     

    3.7.0

    • Added Support for Official Race Presets
    • Modified the CSS styling to match for a better presentation
    • Added Max and Min Driver Filters
    • Added a Hide Full Races Function
    • Added a Set Min and Max Drivers to Auto Join Function

     


     

    3.7.1

    • Fixed Minimize/Maximize Button not being pressable across the entire button

     


     

    3.7.3

    • Fixed a bug in Official Race Creation causing it to wait for you to pick a car. Now, it correctly picks the car required to start the race.
    • Kwack [2190604] fixed Torn PDA compatibility we no longer require GMforPDA
      • If you are already using the script on Torn PDA you must delete the script and install from the new Script Link for it to be applied.

     



    3.7.5

    • Fixed Official Race Bug added last update

     


     

    3.7.8

    • Changed some GUI Elements
    • Brought Code further into Torn Code Compliance

     


     

    3.7.10

    • Fix CSS issue with GUI
    Last edited by GNSC4 on 14:10:45 - 31/03/25 (18 days ago)
    • Syder [2867594]
    • Role: Civilian
    • Level: 91
    • Posts: 19
    • Karma: 12
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:27:05 - 06/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    4a0cca9b-77b5-4671-8916-6669935ffea1-2867594.png

    Click Race Config  on the raceway screen (shown above)

    And the screen shown below will pop up allowing you to make presets for your own custom races. e2435a3a-7340-4dd4-a24b-b4f98a80ebdc-2867594.png

    Very useful tool.

    Last edited by Syder on 07:01:36 - 08/03/25 (1 month ago)
    • GNSC4 [268863]
    • Role: Civilian
    • Level: 100
    • Posts: 251
    • Karma: 123
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 04:51:38 - 08/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Script updated Please give feedback or feature requests

    • EuSouODougras [2480891]
    • Role: Civilian
    • Level: 100
    • Posts: 185
    • Karma: 176
    • Last Action: 45 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:59:16 - 08/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Awesome work! Simple and very very very effective!!!

     

    Easy to set up different presets and even easier to create and join races with a single click!

     

    Thank you for that!

    • GNSC4 [268863]
    • Role: Civilian
    • Level: 100
    • Posts: 251
    • Karma: 123
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 06:00:30 - 09/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Bump

    • Dooxo [116017]
    • Role: Civilian
    • Level: 91
    • Posts: 483
    • Karma: 1,222
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:23:40 - 09/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Where can I see my car ID?

     

    I have several Edomondo's and don't know which is which...

    Last edited by Dooxo on 15:26:18 - 09/03/25 (1 month ago)
    • GNSC4 [268863]
    • Role: Civilian
    • Level: 100
    • Posts: 251
    • Karma: 123
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 05:04:53 - 10/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Dooxo [116017]

    Where can I see my car ID?

     

    I have several Edomondo's and don't know which is which...

    You can see them by going to start race and hovering over the pick this car option it will tell you the ID in the link generated

    Another option is to generate a private race with each one, one at a time to learn their ID's

    • ElbowFalls [3241676]
    • Role: Civilian
    • Level: 58
    • Posts: 6
    • Karma: 6
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:38:32 - 10/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Very nice, well done. Thanks.

    • Scooper54 [2594546]
    • Role: Civilian
    • Level: 92
    • Posts: 3,319
    • Karma: 750
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:00:02 - 10/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Not sure what I did wrong but when I set up an overnight race preset to start at 1am it started as soon as a 2nd person joined

    • GNSC4 [268863]
    • Role: Civilian
    • Level: 100
    • Posts: 251
    • Karma: 123
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 04:16:16 - 11/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Scooper54 [2594546]

    Not sure what I did wrong but when I set up an overnight race preset to start at 1am it started as soon as a 2nd person joined

    Thank you. After looking at the code. I found my mistake. It seems like I somehow broke the UNIX timestamp conversion during one of the updates. I am fixing it in this update.

    • GNSC4 [268863]
    • Role: Civilian
    • Level: 100
    • Posts: 251
    • Karma: 123
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 02:51:20 - 12/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Update 3.5.0 Released

    • GNSC4 [268863]
    • Role: Civilian
    • Level: 100
    • Posts: 251
    • Karma: 123
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 06:46:26 - 12/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    heading to bed will have an update for PDA tomorrow. for now, auto join does work so I suggest joining others races until I can get the patch out sorry for the inconvenience 

    • Lightor [2215463]
    • Role: Moderator
    • Level: 100
    • Posts: 2,763
    • Karma: 2,410
    • Last Action: 7 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:02:23 - 12/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Dooxo [116017]

    Where can I see my car ID?

     

    I have several Edomondo's and don't know which is which...

    GNSC4 [268863]

    You can see them by going to start race and hovering over the pick this car option it will tell you the ID in the link generated

    Another option is to generate a private race with each one, one at a time to learn their ID's

    The other one click race script checks the cars for their setup (e.g. TL3, DS3, etc.) which seems more intuitive than a car ID, perhaps you're able to add that as well?

    jlt-championshipweek.gif

    • GNSC4 [268863]
    • Role: Civilian
    • Level: 100
    • Posts: 251
    • Karma: 123
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:30:57 - 12/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Dooxo [116017]

    Where can I see my car ID?

     

    I have several Edomondo's and don't know which is which...

    GNSC4 [268863]

    You can see them by going to start race and hovering over the pick this car option it will tell you the ID in the link generated

    Another option is to generate a private race with each one, one at a time to learn their ID's

    Lightor [2215463]

    The other one click race script checks the cars for their setup (e.g. TL3, DS3, etc.) which seems more intuitive than a car ID, perhaps you're able to add that as well?

    I’ll look into how to apply that after as soon as I get PDA working again

    • Girthmasterr [2908290]
    • Role: Civilian
    • Level: 81
    • Posts: 455
    • Karma: 676
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 04:38:59 - 13/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Set a start time in a preset for 0600.

    Race decided instead it wanted to start as soon as 3 people joined.

    c6310d34-2c37-48bb-b5b2-a5e6e1ce4364-2908290.png

    • GNSC4 [268863]
    • Role: Civilian
    • Level: 100
    • Posts: 251
    • Karma: 123
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:31:17 - 13/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Girthmasterr [2908290]

    Set a start time in a preset for 0600.

    Race decided instead it wanted to start as soon as 3 people joined.

    c6310d34-2c37-48bb-b5b2-a5e6e1ce4364-2908290.png

    looks like when I released 3.5.1, I mistakenly edited an older version of the code reintroducing the time bug, ill get that fixed right now

    Last edited by GNSC4 on 15:26:25 - 14/03/25 (1 month ago)
    • GNSC4 [268863]
    • Role: Civilian
    • Level: 100
    • Posts: 251
    • Karma: 123
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 01:54:31 - 14/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    I have all the PC issues fixed, working on PDA issues right now then I’ll be releasing an update, after that I’ll work on adding part descriptions to the car selection section for easier identification of the vehicles

    • GNSC4 [268863]
    • Role: Civilian
    • Level: 100
    • Posts: 251
    • Karma: 123
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:19:30 - 14/03/25 (1 month ago)
    Post link copied to clipboard Copy post link

    Update Released; add Car Parts to Code

    Last edited by GNSC4 on 17:15:07 - 16/03/25 (1 month ago)
    • GNSC4 [268863]
    • Role: Civilian
    • Level: 100
    • Posts: 251
    • Karma: 123
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:13:20 - 19/03/25 (30 days ago)
    Post link copied to clipboard Copy post link

    Added ability to minimize the Preset GUI on race page, to Maximize the GUI after minimizing you must click the top of the maximize button (This is a bug I'll fix it but I'm going to be out of town for 4 days so wanted to get this out before I left)

    Last edited by GNSC4 on 08:15:29 - 19/03/25 (30 days ago)
Reply
Thread Title: