Skip to content
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

Question regarding Base64 Deck URIs. #171

Closed
FelixRilling opened this issue May 1, 2020 · 3 comments
Closed

Question regarding Base64 Deck URIs. #171

FelixRilling opened this issue May 1, 2020 · 3 comments

Comments

@FelixRilling
Copy link

I am the author of yugioh-deck-tool, a web application that more or less mimics the deck builder of EDOPro.
I was wondering if there is some form of loose specification for Base64 Deck URIs EDOPro uses (The structure of ydke://foo!bar!fizz) so that myself and authors of different tools which currently consume .ydk files can make use of those URIs as well.

Only somewhat related, but I currently have a similar feature which however only targets encoding to individual URL query parameters (https://github.com/FelixRilling/yugioh-deck-tool/blob/development/packages/core/src/core/business/service/DeckUriEncodingService.ts).

@edo9300
Copy link
Owner

edo9300 commented May 1, 2020

ydke structure is pretty simple, it consists if 3 base 64 strings identifying relatively deck, extra and side, separated by ! (as it's not part of the base64 alphabet, those base64 strings represent an array of ints consisting of the card codes, you can find a ts implementation of the parsing here

@AlphaKretin
Copy link

Just for the record, I don't have any issue with that code being used as a reference. 👍 The relevant bit is the ToPasscodes function, once you've extracted the three segments.

@FelixRilling
Copy link
Author

Thank you for the help and the reference!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants