Maze 97 Posted January 5 Author Share Posted January 5 (edited) 13 minutes ago, CrispyChicken said: obviously it was just laziness not reading through skylords backend and just copy / pasting smj2.herokuapp table Thanks for the Link! Verry helpful, fast and easy to fetch! these might also interest you then: https://smj.cards/api/buyouts (current buyouts by card) https://smj.cards/api/details (current details by auction) the full data from the details api will be used by the reinstation of the deals page once it's done, but currently it is only used by the current auctions at the bottom of each card page 13 minutes ago, CrispyChicken said: Just recognized that your webserver (or any webserver) dislikes nox troopers https://smj.cards/404 lol, didn't notice that, but yeah sucks to be nox trooper xD Luckily there is at least no card with 500 as the id, xD I should be able to change that, but I don't think that many people look for nox trooper by it's official id either way. xD Edited January 5 by Maze CrispyChicken likes this Quote Link to post Share on other sites
CrispyChicken 1 Posted January 5 Share Posted January 5 (edited) 10 hours ago, Maze said: these might also interest you then: https://smj.cards/api/buyouts (current buyouts by card) https://smj.cards/api/details (current details by auction) the full data from the details api will be used by the reinstation of the deals page once it's done, but currently it is only used by the current auctions at the bottom of each card page lol, didn't notice that, but yeah sucks to be nox trooper xD Luckily there is at least no card with 500 as the id, xD I should be able to change that, but I don't think that many people look for nox trooper by it's official id either way. xD true, pretty shure barely anyone will use Official-ID and your ID is working fine. Many thanks for the API links I'm going to take advantage from!! Edited January 5 by CrispyChicken Quote Link to post Share on other sites
CrispyChicken 1 Posted January 6 Share Posted January 6 Hey Maze, you have any json including all official card id's? I'd like to match your id to official id by cardslug or id in some way instead of building compatible card names for allocation? Quote Link to post Share on other sites
Maze 97 Posted January 6 Author Share Posted January 6 8 hours ago, CrispyChicken said: Hey Maze, you have any json including all official card id's? I'd like to match your id to official id by cardslug or id in some way instead of building compatible card names for allocation? yes I have, I just forgot to expose it through an api (the cards have my own enums though, so not sure how usefull that will be for other people) Quote Link to post Share on other sites
CrispyChicken 1 Posted January 6 Share Posted January 6 6 minutes ago, Maze said: yes I have, I just forgot to expose it through an api (the cards have my own enums though, so not sure how usefull that will be for other people) ok, not a big deal.. i can go the indirect way.. Quote Link to post Share on other sites
Maze 97 Posted January 6 Author Share Posted January 6 8 hours ago, CrispyChicken said: I'd like to match your id to official id by cardslug or id in some way instead of building compatible card names for allocation my cardSlug is also just generated with this as a basis: https://hub.backend.skylords.eu/api/auctions/cards?id=all just make everything lower-case, add "-promo" if it's a promo, add "-r"/"-p"/"-g"/"-b" for the respective affinities and in case of Protector's Seal add either "-tl" or "-ls". but if there would ever be a card that needs all 3 different extensions I would probably go with the order: color -> promo -> affinity, just as a suggestion. 44 minutes ago, CrispyChicken said: ok, not a big deal.. i can go the indirect way.. I will expose it in the next patch (hopefully before this sunday), then you can use it for your mapping. I only created enums for most of the static card data (like color, rarity, edition, affinity), but my ID, cardSlug, cardName and official card ID is in all of them. I use cardSlug for the mapping most of the time, since all my data objects are set up to always have a cardSlug, but in theory I could just get rid of the cardSlugs and replace it with my own ID everywhere, but having it readable if I need to look something up helps and also sometimes there is more than one instance of a card, like in the details. so I only use my ID, in cases where there is only one instance of a card, like with buyouts, notables, or the static data, as the _id should never change. I used the cardSlug for that in the beginning, but then Lord Cyrian changed, so I switched to the official id, but then Plague changed. xD Quote Link to post Share on other sites
CrispyChicken 1 Posted January 6 Share Posted January 6 (edited) 43 minutes ago, Maze said: my cardSlug is also just generated with this as a basis: https://hub.backend.skylords.eu/api/auctions/cards?id=all just make everything lower-case, add "-promo" if it's a promo, add "-r"/"-p"/"-g"/"-b" for the respective affinities and in case of Protector's Seal add either "-tl" or "-ls". but if there would ever be a card that needs all 3 different extensions I would probably go with the order: color -> promo -> affinity, just as a suggestion. already coded it like that and not to forget the backend "bug" with sandstorm-r which was changed to -b Thank you! 43 minutes ago, Maze said: I use cardSlug for the mapping most of the time, since all my data objects are set up to always have a cardSlug, but in theory I could just get rid of the cardSlugs and replace it with my own ID everywhere, but having it readable if I need to look something up helps and also sometimes there is more than one instance of a card, like in the details. so I only use my ID, in cases where there is only one instance of a card, like with buyouts, notables, or the static data, as the _id should never change. I used the cardSlug for that in the beginning, but then Lord Cyrian changed, so I switched to the official id, but then Plague changed. xD hmm.. yea ID's should never change but in case of plague.. irony Edited January 6 by CrispyChicken Quote Link to post Share on other sites
Kubik 237 Posted January 6 Share Posted January 6 11 minutes ago, CrispyChicken said: hmm.. yea ID's should never change but in case of plague.. ironie It is different card, and the old one still exist Quote Link to post Share on other sites
CrispyChicken 1 Posted January 6 Share Posted January 6 oh.. this might be legit then Quote Link to post Share on other sites
Maze 97 Posted January 8 Author Share Posted January 8 I decided to implement a few additional feature that were suggested, and were on my list in some way anyway, so I just went ahead and coded them up. But keep in mind that they are only in a preliminary state and layout changes are highly probable. It was surprisingly fast to code with 2 long evening sessions. xD Anyway, the features are: - add cards to a favorites list that is stored locally in your browser - filter the cards on the main page with your lists or a List Code - copy the List Code of the currently filtered cards - set the favorites list with a List Code so you don't need to click on the favorite button for every card - copy the current favorites List Code so you can store it in a textfile or somewhere else in case you want to switch browsers or devices - calculate the total amount of gold to upgrade a list/all cards and how much bfp it would cost to complete your collection with some additional adjustable settings (filtering is done with a List Code) You are now probably wondering what a List Code is, it's simply a string of SMJ ids that are joined together. Example: "A1A2A3A4A5A6A7" is a list of all the newest cards (the order doesn't matter). The List doesn't have a maximum size, so go crazy with it. xD You can also place as many commas or spaces in the string if that helps you with readabiliy, but they are removed when stored in the localStorage, it also removes duplicate ids and sorts the ids for better readability when you copy it again. I set it up to allow the addition of other personal lists in the future, but I haven't coded that yet. Nonetheless, you should be able to adjust the value of the "lists" key in your localStorage to manually add another list and use it on the main page. I haven't tested every little detail yet, so please tell me if you notice any weird behavior/have problems with the usability and have a better suggestion. On a side note, I also fixed a few bugs (Mini Booster values were wrong, Card Auction Details didn't change when the card changed) and added some tooltips here and there. Next I really have to fix the prices, since the Long Term and Notables data haven't updated for a few days and the I should finally migrate the old data from before the patch CrispyChicken likes this Quote Link to post Share on other sites
Kaldra 11 Posted January 16 Share Posted January 16 (edited) Really great site! Only thing I was wondering: Are sorting options for prices missing? Sorting by difference would be really interesting to see market manipulation. Edited January 16 by Kaldra Quote Link to post Share on other sites
Maze 97 Posted January 16 Author Share Posted January 16 7 minutes ago, Kaldra said: Really great site! Only thing I was wondering: Are sorting options for prices missing? Sorting by difference would be really interesting to see market manipulation. Sorting by price is planned and one of the things I will work on next, I just haven't gotten around to implementing it yet. Quote Link to post Share on other sites
Sylar 15 Posted March 30 Share Posted March 30 The site has not been updating anything but current price of cards since over 3 weeks ago. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.