Author Topic: Factories with distrubution_weight=0 and factory building  (Read 530 times)

0 Members and 1 Guest are viewing this topic.

Offline hreintke

Factories with distrubution_weight=0 and factory building
« on: May 07, 2017, 01:08:48 PM »
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 ?

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4233
  • Total likes: 169
  • Helpful: 149
  • Languages: EN, DE, AT
Re: Factories with distrubution_weight=0 and factory building
« Reply #1 on: May 07, 2017, 02:01:04 PM »
see gui/factory_edit.cc and factory_edit_frame_t::fill_list
Parsley, sage, rosemary, and maggikraut.

Offline hreintke

Re: Factories with distrubution_weight=0 and factory building
« Reply #2 on: May 07, 2017, 02:32:56 PM »
Thanks,
According to the comment : // DistributionWeight=0 is obsoleted item, only for backward compatibility
That is why is doesn't show up.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: Factories with distrubution_weight=0 and factory building
« Reply #3 on: May 07, 2017, 06:48:18 PM »
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.

Offline hreintke

Re: Factories with distrubution_weight=0 and factory building
« Reply #4 on: May 08, 2017, 06:37:07 AM »
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.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2593
  • Total likes: 289
  • Helpful: 89
  • D'oh
    • by An_dz
  • Languages: PT, EN, (it, de)
Re: Factories with distrubution_weight=0 and factory building
« Reply #5 on: May 08, 2017, 07:29:39 AM »
Yes, I believe they should show when that's unchecked. At least I'm used to do it, but I generally play without timeline.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: Factories with distrubution_weight=0 and factory building
« Reply #6 on: May 08, 2017, 02:47:03 PM »
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.