ID:90783
 
Not a bug
BYOND Version:462
Operating System:Windows XP Pro
Web Browser:Firefox 3.6
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:

At runtime, images do not update for controls.

Numbered Steps to Reproduce Problem:

Code Snippet (if applicable) to Reproduce Problem:
var/y = input("Choose a color") as color
var/icon/i = new('pixel.png')
i.Blend(y)
fcopy(i,"tmp/pixel.png")
winset(src,"o_main","image=\"tmp/pixel.png\"")
fdel("tmp/pixel.png")


Expected Results:
The new image to replace the old on in the background.
Actual Results:

The image stays the same.

Does the problem occur:
Every time? Or how often? Everytime
In other games? Untested
In other user accounts?n/a
On other computers? n/a

Workarounds:
n/a

fcopy() operates on the server end; the filename in winset() is client-side. To update an image on the client you need fcopy_rsc() to convert the /icon to a cache file, then you need to refer to that icon by its \ref.