-
Notifications
You must be signed in to change notification settings - Fork 146
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
feat: Add game type alias #487
base: master
Are you sure you want to change the base?
Conversation
This is definitely something that has to be done, thanks.
Would advocate to do so here, so we are sure we cover every possible problem that could appear while doing so. I wouldn't name this field as While adding this 'translation' layer, you could find cases where:
And what would we want to do here? Prioritize newly ids or older ones? This'll go multiple ways:
We'll have to decide the default behaviour, also this 'translation' layer could (and I guess will) be removed after a new major version (v6). |
Nice! I'll start adding GIDs from previous commits to this PR, so we keep everything together! (: — About the name, I'm not strongly attached to Almost like having a full and a short name. So for example: Counter Strike 2, the full main format would be This would exempt us from thinking about new/old and prioritization when looking for GIDs, and it would work in all major versions, even if we decide to change our naming guidelines. Which would probably mean that we could have more than one alias in the future. Let me know what you think! |
I agree that As for having a 'short name', it could be done, but I don't really see much value in having this and maintaining it. |
Considering everything, I think this is just a minor detail in the big scheme of games ids. I do like the idea of being able to use But for now, let's focus on the other open discussions, and when it's time we can talk more about it. I don't want to bring even more things to consider, so I'll close this for now, as it's all linked and we can reference later. Thank you! (: |
It would be good to have more insight on how to proceed about this implementation! (: |
Suggestion: merge the old id check and the alias check into Could have both old ids and aliases and would make it extendable. p.s. unless there are conflicting old/new IDs i don't see a reason why not just check for all possible values and loose the option, its not that big of an overhead imo |
@a-sync Thanks for joining! ✨ That's the original idea, but @CosminPerRam has a different view about how to deal with this. |
It indeed isn't a big overhead, but we cant guarantee that eventually we wouldn't be adding a new id that conflicts with the old ones, thus breaking old behaviour, so I think its better to separate them so that the users of the lib are aware that they will eventually be removed. |
i disagree on this one. why would you add/allow a new id that conflicts with an existing one?
this can be done gradually by separating old / alias fields and deprecating the old IDs, before removing them completely eventually (eg. major version change) |
This adds an
alias
for GIDs, so it will work for the official current supported GID and also previous or new GIDs.Got this idea from this issue #465.
Noticed that Hidden and Dangerious2 had the GID updated, but also a few others had the GID updated as well (see PR #415), such as Age of Chivalry, Action: Source, Ark: Survival Evolved, Left 4 Dead etc. This will enable backwards compatibility for those previous GIDs.
Also, should I include alias GIDs on
lib/games.js
and updateGAMES_LIST.md
on this PR or should I open another?Let me know if this makes sense. Thank you! (:
—
Example: