Results 1 to 3 of 3

Thread: CREST2 - a.k.a. CARS2 REST API

  1. #1
    WMD Member
    Join Date
    Apr 2012
    Location
    Fuerth, Germany
    Posts
    149
    Platform
    PC

    CREST2 - a.k.a. CARS2 REST API

    Introducing CREST2 - also known as the CARS2 REST API

    First of all I have to say thanks to Lars for this great app. I mailed with him and he wrote that he will no longer working on CREST, because of other priorities in his life. I can understand that completely.
    Since I need CREST for a web-based app, I decided to check what I can do here.
    Software development is not my daily business, more a hobby, but I have done my best to get it back to work.

    This thread is a copy from Lars' thread in the developer forum. I updated it with the new info only.


    Project type: Data server/API.

    Project status: 0.0.5 released.

    Project web site: http://www.cars-rest-api.com <- no longer updated, but still informative

    Public repository: https://github.com/viper4gh/CREST2
    old: https://github.com/NLxAROSA/CREST/tree/CREST2

    Description:

    This project provides a way for developers to have access to the data provided by pCars2 Shared Memory in a more portable and accessible format than a mapped memory file. It's a windows native command line application (written in C++ and a fair bit of plain old C) that will act as a local web/application server and serve the data via JSON over HTTP by accessing a URL. Any web browser or HTTP client will be able to access the data both locally and inside the local network, which facilitates easy add-on development in any language (e.g. JavaScript, Java, C, C++, C#, etc. etc.) and platform (e.g. web browser, iOS, Android, Windows Phone or other) with a vast array of client REST libraries at your disposal.

    It's basically the same as the original CREST, which can be found at the same site and GitHub location (CREST is the master branch, CREST2 is the CREST2 branch).


    Screenshots:

    None yet.

    Sample JSON

    Click here (old)

    Current build:

    Download available at this location.


    Installation instructions

    1. Download the source code from the Github repository and build/run it in Visual Studio (check the README for instructions).

    - OR -

    1. Download the application from the download link at this location.
    2. Start the application by double-clicking it.
    3. Windows will complain about security (coming from an unknown/unverified source) both when downloading and starting the application. Please allow/unblock the application in order to allow it to start. Windows Firewall will also ask for permission to access the local network. Please allow it access for proper functioning.
    4. If Windows complains about missing DLLs (e.g. MSVCR120.DLL or similar), please download and install the Visual C++ Redistributable Packages for Visual Studio 2017 from https://www.visualstudio.com/de/downloads/ (scroll down to "Other Tools and Frameworks", vcredist_x86.exe), then start again.
    5. Console will show a notification about the server being up and running and display port and URL information.

    Connecting to Project CARS 2

    1. Start Project CARS 2.
    2. Enable Shared Memory "Project CARS2" mode in the settings
    3. Open up a browser (Chrome works best) and go to http://localhost:8180/crest2/v1/api
    4. Profit! F5/Refresh until you drop!

    Known issues:

    Issues are listed in GitHub: https://github.com/viper4gh/CREST2/issues.
    Feel free to add bugs you may find, or feature requests, etc.
    But as I described above this is more a hobby, so please don't expect too much.


    Download
    Last edited by M. -VIPER- Morgan; 29-03-2018 at 11:23.
    AMD Phenom II X6 1090T | MSI GTX970 Gaming 4G | Asus M4A89TD Pro USB3 | 16GB DDR3 | Windows 7 64 Bit | Fanatec CSW V2 + Porsche 918 RSR Rim + Formula Carbon Rim + CSP V2 + CSS SQ V1.5 | TrackIR 4 | 27" 1080p
    The following 6 users likes this Post: AbeWoz, eckhchri, ermo, Lars Rosenquist, satco1066, Zenzic


  2. #2
    WMD Member Lars Rosenquist's Avatar
    Join Date
    Oct 2011
    Location
    The Netherlands
    Posts
    301
    Platform
    PC
    Since I don't have time to work on this myself, it's awesome to see this being continued by another open source developer. One of the reasons I love open source: anyone can fork and continue/do their own thing if they want.
    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: ermo


  3. #3
    Superkart Pilot Zenzic's Avatar
    Join Date
    May 2015
    Location
    BE
    Posts
    588
    Platform
    PC
    Thanks, Viper! This API made it a lot easier for me to build a custom dashboard!
    AMD Ryzen 5 1600 - ASRock A320M Pro4 - EVGA GeForce GTX 1060 SC GAMING 6GB - G.Skill 16GB DDR4 - Samsung 850 EVO 250GB - Seasonic Focus Plus Gold 550W - Thrustmaster T300 RS - Triple monitors

Similar Threads

  1. Funding for project cars2?!
    By vglnte102 in forum Project CARS on Xbox One
    Replies: 29
    Last Post: 14-06-2018, 11:58
  2. Finally Took the Plunge with P CARS2
    By Photonmonkey in forum General Discussion
    Replies: 10
    Last Post: 05-04-2018, 06:59
  3. Project Cars2 - Community Soundtrack
    By vitinho0z in forum General Discussion
    Replies: 2
    Last Post: 04-11-2017, 01:01
  4. [Not Supported] NO T100 for Project Cars2!?!?!?!?
    By gbm in forum Project CARS 2 on Playstation 4
    Replies: 4
    Last Post: 26-09-2017, 01:48
  5. DLC vs Project Cars2
    By pgapro in forum General Discussion
    Replies: 57
    Last Post: 28-01-2016, 12:18

Posting Permissions

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