Defined mob is apparently null
|
|
Code:
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")) 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 for(var/Z in tempvars) if(Z) Y.vars["[Z]"] << tempvars["[Z]"] Races += Y spawn (-1) world << "[Y] was added to Races." 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.
|