Page 1 of 1

[0.12.26] [kovarex] defines.inventory.furnace_source, _result seem wrong

Posted: Wed Mar 16, 2016 5:20 am
by jheiv
Factorio 0.12.26

data\core\lualib\defines.lua

Code: Select all

...
inventory =
{
  ...
  furnace_source = 1,
  furnace_result = 2,
  ...
}
...
Except, in a furnace, this is not how it behaves.

Put a {stone,steel} furnace down, add coal, smelt a few iron ore into iron plate, then without removing anything, add some copper ore. You should have copper ore in the "input" slot, iron plate in the "output" slot and coal in the "fuel slot".

Then select (hover over) the furnace and enter these commands:

Code: Select all

/c require("defines")
/c for k,v in pairs(game.player.selected.get_inventory(defines.inventory.furnace_source).get_contents()) do game.player.print(k .. ": " .. v) end
/c for k,v in pairs(game.player.selected.get_inventory(defines.inventory.furnace_result).get_contents()) do game.player.print(k .. ": " .. v) end
The furnace_source line displays the amount of coal present. (Should be copper ore)

The furnace_result line displays the amount of copper ore present. (Should be iron plate)

Since it's inconsistent with the wiki, is this a regression?

Re: [0.12.26] [kovarex] defines.inventory.furnace_source, _result seem wrong

Posted: Thu Mar 17, 2016 4:49 pm
by kovarex
Thanks for the report, it is fixed for 0.12.27 now.