View Full Version : Lumber depletion bug


Blkbird
Sep 27, 2008, 05:59 PM
There seems to be a bug in the calculation of Lumber depletion, resulting in "exactly enough Lumber for the Carpenter" being treated as "not enough Lumber". See attached screenshots.

Not sure if this is limited to Lumber or all raw materials.

Jeckel
Oct 21, 2008, 12:22 AM
It looks to be functioning properly to me. The Carpenter uses 3 Lumber per turn to produce 3 Hammers per turn.

In the first Screen Shot you have 3 Lumber in storage and no new Lumber coming in, so your Carpenter is going to use those 3 Lumber to make its 3 Hammers. Since your Dock still needs 4 Hammers for completion, this will take you 1 Turn.

In the second Screen Shot you have no Lumber in storage and no new Lumber coming in, so your Carpenter can't make any Hammers, so your Hammer Rate is "4 - 3" or, as it shows it "4 -3". Since your dock needs 3 Hammers for completion and you are making "4 - 3 = 1" Hammer per Turn, this will take you 3 Turns.

What exactly do you see as a bug?

Arkan5
Oct 21, 2008, 05:26 AM
It looks to be functioning properly to me.

What exactly do you see as a bug?

The bug shows in the combination of the two screenshots. Note that they're from consecutive turns in the same settlement; so if the production actually happened as displayed in the first screenshot then the dock would already be completed in the second one. It seems the carpenter used the wood but didn't produce the hammers.

Jeckel
Oct 21, 2008, 12:08 PM
Ahh, ok, I see what your saying. I just got home and have a little work to do on my own mod, but I look into this today and see what I can come up with. :)

Jeckel
Oct 21, 2008, 12:45 PM
Ok, I have been able to recreate this bug. I am now looking into what is causing it and how to fix it.

Jeckel
Oct 21, 2008, 01:23 PM
Hehe, well that was pretty easy to fix. I posted how to recreate the bug and the fix in the Unofficial Bug Only Patch Mod (http://forums.civfanatics.com/showthread.php?p=7370615#post7370615).

Thanx for posting this. :goodjob: