Want to praise Simutrans?
Your feedback is important for us ;D.

Factories with distrubution_weight=0 and factory building

Started by hreintke, May 07, 2017, 01:08:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.



In the factory building option of the map editing tools, factories with a distribution weight set to zero are not shown.
I'd like to have them included to be able to have factories which are not build automatic but can be added manually.

Can't find the location in the source where this list is created and displayed.
Anyone knows where that is done ?


see gui/ and factory_edit_frame_t::fill_list
Parsley, sage, rosemary, and maggikraut.


According to the comment : // DistributionWeight=0 is obsoleted item, only for backward compatibility
That is why is doesn't show up.


For debugging purposes, it might be useful to be able to build obsolete factories as well, although it can be done the slow and normal way.


Second thought,
Shouldn't obsolete factories be shown when the button "use timeline year" is unchecked ?
In that case, not showing them is a bug.


Yes, I believe they should show when that's unchecked. At least I'm used to do it, but I generally play without timeline.


These obsolete factories have nothing to do with the in-game timeline. They are factories that existed in earlier version of the pak set, but with have been succeeded by other developments in later versions.