News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

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.

hreintke

Hi,

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 ?

Dwachs

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

hreintke

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

Ters

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.

hreintke

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.

An_dz

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

Ters

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.