Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support time recording for Rally Cross events #19

Open
maxbechtold opened this issue Mar 11, 2020 · 7 comments
Open

Support time recording for Rally Cross events #19

maxbechtold opened this issue Mar 11, 2020 · 7 comments
Labels
enhancement New feature or request

Comments

@maxbechtold
Copy link
Collaborator

I'm unsure if this is interesting to anyone, but I could add support for Rally Cross to dirt-rally-time-recorder.

There's no stage time in RX, but rather lap time, but this is also reported via UDP if memory serves. The tool could record any completed lap, or perhaps only the fastest in a (finished) session/race.

@maxbechtold maxbechtold added the enhancement New feature or request label May 10, 2020
@gotleg
Copy link

gotleg commented Jan 7, 2021

This is exactly what I'm looking for 👍
I was initially looking for an api maybe over racenet to get this info but it doesn't look possible.
Using UDP data could be an answer

@maxbechtold
Copy link
Collaborator Author

Good to hear! Do you mean you will try this tool for stage time recording? Or are you rooting for adding Rally cross support? There has been no effort in that direction as of now.

Indeed I don't think there's a way to extract laptimes from the game (which seems to treat best times per class rather than per car).

@gotleg
Copy link

gotleg commented Jan 9, 2021

Hi @maxbechtold ,

Actuely i Only play Rallycross and I'm interested in tracking races Times especially racing with Friends to compare times and track our progress.

Thanks to your project I managed to code a small nodejs program that listens to UDP Packets, and send each lap/lap_time into a DB.
Each pilot can install this program to report times in a centralized database. Then I'll generate dashboard based on lap_times.

Now that I found a correct way to track lap_times I Can easily add support for Rallycross on dirt-rally-time-recorder.
I'm not very familiar with python but I'll try to find some time to add it.

First records in db a few minutes ago 😜
unknown

@maxbechtold
Copy link
Collaborator Author

Sounds like a project I'd like to follow, is it OSS? Then maybe this issue is resolved by placing a link to your project.

Otherwise let's start a discussion here on how RX could be included in dirt-rally-time-recorder, from the top of my head:

  1. record any completed lap, or only the fastest in a (finished) session/race?
  2. treat race modes differently (single practice vs. heats & (semi) finals)?
  3. treat lap 1 differently (which can start from an off-track grid)?
  4. treat Joker laps differently (mostly slower than regular laps)?
  5. is support for both DiRT Rally 2.0 as well as the original version possible?
  6. list/export RX laptimes separate from stage times (since these are unrelated)?

Since a bunch of new tracks and cars must be identified, I could assist with providing the telemetry data for those.

@gotleg
Copy link

gotleg commented Jan 10, 2021

Hi,

Yes my app will be open source but for now it is dirtt as I was just exploring 😜
I'll clean this UP and publish it probably tonight or tomorow.

1- I record every last_lap_time with trackname (based on track_length) and lap number + timestamp.
2- It would be great but I have no Idea how to detect this. Maybe WE Can already track total race Time and lap count to regroup.
3 - yes possible based on lap number
4- yes Maybe based on lap_distance.
5- I Only tried DR2 but Packets seems close this shoul be possible
6- based on track length i Can already identify wich track we are driving

@gotleg
Copy link

gotleg commented Jan 10, 2021

By the way one part of my project is providing an API to report personnal laps and then create WEB dashboard to analyses performances on tracks, during time, ...
I'll probably also add "community features" like create a team with other pilots and provide a team dashboard.
Maybe I can focus my energy on this API + dashboards and help you add rally cross support + API calls so we can have complementary features :)

@maxbechtold
Copy link
Collaborator Author

2- It would be great but I have no Idea how to detect this. Maybe WE Can already track total race Time and lap count to regroup.

Yeah, I don't see how this can be pulled from the telemetry with certainty. But maybe it's not needed anyway.

6- based on track length i Can already identify wich track we are driving

Of course the tracks can be identified by length (like for stage rallies), I meant that there might be a script like list-rx-laptimes.bat which only shows RX laps. RX times should also be stored in a table separate from stage times, e.g. top speed doesn't seem to make sense per lap.

By the way one part of my project is providing an API to report personnal laps and then create WEB dashboard to analyses performances on tracks, during time, ...

Interesting, but an entirely different topic. This tool started out as a web solution (which was broken since the server was shut down). Considering this could be seen as poaching in Codemaster's territory (Racenet), I don't think dirt-rally-time-recorder should go that way. GDPR and data privacy in general is also something that would have to be taken into account.

Instead, I've been thinking about a peer-to-peer solution where users can exchange their best times without a central server, just by exchanging db files. I think it's less effort than going client/server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants