pcars
pcars copied to clipboard
does this "work" with pcars2?
Hi. Awesome code. However, im using it with pcars2 and everything works except once in a while, ill get an error:
ValueError: 256 is not a valid PitSchedule
ive tried to edit out the relivent parts of packet.py, but then i get even worse errors.
I've not got a copy of pcars2, but as you've experienced things should mostly just work.
Try adding
UNKNOWN = 256
to the end of PitSchedule
in enums.py
? I've no idea what the value is supposed to represent :slightly_smiling_face:
Actually, this might just be a duplicate of #10 (which I really ought to get around to fix).
Just a note for the future:
PC2 has the option of sending packets in the PC1 format, so when you're not sure about reliability you can always use the old protocol :) You can change that in the settings menu.