ID:2719190
 
Resolved
Setting a particle set's icon value to a list produced no icons at all in most cases.
BYOND Version:514
Operating System:Windows 10 Pro 64-bit
Web Browser:Chrome 94.0.4606.61
Applies to:Dream Daemon
Status: Resolved (514.1569)

This issue has been resolved.
Descriptive Problem Summary:
List of icons cause particles to revert to pixels/dots
Numbered Steps to Reproduce Problem:

Create .dmi 'icons/test.dmi', single state icon with no name/null name
Create particle with null state, and icon = 'icons/test.dmi' - This works
Create particle with null state, and icon = list('icons/test.dmi'=1) - This doesn't work

Code Snippet (if applicable) to Reproduce Problem:

Working - shows the icon correctly
/particles/test
icon = 'icons/test.dmi'
icon_state = null


not working - reverts to pixel
/particles/test
icon = list('icons/test.dmi')
icon_state = null


Expected Results:

Icon should be picked from the list, similar to setting icon_state.

Ideally I should be able to set it to this, so it can be a mix of icons and the pixel particle.
/particles/test
icon = list('icons/test.dmi'=1, null=1)
icon_state = null


Actual Results:
Particle effect reverts to pixel

Does the problem occur:
Every time

When does the problem NOT occur?
n/a

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.)
n/a

Workarounds:
n/a
Lummox JR resolved issue with message:
Setting a particle set's icon value to a list produced no icons at all in most cases.
The issue here turned out to be server-side, in how the list was interpreted and turned into a generator.

Mixing icons and non-icons is not currently possible but will be considered for a future enhancement to the engine. The heart of the problem is the rendering loop, so the renderer needs some updates.