When using these defines I had some strange phenomenons. For digging a little bit deeper I wrote this tiny "mod"
Code: Select all
for _, f in pairs(defines.wire_connector_id) do
log(f)
end
and expected to see the values from 0 to 8 as shown here https://lua-api.factorio.com/stable/runtime-api.json
Instead I got that
Code: Select all
46.961 Script @__testMod3__/control.lua:10: 1
46.961 Script @__testMod3__/control.lua:10: 2
46.961 Script @__testMod3__/control.lua:10: 1
46.961 Script @__testMod3__/control.lua:10: 2
46.961 Script @__testMod3__/control.lua:10: 3
46.961 Script @__testMod3__/control.lua:10: 4
46.961 Script @__testMod3__/control.lua:10: 5
46.961 Script @__testMod3__/control.lua:10: 5
46.961 Script @__testMod3__/control.lua:10: 6
Probably I missed something, but I can't figure out what - so could somebody please explain it?
Thx in advance