PDA

View Full Version : NPC Token Export Issue



seansps
August 23rd, 2022, 18:30
Hi! I found what seems like a bug with NPCs and exporting tokens.

I noticed that sometimes NPCs, when exported to a module, after setting the token, were not keeping their token set. I was able to reproduce by:

Create an NPC with a token in a directory with a given name, ex: "basilisk.png"
Create another NPC with a different token in a different directory, but the SAME name, i.e.: "basilisk.png"
Export the module
Load the module in another campaign. Note that one has the token set and one does not.


After cracking open the exported module I noted it is because the tokens are all put into the same directory, "tokens", but those w/ the same filename are overwritten instead of either renamed or placed in a subdirectory.

Is this something a future version of FG could fix?

Thanks!

Zacchaeus
August 23rd, 2022, 19:40
If you want to export tokens attached to an NPC then you must place those tokens in a folder called 'tokens' inside the campaign folder of the campaign you are exporting from and you must attach the tokens from that folder. If you do anything else the tokens won't be attached to the NPC and won't export.

seansps
August 23rd, 2022, 20:07
If you want to export tokens attached to an NPC then you must place those tokens in a folder called 'tokens' inside the campaign folder of the campaign you are exporting from and you must attach the tokens from that folder. If you do anything else the tokens won't be attached to the NPC and won't export.

Interesting! Is that a hard requirement? It seems to work also when I use tokens from the “/tokens” folder

Zacchaeus
August 23rd, 2022, 20:20
It's the way I've always done it and the way that it has always been. It's possible that something has changed more recently; I did see something about changes in the last but one patch about tokens being easier to export but there was no details as to what exactly that meant.

Laerun
August 23rd, 2022, 20:27
Are you trying to use NPCs that already have tokens assigned to them, or are you creating, assigning, and providing your own?

seansps
August 23rd, 2022, 20:39
Are you trying to use NPCs that already have tokens assigned to them, or are you creating, assigning, and providing your own?

Creating, assigning, providing my own.

Specifically I am working on an extension that lets me copy all NPCS and set tokens from my own collection.

Edit: I plan to use it primarily for rulesets that don’t have a lot of tokens set (or nearly all use Letters.) So far it is working quite well, and I’ll probably post to Forge for others to use.

I can work around the issue with them needing the same base file name if that’s a technical limit currently.