4 stable releases

2.1.0 Sep 3, 2024
2.0.0 Aug 16, 2024
1.1.0 Feb 14, 2024
1.0.0 Feb 6, 2024

#1711 in Parser implementations

Download history 64/week @ 2024-08-10 135/week @ 2024-08-17 5/week @ 2024-08-24 153/week @ 2024-08-31 13/week @ 2024-09-07 29/week @ 2024-09-14 11/week @ 2024-09-21 8/week @ 2024-09-28 1/week @ 2024-10-05 3/week @ 2024-10-12

249 downloads per month
Used in insim

MIT license

120KB
2.5K SLoC

insim_pth

Parse a Live for Speed pth (path) file.

A pth file consists of a series points [Node], with direction and width ([Limit]), that describe the track that you drive along.

Historically LFS has used the PTH to watch your progress along the track, decides if you are driving in reverse, the yellow and blue flag systems, the position list, timing, etc.

On a standard LFS track the [Node] is communicated via MCI and NLP Insim packets.

On an open configuration [Node] are not used and are unavailable via Insim MCI packets.

The distance between each [Node] is not constant. According to the LFS developers there is approximately 0.2 seconds of time between passing one node and the next, when you are "driving at a reasonable speed".

Dependencies

~6MB
~174K SLoC