Moerill / fvtt-pointer

MIT License
6 stars 16 forks source link

Settings will not save #46

Open Violi09 opened 1 year ago

Violi09 commented 1 year ago

Hi, Just downloaded your mod as a friend recommended it. I saw that you could customize your pings and went to do so. It looked like I had everything in there right, however no matter what I did, it would never save any changes. I cant change the name, there's no option to save my settings, and if I close this window out and come back, nothing I did stays. Am I doing something wrong? Or is something about it broken? image

KellethDregar commented 1 year ago

Seems to only update the preview when creating a new one too. Doesn't show preview otherwise.

cmaher commented 1 year ago

First issue here is here. This line needs to be let idx = collection.findIndex((e) => e.id === this.data.id); (notice the this.data.id instead of the this.id

Make this change. Then open up the console and set a breakpoint at the same line. When this gets triggered for your new pointer, type this.data.name = 'NAME_GOES_HERE'. All of the other stuff saves just fine. I cannot figure out why the name keeps losing focus every time a character is entered right now

Haven't tried it, but you can probably copy your "pointer.collection.value" from WORLD/settings.db into whatever new world you make

hyuroki commented 1 year ago

First issue here is here. This line needs to be let idx = collection.findIndex((e) => e.id === this.data.id); (notice the this.data.id instead of the this.id

worked great, now I can at least save another image to the X-Pointer and use that. couldn't figure out how to fix the rest though. thank you kind sir