Results 1 to 6 of 6

Thread: Possible UDP Version 2 issue

  1. #1
    Rookie
    Join Date
    Jun 2015
    Posts
    4
    Platform
    PC

    Possible UDP Version 2 issue

    Hi

    I'm having an issue with the UDP Version 2 packets, I was wondering if anyone else has seen this or is just my implementation?

    From definitions.hpp

    unsigned short sTyreTempLeft[4]; // 256 8
    unsigned short sTyreTempCenter[4]; // 264 8
    unsigned short sTyreTempRight[4]; // 272 8

    from packet capture

    256 - 00 00 25 00 2a 00 23 00
    264 - 00 00 22 00 26 00 21 00
    272 - 00 00 21 00 24 00 20 00

    I have decoded the first two bytes of the array as the front-left being 0 where the other 6 bytes have a temp value for front-right rear-left and rear-right? This to me is very odd and that the front left is 0 so IMO i have it wrong unless someone else is seeing the same thing?
    Last edited by leroythelegend; 09-03-2018 at 12:04.

  2. #2
    Rookie
    Join Date
    Jul 2017
    Posts
    4
    Platform
    PC
    Quote Originally Posted by leroythelegend View Post
    Hi

    I'm having an issue with the UDP Version 2 packets, I was wondering if anyone else has seen this or is just my implementation?

    From definitions.hpp

    unsigned short sTyreTempLeft[4]; // 256 8
    unsigned short sTyreTempCenter[4]; // 264 8
    unsigned short sTyreTempRight[4]; // 272 8

    from packet capture

    256 - 00 00 25 00 2a 00 23 00
    264 - 00 00 22 00 26 00 21 00
    272 - 00 00 21 00 24 00 20 00

    I have decoded the first two bytes of the array as the front-left being 0 where the other 6 bytes have a temp value for front-right rear-left and rear-right? This to me is very odd and that the front left is 0 so IMO i have it wrong unless someone else is seeing the same thing?
    Hi I've some problem with my Java application, my Platform is PS4.

    Left Temp: [0, 0, 26, 0, 26, 0, 26]

    I take from byte 256 up to 263 (in this case for the left temperature, but it also happens with the central and the right.
    Also I could not figure out what the pressure is, and I'm working to translate other values ​​like the tire compound into java correctly.

  3. #3
    Kart Driver NC-RIGDash's Avatar
    Join Date
    Jan 2018
    Posts
    27
    Platform
    PS4 Pro
    Quote Originally Posted by leroythelegend View Post
    Hi

    I'm having an issue with the UDP Version 2 packets, I was wondering if anyone else has seen this or is just my implementation?

    From definitions.hpp

    unsigned short sTyreTempLeft[4]; // 256 8
    unsigned short sTyreTempCenter[4]; // 264 8
    unsigned short sTyreTempRight[4]; // 272 8

    from packet capture

    256 - 00 00 25 00 2a 00 23 00
    264 - 00 00 22 00 26 00 21 00
    272 - 00 00 21 00 24 00 20 00

    I have decoded the first two bytes of the array as the front-left being 0 where the other 6 bytes have a temp value for front-right rear-left and rear-right? This to me is very odd and that the front left is 0 so IMO i have it wrong unless someone else is seeing the same thing?
    Wireshark might help you here.
    Have the UDP stream running and run wireshark to monitor the raw packets. This will tell you if that is what is being fed out of the game or if your implementation is changing it somehow.
    Might help you for a start?
    The following user likes this Post: leroythelegend


  4. #4
    Kart Driver NC-RIGDash's Avatar
    Join Date
    Jan 2018
    Posts
    27
    Platform
    PS4 Pro
    Quote Originally Posted by Thunderpaul View Post
    Hi I've some problem with my Java application, my Platform is PS4.

    Left Temp: [0, 0, 26, 0, 26, 0, 26]

    I take from byte 256 up to 263 (in this case for the left temperature, but it also happens with the central and the right.
    Also I could not figure out what the pressure is, and I'm working to translate other values ​​like the tire compound into java correctly.
    This is what i have done in java to convert the tyre temps to ints (looks like you have it as a string at the moment). Hopefully this will help you out:
    Have byte array with the bytes in
    byte[] tyreTemps = Arrays.copyOfRange(gamePacket[0], 276, 280);

    Take each byte and convert it
    int frontLeft = tyreTemps[0] & 0xFF;
    etc
    etc

  5. #5
    Superkart Pilot
    Join Date
    Dec 2017
    Posts
    247
    Platform
    PC
    See this thread for details. It should be fixed in the next patch.

  6. #6
    Rookie
    Join Date
    Jun 2015
    Posts
    4
    Platform
    PC
    Quote Originally Posted by g.stew View Post
    See this thread for details. It should be fixed in the next patch.
    Yes thank you, this helps a lot.

Similar Threads

  1. Lap Times PS4 Version vs PC Version
    By DanieleDrift in forum Project CARS on Playstation 4
    Replies: 8
    Last Post: 11-07-2017, 14:34
  2. installing digital version over top of disc version on PS4
    By bootrossbootross in forum Project CARS on Playstation 4
    Replies: 4
    Last Post: 15-06-2016, 18:49
  3. T300rs wheel FFB fade issue after update to 8.00 version
    By sizzeman458 in forum PS4 - Technical Help & Support
    Replies: 66
    Last Post: 18-02-2016, 13:27
  4. [Known Issue] Multiplayer: Why the ONE version has no lists?
    By icaro3m in forum Project CARS on Xbox One
    Replies: 2
    Last Post: 02-06-2015, 08:56
  5. [PS4] Can the US version play EU version?
    By Dreco in forum Project CARS on Playstation 4
    Replies: 3
    Last Post: 12-05-2015, 17:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •