Package: youdied
Elden Ring death counterCaptures screen and detects "You died" upon death in the video game Elden Ring (2022)InstallRequires Windows and Python 3.7+If you know what Python and pip is:Install with pip:pip install youdiedIf you don't know what Python is:Make sure you have Python installed on you machine.Go to your terminal and confirm that python is installed
by typingpython -Vand press Enter.
It should say something likePython 3.10.4or something similar.
It must be version 3.7.0 or higher.If you don't, there are many ways to install Python.
E.g. usingone of theseapproaches:install windows apphttps://www.microsoft.com/en-us/p/python-310/9pjpw5ldxlz5?activetab=pivot:overviewtab(very easy)download and install fromhttps://www.python.org/downloads/(default)install miniconda fromhttps://docs.conda.io/en/latest/miniconda.html(potentially more advanced)After you have installed Python, open you terminal (or anaconda prompt when using miniconda).
Now, you should verify that you have Python installed,
which also lets you use thepip-command to install new packages.
Go back to the step above and install using thepip-command.NOTE: Python is capable of running any arbitrary code on your machine.
If you have no idea what strangers' code does, then you should not run it on your
machine.
Be skeptical, and critical.
You could ask someone you trust to look over this code first if you're unable to verify yourself.
The code is freely available in the repository for scrutiny, inspiration and education.How to useyoudiedAfter installed, you can run theyoudiedcommand from terminal
(in the same Python environment that you installed this package in).How to stop the program from running?Press Ctrl + Z in the terminalStart counting deathsWhen program is running, it will notify you in the terminal on death detection.
There is a 5 second cooldown, to ensure that a death is only counted once.ExamplesNew character:youdied <name of characterContinue from last character:youdiedPrint name of last character:youdied -poryoudied --previousDeath count file:<your user folder> / .youdied / deathCounts / <character name>.txtShow stats:youdied -loryoudied --listwill output something likeStarted last            Character          Death count
 2022-04-20 12:00:00       Always Feet 69                    4
 2022-04-17 12:00:00        Cavelady Dida                    4
 2022-04-12 12:00:00           Elden Lard                    8
 2022-04-09 12:00:00      Maidenless Hero                    4With wordsIn its simples form runyoudied <character name>,
for exampleyoudied Maidenless Heroif your want to store death counts
under the name "Maidenless Hero".
The next time, you only have to run theyoudiedcommand without
any arguments if you want to use the same character name.If you want to register deaths in another name, stop the script (Ctrl + Z) and give a new name.E.g.youdied Cavelady DidaMultiple characters?Some players have more than one character,
so therefore death counts are associated with a character name.
The name is just a convenience to allow organizing the death counts.(This name of course has nothing to do with what you call your character in the game.
If you wish, you may call them "character 1", "character 2", "tarnished Bob" or whatever you want.)Files and outputWhen running for the first time a folder<your user folder> / .youdiedwill be created.
This folder will keep track of death statistics and inspirational message use statistics
(to increase variety of messages shown)Additionally, there is a folder called<your user folder> / .youdied / deathCountthat holds a file for each registered character.
E.g. with the four characters used above, there would be a file called "Always Feet 69.txt"
with content only being the number "4".If you want to know the death statistics of all characters you have tracked,
runyoudied -las mentioned above.HelpRunyoudied -hto get the help screen:youdied -h
usage: youdied [-h] [-v] [-l] [-p] [character_name ...]

A motivational Elden Ring death counter. Uses screen capture to detect deaths. 
Will output motivational quotes and proverbs on detection.

positional arguments:
  character_name  Name of character to register stats on. If omitted the last used character is used, 
                  if any (default: None)

options:
  -h, --help      show this help message and exit
  -v, --version   Print version and exit. (default: False)
  -l, --list      List all characters and exit. (default: False)
  -p, --previous  Print out previous character, i.e. the last one used, and exit. (default: False)

Good luck, Tarnished!How to stop the programPress Ctrl + Z in the terminalCreditsD3DShotScreen capturing is possible using Windows Duplication API,
and we use the fabulousD3DShotpython package to do so.
Unfortunately, there is anissue with version of a dependecy packagepillow, which is breaks the installation.
Any further development from the developers of D3DShot seems to be stalling.
We have therefore fixed the dependency and embedded their code inside this project becausePYPI doesn't allow direct URI dependencies.The world of amazing nerdsSo many open source tools and programs.
Look at all the free (as in beer) code others have shared!Imagine where we would be if they were not there.Thanks!