obsidian-initiative-tracker icon indicating copy to clipboard operation
obsidian-initiative-tracker copied to clipboard

[Bug]: Players not added to Initiative Tracker

Open MintPlz opened this issue 1 year ago • 4 comments

Check for existing bug reports before submitting.

  • [X] I searched for existing Bug Reports and found no similar reports.

Expected Behavior

All players listed in settings added to encounter/IT when players variable not provided.

When players set to true in encounter code block, all players in settings will be added to encounter and all players in settings will be added to IT when "Start Encounter" or "Add to Encounter" button is pressed.

Can add players through "Add Creature" button on IT.

Players added from Fantasy Statblock Plugin note parser can be added to IT, Encounter, or Encounter Builder.

Current behaviour

When players variable is not provided, players do not appear in encounter block regardless of method added.

When players set to true in encounter code block, all players in settings are added to encounter block. Players added to encounter this way are not added to IT when "start encounter" button is pressed.

Cannot add players through "Add Creature" button on IT. When the "Add Creature" button in the Add Creature menu is pressed, prompted with "Enter a Name!" regardless if name is provided or not. This features works as intended for players added through Fantasy Statblock.

Players added from Fantasy Statblock Plugin note parser cause Encounter Builder to crash.

Reproduction

Windows 10 OS

When players variable is not provided, players do not appear in encounter block regardless of method added.

  1. Open Obsidian.
  2. Open Current Vault.

Error in Console: plugin:initiative-tracker:19629 Uncaught (in promise) TypeError: Failed to set the 'value' property on 'HTMLMeterElement': The provided double value is non-finite. at Object.p (plugin:initiative-tracker:19629:21) at update (plugin:initiative-tracker:9859:32) at flush (plugin:initiative-tracker:9830:7)

  1. Create a new "dummy" note by clicking the "New Note" button and naming it "TEST PLAYER". (This was not always performed and behavior seemed consistent regardless of if this note was present or not.)
  2. Open Settings
  3. Scroll to Initiative Tracker under Community Plugins and click on it. Scroll to Players section. Click the "Add Player" button in the "Add New Player" subsection.
  4. Fill out the menu with the following information. Link to Note: TEST PLAYER. Name: Test. Level: 6. Max Hit Points: 32. Armor Class: 14. Initiative Modifier: 2. Leaflet Marker: default.
  5. Click the "Save" button.
  6. Close Settings.
  7. Create a new note titled "TESTING"
  8. Create the following code block.
creatures: 
 - 3: Goblin
  1. Switch to Reading View. The players added in settings were not added to the encounter block by default.

When players set to true in encounter code block, all players in settings are added to encounter block. Players added to encounter this way are not added to IT when "start encounter" button is pressed.

  1. Follow the above steps 1 through 9. The error in console is consistent.
  2. Create the following code block.
players: true
creatures: 
 - 3: Goblin
  1. Switch to Reading View. All players added in settings are now present in the encounter block.
  2. Press the "Start Encounter" button on the encounter block. Creatures are added to IT, but not the players.
  3. Reset the IT by selecting "New Encounter" in the dot menu.
  4. Press the "Add to Encounter" button on the encounter block. This seems to "reset" the plugin and causes the IT to work as intended. Not a permanent solution however.

Cannot add players through "Add Creature" button on IT. When the "Add Creature" button in the Add Creature menu is pressed, prompted with "Enter a Name!" regardless if name is provided or not. This features works as intended for players added through Fantasy Statblock.

  1. Follow the steps listed in the first bug section 1 through 8. The error in console is consistent.

  2. Press the "Add Creature" Button in IT.

  3. Select "Test" player option when presented. Information does not automatically fill out.

  4. Click "Add Creature" button at bottom. Presented with "Enter a Name!".

  5. Click Display Name field and enter "Test Player 1". As you type, the player will disappear from creature field.

  6. Click the "Creature" field and select "Test" player option when presented.

  7. Click "Add Creature" button at bottom. Presented with "Enter a Name!".

  8. Fill out the remaining information in the panel. As you type, the player will disappear from creature field.

  9. Click the "Creature" field and select "Test" player option when presented.

  10. Click "Add Creature" button at bottom. Creature is added with incorrect information.

Player is selected with either tab or mouse. If the User starts to type the player's name, partially or completely, into the creature field then press tab or use the mouse to select the player, the creature will be added with an incorrect name and information.

Which Operating Systems are you using?

  • [ ] Android
  • [ ] iPhone/iPad
  • [ ] Linux
  • [ ] macOS
  • [X] Windows

Obsidian Version Check

1.3.5

Plugin Version

Initiative Tracker 11.2.0

Confirmation

  • [X] I have disabled all other plugins and the issue still persists.

Possible solution

No response

MintPlz avatar Jul 17 '23 22:07 MintPlz

I had the same issue but it resolved for me after manually adding an encounter with the encounter builder. Now it works as intended.

MagnusBane05 avatar Aug 06 '23 17:08 MagnusBane05

@MintPlz these issues might all be fixed by 12.1.0, can you confirm?

valentine195 avatar Aug 16 '23 18:08 valentine195

@MintPlz these issues might all be fixed by 12.1.0, can you confirm?

Sorry for the late reply. Here's the update.


"All players listed in settings added to encounter/IT when players variable not provided."

When variable is not provided, players do not appear in encounter block or IT regardless of how they were added.


"When players set to true in encounter code block, all players in settings will be added to encounter and all players in settings will be added to IT when "Start Encounter" or "Add to Encounter" button is pressed."

Working as described.


"Can add players through "Add Creature" button on IT."

Working as described.


"Players added from Fantasy Statblock Plugin note parser can be added to IT, Encounter, or Encounter Builder."

Working as described.

MintPlz avatar Aug 21 '23 20:08 MintPlz

I am having this same issue. I am on macOS and can't get the players to show up.

jordanmpalmer avatar Dec 03 '23 14:12 jordanmpalmer