Getting started with the API?

  • Thread starter Deleted member 590628
  • Start date
D

Deleted member 590628

  • Deleted member 590628

I have an idea for a tool that I would like to make for AMS2, but I'm very new at doing this kind of stuff, is there some sort of "getting started" guide to the AMS2 API? I googled and found nothing, it seems like people are just expected to "know" what to do.
 
  • Deleted member 590628

Try looking for information about the Project CARS 2 shared memory and UDP APIs (for example https://www.projectcarsgame.com/two/project-cars-2-api/), since they are the same in AMS2 - the "patch 5" versions from that link.
I've found the info with all the variables, but I still can't figure out how to "listen" to the API.
I would be used to something in python looking like "api_request = requests.get("-URL-") but here it talks about some sort of $pcars2$ shared memory file that I have no idea how to read from.
 
Last edited by a moderator:
I don't use windows for anything other than sim racing, so not sure how you open a shared memory file on the OS, but you should be able to make a UDP listener using the same approach as this repo:


It also has all the packet decoding in there too, so it might help with the data structures too.
 
Back
Top