ID:142136
 
Im trying to display the players icon and overlays in the load screen so they know which character is which. Ive got the icon and hair to work, but i cant seem to get the overlays to load. I think i just dont know what the built in Read and write procs use to right it. Heres the code

Code:
var/I1
var/I2
var/S1
var/S2
var/H1
var/H2
if(fexists("players/[usr.ckey]1.sav"))
var/savefile/F = new("Players/[usr.ckey]1.sav")
for(var/mob/NPCs/load1/M in world)
F["icon"]>>I1
F["overlays"]>>S1
F["hair"]>>H1
var/image/I11=image(I1,M)
var/image/S11=image(S1,M)
var/image/H11=image(H1,M)
usr << I11
usr << S11
usr << H11
if(fexists("players/[usr.ckey]2.sav"))
var/savefile/F = new("Players/[usr.ckey]2.sav")
for(var/mob/NPCs/load2/M in world)
F["icon"]>>I2
F["overlays"]>>S2
F["hair"]>>H2
var/image/I21=image(I2,M)
var/image/S21=image(S2,M)
var/image/H21=image(H2,M)
usr << I21
usr << S21
usr << H21


You can't do what you're doing, as your setting a list (overlays) as an image, even though it says in the DM reference that it accepts objects, icons, etc.
In response to Jeff8500
ok I figured that i couldnt do what i was doing when it didnt work, any idea on how to do what im trying to do
In response to NightJumper88
Load it and create a new image for every overlay in said list. I'm not positive if this will work because of how overlays work, but it's worth a shot.