zoffline / zwift-offline

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

Create single .bat executable for easy Windows launch #21

Open zoffline opened 5 years ago

zoffline commented 5 years ago

Create a single batch file to first run the standalone zoffline server and then launch Zwift requiring only a single launch on Windows.

rdvAndroid commented 4 years ago

Looking for beta testers.

I have developed a batch script that covers this request plus adds additional Zoffline capabilities. It doesn't automatically launching Zwift after starting the Zoffline server but that could easily be added. I found that separating Zoffline server launching from Zwift launching was actually better in the long run. My indoor workouts involve switching between Zwift and Zoffline so fusing them never seemed necessary.

Script features:

  1. Toggle the Zwift On-Screen-Display ON/OFF. This is most useful for racing
    Ghost riders as it provides a more immersive experience. This hack works on Zwift without Zoffline being active. Ghost names and Workout intervals continue to be displayed.
  2. Copy custom workouts from a Zwift profile to a Zoffline profile. Typically when Zoffline is running Zwift Custom Workouts are not listed in the Workouts menu.
  3. Toggle Zoffline, specifically remove/add the "#" comment for the Zoffline hosts entry and kill any active Zoffline and Zwift processes that may be running. This just automates the manual instructions for Zoffline.
  4. If Zoffline is enabled (see #3 above) then start the Zoffline executable.

If the lead developer(s) want this script to be added to the project I'd be willing to go through the usual Git submission process.

README.md - https://pastebin.com/QUdaQmuP Zoffline_hacks.bat - https://pastebin.com/WtBSus3u

I'm following this open feature request so please submit comments here.