Dokkan Wiki - Week 21 and 22 Developer Update
Added 2022-10-04 08:30:50 +0000 UTCFocus: Summons
With the release of the summons page, I was worried something might have been wrong. Thankfully the launch went fine.
One of the delays in the summon page was how much data there is to a single summon and how much of it was duplicated.
A Dokkan banner is broken into:
- The meta information (title, description, image, etc.)
- List of feature cards
- The list of unfeatured cards
- The rates for each rarity
The problem was that originally, I had duplicated a lot of the card data. Since the same card could be on the same banner multiple times due to the GSSR slots (an unfeatured SSR is listed both on the GSSR slot and in the regular slots), the data was a lot and might take a long time to download for mobile users.
I restructured it so that there was a single set of cards, and the various lists referenced that data. It’s a bit more work for your web browser to display the banner, but the bandwidth savings should be a better trade off.
Even after those changes, the entire download for a summon page weighs in at 200KB (but only 25KB compressed). Are those changes worth the programming time?...probably not. ¯\_(ツ)_/¯
Currently Working On: Events
After summons, I took a few days break since I’ve been working on the site 7 days a week since beta.
I did spend time thinking about how I want events to go. Since the site is automated (there is no manual data entry), there are a few challenges:
- Managing stamina: do I use stones/meat when the stamina get’s too low? Do I just wait for stamina and let the site build up information slowly over time?
- Event drops: the game doesn’t give drop information in a way that can be automatically consumed by a program. Do I run each event only once and whatever drops, display that? Do I run each event multiple times and display an average? How many times do I run the event? Running the event multiple times would make the events take considerably longer to index on the site.
- Collection time: Currently, for news, assets, and summons, new items are checked many times per hour for updates. Let’s say 2 new events come out with a DDL, I don’t want to wait for each event to be indexed before updating the new assets. So does the event collection run at the same time? It technically can’t since there’s only one game account per version. Hmm…not sure…
If you want to support the site, influence its direction, and get perks like ad-free browsing, support Dokkan Wiki on Patreon.
If you have questions, suggestions, or just want to chat, join the Discord Server.