Page 1 of 1

[Resolved 0.2.9] First steps, level-02: mining drill count

Posted: Thu Feb 21, 2013 9:03 pm
by wrtlprnft
Hi,

on the second demo level, if I mine all the mining drills, the current count is displayed as -1:

Image

The error is in /usr/share/factorio/campaigns/demo/level-02/control.lua:251 :-)

Re: First steps, level-02: mining drill count off by one

Posted: Tue Feb 26, 2013 6:58 pm
by kovarex
Thank you for the report.

This was so ugly way to do it anyway, so instead of just correcting the number, I implemented interface that allows to call command like this:

Code: Select all

game.getplayer().force.getentitycount("burner-mining-drill")
So this will be correct in the upcoming 0.2.9 version.