ID:2333326
 
(See the best response by Nadrew.)
Code:
src << output("<img src='im1.png'>", "grid2:1,1")
src << output("<img src='im2.png'>", "grid2:2,1")


Problem description:
I use the above code to display two images next to each other in a grid. The first image does show on the grid while the second does not...

I made full experiments on this and actually found out that... for the first image, there is a label somewhere in the interface that uses that image file while there is no label that uses the second image. So I created another random label that uses the second image too and now magically the grid shows both images...

Why is this so? Is this bugged?
Thanks and have a happy new year :]

Best response
Because im1.png and im2.png aren't included in the rsc file unless you reference them in single quotes in the code (inside of the HTML doesn't count), or the interface.

var/list/extra_resource = list('im1.png','im2.png')


Can overcome this issue.