PDA

View Full Version : How to get game data on laptop using UDP api?



johanice
23-02-2018, 06:56
Hi there,

I'm quite interested in Project Cars 2 and especially collecting the data and doing some performance monitor/analysis on my own. I found that there are official data API available - in shared memory and UDP ways. I'm wondering afterI turned on the setting (lets say UDP) in the game menu, what should I do on my laptop could I get the detailed data? or How should I do this?

Thanks a lot
Johan

M. -VIPER- Morgan
23-02-2018, 09:23
First of all there are two ways to get the game API data:
1. via Shared Memory
2. via UDP

Shared Memory means that the data is available in your RAM and visible for other applications on the same system. The applications runs on the gaming PC, but there are applications which have an own network sender and you can use the main application on your laptop, too.
UDP means the game sends UDP broadcast packets through your network. These packets are receivable by any System in the same IP address range, for example game PC IP 192.168.0.10 with Mask 255.255.255.0 and Laptop IP 192.168.0.20 with Mask 255.255.255.0. Normally if your ISP router provides the IP addresses, this prequesite should be fullfilled.

Further you have to check if there is a firewall running on your laptop which maybe blocks these UDP broadcast packets.

And then you only have to decide which application you want to use, for analysis you should look after:
- Tom Shane Profiler (http://forum.projectcarsgame.com/showthread.php?23284-pCARS-Profiler-(Telemetry-amp-Analysis)-PC-ONLY-v1-6), not developed further, only pcars1 mode. Don't know at the moment if it supports the UDP mode, I only used it with Shared Memory, but it has a an own network sender.
- vrHive (http://forum.projectcarsgame.com/showthread.php?58222-PC-XB1-PS4-vrHive-Dashes-Telemetry-Live-Data-Arduino-Client-Server-more)
- pcars Tlemetry (http://forum.projectcarsgame.com/showthread.php?25963-Telemetry-Logging-and-Analysis-Application&p=1250855&viewfull=1#post1250855)
- Z1 Analyzer (http://forum.projectcarsgame.com/showthread.php?59184-Z1-Analyzer) - maybe the best, but never tested, because it is not free (pricing (http://z1simwheel.com/dashboard/pricing.cfm)).

I don't know if there is really one application which completely support the pcars2 UDP mode, because there are still some problems with it, but you can use the pcars1 mode and then all applications which were developed for pcars1.

There are some apps for pcars2 mode, but these are mainly Dashboard apps like RSDash or SIMDashboard for smartphones and tablets.

Overview of pcars1 apps -> link (https://www.projectcarsgame.com/apps.html)
Developer Info about the API structure for Shared Memory and UDP is here -> link (https://www.projectcarsgame.com/project-cars-2-api.html?lang=en)


I think you should pick one app you want to use and if you have problems with it, you can ask again.