ID:139696
 
Code:
    proc
dese()
src.icon=turn('person.dmi',src.angle*-1)


Problem description:
i'm experiencing sudden icon disapearments while doing my icon update proc while running the server on multiplayer, is there anyway i can fix that?

but on single player it runs smooth and no icon disapearments.

i tried changing tick lag, adding delay on turnleft and right proc but nothing will do it.
That's caused because the players will have to download the new icon made with the icon Turn() proc, You could cache the icons that are used with the Turn() proc, and make the players download all the angles of the icon, that way it wouldn't be disappearing for the players. I don't know how to fully do this, but that'd most likely help.

The second thing you could do is host it with a good internet upload speed so the players would download the icon even faster(However this'll still make lag/disappearance I believe)
In response to Enic (#1)
yeah, i'll try cacheing the icons in a array.
mob
var
si[360]
proc
upd_icon()
for(var/i=1,i<src.si.len,i++)
src.si[i]=turn('person.dmi',i*-1-1)



proc
dese()
src.icon=src.si[src.angle-1]


it's still disapearing when i host in dream daemon and log in in it.
and i'm calling upd_icon() on login()
In response to Karffebon (#2)
Instead of doing that, you should do this in world/New(), that way all mobs have to do is access a single list, instead of creating and accessing separate lists. You could also do this for each overlay you may have.