veden / Rampant

Factorio Mod - Basic AI augmentation using potential fields
GNU General Public License v3.0
58 stars 22 forks source link

Rampant3.2.0 Attempt to index value Chunk when it is an integer #164

Closed garrotte13 closed 1 year ago

garrotte13 commented 1 year ago

image

garrotte13 commented 1 year ago

function mapUtils.getChunkByPosition(map: any, position: any) can return -1 if not found, but in next lines it is expected to be an array: if not settler and (chunk[BASE_PHEROMONE] < 0.0001) and (chunk[PLAYER_PHEROMONE] < 0.0001) then

Looks like factorio may position a new biters squad in not generated chunk (or just created and not processed by Rampant yet).