Page 1 of 8 123 ... LastLast
Results 1 to 10 of 71

Thread: Streamer's Help: Standings & Relative & Inputs Overlay v0.1.4

  1. #1
    WMD Member TonyR's Avatar
    Join Date
    Oct 2011
    Posts
    288
    Platform
    PC

    Post Streamer's Help: Standings & Relative & Inputs Overlay v0.1.4

    Hello Guys!

    I have been working on a little javascript based website widget to easily put "Standings" data and an iRacing like "Relative" screen into your stream or simply have it running in your browser on a second screen/second PC.

    It's using Lars Rosenquist's CREST API tool which saves you from the trouble of setting up a server and reading out the Shared Memory.
    http://forum.projectcarsgame.com/sho...-Cars-REST-API



    What it can do:
    - display standings of all participants in a race + gaps between the positions
    - display a relative screen that shows the cars around you and color codes them if they are a lap down or up
    - fully customizable because it only consists of Javascript and CSS
    - display pedal and steering inputs (Changed with v0.1.1)

    What it can't do (mainly because of the use of Shared Memory):
    - display lap times
    - display the corresponding class to a driver

    What can you easily adjust without coding knowledge? In timings.html or relative.html:
    - const maxDistSeconds = 20; // Default 20s: when an opponent is further away than this it won't be shown
    - const maxOpponents = 2; // Default 2: When at 2 it displays 3 opponents in front of you and 3 opponents behind you
    - const fakeAvSpeed = 44.44; // Default 44.44 m/s =160 kph (Average Speed of an GT3 car on an average track), used to calculate seconds from meters
    - const refreshInterval = 200; // Default 200 milliseconds. how often the relative refreshes

    How to install:
    1. Download and run Lars' CREST Api Server (Left one, CREST2 is for pCars 2): https://cars-rest-api.com/#downloads
    2. Download the widget: https://onedrive.live.com/redir?resi...int=file%2czip
    3.a Open one of the websites and have fun displaying it locally on your PC or on a second PC*
    3.b If you want to stream: Add one or both of the websites as a BrowserSource in OBS**
    4. Start pCars
    5. Profit!

    * If you want to display the widgets on another PC (or tablet) you need to edit the REST URL in the respective html file from "http://localhost:8080/[...]" to the IP of your gaming PC, for example "http://192.168.0.XXX:8080/[...]". How to find out your IP >>

    ** Best to use this version prepacked with the Browser plugin: https://github.com/jp9000/obs-studio...-Installer.exe
    Or you install the PlugIn manually: https://obsproject.com/forum/resourc...er-plugin.115/

    Since this is the first version of that little tool it can still contain errors. Tell me what you think and also if you find errors not listed below.
    Known errors:

    - unicode character do not seem to be shown correctly²
    - might not work with Internet Explorer and Microsoft Edge

    MOD: Replace Steam Nicknames with a list of predefined names/real names:
    Explanation: http://forum.projectcarsgame.com/sho...=1#post1285924
    Download: https://onedrive.live.com/redir?resi...int=file%2czip

    ²the mod also helps to circumvent the missing characters problem, as you can replace the faulty name with the actual one



    Thanks for your time! Maybe it's useful to one or another.
    Best Regards, Tony

    Changelog:
    Code:
    v0.1.4 (16.05.2016): - bug fix for some refreshing issue (big thanks to Ashnoom for this!)
    v0.1.3 (20.02.2016): - Added rolling standings (moving_standings.html)
                         - Added position changes during the race compared to quali (can be omitted by a simple display:none in the css class td.colPosChange
    v0.1.2 (18.02.2016): - Changed purpose of Gap display in timings.html for non-race sessions (now total laps).
                         - Removed lapping/lapped color codes from relative.html in non-race session.
                         - Added correct track length parameter to relative (before it was calculated)
                         - Corrected viewed participant in relative when just standing around in non-race sessions
    v0.1.1 (15.02.2016): - Added Pedal and Steering inputs as an extra widget
    More Screenshots:





    Download link: https://onedrive.live.com/redir?resi...int=file%2czip & CREST tool https://cars-rest-api.com/#downloads

  2. #2
    Superkart Pilot Shadowoff's Avatar
    Join Date
    Jun 2015
    Location
    Lower Saxony
    Posts
    512
    Platform
    PC
    Quote Originally Posted by TonyR View Post
    ....
    Hey,
    I downloaded your mod and started Lars CREST API server, but when I open any of the html. files, a new tab opens (I think this is normal), but there only stays "loading" and nothing is happening...
    Did I made something wrong?
    Last edited by Mahjik; 16-02-2016 at 01:03.
    I'm sorry for my bad english...
    The following user likes this Post: Patrick Kulinski


  3. #3
    WMD Member M4MKey's Avatar
    Join Date
    Oct 2011
    Location
    France
    Posts
    251
    This can be very nice. I just need a way to make it visible in front of my main screen. On top of the windowed game. Does anyone know a good software to do that ?
    Intel i7 4770K o/c @ 3.9Ghz | Gigabyte 1080ti Xtreme | 16Go DDR3 17000 // TS-PC Racer with fanatec ClubSports Pedals

  4. #4
    WMD Member TonyR's Avatar
    Join Date
    Oct 2011
    Posts
    288
    Platform
    PC
    Quote Originally Posted by Shadowoff View Post
    Hey,
    I downloaded your mod and started Lars CREST API server, but when I open any of the html. files, a new tab opens (I think this is normal), but there only stays "loading" and nothing is happening...
    Did I made something wrong?
    Did you start a race session? It only shows data when there is a session going on.

    Edit: I just noticed that it doesn't work with Internet Explorer or Microsoft Edge, for some reason.
    However it works without a problem with Chrome, Opera, Firefox

  5. #5
    Superkart Pilot Shadowoff's Avatar
    Join Date
    Jun 2015
    Location
    Lower Saxony
    Posts
    512
    Platform
    PC
    Quote Originally Posted by TonyR View Post
    ...doesn't work with Internet Explorer or Microsoft Edge, for some reason.
    However it works without a problem with Chrome, Opera, Firefox
    Thats the problem I think, I use Microsoft Edge
    I'm sorry for my bad english...

  6. #6
    WMD Member Lars Rosenquist's Avatar
    Join Date
    Oct 2011
    Location
    The Netherlands
    Posts
    301
    Platform
    PC
    Might be a CORS issue. Some browsers are very picky when it comes to this, others less so.
    PC: i7-4790k/16GB/GTX970 4GB/Z97-PRO/Logitech G27/Xbox 360 Controller
    Laptop: i7-6700HQ/16GB/GTX1070 8GB/Xbox One Controller
    LT Profiler: Strength: 100% - Spring 0% - Damper 0% - Center Spring 0% - 900 degrees - game can change
    The following user likes this Post: TonyR


  7. #7
    WMD Member TonyR's Avatar
    Join Date
    Oct 2011
    Posts
    288
    Platform
    PC
    Changelog:
    v0.1.1 (15.02.2016): Added Pedal and Steering inputs as an extra widget



  8. #8
    WMD Member TonyR's Avatar
    Join Date
    Oct 2011
    Posts
    288
    Platform
    PC
    Quote Originally Posted by M4MKey View Post
    This can be very nice. I just need a way to make it visible in front of my main screen. On top of the windowed game. Does anyone know a good software to do that ?
    I was thinking about that yesterday and also googling a little bit but I couldn't really find something.

    However it MUST be possible to do what you need here. The OBS browser plugin uses the Chrome browser engine internally and it's able to display websites without borders and stuff as well so the solution is definitely out there, but how to find it!?

  9. #9
    WMD Member fresquito's Avatar
    Join Date
    Oct 2011
    Location
    Blanes
    Posts
    155
    Hi and thanks for this.

    I can't seem to make it run properly.

    In the instructions I'm missing a lot of information. Like, I download the widget and what do I do with it? Should I use Crest1 or 2? I'm a little lost here.

    I can get the site to get the info, but it's shown without any format.
    i7 4770k @ 3.5 GHz | GTX 1060 6GB | Gigabyte Z87X-UD3H | 16GB RAM 1600MHz | Corsair GS700 PSU | Windows 10 | T300RS wheel with Logitech G27 pedals and shifter

  10. #10
    WMD Member TonyR's Avatar
    Join Date
    Oct 2011
    Posts
    288
    Platform
    PC
    Quote Originally Posted by fresquito View Post
    In the instructions I'm missing a lot of information. Like, I download the widget and what do I do with it? Should I use Crest1 or 2? I'm a little lost here.
    Crest 1, Crest 2 is for pCars 2 AFAIK

    Quote Originally Posted by fresquito View Post
    I can get the site to get the info, but it's shown without any format.
    What do you mean with that? When you start timings.html for example, it doesn't show anything?
    The following user likes this Post: fresquito


Similar Threads

  1. [FFB] Experiments with Relative Adjust parameters
    By tpw in forum General Discussion
    Replies: 79
    Last Post: 23-09-2015, 19:23
  2. Penalty relative to what you cut.
    By fa-racing in forum General Discussion
    Replies: 3
    Last Post: 07-07-2015, 22:12
  3. Driver Network standings
    By seamastergmt in forum Project CARS on Playstation 4
    Replies: 0
    Last Post: 15-06-2015, 04:52
  4. 4 Streamer - GamesRocket Cup auf HitBox.TV [PLÄTZE FREI] [Gewinne] [GER]
    By DaddelJunkie in forum PC - Multiplayer Event Planning
    Replies: 0
    Last Post: 12-06-2015, 08:42
  5. Steering lock relative to physics for gamepads
    By ThaJay in forum Feature Suggestions
    Replies: 7
    Last Post: 08-06-2015, 17:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •