zoffline / zwift-offline

Use Zwift offline
GNU Affero General Public License v3.0
758 stars 122 forks source link

RoboPacers #332

Closed Mattinada closed 6 months ago

Mattinada commented 6 months ago

amazing work.

I would like to know if it is possible to create your own RoboPacers and how. Missing a few at a red pace.

Thanks

fatsbrown commented 6 months ago

RoboPacers are actually activity replays, like ghosts, except that they were recorded using a power simulator.

It's possible to create your own, but it requires some work (and patience).

Some important details:

The script bot_editor.py can be used to modify the profile (set name, player ID and route ID) and route (cut the exceeding points to make a perfect loop).

Mattinada commented 6 months ago

Thank you very much!! very efficient. I already had something in advance but having the activity recorded at 3 seconds the bot teleports ;) We will continue testing. regards

oldnapalm commented 6 months ago

If you want to create a dynamic RoboPacer (increase power on climbs and decrease on descents) you can use this

https://github.com/oldnapalm/zwift-offline/blob/master/standalone_power.py

It requires 2 ANT sticks and https://github.com/mch/python-ant

Mattinada commented 6 months ago

Thanks for the help,good contribution, but I can't get it to work. I get this error:

from PowerMeterTx import PowerMeterTx, NETKEY, POWER_SENSOR_ID ModuleNotFoundError: No module named 'PowerMeterTx'

greeting

oldnapalm commented 6 months ago

I forgot to mention, you need to use my fork or download this file and put in your zwift-offline folder

https://github.com/oldnapalm/zwift-offline/blob/master/PowerMeterTx.py

Mattinada commented 6 months ago

working!!! very grateful to both of them. greetings