The online racing simulator
WolleT / Boothy / MoE LFS-Tracker
(80 posts, started )
What do you mean? Trackers shows driver name same way.
No I meant on index
Qualifying is like this

And normal race is like this
Attached images
qual.jpg
race.jpg
It's tracker for long races where start team. You can change team name to drivers name and tracker will show it.
-
(Jonathon.provost) DELETED by Jonathon.provost
That's a new bit of code that I'm sure poofy will release in a new sauce version when he deems fit.
Ok Thanks a lot :P
I'll add it when I next update the tracker, some time in August. But if you can't wait that long, just look at the code in stats.php for the driver flag/name and move it to where you want it.
OK, Thanks a lot.
Thought I'd stick to my word and get this out in August, a lot of changes built up over the past few months. Haven't had time to get the docs updated, so just ask questions here about the new stuff if you need help. The old version of the tracker is available on dropbox so you can use WinMerge and compare the two if you wish.

Changelog to 24-08-2012

Web tracker
  • Updated country flags to respect correct aspect ratio, added all European and other highly populated countries (now 83 countries in total)
  • Various code optimisations
  • All images now have $trackerRoot in their src attribute
  • $raceClassName[‘Example Class’] = colour - ability to define css class names for each row of a car class (default grey, others red/green/blue/darkred/purple/orange) for table striping and row hover
  • Where $numClasses = 1 but multiple classes are defined, class colours etc. are used but standings are combined as one class.
  • Updated numbers before $colspanExtra
  • mobile.php for race and qualifying is included although not enabled by default - produces this
config.php
  • added: $showCars, $showPrev, $raceControl, $raceFocus, $driverName
  • removed: $showSectorStatus
functions.php
  • Teams which are disqualified are sorted behind all other teams but ahead of those who are DNS regardless of $sortStatus
  • Pre-session standings in qualifying/practice are now sorted by car number
  • $qualElimination sorts standings by each team’s max race_id
  • Empty time strings and the “h” indicating hours, are hidden by default
header.php
  • miles remaining added to lap based races
  • $standingStart expanded to accept: “formation” for races with a formation lap + standing start or an integer for multiple formation laps + rolling start - false still counts as a 1 lap rolling start
  • final lap text will be shown in the race status in lap based races
  • “— Race” text added to h2 event name
stats.php
  • $raceFocus = driver/team - added to display either team or driver name first
  • $showCars - can remove car display column
  • $showPrev - displays previous lap time
  • Previous/best lap now highlights a drivers best lap (default colour blue) if not a team or class/race best
  • Difference column now highlights those teams who are less than 1 second behind
  • Driver percent, race laps and total driving time now only show when there is more than 1 driver
  • Non-standing starts now affect the total laps, percentage and driving time per driver
stats2array.php
  • Fixed a bug where DT and SG penalties from earlier sessions would show up
  • Once a team’s data is filtered to ensure only one driver is actually driving, the array is unset
  • $raceControl needs to be true for racecontrol.html to be produced
teamstats.php
  • Various fixes as per stats.php
  • Added car number and colouring to teamstatscomparison
unfiltered.php
Filter_laps and raw_laps will display if both are present
variables.php
trim() function used on names, usernames and countries

css/tracker.css
  • text colour changed to #222
  • id based table striping replaced by nth-of-type(4n+1)
  • various other improvements
qualifying/qstats.php
Various fixes as per stats.php
qualifying/qstats2array.php
  • $qualElimination finds a team’s latest race_id and uses that to sort the standings
  • Fixed a bug where an two or more equal laps by a team meant fastest_lap_on was wrong
  • $raceControl needs to be true for racecontrol.html to be produced
qualifying/qteamtats.php
  • Various fixes as per qstats.php and teamstats.php
  • Added a driver column to list of laps, only for first lap, best lap and when there is a driver change
  • Race/class and team best laps are only indicated when they match fastest_lap_on
Thanks man, Good Work.
Quote from boothy :functions.php
...
  • $qualElimation sorts standings by each team’s max race_id
  • Empty time strings and the “h” indicating hours, are hidden by default

Is that a typo?
-
(Jonathon.provost) DELETED by Jonathon.provost : Problem sorted
-
(Jonathon.provost) DELETED by Jonathon.provost
Hello,

I had a bug or something with the new patch.

I was running the tracker as per the docs but It only tracked the top 16 or so.
http://tracker.ident-racing.net/qualifying.html
Almost all of these drove and did laps.

No idea how this happened.

Please help.

Kind Regards,
J.Provost
Would you like me to use my telepathic powers to solve this or are you going to give me some useful information, like the database and config files?
Nothing in those files seem out of the ordinary (though I will fix the prev lap column). Were there two qualifying sessions or something? What happens if you set $allRaceids to true?
Will try soon. Thanks.
There was only 1 Qual but I don't think I deleted the team files and results from a last championship.
Probably the last update for a while, as everything seems to be fixed.

Changelog to 10-11-2012


Web tracker
config.php
  • added: $raceMins, $debugStats
header.php
  • PHP date() “e” now used as timezone identifier
  • Countdown now works for minute based races using $raceMins in the same way as hours
racecontrol.php
  • $debugArrays now shows the $XMLCHAT array in racecontrol.html
stats.php
  • Team column will not display when no driver has a team and $raceFocus == driver
  • Removed display of average and driving time if they are 0
  • Fixed a bug where best lap on lap 1 of a race would display 0.00
  • Now correctly highlights a driver’s best lap of the race in the previous column
stats2array.php
  • $allRaceids now works in race mode
  • $trimFinished now works if the race status is set to chequered flag
  • Further tweaks to support changes in stats.php
teamstats.php
  • Various fixes as per stats.php
  • Highlighting each drivers’ fastest lap in the stint listing now works properly
update.php
  • added memory usage and time information
qualifying/qheader.php
  • PHP date() “e” now used as timezone identifier
qualifying/qstats.php
  • Various fixes as per stats.php
  • Removed code relating to DT/SGs, driver swaps and pit stops
  • Now checks to see if $showPrev is true
  • Fixed a bug where the “On” column would show -1
  • Best lap for each driver will now only show where there is more than one driver in a team
qualifying/qstats2array.php
  • Various fixes as per qstats2array.php
  • Removed code relating to DT/SGs, driver swaps and pit stops
  • Checks which driver is on track where there is more than one driver in a team
qualifying/teamstats.php
  • Various fixes as per qstats.php and teamstats.php
Thanks boothy.

Would it be possible in the future to have a update that you could have 2 races for one event. e.g. Qualifying > Race #1 > Race #2

Thanks
Ok, I'm getting a bit annoyed now. So any help would be appreciated. Something is clearly wrong on the DB side of things but can't figure out how to fix it. Tried to check how to change the version but that is beyond me.
Attached images
mysql error.jpg
Your MySQL isn't setup correctly. If its setup to listen on a socket, then your PHP isn't setup for that configuration. Else, it [MySQL] might not be setup to listen via TCP.

For the tl;dr: Sysadmin tasks should be left to sysadmins.
I am curious because I am unsure how to change any of what you just said.
info from web host:
•Server: Localhost via UNIX socket
•Software: MySQL
•Software version: 5.5.30-cll-lve - MySQL Community Server (GPL)
•Protocol version: 10
•User: (sensored)@localhost
• Server charset: UTF-8 Unicode (utf8)


•cpsrvd 11.36.1.6
•Database client version: libmysql - 5.0.96
•PHP extension: mysql Documentation

•Version information: 3.5.5, latest stable version: 4.0.3
What's the contents of your php.ini file? Are you trying to run the tracker locally with a remote MySQL server? If so, it's possible that your remote MySQL server doesn't permit connections from non-local sources, or requires a whitelist of permissible IP addresses (for security).

If you really can't figure it out, find me on the #ndr or #liveforspeed IRC channels.

WolleT / Boothy / MoE LFS-Tracker
(80 posts, started )
FGED GREDG RDFGDR GSFDG