ID:2053256
 
BYOND Version:509
Operating System:Windows 10 Pro 64-bit
Web Browser:Firefox 44.0
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
Lists in dm -o XML are outputted incorrectly, but only if they are in subtypes and overriding parent var.

Contents of incorrect output appear to be "glued together" - they are basically list() contents with "=", " " and "," symbols between list items removed. This often makes restoring the list's contents from XML output completely impossible.

It occurs even when parent var is declared as empty list, null or nothing at all.

Numbered Steps to Reproduce Problem:
1. Create a new world with code snippet included.
2. Compile it with dm -o
3. Look at /datum/test/override and /override2's "test" list in XML output.

Code Snippet (if applicable) to Reproduce Problem:
/datum/test/var/test = list()

/datum/test/override/test = list(/atom, /atom/movable, /turf)
/datum/test/override/var/test2 = list(/atom, /atom/movable, /turf)

/datum/test/override2/test = list("test", /atom/movable, "honk" = 2)

/datum/test/override3/test = list(list())


Expected Results:
5 correct lists in dm -o output.

Actual Results:
Only the list 1 (var/test) and list 3 (var/test2) have correct output, the rest are broken.

Does the problem occur:
Every time? Or how often?
Test code is affected every time I think. ~10 compilations, 2PCs, results are all the same.
In other games?
I first encountered it while working with SS13 /tg/station, but it occurs in test world too.
On other computers?
It occurs on another PC (Win7 x32) with the same BYOND version (509.1319, last non-beta ATM) too.

When does the problem NOT occur?
If list has contents defined on var declaration, it is processed correctly.