-
Notifications
You must be signed in to change notification settings - Fork 197
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
character ids #220
base: mistress
Are you sure you want to change the base?
character ids #220
Conversation
Those ids look like what Mihoyo uses officially. This approach has its advantages but IMO there's a few problems with their numbering system.
|
Good points, I thought about using IDs separate from Mihoyo originally but it felt more potentially confusing to make up a system from scratch - wouldn't that be even more confusing for future users figuring out what ids have and have not been used/which order to implement ids with unreleased characters? A bit confused about your third point, say if we don't have gaps in numbering so 1 = Albedo 2 = Alhaitham etc. like the current existing folder structure that might make it easier for when writing a for loop if you do like a simple incremental range but you'd still need to know what numbers belonged to each character and the folder structure changes from naming so alphabetical wouldn't make a lot of sense. Wouldn't a new reasoning be even more arbitrary and another thing we'd have to keep track of? I don't think it would be that much trouble to just loop through a list of ids, I'd be open to ideas on a unique system but I thought using Mihoyos would just standardize and make it easier for people to add ids rather than reinventing the wheel.
|
The question is, how well-known Mihoyo's IDs are? I encountered them while reverse-engineering their website, but does anyone in the community also use them? Do Mihoyo themselves use them consistently across their whole website and in the game itself? As for reinventing the wheel, I used to have an ID system like this in genshin.hemlo.cc/partybuilder: characters are sorted by release date, and alphabetically for characters that were released simultaneously. I'm not using it anymore for reasons, but that was a rather convenient system if I do say so myself. Here's an example:
|
Actually by release date/alphabetically also sounds pretty good to me, people can find that information for characters more quickly (I also got just the Mihoyo IDs through what previous poster had made and from various sources) but release date would be more easily accessible and shouldn't be too hard for users to continue. I'll update PR to have that option sometime, thanks for the idea it does sound convenient :) |
if you can find an official source for those IDs they would be a great addition |
@JMPJNS if you send a GET request to https://sg-public-api.hoyolab.com/event/simulatoros/config it will return characters with IDs like those in this PR, but they have problems that I outlined earlier |
Ignore what I said earlier in this thread, I didn't read the linked issues properly back then. This PR isn't really related to the issues — adding numeric IDs wouldn't have solved them. But they are some kind of in-game data — I believe you can find those IDs in Dimbreath's datamines too, not just Hoyolab API. I'm not sure how valuable it is |
fixes #110
fixes #149