DiRT Rally DiRT Rally telemetry on UDP port 20777

So I edited the hardware_settings_config.xml file to enable the motion output to 127.0.0.1 ... according to the seemingly standard Codemasters way:

Code:
<motion enabled="true" ip="127.0.0.1" port="20777" delay="1" extradata="1" />

But from what I can tell there's no telemetry data being sent??

As a first validation I just used this simple Python code but there's nothing coming on the socket when I launch a custom event and start driving ...:

Code:
import socket

DIRT_IP = ""
DIRT_PORT = 20777

sock = socket.socket(socket.AF_INET, # Internet
                     socket.SOCK_DGRAM) # UDP
sock.bind((DIRT_IP, DIRT_PORT))

while True:
    data, addr = sock.recvfrom(4096) # buffer size ...
    print "received message:", data

I've verified with another simple python script to *send* the UDP data to port 20777 and the receiver *does* work ...
 
Tested your code on Python 3.3 (print modified) and it does work. Your code creates the socket on 0.0.0.0:20777 but it does work as does using 127.0.0.1:20777. The game does not send data when it's paused, but if you actually drove that shouldn't be the problem.

You can also use extradata up to 3 with DiRT Rally.
 

Latest News

What would make you race in our Club events

  • Special events

    Votes: 80 29.1%
  • More leagues

    Votes: 56 20.4%
  • Prizes

    Votes: 60 21.8%
  • Trophies

    Votes: 34 12.4%
  • Forum trophies

    Votes: 18 6.5%
  • Livestreams

    Votes: 43 15.6%
  • Easier access

    Votes: 140 50.9%
  • Other? post your reason

    Votes: 42 15.3%
Back
Top