Author Topic: Description factories.dat  (Read 1652 times)

0 Members and 1 Guest are viewing this topic.

SA136

  • Guest
Description factories.dat
« on: August 21, 2014, 10:04:46 PM »
Who explain?
Some idea of factories.dat :

DistributionWeight=100

Range=480

InputSupplier[0]=4

InputSupplier[1]=2

pax_level=30

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8664
  • Total likes: 288
  • Helpful: 227
  • Languages: De,EN,JP
Re: Description factories.dat
« Reply #1 on: August 21, 2014, 10:36:44 PM »
DistributionWeight is only needed of there are more factories of this type (i.e. two refineries, end consumer). In that case the next factory will be choosen from a list and each is weighted by these factors.

Range: give the range the production falls into (if zero that it is always exactly the given production).

InputSuppliers[ good_nr ]=how many factories I will be connected. Giving a number will force at most that many factories. Was used in pak128 to make coal a scare resource. Usually set to zero (mean fít will be connected to as many as needed).

pax_level: like for many other buildings, the heigher the more factories are created. But I think this became obsolete with the new demand system.

Offline Combuijs

  • Web Team
  • Devotee
  • *
  • Posts: 1379
  • Total likes: 20
  • Helpful: 53
  • Maintainer of maps.simutrans.com
    • Combuijs
  • Languages: EN, NL
Re: Description factories.dat
« Reply #2 on: August 21, 2014, 11:00:44 PM »
I think DistributionWeight is also used to indicate the chance that a certain end consumer is built when the industry density increases

e.g.

Car Dealer has DistributionWeight = 10
Book Store has DistributionWeight = 5

then the chance that a Car Dealer is built is twice as much as a Book Store.
Bob Marley: No woman, no cry

Programmer: No user, no bugs



Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8664
  • Total likes: 288
  • Helpful: 227
  • Languages: De,EN,JP
Re: Description factories.dat
« Reply #3 on: August 22, 2014, 08:59:41 PM »
Yes that was implied in the above. Maybe it was not explicit enough.

SA136

  • Guest
Re: Description factories.dat
« Reply #4 on: August 22, 2014, 10:29:45 PM »
Another question
Is it possible that the two chains separately in one factory?
Now together two strings
It is produced at the same time, when they are all four input material.

Code: [Select]
InputGood[0]=Wood_chips
InputCapacity[0]=1200
InputSupplier[0]=4
InputFactor[0]=200
InputGood[1]=Kohle
InputCapacity[1]=600
InputSupplier[1]=2
InputFactor[1]=100
OutputGood[0]=Brykiet
OutputCapacity[0]=200

InputGood[2]=Sand
InputCapacity[2]=1200
InputSupplier[2]=4
InputFactor[2]=200
InputGood[3]=Cement
InputCapacity[3]=600
InputSupplier[3]=2
InputFactor[3]=50
OutputGood[1]=Zaprawa
OutputCapacity[1]=200

Offline DrSuperGood

Re: Description factories.dat
« Reply #5 on: August 23, 2014, 01:53:54 AM »
Quote
Is it possible that the two chains separately in one factory?
No it is not possible. This is a restriction with the current industry model (the code just does not support it). I would advise declaring two separate industries, 1 for each chain, instead.