Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

createObj("character") : error on unset avatar in the log.

1454250474
Natha
KS Backer
Sheet Author
API Scripter
One of my scripts creates character. It functions but everytime I use it, I get an error message in the log: "ERROR: You cannot set the imgsrc or avatar of an object unless you use an image that is in your Roll20 Library. See the API documentation for more info." The thing is, I don't set any avatar :         var char = createObj("character", {                 name: nom,                 inplayerjournals: "all",                 controlledby: playerId             }); What should I do ?
1454258076
The Aaron
Pro
API Scripter
You can safely ignore that. &nbsp;The issue is that '' is the default for image source, but the check for if you can use an image doesn't check to see that it is blank. &nbsp;If you want to hide those errors, you can use this as the image: <a href="https://s3.amazonaws.com/files.d20.io/images/4277467/iQYjFOsYC5JsuOPUCI9RGA/thumb.png?1401938659" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/4277467/iQYjFOsYC5JsuOPUCI9RGA/thumb.png?1401938659</a> It's a 1x1 clear gif image I use for things like Bump or DryErase when I want to have an image that doesn't show up.