Code: Select all
Map.taskTilesToSectors = function taskTilesToSectors(taskData,processData,runData,processName,taskName,alert) {
// check tiles are present (run aborts if not)
if (!runData.hasOwnProperty("tiles")) alert("Unable to find runData.tiles", PROCESS_ALERT_ERROR); // line 96
// create sectors array
runData.sectors = [];
// convert tiles in to sector objects
runData.tiles.forEach(function(tile,i) {
runData.sectors[i] = Map.tileToSectorLoc(tile);//Map.tileToSector(tile);
});
}
BUT... Currently nothing is calling this function, yet for some reason I'm getting this error in the logs:
Code: Select all
info |01:48:06: [loadPlayerScript:428] Uncaught exception at line 96, file multiplay/skirmish/eggplant.js: TypeError: Result of expression 'runData' [undefined] is not an object.
If I comment out line 96, the error shifts to line 98, etc. The function isn't getting executed by anything, so of course runData will be undefined at JS code parsing time, but... ARGH! *brain melts*