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

Tracklist 2nd run #58

Closed eckhchri closed 8 years ago

eckhchri commented 8 years ago

During 2nd run tracklist comment are set to "no comment because no refpoint" although it exists RefPoint for it. Problem should exists within buildTracklist() function

eckhchri commented 8 years ago

root cause: it looks like the RefPointArray "looses data"

workaround: var aRefPointInt = aRefPoint.slice(); // real copy of array -> partially work var aRefPointInt = new Refpoint("-1"); -> working correct

eckhchri commented 8 years ago

some fixes with https://github.com/eckhchri/pcars-ds-liveview/commit/6436c4e101a1b0b315701316eb1719ea6206f1ba BUT: still phenomenon a.) with trackID 0 if DS not running b) 2nd part of Buildtracklist() did not skip ofr existing entries

eckhchri commented 8 years ago

Fixed with commit https://github.com/eckhchri/pcars-ds-liveview/commit/59d275a819f16e17c42fd1784e13fc5f1e3a0d56

root cause was the way how the aSkipList array was filled.