The International Simutrans Forum

 

Author Topic: Disable industry spawning  (Read 419 times)

0 Members and 1 Guest are viewing this topic.

Offline accord2

  • *
  • Posts: 249
  • Languages: EN, PT
Disable industry spawning
« 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?

Offline Freahk

  • Devotee
  • *
  • Posts: 1257
  • Languages: DE, EN
Re: Disable industry spawning
« Reply #1 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.

Offline Jando

  • *
  • Posts: 506
Re: Disable industry spawning
« Reply #2 on: February 02, 2020, 04:52:32 PM »
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.

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.

Offline accord2

  • *
  • Posts: 249
  • Languages: EN, PT
Re: Disable industry spawning
« Reply #3 on: February 02, 2020, 05:20:35 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.

Offline accord2

  • *
  • Posts: 249
  • Languages: EN, PT
Re: Disable industry spawning
« Reply #4 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 .

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20207
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Disable industry spawning
« Reply #5 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.