javalent / initiative-tracker

TTRPG Initiative Tracker for Obsidian.md
GNU General Public License v3.0
144 stars 30 forks source link

Logfile Is Not Created for Each New Encounter #263

Open NomadeModerne opened 5 months ago

NomadeModerne commented 5 months ago

Check for existing bug reports before submitting.

Expected Behavior

I believe that when I start a new encounter it should create a new log file for the encounter that is saved in the folder specified in the settings.

Current behaviour

When i was first playing with Initiative Tracker, I created and saved about three encounters to load up. The first time I ran Encounter 1 it created a log file exactly where I asked it with a number followed by the name of the encounter. However, when I load a new encounter and run it, the log is just appended to that first file instead of creating a new log. I tried deleting the original log file and deleting the encounter entirely. Now if I load an encounter and run it the log file it creates still has that same file name (the old encounter) and it still does not create a new log file for each encounter but rather appends to the existing log file. No big deal, I can just rename the log file as something new each time but a bit annoying.

Reproduction

In Options specify a folder for Encounter Log Files to be saved in

Use Encounter Builder to create and save two encounters.

Load and Run Encounter 1. Check that Log File is created.

Load and Run Encounter 2. Check Log File. It will be the same as the first log file with Encounter 2 now appended to the bottom.

Which Operating Systems are you using?

Obsidian Version Check

1.5.11 and 1.5.8

Plugin Version

13.0.4

Confirmation

Possible solution

No response