initial(typath.vars["a_var_name"]) is runtiming on versions above 514.1548, this worked without issues before
Numbered Steps to Reproduce Problem:
See code
Code Snippet (if applicable) to Reproduce Problem:
/datum/a
var/bloop = "a bloop"
var/datum/a/datum_typepath = /datum/a
world.log << initial(datum_typepath.vars["bloop"])
Expected Results:
you get "a bloop"
Actual Results:
runtime error: Cannot read /datum/a (/datum/a).vars
proc name: New (/a/New)
usr: null
src: /a (/a)
call stack:
/a (/a): New()
Does the problem occur:
Every time? Or how often? yes
In other games? yes
In other user accounts? yes
On other computers? yes
When does the problem NOT occur?
never
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked?
514.1548 works for sure, 514.1554 and above runtimes. I wasn't able to pinpoint exactly what version made the change, it's between both of those
Workarounds:
initial(typepath.thevarname) still works fine
But, it seems that vars is list, and to read initial list you need to instantiate it, it isn't a string and etc.