ID:135338
 
What exactly does this error relate to:

BYOND(341.877) ERROR: maximum number of unique atomic images exceeded (65535)!


I'm not actually using images for anything, though I am using a LOT of overlays. I created a number of prototype objects with overlays, then for each turf I offset the prototypes pixel_x and pixel_y vars, add one of the prototypes as an overlay and then reset its pixel_x and y.

Does each overlay with a different pixel_x or pixel_y value count as an image?
Overlays are images. All overlays are image objects.

Try this out if you want to see for yourself:
mob
New()
overlays+=icon('mob.dmi')
verb/test()
var/I=overlays[1]
src<<I:type
In response to Loduwijk
Yeah, although I'm pretty sure overlays don't work exactly the same way as regular images. Even so, I've currently got about 48000 tree turfs, each with at least two overlays, and this works fine. It seems to be the number of atoms with overlays, rather than the overlays themselves which are the problem.

*EDIT* Well, that isn't it either, as I have 78213 turfs with overlays, and it's running fine.