Author Topic: UDP Proxy  (Read 746 times)

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1929
    • View Profile
    • Email
UDP Proxy
« on: July 18, 2018, 03:55:42 PM »
Starting with Release6, Kart Racing Pro integrates a plugin that allows to receive UDP data from the simulated kart in realtime.

To enable it and set the parameters, edit the file "proxy_udp.ini" in the Kart Racing Pro installation folder:
Code: [Select]
[params]
enable = 1
port = 30000
ip = 127.0.0.1:30001
delay = 1

port: outbound port
ip: inbound address and, optional, port ( if missing, the outbound port is used )
delay: hundredths of second between packets

The packet format:
"data": null-terminated string
"state": integer. 0: software running; 1: on-track, simulation paused; 2: on-track, simulation running
"time": integer, milliseconds.
The rest of the packet follows the "SPluginsKartData_t" structure of the plugins interface: http://www.kartracing-pro.com/downloads/krp_example.c
« Last Edit: July 18, 2018, 04:01:09 PM by PiBoSo »