eckhchri / pcars-ds-liveview

Provides a html page for project cars dedicated server and display a map of the current race.
14 stars 1 forks source link

Number of tracks from DS 89 vs 91 if DS ist deactivated #26

Closed eckhchri closed 9 years ago

eckhchri commented 9 years ago

Different number of tracks within the TrackList table.

If DS is runnung ( even no race/practice was startet) we have 89 tracks If DS is disabled we have 91 tracks

viper4gh commented 9 years ago

How are the 91 tracks counted? I ask, because we have 2 default refPoints with the IDs 8888888888 (fictional track default)and 999999999(global default Slightly Mad Studios).

viper4gh commented 9 years ago

grep aRef class_reference_points.js | grep -v Array | grep -v circuit | grep -v console | grep -v return | wc -l results in 91 We have 91 refPoints in the class_reference_points.js The first 2 points are default refPoints to inherit values to track refPoints, but they are no tracks. I think all is correct, because we have 89 track refPoints in the class_reference_points.js.

eckhchri commented 9 years ago

Change way of implementation for BuildTracklist(). Now this function will merge RefPointTracklist with DSTracklist to create a unioin of both.