Page 4 of 4

Re: GS: Industry Constructor

Posted: 03 Apr 2017 06:59
by sevenfm
Found this script very interesting.
Is it possible to modify it to only build new industry if town has enough population?

For example:
1000 - max 1 industry
2000 - max 2 industry
4000 - max 3 industry
...

With this change and industry building set to town type only, the player will have to grow towns to get new industries, representing economy deveolpment and the fact that industry needs workers.
For example, if towns are allowed to grow to 1000 by only passenger/mail service, this will give starting set of industries, then if you want to develop country more, deliver food/goods to a group of towns to allow towns grow to 2000, this will allow opening of new industries and so on.

Re: GS: Industry Constructor

Posted: 25 Jun 2017 11:03
by Ben1338
There seems to be a problem with the game script, I look at the debug menu and it repeatedly says that the Town List is empty.

Re: GS: Industry Constructor

Posted: 21 Jul 2020 16:51
by JacobD88
A wee bit of a necro
However, i have found a previously unreported crash with the Map Constructor update given on Page 2 of this thread

To replicate, add the Map Constructor GS, create a new game (i used 512x512 with industry generation set to "funded only") the script crashes shortly after launch
MapConstructor_v0-9_Crash1.png
(32.23 KiB) Not downloaded yet

Re: GS: Industry Constructor

Posted: 21 Jul 2020 17:21
by MagicBuzz
Why do you use version 1 while there is a version 3 both on BaNaNaS and on the first message of the thread?

Re: GS: Industry Constructor

Posted: 21 Jul 2020 19:35
by JacobD88
MagicBuzz wrote:
21 Jul 2020 17:21
Why do you use version 1 while there is a version 3 both on BaNaNaS and on the first message of the thread?
Because version 0.9/1.0 of MAP Constructor on Page 2 of this thread (second download at the bottom of page) is newer than version 3 of Industry Constructor with new features like town generation and road linking
As the original dev said, it's far more than an Industry Creation script now, so was rebranded
But sadly not uploaded to BaNaNaS

Re: GS: Industry Constructor

Posted: 21 Jul 2020 20:04
by MagicBuzz
I see in the code the program throw an error when the industry it tries to build is not build-able.

According to the NewGRF and some other parameters (game date, etc.) industries actually can't be unavailable and I wonder why the author thrown an error in this case.

I "fixed" it by simply aborting industry construction.
But I didn't tested it.

Re: GS: Industry Constructor

Posted: 21 Jul 2020 21:55
by JacobD88
Many thanks, will try out and report back
Have you halted all industry building or just the failed industry?

Re: GS: Industry Constructor

Posted: 22 Jul 2020 06:58
by MagicBuzz
Just the building attempt when it occurs.
So the next time the script would try to create industries it should try again.

Re: GS: Industry Constructor

Posted: 23 Jul 2020 12:21
by JacobD88
Hmmm, odd
Your modified script appears to be missing all of the newer Map Constructor features (like road linking)

Your modified version
MapConstructor_v0-9_Modified_Issue1.png
(82.72 KiB) Not downloaded yet
Unedited version from bottom of Page 2
MapConstructor_v0-9_Settings 1.png
(118.42 KiB) Not downloaded yet
Did you definitely modify the Map Constructor Script?

Re: GS: Industry Constructor

Posted: 23 Jul 2020 18:04
by MagicBuzz
I see only one MapConstructor download at page 2 and I downloaded it.

Are you sure you use this one ?

Re: GS: Industry Constructor

Posted: 25 Jul 2020 16:36
by JacobD88
I did
It's very very odd that your modified one removes those options unintentionally
But the one from page 2 still has them

But there's a 110KB difference between the page 2 tar (290kb) and your one (180KB) also

Re: GS: Industry Constructor

Posted: 28 Jul 2020 20:32
by GeekToo
MagicBuzz wrote:
23 Jul 2020 18:04
I see only one MapConstructor download at page 2 and I downloaded it.

Are you sure you use this one ?
Actually, there are 2 downloads, also here: viewtopic.php?p=1110996#p1110996

Re: GS: Industry Constructor

Posted: 04 Aug 2020 15:29
by MagicBuzz
Doh! :shock:

That explains many things!

Here is the modified version of this second download...