obj
Blank
icon = 'blank.dmi'
layer = FLOAT_LAYER
mob
Person
icon = 'female pale blue eyes.dmi'
icon_state = "walk"
verb
upload(icon/F as file) // Overlay
var/icon/I = new(F)
if(I.Width()==96&&I.Height()==96)
var/obj/Blank/D = new /obj/Blank
D.icon = I
D.pixel_x = -32
D.pixel_y = -32
usr.overlays += D
return
usr.overlays += F
upload2(icon/F as file) // Underlay
var/icon/I = new(F)
if(I.Width()==96&&I.Height()==96)
var/obj/Blank/D = new /obj/Blank
D.icon = I
D.pixel_x = -32
D.pixel_y = -32
usr.underlays += D
return
usr.underlays += F // *Edit fix*
Problem description:
When I upload an icon using this, some will show (both 32x32 and 96x96 icons), while others simply won't show. If I make an object with one of the icons that won't show, it'll show when uploaded through the verb, so I'm assuming its some kind of ressource error or something with permissons, but I simply can't figure out what's wrong.
Please help >.<
Also, your upload2 verb has a copy/paste error on the last line, as it's adding to overlays instead of underlays.