Page 1 of 1

[0.13.0] result_units contents incorrect

Posted: Thu Jun 30, 2016 3:55 am
by sparr

Code: Select all

for k,v in pairs(game.entity_prototypes["biter-spawner"].result_units[1].spawn_points) do game.player.print(k..' '..v) end
this prints one evolution factor and one weight.

spawn_points should be an array with numeric keys and values that are themselves tables, per http://lua-api.factorio.com/0.13.0/LuaE ... sult_units

however, it looks like what's happened is that spawn_points actually contains what should be in spawn_points[1] and the other points aren't accessible.

Re: [0.13.0] result_units contents incorrect

Posted: Thu Jun 30, 2016 8:40 am
by Rseding91
Fixed for 0.13.2.