Skip to main content

Elden Ring death counter

Captures screen and detects "You died" upon death in the video game Elden Ring (2022)

Install

Requires Windows and Python 3.7+

If you know what Python and pip is:

Install with pip: pip install youdied

If 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 typing python -V and press Enter. It should say something like Python 3.10.4 or something similar. It must be version 3.7.0 or higher.

If you don't, there are many ways to install Python. E.g. using one of these approaches:

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 the pip-command to install new packages. Go back to the step above and install using the pip-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 use youdied

After installed, you can run the youdied command 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 terminal

Start counting deaths

When 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.

Examples

New character: youdied <name of character

Continue from last character: youdied

Print name of last character: youdied -p or youdied --previous

Death count file: <your user folder> / .youdied / deathCounts / <character name>.txt

Show stats: youdied -l or youdied --list will output something like

        Started 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                    4

With words

In its simples form run youdied <character name>, for example youdied Maidenless Hero if your want to store death counts under the name "Maidenless Hero". The next time, you only have to run the youdied command 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 Dida

Multiple 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 output

When running for the first time a folder <your user folder> / .youdied will 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 / deathCount that 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, run youdied -l as mentioned above.

Help

Run youdied -h to 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 program

Press Ctrl + Z in the terminal

Credits

D3DShot

Screen capturing is possible using Windows Duplication API, and we use the fabulous D3DShot python package to do so. Unfortunately, there is an issue with version of a dependecy package pillow, 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 because PYPI doesn't allow direct URI dependencies.

The world of amazing nerds

So 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!

Metadata

Release files for youdied 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for youdied 0.2.2
File Interpreter ABI Platform Actions
youdied-0.2.2-py3-none-any.whl Python 3 none any Details for youdied-0.2.2-py3-none-any.whl

Release files / youdied-0.2.2-py3-none-any.whl

Download URL youdied-0.2.2-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
36287583a81f2ccf0ac479fdb091be4614d947f5c5931c436a4a37d13426dc1c
BLAKE2b-256 checksum
How to use checksums
d896681618d8c3af7a1b9a78ccc6180a099a9ec67ef622e309233bac42d2f346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Security for youdied 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page