I get the following error in my game.
runtime error: BYOND Error: failed to write new icon.
proc name: RscFile (/icon/proc/RscFile)
usr: null
src: /icon (/icon)
call stack:
/icon (/icon): RscFile()
Numbered Steps to Reproduce Problem:
Use the code below? I'm not exactly sure if that's what's causing the error or not.
Code Snippet (if applicable) to Reproduce Problem:
obj
iconShow
layer = 10
screen_loc= "8,13"
New(client/C)
if(!C) del src
C.screen += src
proc/SetIcon(var/i, var/s= "")
icon= i
icon_state= s
mob/proc/DoSetIcon()
var/obj/iconShow/iS= locate() in src.client.screen
if(iS)
var/icon/I= new('icons/icon.dmi')
I.Blend('icons/icon1.dmi', ICON_OVERLAY)
I.Blend('icons/icon2.dmi', ICON_OVERLAY)
I.Blend('icons/icon3.dmi', ICON_OVERLAY)
I.Blend('icons/icon4.dmi', ICON_OVERLAY)
I.Blend('icons/icon5.dmi', ICON_OVERLAY)
if(src.colour)
I.Blend(src.colour, ICON_MULTIPLY)
iS.SetIcon(I)
Expected Results:
Icon change
Actual Results:
Byond error
Does the problem occur:
Every time? Or how often? Every
In other games? Unknown
In other user accounts? Unknown
On other computers? Unknown
When does the problem NOT occur?
v454 (I don't know if it works in any versions between 454 and 459)
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
v454
Workarounds:
None that I know of