arnonram / swade-npc-importer

Savage Worlds Stat-block importer for FoundryVTT
7 stars 8 forks source link

Nameless items are created... again. #91

Closed SalieriC closed 2 years ago

SalieriC commented 2 years ago

When importing actors it can happen that items are created, that do not have a name. This is a critical bug as it can cause compendium merges to fail and - in combination with compendium folders - destroy compendiums beyond repair. It also only becomes apparent when merging actor in a compendium which makes it even more dangerous, because by the time you merge, chances are you can't easily find the affected actor. image

Feel free to DM me on Discord, I can probably find a stat block on which this happened to me.

SalieriC commented 2 years ago

When testing, I just realised, that you can spot this error on importing as well, if you leave the console open: image

I also have a stat block on which it happens now.

arnonram commented 2 years ago

occurred due to splitting on colon (in parseStatBlock.js) when we had an unexpected colon (more than one). this wrecked a bit of havoc on the system.