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

Online or Offline racing?

  • 100% online racing

    Votes: 92 7.7%
  • 75% online 25% offline

    Votes: 125 10.5%
  • 50% online 50% offline

    Votes: 171 14.3%
  • 25% online 75% offline

    Votes: 335 28.1%
  • 100% offline racing

    Votes: 465 39.0%
  • Something else, explain in comment

    Votes: 4 0.3%
Back
Top