-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segment hash id #21
Comments
Hey, could you please provide some more context? Are you talking about Strava or Zwift segments? Until now, I didn't do any additional correlation and just used the ids as... ids. |
The in-game Zwift segments that you see on the leaderboard widget. It's the ID used for the Zwift api's |
I haven't worked with the Zwift API at all. The whole list of segments is manually collected and manually maintained. |
Thanks @andipaetzold I'll see what I can dig up then. |
Might have a lead on decompressing the .wad files with https://gitlab.com/r3dey3/zwift-utils I just decompressed every wad file I could find in the game and searched for a non segment hash id to find this...
|
Hi @andipaetzold I have listings of the in-game segment identifiers. Assuming you're still open to adding some of these ids, would you like a PR and if so which file is the correct one to make changes to? I see quite a bit of automation so I'm not sure which files are generated. |
Hey, It would be great if you could add the hash ids to the segments! I just reread your initial message which says that the ids would be "sint64" values, but you give an example with a negative number. Are you sure that you didn't run into an integer overflow here? You can add the ids here. The TypeScript type is defined here. After adding the new property, simply run |
Hi @andipaetzold, Sounds good, I'll start mapping up the data. Re the type: That's correct, they are using signed 64 bit numbers, most likely the result of a cast/rollover bug in their early impl. To make it even more interesting you must use an uint64 for the protobuf def and then manually cast to a sint64 to get the correct value expected by their REST API and to match what's in the world entities.xml files bundled with the game. Thought I was going crazy when trying to figure that one out. |
Hi,
I'm curious if you've ever attempted to correlate the segment entries with the segment "hash id". These are the sint64 values used by the segments api's, such as
-9223372027220687690
.The text was updated successfully, but these errors were encountered: