The International Simutrans Forum

Simutrans Extended => Simutrans-Extended gameplay discussion => Simutrans-Extended gameplay help requests => Topic started by: accord2 on February 02, 2020, 11:38:26 AM

Title: Disable industry spawning
Post by: accord2 on February 02, 2020, 11:38:26 AM
Hi,

In my current game I'm trying to place everything by myself, every city (and it's buildings), as roads, rivers and industries are placed manually. But sometimes industries spawn, is there any way of disabling it?
I was looking at the simuconf file and I found industry_increase_every = 2000 , I turned it to 0 but they keep spawning. How does this feature works? Is there any way of solving my problem?
Title: Re: Disable industry spawning
Post by: Mariculous on February 02, 2020, 12:29:50 PM
afaik industry_increase_every is not used in extended currently.
If it is used, you should try to set it to a very high number.
Quote
# when a city reaches 2^n times of this number
# then a factory is extended, or a new factory chain is spawned
#industry_increase_every = 2000

The industry density is determined at map creation time so if you set 0 industries when creating a map, there should not be any industries spawning from my understanding.
However, this is not quite well-documented but I guess James knows the internals.
Title: Re: Disable industry spawning
Post by: Jando on February 02, 2020, 04:52:32 PM
Quote from: Freahk on February 02, 2020, 12:29:50 PMThe industry density is determined at map creation time so if you set 0 industries when creating a map, there should not be any industries spawning from my understanding.

This kinda works. However: when new industries become available (I've seen it with power plants) the game can spawn the plants and their supply chain although the map was created with zero industries.
Title: Re: Disable industry spawning
Post by: accord2 on February 02, 2020, 05:20:35 PM
Quote from: Jando on February 02, 2020, 04:52:32 PM
This kinda works. However: when new industries become available (I've seen it with power plants) the game can spawn the plants and their supply chain although the map was created with zero industries.

Yes, I have seen this too.
Title: Re: Disable industry spawning
Post by: accord2 on February 02, 2020, 05:36:32 PM
So I tried with the biggest number it allows me to use "100000" and industries keep spawning :/
Maybe James could explain or add some explanation for this feature in the simuconf file .
Title: Re: Disable industry spawning
Post by: jamespetts on February 02, 2020, 07:41:11 PM
The increase_industry_every is still used in Extended, but the industry density system is the main system used now; thus, the increase_industry_every setting can be disabled and industries will still spawn on the basis of the industry density. If you start with no industries at all, the industry density proportion will be zero, and thus no further industries will spawn, apart from power stations (and industries necessary to supply them) as their spawning logic is based on electricity demand.

If anyone would like to code a simuconf.tab setting to disable all industry spawning, I should be happy to include it, but this is not a priority for my work at present.