LogFAQs > #952879799

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, Database 8 ( 02.18.2021-09-28-2021 ), DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
Topic[VGMC] Video Game Music Contest 15 announcement!! Noms are 4/15!!
azuarc
04/15/21 9:21:05 PM
#204:


I'm mentioning it mostly because there will be other people who won't include the link, and I want to make it clear not to mimic that behavior because it's irritating to fix when someone early (or simply earlier) in the alphabet supports a track without, and the song goes into the sheet as having no link.

If anyone wants an explanation for how the script works, it's a two-phase process. First you run the parser, which grabs all the text off the page, converts it into data, and adds that data to individual text files with a record of each user's supports, doubles, and retractions. Unless the host alters that file manually, everything in that file will be listed as:

+ Game
Song
Link

++ Game
Song
Link

- Game
Song
Link

et cetera.

Then, after that's done, you run the compiler. It starts with the first person alphabetically, figures out what they're (still) supporting, addresses any issues with their nominations by spitting out an error message, and then puts that info in a giant array (2-d data grid). After it finishes with first person, let's say that's Advokaiser, then it will move on to the next...Akkrillic, perhaps. And it figures out Akkrillic's nominations and adds a new line to the grid for every song Akk has that Advo did not. But if there's a duplicate, it just adds his votes to the line with Advo's and doesn't change anything else. However, it uses the link from whoever is first in that sequence, and if the first person doesn't include a link, then it just says <LINK MISSING> and doesn't care that someone later has it.

And after going through every single person, it converts that array into a file that can be uploaded to googledocs.

This information provided in case you were morbidly curious or in case it clarifies anything else that might be relevant.

---
Only the exceptions can be exceptional.
... Copied to Clipboard!
Topic List
Page List: 1