Lumber depletion bug

Blkbird

King
Joined
Oct 29, 2005
Messages
860
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.
 

Attachments

  • civ4col_lumber_depletion_bug.jpg
    civ4col_lumber_depletion_bug.jpg
    465.3 KB · Views: 255
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?
 
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.
 
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. :)
 
Ok, I have been able to recreate this bug. I am now looking into what is causing it and how to fix it.
 
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.

Thanx for posting this. :goodjob:
 
Back
Top Bottom