Turn commands flaky when using Zwift Companion [July 2022] [3.37.0]

See here Important announcement that may affect your project · Issue #91 · sandermvanvliet/RoadCaptain · GitHub if you do that manually it should work

If I am reading this correctly:

if LEFT is among the turn options:
    STRAIGHT' = LEFT, LEFT, RIGHT, STRAIGHT
else:
    STRAIGHT' = RIGHT, RIGHT, LEFT, STRAIGHT

LEFT' = LEFT, LEFT
RIGHT'= RIGHT, RIGHT

wouldn’t left and right need to be options? they don’t always both appear if the options are just left and straight on or right and straight on

What I’ve implemented now and works (from in-game testing) is:

  • left/go straight in game: left, left, right, straight
  • right/go straight in game: right, right, left, go straight
  • left/right in game and I want left: left
  • left/right in game and I want right: right

You can take a look at the referenced commit in the github issue to show the code I’ve written for it.

how do you press right when it isn’t displayed in the companion app? That’s the bit I don’t get. If the options are left or straight on the only options I get are those two, the right arrow isn’t displayed.

Heh, of course that doesn’t work.
RoadCaptain can just send whatever to Zwift which is why this trick works.

Guess for Companion you’re still out of luck.

2 Likes

up, up, down, down, left, right, left, right, B, A, Start

:wink:

3 Likes

image

1 Like