Sebaestschjin / gloomhaven-campaign-manager

Simplify the management of your Gloomhaven campaign progress in Tabletop Simulator.
MIT License
7 stars 5 forks source link

Save/Load of character.Notes improperly handled #19

Closed Seferan closed 4 years ago

Seferan commented 4 years ago

I used the Save routine to create a SaveFile. Upon trying to load, the following section errors indicating that it was expecting a table and got a STRING. Pastebin: https://pastebin.com/dQFWgupT shows that character.notes is infact a string.

if character.notes then characterSheet.UI.setAttribute("NotesFront", "text", table.concat(character.notes, "\n")) end if character.hidden_notes then characterSheet.UI.setAttribute("Notes", "text", table.concat(character.notes, "\n")) end

Sebaestschjin commented 4 years ago

I think this got "accidentally" fixed with 12b87da, where notes and hidden_notes are now split into a table. At least I can't reproduce with the current version.