Skip to content

Oh yes... Tarnished, are we? Come to the Lands Between for the Elden Ring, hmm?

License

Notifications You must be signed in to change notification settings

monodyle/elden-ring-death-counter

Repository files navigation

Elden Ring Death Counter

Oh yes... Tarnished, are we? Come to the Lands Between for the Elden Ring, hmm? Of course you have. No shame in it. Unfortunately for you, however, you are maidenless.

Usage

$ elden-ring-death-counter.exe --help

Oh yes... Tarnished, are we? Come to the Lands Between for the Elden Ring, hmm?
Of course you have. No shame in it.
Unfortunately for you, however, you are maidenless.

Usage: elden-ring-death-counter.exe [OPTIONS] <INPUT>

Arguments:
  <INPUT>  Elden Ring save file location

Options:
  -o, --outdir <OUTDIR>    Location will write death count files (default: "output") [default: output]
  -f, --format <FORMAT>    Format of output files (defaut: "Death: {}"), where {} will be replaced by the death count [default: "Death: {}"]
  -F, --from <FROM>        Death counter will start from this value instead of counting total character death
      --outfile <OUTFILE>  Output file format (default: {slot}-{character_name}.txt) [default: {slot}-{character_name}.txt]
 	  --flush              Clear all previous storage, this option should be using standalone
  -h, --help               Print help
  -V, --version            Print version

# Example
$ elden-ring-death-counter.exe C:\Users\Admin\AppData\Roaming\EldenRing\76561198250312914\ER0000.sl2
$ elden-ring-death-counter.exe .\76561198250312914\ER0000.sl2 -o .\Counter # output to `Counter` folder
$ elden-ring-death-counter.exe .\76561198250312914\ER0000.sl2 --from 183 -f "I death {} times since this morning" -o .\OBS # count from 183 with my customized format

OBS Setup

  1. Download pre-built binary of Death Counter
  2. Download pre-built binary of watchexec
  3. Put all binaries in the your folder you want, example: Desktop\DeathCounter
  4. Run command below, or try this all-in-one bat script file (right click save)
.\watchexec.exe -i <save_file> .\elden-ring-death-counter.exe <save_file> -o .\OBS
  1. In OBS, create Text source with location Desktop\DeathCounter\OBS\[slot]-[your_character_name].txt

Tip

You can write output file as HTML & auto reload, then add a Browser source instead of Text source for better customization experience

.\watchexec.exe -i C:\Users\Admin\AppData\Roaming\EldenRing\76561198250312914\ER0000.sl2 ".\elden-ring-death-counter.exe C:\Users\Admin\AppData\Roaming\EldenRing\76561198250312914\ER0000.sl2 --outfile 'save-{slot}-{character_name}.html' --format '<h1>Today I died {} times</h1><script>setTimeout(() => window.location.reload(), 1000)</script>'"

OBS Browser Source Example:

  • Width: 380
  • Height: 84
  • Custom CSS:
@import url('https://fonts.googleapis.com/css2?family=Francois+One&display=swap');

body {
	background-color: rgba(0, 0, 0, 0.8);
	color: #fff;
	margin: 0px auto;
	overflow: hidden;
	font-family: "Francois One", sans-serif;
	display: grid;
	place-items: center;
	font-weight: 400;
	text-transform: uppercase;
	overflow: hidden;
}