Jump to content Jump to content

codylane482

Members
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

2 New Car Smell

Gaming Setup

  • Platforms
    Xbox One
    MacOS
    Linux
  • Peripherals
    Steering Wheel
  • Steering Wheel
    DD2

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks my friend. So far nothing new to report. I've stopped using Broadcast mode on my Xbox and I've tried your suggestions and I get the same result. I am going to blame this on MS since I know they like to not follow RFC's. I've not been able to find a workaround for Broadcast mode as of yet. Probably the biggest challenges for folks using Xbox console is all the lack of features while using a console. For example my Fanatec F1 wheel I don't get all the nice features that Fanatec provided since I'm on a console and the Xbox SDK only supports a controller which as you probably kn
  2. After spending the last week troubleshooting, I too experience this now and it requires some fiddling with the IP address even when broadcast mode is turned on. But yeah, I think it's important to admit when you are wrong, and so far I've been totally wrong. As others have mentioned and I would agree it's most likely the Xbox networking implementation. For now, it's far easier to run my app with IPv4 address: 0.0.0.0:20777 and then in my Xbox F1 game settings set the IP address to the IP of my app. I'm starting to wonder now if it's a subnet issue. For example, I use DHCP for my net
  3. Another thought I had and I'm not sure if you are open to this idea or not but if you can grant/provide me a copy of race dash for f1 2021, I'd be happy to continue to troubleshoot this for you and see if I am able to diagnose the issue and or find a reproduce the errors that your clients are seeing? I've not used Race Dash before but I've heard great things about it. FWIW, I am an open source developer and enjoy helping the community when I have spare time.
  4. I could be wrong but I'm fairly certain that when the F1 game means "broadcast" they truly mean "mulitcast" because once I created a multicast listening socket I was able to receive all expected packets from my console on my home network to my app regardless of WIFI or wired connection. It's true I do experience some issues but I blame that on my network and my app. I could also blame Microsoft for not truly following normal RFC guidelines when it comes to networking. MS has had a tendency in the past to do their own things when it comes to networking not following the normal RFC protocols whi
  5. I am by no way an expert when it comes to networking. I also originally thought the UDP broadcast mode on my XboxOne X didn't work but then I realized it was actually because my UDP client needed to support multicast which is a different socket setup than just a regular UDP socket. Here's the article I used to create a feature toggle in my app so that I could use a IP bound UDP socket or a multicast socket. https://stackoverflow.com/questions/603852/how-do-you-udp-multicast-in-python But then it again it's not always so straight forward to diagnose this type of issue.
  6. I apologize for the missing code, but this comment is here to help and replace all (object) references with (Packet) for all classes that do not have the word Test_ in them, in the following post. I apologize for the confusion and I do hope this helps others. Please reach out if you need help. For example this code class PacketSessionHistoryData(object): _fields_ = [ ('m_header', PacketHeader), # Header ('m_car_idx', ctypes.c_uint8), # Index of the car this lap data relates to ('m_num_laps', ctypes.c_uint8), # Num laps in the data (inclu
  7. One thing I forgot to mention is that EventDataDetails needs to be defined on it's own. Here's the missing code for EventDataDetails # coding: utf-8 import ctypes def to_json(*args, **kwargs): kwargs.setdefault('indent', 2) kwargs['sort_keys'] = True kwargs['ensure_ascii'] = False kwargs['separators'] = (',', ': ') return json.dumps(*args, **kwargs) class PacketMixin(object): """A base set of helper methods for ctypes based packets """ def get_value(self, field): """Returns the field's value and formats the types value """
  8. As promised here is the output of copying and pasting the udp-specification into my parsing library. This is just the python code for the udp specification packet structs but I hope that it helps others get started quickly on writing the UDP handler and what to do with the packets once they are received. As promised, I will open source this and post the link to a official page, but my time for that is limited. class PacketHeader(object): _fields_ = [ ('m_packet_format', ctypes.c_uint16), # 2021 ('m_game_major_version', ctypes.c_uint8), # Game major version - "X.0
  9. I really appreciate your help gparent. You made some great work with f1-2020-telemetry and cleaned up a lot. I appreciate your contributions. I also have something I've been working on for a while but my focus was to basically take a C or C++ structures and unions and turn it into python code + tests for the code. So far it works with pcars2, f12019, f12020. I plan to add support for f12021 and once that is done. I plan to open source it as soon as it has support for f12021 which I should be able to do before the weekend is over.
×
×
  • Create New...