public static Race LoadRace(string racePath) { try { var content = Disk.ReadAllText(racePath); var script = CreateScript(Path.GetDirectoryName(racePath)); var raceTable = script.DoString(content); return(RaceHelper.MakeRaceFrom(raceTable.Table)); } catch (InterpreterException e) { logger.Error(e.DecoratedMessage); throw new Exception(e.DecoratedMessage); } }