ID:1868801
 
(See the best response by Rickoshay.)
Code:
CustomItem
parent_type = /item
name = "A Clothing Design Kit"
Dropable = 1
Pickable = 1
blend = 1
color = rgb(1,1,1)
var
Creator
icon/TheIcon
IconChosen=0
OnSale=0
DblClick()
set category = "Misc."
set src in usr.contents
if(src.IconChosen)
src.Equipped = (src.Equipped ? 0 : 1)
usr << "You [(src.Equipped ? "Equip" : "Unequip")] [src.name]"
usr.IconLoad(usr)
verb
Rename()
set category = "Misc."
set src in usr.contents
if(src.OnSale==0)
var/i2=input(usr, "Select a name for this piece of clothing! If it is already taken, you can rename it!") as text|null
if(i2==null) return
if(length(i2) < 2||length(i2) > 25||i2 =="Anbu Mask")
usr << "Too short or too long"
return
src.name = i2
Download_Base()
set category = "Misc."
set src in usr.contents
usr << ftp('Base_m.dmi',"Base_m.dmi")
Choose_Icon()
set category = "Misc."
set src in usr.contents
if(src.IconChosen==0 || src.Creator == usr.key)
var/icon/i = input(usr, "Select an icon to give this custom item!") as icon|null
if(i==null) return
var/i2=input(usr, "Select a name for this piece of clothing! If it is already taken, you can rename it!") as text|null
if(i2==null) return
if(length(i2) < 2||length(i2) > 25||i2=="Anbu Mask")
usr << "Too short or too long"
return
fcopy(i, "DONOTDELETEEVERCustomClothes/[usr.key]([i2]).dmi")
src.name = i2
src.TheIcon = fcopy_rsc("DONOTDELETEEVERCustomClothes/[usr.key]([i2]).dmi")
src.icon = fcopy_rsc("DONOTDELETEEVERCustomClothes/[usr.key]([i2]).dmi")
src.Creator = usr.key
src.IconChosen = 1
src.layer = MOB_LAYER+input("Select a layer for this. Negative Numbers Work") as num
AdjustPixelX()
set category = "Misc."
set src in usr.contents
src.pixel_x = input("Select a pixel_x for this.") as num
AdjustPixelY()
set category = "Misc."
set src in usr.contents
src.pixel_y = input("Select a pixel_y for this.") as num
RateClothing()
set category = "Misc."
set src in usr.contents
if(src.OnSale)
var/i=input("Select a rating for this lovely piece of clothing!") in list(1,2,3,4,5)
var/i2 = input("Really rate [src.name] [i] stars?") in list("Yes", "No")
if(i2=="No") return
Clothing["[src.name]"][2] += i
var/t=0
for(var/v2 in Clothing["[src.name]"][2])
t += v2
usr << "[(t/length(Clothing["[src.name]"][2]))]"

mob
proc
IconLoad(mob/M)
M.overlays = list()
spawn()
for(var/CustomItem/O2 in M.contents)
if(O2.Equipped)
O2.icon = O2.TheIcon
O2.icon += O2.vcolor // an RGB thingy
M.overlays += O2


Problem description:
Sorry for all these lately- I'm a bit rusty, and this one is leaving me scratching my head-- as this feature worked in way older byond versions.

Basically, I am allowing people to add in custom icons. This basically lets them wear their own iconned clothing and such-- yet for some reason, when equipped, it appears as pitch black. It works if I do Mob.overlays += Object.icon, but then layers and pixel_y/x arent put into account.

Also, as note, that's not the WHOLE icon load proc, but its long and poorly coded, that much SHOULD cover anything that could be causing this.
Best response
I don't really know but should this be in there?

    color = rgb(1,1,1) //you're making it black?
REMOVING THAT WORKED.

Thank you, it was something stupid as usual, old code I didn't need. THANK YOU!