The International Simutrans Forum

PakSets and Customization => Pak64 => Topic started by: SA136 on August 21, 2014, 10:04:46 PM

Title: Description factories.dat
Post by: SA136 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
Title: Re: Description factories.dat
Post by: prissi 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.
Title: Re: Description factories.dat
Post by: Combuijs 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.
Title: Re: Description factories.dat
Post by: prissi on August 22, 2014, 08:59:41 PM
Yes that was implied in the above. Maybe it was not explicit enough.
Title: Re: Description factories.dat
Post by: SA136 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.

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
Title: Re: Description factories.dat
Post by: DrSuperGood on August 23, 2014, 01:53:54 AM
QuoteIs 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.