Hi
@Boondoggler
Thanks for the script, it's working nicely! I encountered an error with it yesterday, which was triggered when starting a ride in Watopia, going the through the downtown start/finish arch, then reversing and going back through it. Multiple lines were logged to the OBS error log, complaining about line 454 of the script, and comp_avg_power being nul. The problematic log file line was this, I think:
[23:34:31] TIMING ARCH: Player passed finish line but it appears that not all checkpoints have been passed.
Your script currently parses lines with "TIMING ARCH:" for time and average power, and this results in a nul for comp_avg_power.
I changed line 446 so that it now checks for the existence of avg watts before computer the segment_comp value:
elseif string.match(line, "TIMING ARCH:") and string.match(line, "avg watts") then
This seems to solve the problem!