[Script] Racing UI/UX Enhancements | Racing | TORN
[Script] Racing UI/UX Enhancements
    • Lugburz [2386297]
    • Role: Civilian
    • Level: 68
    • Posts: 760
    • Karma: 1167
    • Last Action: Now
      • 1
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 17:11:06 - 27/04/20 (1 year ago)
    |
    Last replied 21:13:41 - 10/12/21 (1 month ago)
    Since I've added more functionality to the script, I decided to rename it.
    Please delete the old "Show current speed" script after you've installed the updated version.

    https://github.com/f2404/torn-userscripts/raw/master/racing_show_speed.user.js

    Please rate the thread if you like the script!
    New functionality/change requests are welcome. Donations are greatly appreciated as well. ;)


    The script adds a few quality of life UI/UX enhancements to the racing page.

    - Version 0.5.4 allows to fetch racers' RS from Torn API. Enter your API key under "Settings" and click "Save".



    - Version 0.4.1 displays your last RS gain (that is also displayed by the notification).



    - Version 0.4.0 adds support for custom car skins. Big thanks to Prezze, Brainslug, and others!
    See the following post for details and screenshots: https://www.torn.com/forums.php#/p=threads&f=21&t=16157684&b=0&a=0&start=60&to=21635817

    - Version 0.3.4 displays a link to the current race as soon as you have created or joined one.
    This functionality would be most useful for tournament directors who need to collect links for all races in a tournament.



    - Version 0.3.0 adds "Share racing skill with others" functionality originally implemented but discontinued by Sulsay.
    Since version 0.3.3, outdated (more than a week old) RS values are shown in orange, to highlight the fact that the data may be inaccurate.
    You need to explicitly enable the feature under "Settings"!
    Discontinued since 0.5.0.



    - Version 0.2.6 shows best lap for each driver.

    Version 0.2.5 adds "Settings" which is a convenient way for those disabling features of the script they do not like (such as showing current speed or race results).
    There's no need to edit the script code anymore!

    - Version 0.2.3 adds "Download results as CSV" functionality. The link appears as soon as results become available.
    It also shows places next to resulting times for the participants.

    - Version 0.2.0 adds functionality of showing race results as soon as a race has started.

    Please note:
    Results are shown when the race has already started. This means that you cannot leave the race or change cars at this point, or gain any other unfair advantage by using this script. You will still have to wait until the race ends, there's no way to quit it. This functionality is just for fun!



    - Shows more precise racing skill value - up to 4 digits after the decimal point. Hopefully, this will allow for better tracking of the racing skill progress, especially at higher numbers where Torn only shows 1 digit after the point.

    - Shows the exact time when you will be able to join an official race after you left the previous one. The Torn message is very vague so this change allows for better time management.



    - Displays a notification when you may join an official race after you left the previous one.
    - Displays a notification when your racing skill increases, showing the exact number.
    The notifications can be disabled in the settings if you don't like them.



    - Shows car's current speed (mph) when racing.
    This functionality is just for fun as the speed calculations are probably largely inaccurate since they use time ticks and completion percentage, which is why I wouldn't recommend using this script to decide which car performs better on a certain track.
    I've tried a few tick values and found 1 second to be the most reliable (although definitely far from perfect).

    Last edited by Lugburz on 12:36:05 - 01/11/21
    • Lugburz [2386297]
    • Role: Civilian
    • Level: 68
    • Posts: 760
    • Karma: 1167
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:14:55 - 27/04/20 (1 year ago)
    Post link copied to clipboard Copy post link
    I'm also working on displaying finish time for the race but the data I'm seeing so far is controversial... Sometimes the display finish time misses the actual time by a few seconds but at other times the difference is a few minutes.
    Last edited by Lugburz on 17:15:15 - 27/04/20
    • ToxicMonkeyMZC [712861]
    • Role: Civilian
    • Level: 100
    • Posts: 1101
    • Karma: 2304
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:24:29 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link
    Very cool +1

    Forum sigs are for noobs.

    • Jairyll [2167612]
    • Role: Moderator
    • Level: 93
    • Posts: 1058
    • Karma: 1751
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:12:43 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link
    Nice work again <3

    • AR53_HOL [2430424]
    • Role: Civilian
    • Level: 68
    • Posts: 656
    • Karma: 545
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:58:42 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link
    That's awesome, keep up the good work

    OWNER OF 

    Terror Bytes signature

     

     

     

     

    • ToxicMonkeyMZC [712861]
    • Role: Civilian
    • Level: 100
    • Posts: 1101
    • Karma: 2304
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:54:17 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link
    This is a very cool thing.  I can now see my RS changing from race to race (e.g.  100 lap Speedway was a +0.012 gain).
    Awesome analytical tool. I had no idea Torn had this data readable somewhere.

    We can now see if drug addiction affects skill gains, or racing the wrong car. Maybe 100 lap Docks doesn't give the best skill gain? Now we will find out these things :)

    There's a lot of data to be had here and analysed :D

    Very cool and awesome thing you have done here, Lugburz [2386297].

    I salute you!

    Forum sigs are for noobs.

    • Prezze [2121612]
    • Role: Civilian
    • Level: 16
    • Posts: 1754
    • Karma: 3591
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:39:38 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link

    ToxicMonkeyMZC [712861]

    This is a very cool thing. I can now see my RS changing from race to race (e.g. 100 lap Speedway was a +0.012 gain).
    Awesome analytical tool. I had no idea Torn had this data readable somewhere.

    We can now see if drug addiction affects skill gains, or racing the wrong car. Maybe 100 lap Docks doesn't give the best skill gain? Now we will find out these things :)

    There's a lot of data to be had here and analysed :D

    Very cool and awesome thing you have done here, Lugburz [2386297].

    I salute you!

    damn lots of gains for speedway

    tF0XQF9.jpeg

    • ToxicMonkeyMZC [712861]
    • Role: Civilian
    • Level: 100
    • Posts: 1101
    • Karma: 2304
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:36:29 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link

    ToxicMonkeyMZC [712861]

    This is a very cool thing. I can now see my RS changing from race to race (e.g. 100 lap Speedway was a +0.012 gain).
    Awesome analytical tool. I had no idea Torn had this data readable somewhere.

    We can now see if drug addiction affects skill gains, or racing the wrong car. Maybe 100 lap Docks doesn't give the best skill gain? Now we will find out these things :)

    There's a lot of data to be had here and analysed :D

    Very cool and awesome thing you have done here, Lugburz [2386297].

    I salute you!

    Prezze [2121612]

    damn lots of gains for speedway
    How do you know?  We've never been able to measure it before :)

    Forum sigs are for noobs.

    • Prezze [2121612]
    • Role: Civilian
    • Level: 16
    • Posts: 1754
    • Karma: 3591
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:46:35 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link
    cause 100 laps docks give barely more

    tF0XQF9.jpeg

    • ToxicMonkeyMZC [712861]
    • Role: Civilian
    • Level: 100
    • Posts: 1101
    • Karma: 2304
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:21:19 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link
    Gained +0.026 on 100 lap Withdrawal.

    Let's see some other results!

    Forum sigs are for noobs.

    • Rogue [1873490]
    • Role: Civilian
    • Level: 50
    • Posts: 2121
    • Karma: 3860
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:25:01 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link
    How do install this thing
    • Lugburz [2386297]
    • Role: Civilian
    • Level: 68
    • Posts: 760
    • Karma: 1167
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:31:53 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link

    Rogue [1873490]

    How do install this thing
    You need to have tampermonkey installed (that's a browser extension).
    Then just click the link and follow the prompt.
    • ToxicMonkeyMZC [712861]
    • Role: Civilian
    • Level: 100
    • Posts: 1101
    • Karma: 2304
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:32:38 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link
    I might have been leaving a 0 out :)

    RS 62.5417
    RS 62.5443 after 100 lap Withdrawal...LFA ofc.

    So a 0,0026 gain there.

    Sorry to mislead you earlier :D

    Forum sigs are for noobs.

    • ToxicMonkeyMZC [712861]
    • Role: Civilian
    • Level: 100
    • Posts: 1101
    • Karma: 2304
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:33:43 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link

    Rogue [1873490]

    How do install this thing

    Lugburz [2386297]

    You need to have tampermonkey installed (that's a browser extension).
    Then just click the link and follow the prompt.
    Chrome should come preinstalled with TamperMonkey it is so so useful.

    Forum sigs are for noobs.

    • Prezze [2121612]
    • Role: Civilian
    • Level: 16
    • Posts: 1754
    • Karma: 3591
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:52:58 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link
    0.0112-0.014 on docks

    tF0XQF9.jpeg

    • CloudJumper [1636201]
    • Role: Officer
    • Level: 100
    • Posts: 16099
    • Karma: 14696
    • Last Action: 1 minute
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:17:47 - 28/04/20 (1 year ago)
    Post link copied to clipboard Copy post link
    You da real MVP man. I'll be installing this on my laptop first thing tomorrow morning when I get on. R+ :)

    • WongFeiHung [1686858]
    • Role: Civilian
    • Level: 67
    • Posts: 77
    • Karma: 27
    • Last Action: 19 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:32:01 - 29/04/20 (1 year ago)
    Post link copied to clipboard Copy post link
    man that is bitchin! thanks for doing this
    • CloudJumper [1636201]
    • Role: Officer
    • Level: 100
    • Posts: 16099
    • Karma: 14696
    • Last Action: 1 minute
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:51:04 - 29/04/20 (1 year ago)
    Post link copied to clipboard Copy post link
    Error 503 Backend is unhealthy.

    Is the script still available? :o

    • Lugburz [2386297]
    • Role: Civilian
    • Level: 68
    • Posts: 760
    • Karma: 1167
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:56:23 - 29/04/20 (1 year ago)
    Post link copied to clipboard Copy post link

    CloudJumper [1636201]

    Error 503 Backend is unhealthy.

    Is the script still available? :o
    The link still works for me.

    Some github issues, perhaps? Does github.com open for you?
    • CloudJumper [1636201]
    • Role: Officer
    • Level: 100
    • Posts: 16099
    • Karma: 14696
    • Last Action: 1 minute
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:01:00 - 29/04/20 (1 year ago)
    Post link copied to clipboard Copy post link

    CloudJumper [1636201]

    Error 503 Backend is unhealthy.

    Is the script still available? :o

    Lugburz [2386297]

    The link still works for me.

    Some github issues, perhaps? Does github.com open for you?
    Resolved on its own somehow, installed the script now. Cheers! :)

Reply
Thread Title: