Contains scripts to generate automatic scoreboards for the Neopets Altador Cup and display on GitHub Pages, as well as python scripts to help with the Altater Cup.
Two automatic Altador Cup scoreboards are configured for Exodus and Ratville respectively.
altater.html
is populated with AC score data from altater_scores.json
ratville.html
is populated with AC score data from ratville_scores.json
Due to Neopets limitations on bot activity and the AC userstats page being behind the login page, the score data needs to be scraped semi-manually. This is done with the scripts/score_fetcher.js
Tampermonkey script.
scripts/score_fetcher.js
and paste into a new Tampermonkey script// FIRST TIME USERS MUST FILL IN THESE DETAILS!!!!
const SECRET_GITHUB_TOKEN = '<your_secret_github_token>'
const MY_USERNAME = '<your_neopets_username>'
The script works by updating the respective _scores.json
file every time you visit the userstats page of a player. The userstats page of each player is hyperlinked in the USERNAME
column of the scoreboard. Typical update process is as follows:
pages-build-deployment
GitHub action to complete running. You can view status here. (NOTE: each userstats update creates a new commit in the repo, which triggers a new GitHub action run, and cancels the previous pending GHA run. Sometimes GHA takes a minute to fully catch up. For page updates to take effect, you need to wait for the most recent GHA run to succeed.)LAST UPDATED (NST)
column to make sure each player’s stats wer updated successfully, i.e. the update time is within the last ~10 minutes. If it’s out of date, click on their usrname again to force the update.EXODUS_PLAYERS
and RATVILLE_PLAYERS
in the script.https://www.neopets.com/altador/colosseum/userstats.phtml?username=<USERNAME>
scripts/score_fetcher.js
files must BOTH be updated when new players are added.Exodus companion event for the Altador Cup.
Python scripts require python 3.9. Recommend using pyenv
and pipenv
for Python version/virtual env management.
cd python
pipenv shell
python generate_csv.py
These commands will generate a file that reads in altater_scores.json
, turns it into a csv for easy copy/pasting, and then publishes to a file named publish/mm-dd-yyy.csv
. This file can then be copy/pasted into the Auto Scores tab of the master Participant Tracking google sheet.
Your name will be written on every potato you earn during the Altater Cup. These potatoes will then be placed in a giant pile, mixed around, and names/potatoes will be drawn. The order in which the potatoes are drawn will determine the ORDER in which Altater Cup participants will choose their prizes (one at a time) from the Gift Shoppe!
In order to generate the pile.html
webpage:
data/potato_counts.csv
generate_potato_pile.py
script, which will generate data/potato_pile.json
which populates the pile.html
page:
cd python
pipenv shell
python generate_potato_pile.py
Contains record of historic pages. Current contents of the archive directory include: