rFDynHUD widget creation problem - bug in code?

Hello everyone,

Recently I have been creating a race timing tower for rFDynHUD that shows the positions and gaps of the drivers in the race. I started from Prunn's F1 2011 widget, with some help from Marvin's Ecclestone TV 2010 widget, and slowly worked my way up until the looks and functionality were what I wanted them to be.

However, I have a problem. When I try to generate text for cars that are lapped (it should say "+1 LAP", "+2 LAPS", etc. depending on how many laps the car is down), I can't get the right number of laps from the VehicleScoringInfo.getLapsBehindLeader method. I looked into Marvin's original rFDynHUD code, and there seems to be a bug with this method. Instead of what it should do, it works the same way as the getLapsBehindNextInFront method, which returns the number of laps this car is down on the next car in front. But that's not what I want, I want the number of laps behind the LEADER!

I already tried to copypaste the code from Marvin's class into a new class and adding that to my widget set JAR, but that didn't work. I'm not very good at programming and specifically don't know a lot about programming in Java. Basically I've already given up on getting it to work properly, but just out of curiosity I was wondering if perhaps there's someone on this forum who is experienced with rFDynHUD widget creation and who could help me...
 

Latest News

What does easier access mean to you?

  • Free access

    Votes: 72 69.9%
  • Better structured events

    Votes: 27 26.2%
  • Better structured forum

    Votes: 19 18.4%
  • Standard game content

    Votes: 19 18.4%
  • No 3pa registration pages

    Votes: 21 20.4%
  • Too casual

    Votes: 9 8.7%
  • Other, please post

    Votes: 6 5.8%
Back
Top