News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

Description factories.dat

Started by SA136, August 21, 2014, 10:04:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SA136

Who explain?
Some idea of factories.dat :

DistributionWeight=100

Range=480

InputSupplier[0]=4

InputSupplier[1]=2

pax_level=30

prissi

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.

Combuijs

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



prissi

Yes that was implied in the above. Maybe it was not explicit enough.

SA136

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

DrSuperGood

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.