Metagross31 Posted July 11, 2022 Share Posted July 11, 2022 Here comes another one for far down the priority list! I recently played a little bit of Guild Wars and noticed, that they have a system, where you can create a code from your character build from ingame, share it with other people and then they can use it to quickly copy your build. How about adding a similar feature to Skylords, where you can create a code (basically like a hash, but reversable) from your current deck, which the game displays to you and you can copy it to your clipboard and share it with other people. Those people then have a button when creating a deck, which says something like "create deck from code", and when you paste the code in there, the game automatically creates the deck for you. This could make sharing decks more convenient then taking screenshots of decklists, especially when newer players don't know the name of all cards just from a small icon. This way one could also create a Discord bot, that can show a decklist from a given code. Is this possible given what resources are available to us? Link to comment Share on other sites More sharing options...
Kubik Posted July 11, 2022 Share Posted July 11, 2022 why hash? Hash should never be reversible 😄 why not just list of card IDs? Link to comment Share on other sites More sharing options...
Metagross31 Posted July 11, 2022 Author Share Posted July 11, 2022 Oh, Kapo's post was already exactly what I meant 😅  3 hours ago, Kubik said: why not just list of card IDs? Would also work, but ideally it should be something that is not too long. Link to comment Share on other sites More sharing options...
Kubik Posted July 11, 2022 Share Posted July 11, 2022 20 numbers is not too long, and I think making it semi-readable also for humans makes it much better Link to comment Share on other sites More sharing options...
Lans Posted July 11, 2022 Share Posted July 11, 2022 Not really sure if it is doable in 20 numbers (byte/characters) but easily doable in 40 to 80 (a brute force way is just to have 20 slots of card ids, you can take a few extra bits for upgrade/charges or not). I sometimes use hashes to generate a set (e.g. some decks are really the same just different order). Link to comment Share on other sites More sharing options...
Kubik Posted July 12, 2022 Share Posted July 12, 2022 I mean 3-4 characters long numbers separated by comma and space for readability, but sure you can go crazy and say car requires 13 bits, upgrades and charges another 3, so you can do 80 hex characters, or use base64 and use only 56 characters... Problem is implementing that for our sides... Link to comment Share on other sites More sharing options...
Mynoduesp Posted September 21, 2022 Share Posted September 21, 2022 (edited) When it was possible for Cards... It's probably possible for Decks too. Just implement it 4Head. 😄 All we need is an export to the clipboard: 👼"id=703|id=374|id=677|id=663|id=664|id=1409|id=426|id=524|id=661|id=527|id=1482|id=1343|id=414|id=662|id=427|id=431|id=707|id=707|id=1200|id=1318|id=1224" Edited September 21, 2022 by Mynoduesp meming btw, do what you can do Kubik, we all know you do :P Metagross31 likes this Link to comment Share on other sites More sharing options...
Kubik Posted November 6, 2022 Share Posted November 6, 2022 Import: Spoiler Export: Spoiler @Eirias thinks this would be good enough. What others think? To me it seems weird you need to accept show deck after typing command, but it have the advantage of not needing even a single new button. Kapo, Metagross31, Ultralord and 2 others like this Link to comment Share on other sites More sharing options...
Blitzling Posted November 6, 2022 Share Posted November 6, 2022 does it push an error if you are missing a card? Link to comment Share on other sites More sharing options...
Kubik Posted November 6, 2022 Share Posted November 6, 2022 What you mean "push an error if you are missing a card"? When exporting a deck you can not be missing a card because you have it in the deck. And when importing it will just show you the deck from fake player "{import deck}", where you have the option to copy it as when any other player would show you the deck, which is an existing functionality so you can check how that behaves when you are missing a card, I think you will get a warning message and it will leave an empty space. Link to comment Share on other sites More sharing options...
Blitzling Posted November 6, 2022 Share Posted November 6, 2022 (edited) I didn't realize that "copy deck" was a built into the game. Shows how much I know. I think even without a fancy button or interactable, its a really nice feature to have. Edited November 6, 2022 by Blitzling Link to comment Share on other sites More sharing options...
Kubik Posted November 6, 2022 Share Posted November 6, 2022 I am not sure when it was added, could easily be 2 years ago. Link to comment Share on other sites More sharing options...
Metagross31 Posted November 6, 2022 Author Share Posted November 6, 2022 3 hours ago, Kubik said: Import: Â Reveal hidden contents Export: Â Reveal hidden contents @Eirias thinks this would be good enough. What others think? To me it seems weird you need to accept show deck after typing command, but it have the advantage of not needing even a single new button. Awesome! I love it! Link to comment Share on other sites More sharing options...
Ultralord Posted November 6, 2022 Share Posted November 6, 2022 9 hours ago, Kubik said: Import:  Reveal hidden contents Export:  Hide contents @Eirias thinks this would be good enough. What others think? To me it seems weird you need to accept show deck after typing command, but it have the advantage of not needing even a single new button.  Wow, that looks awesome  is it a base64 list of card IDs? (+Upgrade) Or what black magic have you used? Link to comment Share on other sites More sharing options...
Kapo Posted November 7, 2022 Share Posted November 7, 2022 Awesome Work! Link to comment Share on other sites More sharing options...
Kubik Posted November 7, 2022 Share Posted November 7, 2022 (edited) 9 hours ago, T1421 said: is it a base64 list of card IDs? I am not going to copy the text from the image to check which one it was 😛 It is still not merged, so everything is subject to change! Right now: Already outdated: Export is base64 encoded: 1 Byte for version, and up to 20 card IDs (without upgrades) as 16 bit numbers (little endian) Import have 2 options: the base64 encoded from above json array of ids that can have upgrades "[1004, 1001021, 1029, 3001030, 2001031, 2001032, 2001033, 2001034, 2001035, 2001117, 2001119, 2001120, 3001121, 3001122, 1123, 1124, 3001126, 2001128, 1001129, 1131]" Export is without upgrades and without empty spaces (for now), because upgrades are irrelevant because whatever importing player have will be used, and empty spaces, well I just have no clue how to get this info from the game yet. Edited November 7, 2022 by Kubik Ultralord likes this Link to comment Share on other sites More sharing options...
Kapo Posted November 7, 2022 Share Posted November 7, 2022 (edited) 8 minutes ago, Kubik said: Export is without upgrades and without empty spaces (for now), because upgrades are irrelevant because whatever importing player have will be used, and empty spaces, well I just have no clue how to get this info from the game yet. For the functionality we players need, the empty spaces are irrelevant anyway, and I'm not 100% sure they are copied over at all when someone would share you a deck with such spaces. As I mentioned in the other forum thread, this will lift us out of the dark ages when we share decks with screenshots. Edited November 7, 2022 by Kapo Link to comment Share on other sites More sharing options...
Kubik Posted November 7, 2022 Share Posted November 7, 2022 well if deck have 20 cards empty spaces are not relevant because there are none, but if there is empty space in the middle losing it breaks keybindings, because as you know first card is F1 (by default) and and pressing F1 twice will select 10th card, but if there was empty space in between, and not there will be not, it will select different card, because they all will be packed to the left. Not a big deal (in my opinion), but something to keep in mind, I hope that most decks are full and will not have this issue 🙂 Link to comment Share on other sites More sharing options...
Kubik Posted November 7, 2022 Share Posted November 7, 2022 ok you can try the preview on https://jakub.bandola.cz/wa/deck_info/index.html as the time of writing there are 2 options: everything is still subject to change character "A" followed by base64 (url safe version) encoded sequence of card IDs (16 bits each) (A for versioning purposes, in case we found better way to represent it we might use B for second version, while still accepting codes in version A) for example: "AWgFiAVkBBAXpAgEGBQYkAnkFgQYzAyoCHQLcBBgCWAEmBaAExQT-BA==" json array for example: "[1004, 1001021, 1029, 3001030, 2001031, 2001032, 2001033, 2001034, 2001035, 2001117, 2001119, 2001120, 3001121, 3001122, 1123, 1124, 3001126, 2001128, 1001129, 1131]" Mynoduesp, Eirias, Ultralord and 1 other like this Link to comment Share on other sites More sharing options...
Mynoduesp Posted November 9, 2022 Share Posted November 9, 2022 Awesome! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now