ID:2750928
 
Resolved
Outputting a color generator as a string produced incorrect results.
BYOND Version:514
Operating System:Windows 10 Enterprise 64-bit
Web Browser:Chrome 96.0.4664.110
Applies to:Dream Daemon
Status: Resolved (514.1573)

This issue has been resolved.
Descriptive Problem Summary:
Stringify-ing a color generator produces output substituting in #02x02x02x for the actual color string arguments used

Similar to bug fixed in the latest release: http://www.byond.com/forum/post/2749548


Numbered Steps to Reproduce Problem:
1. Create a color generator
2. Stringify it

Code Snippet (if applicable) to Reproduce Problem:
var/x = generator("color", "#000", "#FFF", UNIFORM_RAND)
world.log << "[x]"


Expected Results:
generator("color", "#000000", "#FFFFFF", UNIFORM\_RAND)

Actual Results:
generator("color", "#02x02x02x", "#02x02x02x", UNIFORM\_RAND)


Does the problem occur:
Every time? Or how often?Everytime
In other games?Yes
In other user accounts?Yes
On other computers?Yes

When does the problem NOT occur?
Unknown

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
Testing shows that this has been present since the initial release of generators and 514

Workarounds:
None
This is in 514.1572?
Yes this is 514.1572

514.1572 corrected the output of the generator, but this bug applies to the stringification of the generator object.

Lummox JR resolved issue with message:
Outputting a color generator as a string produced incorrect results.