• So long as all your wheels are pointing in roughly the same direction, you should be fine.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dear Guest. Follow RaceDepartment on Twitter, Facebook, Instagram, Twitch, Steam and YouTube.

DiRT Rally telemetry on UDP port 20777

Discussion in 'DiRT Rally' started by roksteady, May 29, 2015.

  1. roksteady

    roksteady

    Messages:
    10
    Ratings:
    +0
    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 ...
     
  2. krivjur

    krivjur

    Messages:
    11
    Ratings:
    +1
    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.
     
  3. daguru

    daguru

    Messages:
    48
    Ratings:
    +11


    Motion works fine for me ;)
     
  4. roksteady

    roksteady

    Messages:
    10
    Ratings:
    +0
    Hehe, thanks for confirming that I suck, or something... ;)
     
  5. daguru

    daguru

    Messages:
    48
    Ratings:
    +11
    lol no problem :D