ID:1818923
 
Not a bug
BYOND Version:507
Operating System:Windows 7 Home Premium 64-bit
Web Browser:Chrome 41.0.2272.101
Applies to:Dream Seeker
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:

Creating a buffer icon to Blend things to fails to generate anything.

Numbered Steps to Reproduce Problem:

use the following code.

Code Snippet (if applicable) to Reproduce Problem:
mob/Login()
var/icon/buffer = new

var/icon/A = icon('sprites.dmi',"black")
var/icon/B = icon('sprites.dmi',"white")

buffer.Blend(A,ICON_OVERLAY)
buffer.Blend(B,ICON_OVERLAY)

fcopy(buffer,"Success.dmi")


Expected Results:
The buffer icon to get the contents of the others.
Actual Results:
Nothing was ever applied
Does the problem occur:
Every time? Or how often? Always
In other games? Yes
In other user accounts? Yes
On other computers? Yes

When does the problem NOT occur?
If I define a buffer with some sort of icon to start with.


Example:

mob/Login()
var/icon/buffer = new('blankspace.dmi')

var/icon/A = icon('sprites.dmi',"black")
var/icon/B = icon('sprites.dmi',"white")

buffer.Blend(A,ICON_OVERLAY)
buffer.Blend(B,ICON_OVERLAY)

fcopy(buffer,"Success.dmi")



Workarounds:

Use the other script I shown, by making the buffer start with an icon.
Lummox JR resolved issue (Not a bug)
That's the actual behavior. There are no states inside an icon created without a template.

It might be a good idea to have a way to create a blank icon in there, but I don't want to change the default behavior as it could impact existing projects.
Alright thanks, I didn't know if it was intended behavior or not.