News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

[Fixed] Factories with fields not upgrading properly

Started by neroden, April 21, 2010, 03:39:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neroden

When a Cattle Farm (or whatever) gets "upgraded", it ends up with a production of 1.  The fields aren't getting linked to the upgraded factory properly, I'm guessing.

neroden

OK, I see what's going on here.  When the fields get built originally, the factory production gets increased to go along with them.  (Under the comment "// Knightly : adjust production base and storage capacities").

When the factory gets upgraded, the base gets replaced, production level gets reset, it's still tied to the fields, but the fields are *never checked* to increase the base factory production.

There's a number of ways to handle this.  However, the fact is that "later" cattle farms probably demand different numbers of fields with different production levels.  So the correct thing to do is almost certainly to destroy all the existing fields and spawn a set of new fields.

Alternately, the existing fields could be walked to add their capacity to the upgraded cattle farm.... but this prevents any upgrade in fields and also prevents any increase in number of fields, so it seems wrong.

jamespetts

Neroden,

thank you for the report - fixed as you suggest in the -devel branch.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.