CasualtiesAnalyzer 0.1.0.25
==============================

CasualtiesAnalyzer record run data and provides an extremely in depth report for you to review during or after runs.

REQUIREMENTS
------------

- BepInEx 5: https://github.com/BepInEx/BepInEx/releases

INSTALLING THE MOD
------------------

1. Open the game folder.
  - In Steam, right-click Casualties: Unknown then click Manage > Browse local files.
2. Drag the BepInEx folder from this zip into the game folder.
3. Start the game.

When the mod is running a small red "REC" sign appears at the top middle of the screen to
show that run data is being saved.

To add a "marker" to the recorded data, press F8 during a run. A marker is useful when something
happens that you want to review later.

USING THE DATA VIEWER
------------------

You have two options for using the data viewer: downloading an application or using a web version. You 
will need to pick one of these because the mod isn't very useful without the data viewer.

Option 1: The Web Version (My recommended option)
-------------------------------------------------
1) Go to https://vore.my/CasualtiesAnalyzer/web/
2) Select the  CasualtiesAnalyzer folder that contains your run data.
    - You won't have a  CasualtiesAnalyzer folder unless you've installed the mod and started at least one run.

The web version runs entirely inside your browser and sends no data to my server. This is the easiest, 
safest option for running the viewer. The web viewer only works on Chromium based browsers and Edge.

Option 2: The Desktop Version
-----------------------------
1) Download the CasualtiesAnalyzer viewer application from https://vore.my/CasualtiesAnalyzer
2) Run the downloaded exe.

The first time you start the viewer Windows will likely show a blue "Windows protected your PC"
message. Click "More info" and then click "Run anyway".

To close the viewer:

1. Open the system tray.
2. Right click the viewer icon.
3. Click Quit.

If you close the viewer page in your browser, double-click the viewer icon to open it again, or go to http://127.0.0.1:5317

If you have the viewer open while playing the data should update in (near) realtime.

CONTROLS
--------

F8 - Adds a marker to the recorded data when pressed.

CONSOLE COMMANDS
----------------

cu_analyzer_record [true|false] - Turns on/off data recording completely.
cu_analyzer_record_mp [true|false] - Turns on/off data recording in multiplayer only.
cu_analyzer_indicator [true|false] - Turns on/off the on screen indicator showing the run is being recorded.

Note: cu_analyzer_record and cu_analyzer_record_mp do not stop recording an existing run! 
      These settings only take effect on runs started after they've been changed!

RUN DATA
--------

The mod saves run data in Documents\CasualtiesAnalyzer\runs.

SETTINGS
--------

After the first run of the mod a settings file is created at:
<game folder>\BepInEx\config\casualtiesknown.casualtiesanalyzer.cfg

REPORTING BUGS
--------------

If you want to report a bug contact me. You MUST include run data with a bug report or I will ignore it.

DISCLAIMER
----------

USE AT YOUR OWN RISK: This software is provided "as is," without warranty of any kind. I make no guarantees regarding the safety, 
reliability, or accuracy of this software. By using this software, you assume full responsibility 
for any unintended effects, injuries, lost data, or damages that may occur.