Update to Zwift 1.0.107342

Add Scotland events
Fix get_partial_profile for ghosts
Still need to update variants.txt and game_info.txt
This commit is contained in:
cdemer
2023-01-30 09:19:13 -03:00
parent 32562fcc18
commit 566f4ab06b
4 changed files with 22 additions and 26 deletions
+6 -6
View File
@@ -16,7 +16,7 @@ There are three ways with which to install and run zoffline depending on your pl
<details><summary>Simplest (Windows only)</summary>
To install zoffline on Windows:
* Download the latest zoffline release from https://github.com/zoffline/zwift-offline/releases
* Download the latest zoffline release from https://github.com/zoffline/zwift-offline/releases/latest
* If you want the pace partners, download the source code package and extract the ``pace_partners`` directory to the same folder zoffline is in.
* Run the downloaded zoffline.exe
* Once run, zoffline will create a ``storage`` directory in the same folder it's in to store your Zwift progress.
@@ -95,10 +95,10 @@ zoffline can be installed on the same machine as Zwift or another local machine.
<details><summary>Windows Instructions</summary>
* Install Zwift
* If your Zwift version is 1.0.106405, you're all set.
* If your Zwift version is 1.0.107342, you're all set.
* If Zwift is not installed, install it before installing zoffline.
* If your Zwift version is newer than 1.0.106405 and zoffline is running from source: copy ``C:\Program Files (x86)\Zwift\Zwift_ver_cur.xml`` to zoffline's ``cdn/gameassets/Zwift_Updates_Root/`` overwriting the existing file.
* If your Zwift version is newer than 1.0.106405 and zoffline is not running from source: wait for zoffline to be updated.
* If your Zwift version is newer than 1.0.107342 and zoffline is running from source: copy ``C:\Program Files (x86)\Zwift\Zwift_ver_cur.xml`` to zoffline's ``cdn/gameassets/Zwift_Updates_Root/`` overwriting the existing file.
* If your Zwift version is newer than 1.0.107342 and zoffline is not running from source: wait for zoffline to be updated.
* __NOTE:__ instead of performing the steps below you can instead just run the __configure_client__ script from https://github.com/zoffline/zwift-offline/releases/tag/zoffline_helper
* On your Windows machine running Zwift, copy the following files in this repo to a known location:
* [ssl/cert-zwift-com.p12](https://github.com/zoffline/zwift-offline/raw/master/ssl/cert-zwift-com.p12)
@@ -123,9 +123,9 @@ to generate your own certificates and do the same.
<details><summary>macOS Instructions</summary>
* Install Zwift
* If your Zwift version is 1.0.106405, you're all set.
* If your Zwift version is 1.0.107342, you're all set.
* If Zwift is not installed, install it before installing zoffline.
* If your Zwift version is newer than 1.0.106405: copy ``~/Library/Application Support/Zwift/ZwiftMac_ver_cur.xml`` to zoffline's ``cdn/gameassets/Zwift_Updates_Root/`` overwriting the existing file.
* If your Zwift version is newer than 1.0.107342: copy ``~/Library/Application Support/Zwift/ZwiftMac_ver_cur.xml`` to zoffline's ``cdn/gameassets/Zwift_Updates_Root/`` overwriting the existing file.
* On your Mac machine running Zwift, copy the following files in this repo to a known location:
* [ssl/cert-zwift-com.p12](https://github.com/zoffline/zwift-offline/raw/master/ssl/cert-zwift-com.p12)
* [ssl/cert-zwift-com.pem](https://github.com/zoffline/zwift-offline/raw/master/ssl/cert-zwift-com.pem)
@@ -1,9 +1 @@
<Zwift
version="1.0.106405"
sversion="1.32.1 (106405)"
gbranch="rc/1.32.1"
gcommit="29711afada1750b5d7c4ecf94c1b517a7545e3e8"
GAME_URL="https://us-or-rly101.zwift.com"
manifest="ZwiftMac_1.0.106405_f39c1a18_manifest.xml"
manifest_checksum="1483828415"
ver_cur_checksum="-977631539"/>
<Zwift version="1.0.107342" sversion="1.33.1 (107342)" gbranch="rc/1.33.1" gcommit="da4cd9794d59f274755b6fc201e5c415c9adfcf2" GAME_URL="https://us-or-rly101.zwift.com" manifest="ZwiftMac_1.0.107342_b4673b5f_manifest.xml" manifest_checksum="947463282" ver_cur_checksum="-1381478177"/>
@@ -1,9 +1 @@
<Zwift
version="1.0.106405"
sversion="1.32.1 (106405)"
gbranch="rc/1.32.1"
gcommit="29711afada1750b5d7c4ecf94c1b517a7545e3e8"
GAME_URL="https://us-or-rly101.zwift.com"
manifest="Zwift_1.0.106405_f39c1a18_manifest.xml"
manifest_checksum="-1848179889"
ver_cur_checksum="2020951881"/>
<Zwift version="1.0.107342" sversion="1.33.1 (107342)" gbranch="rc/1.33.1" gcommit="da4cd9794d59f274755b6fc201e5c415c9adfcf2" GAME_URL="https://us-or-rly101.zwift.com" manifest="Zwift_1.0.107342_b4673b5f_manifest.xml" manifest_checksum="886964078" ver_cur_checksum="-1118697278"/>
+14 -2
View File
@@ -348,7 +348,8 @@ courses_lookup = {
13: 'Makuri Islands',
14: 'France',
15: 'Paris',
16: 'Gravel Mountain' # event specific
16: 'Gravel Mountain', # event specific
17: 'Scotland' # event specific
}
tree = ET.parse('%s/cdn/gameassets/GameDictionary.xml' % SCRIPT_DIR)
@@ -407,6 +408,12 @@ def get_partial_profile(player_id):
profile = global_pace_partners[player_id].profile
elif player_id in global_bots.keys():
profile = global_bots[player_id].profile
elif player_id > 10000000:
g_id = math.floor(player_id / 10000000)
p_id = player_id - g_id * 10000000
partial_profile.first_name = ''
partial_profile.last_name = time_since(global_ghosts[p_id].play[g_id-1].states[0])
return partial_profile
else:
#Read from disk
profile_file = '%s/%s/profile.bin' % (STORAGE_DIR, player_id)
@@ -1115,7 +1122,12 @@ def api_per_session_info():
return info.SerializeToString(), 200
def get_events(limit, sport):
events_list = [('2022 Bambino Fondo', 3368626651, 6),
events_list = [('City and the Sgurr', 4107749591, 17),
('Glasgow Crit Circuit', 3765339356, 17),
('Loch Loop', 742057576, 17),
('Rolling Highlands', 46799750, 17),
('The Muckle Yin', 3662705581, 17),
('2022 Bambino Fondo', 3368626651, 6),
('2022 Medio Fondo', 2900074211, 6),
('2022 Gran Fondo', 1327147942, 6),
('Alpe du Zwift Downhill', 1480439148, 6),