PreCacheRaces()
var/list/tempraces = dd_file2list("Data/Races.txt")
sleep(30)
for(var/X in tempraces)
var/mob/Race/Y
var/list/tempvars = params2list(dd_file2params("Data/Races/[X].txt"))
//BEGIN DEBUG
spawn(-1) world << dd_file2params("Data/Races/[X].txt")
spawn(-1) world << params2list(dd_file2params("Data/Races/[X].txt"))
for(var/bla in tempvars)
world << tempvars["[bla]"]
world << bla
//END DEBUG
for(var/Z in tempvars)
if(Z)
Y.vars["[Z]"] << tempvars["[Z]"] //Line 56
Races += Y
//BEGIN DEBUG
spawn (-1) world << "[Y] was added to Races."
//END DEBUG
if(Y.Limited)
Limited["[Y]"] << Y.Limited
if(Y.Extinct)
Extinct += Y
Problem description:
runtime error: Cannot read null.vars
proc name: PreCacheRaces (/proc/PreCacheRaces)
source file: EX Races.dm,56
usr: null
src: null
call stack:
PreCacheRaces()
: New()
Any clues anyone?
I can post more information if needed.