
I decided to go ahead and make a script that via chat command creates tokens for an encounter. When I set up the actual createObj section I wasnt sure what to set the layer to exactly to put the new tokens on the GM Layer. This portion is currently undocumented in the wiki. Eventually i found the correct text to use but before that the incorrect code destroyed all pages on my campaign. Not a huge deal as most of them were not being used anymore but its a pretty big bug. Here is the code I used. var token = createObj("graphic", { _pageid: Campaign().get("playerpageid"), name: name + " " + id, represents: characterId, imgsrc: imageFile, layer: "GM Layer", width: 70, height: 70, top: 350, left: 350 }); If you create a token with the layer set to any value that is not valid the entire canvas on the page turns white. In fact all other pages have no canvas at all. and any new pages have the same issue. I was able to duplicate the campaign and as long as I didn't duplicate the pages it would be fixed. This is very repeatable. Every time i ran the code that incorrectly assigns the layer the entire campaign breaks down graphically and nothing shows up anymore. My code is all set now so it works, and I will start creating a new campaign without pages and rebuild what I need in a new copy.