This log manager is specifically geared towards tracking clears within a raid static. It will upload logs to dps.report and create a discord message using webhooks with the run times. It also compares the runs with previous results and shows how you did on the leaderboard. For any questions or feature requests feel free to slide into the discord server Wiwi's Corner.
It is a local tool that uses dps logs from arc-dps and uploads them to dps.report. The log manager will create a discord message for a raiding or fractal session. It will post new logs while raiding every time there is one available. Or just upload the full run afterwards.
Apart from uploading the logs to dps.report, they will be processed locally first using the https://github.com/baaron4/GW2-Elite-Insights-Parser.
(4:41) cleartime of the encounter\ +1:07 Time between the end of the previous kill run and the start of the current kill run. If its the first log in the session it will be 0:00, unless there is a fail log. \ Medals indicate position on leaderboard, comparing the speed of that run with all historic runs.\ Invalid medals mean that there were more pugs than allowed (check settings).\ 5s slower than average\ 5s faster than average, but not in top 3\ Wipe, red indicates how much health left. More red = lower boss health. Hover to see remaining health percentage.\ \ Clicking the skull icon will also open the log of that run. Does sadly not work on phone.\ Amount of core members in the run.\ Amount of pugs in the run.\ 2:47:15 Total runtime of combined runs. Only shows when all encounters have been successfully killed. For raids and strikes the whole week is checked. Fractals need to be cleared on the same day. For each day the total time between the first and last log is taken.\ _Only selected encounters count, see the setup guide._\ Emboldened runs will not count towards leaderboards.
\ Click the medal to go to the dps report.\ Hover the medal if there is not a log to see the date of the run.
Track Cerus LCM progression. Same could be set up for HT.
The link to dps.report is found by clicking the ★ (LCM) or ☆ (normal cm). Time left on the clock when breakbar phase starts is logged, to give indication if the run would have even be possible.
When more than 120s delay between two logs, the delay will be shown. To indicate where breaks were taken.
The top 3 logs are indicated with trophies. The title number (#11) indicates the day of progression.
The log manager is built on a django framework with a local sqlite database, only tested on Windows. All we need is a local python environment to run the scripts. Below installation is done with miniforge, but feel free to use any other python distribution to your liking.
Miniforge Prompt
as admin. And run the following code;
mamba env create -f "C:\Users\Wiwi\Documents\github\wiwi-bot\environment.yml" #Change to download location
wiwi-bot/gw2_database/scripts/import_dps_report.py
\
d. On the bottom right click the python interpreter and select the python env we installed at step 2; .\
e. Run the code with shift+enter
or by pressing above the code blocks.alt+shift+t
.\
A couple tokens and keys need to be set so the results can be posted to discord.
Rename bot_settings\.env-example
to bot_settings\.env
.
C:\Users\Wiwi\miniforge3
to your own conda or mamba installation (step 2 in software)In discord we have 3 channels running. Create a webhook for each and copy the webhook URL into the env.
\ Make sure to tick the option:\
discord Server Setttings -> integrations -> Webhooks -> Copy Webhook URL
Within the leaderboards channel create threads for: raids
, strikes
and fractals
.
Setup the database. Copy gw2_datase/db-empty.sqlite3
to gw2_datase/db.sqlite3
.
Add core members to the database, see Add a core member.
For runs on the same day just run bin\run_logs_today.cmd
from the file-explorer. This will upload only
raid, strike and fractal logs.
To filter the uploading for a specific instance run the respective .cmd (e.g. run_logs_today_raid.cmd
)
To import history run bin\run_logs_date.cmd
from the file-explorer. Then enter the date and the
instance type. Leave empty to use raid strike fractal
.\
To upload from a list on urls. Paste the urls in bin\urls.txt
and run the cmd file bin\upload_from_url.cmd
\
Everything can be customized. Easiest way to make edits to the database is by firing up Django.
bin/django_runserver.cmd.
Add members to the players list to have them appear as a core member.
When parsing a log from an encounter that is not in the database yet, the script will throw a warning and ignore it. If .env/DEBUG is set to True an error will be raised instead. \
The encounter will have to be added to the database if you want it to show up on discord.
To remove logs or a clear you need to look at these three tables.
We are not showing all enounters in the leaderboard because we are not interested in non-CM runs. Which encounters are shown is configured in the LB and LB CM options per encounter.\ See http://127.0.0.1:8000/admin/gw2_logs/encounter/ to change the behaviour\
Not all groups clear everything. It is possible to select the encounters you want to include in the total clear time. The total clear time will be displayed in the leaderboard and on the top-right of the discord message.
Go to http://127.0.0.1:8000/admin/gw2_logs/encounter/. Change the column _use in instancegroup to the desired group. For each encounter you want to add or remove.