Page 1 of 1

Use GS to place towns and edit land

Posted: 25 Apr 2018 13:40
by Redirect Left
hi

So what i'm thinking of trying to do, but i'm 99% sure I can't do it for technical reasons, is trying to build a gamescript that dynamically generates a map. Think of a gamescript that can edit the landscape, and place towns every X years after it's happy you've done a good job of adding the last town to your network with sufficient links to each other town.

So basically, I'm looking at trying to do is start with a blank flat map, two towns, and the script will randomly add more towns and edit the landscape as it builds outwards, giving a somewhat different game each time.

Is any part of this feasible with the current state of game scripts? If not, is it something that is easy to do? ie; adding parts of the 'land generator' code to a GS, or a hook into it or similar.

Re: Use GS to place towns and edit land

Posted: 25 Apr 2018 14:13
by PikkaBird
As far as I can tell, all of what you've described is possible with NoGo as it currently stands.

Re: Use GS to place towns and edit land

Posted: 26 Apr 2018 19:03
by agentw4b
Redirect Left wrote:hi

So what i'm thinking of trying to do, but i'm 99% sure I can't do it for technical reasons, is trying to build a gamescript that dynamically generates a map. Think of a gamescript that can edit the landscape, and place towns every X years after it's happy you've done a good job of adding the last town to your network with sufficient links to each other town.

So basically, I'm looking at trying to do is start with a blank flat map, two towns, and the script will randomly add more towns and edit the landscape as it builds outwards, giving a somewhat different game each time.

Is any part of this feasible with the current state of game scripts? If not, is it something that is easy to do? ie; adding parts of the 'land generator' code to a GS, or a hook into it or similar.
City Founder Game Script : viewtopic.php?f=65&t=82795

I created it on March 12, 2018

Re: Use GS to place towns and edit land

Posted: 26 Apr 2018 19:08
by Redirect Left
agentw4b wrote: City Founder Game Script : viewtopic.php?f=65&t=82795
Ah nice. I'll see if that does what I want already, and if not. See if the licence allows me to edit it to what i'm desiring.

Re: Use GS to place towns and edit land

Posted: 26 Apr 2018 19:08
by agentw4b
Redirect Left wrote:
agentw4b wrote: City Founder Game Script : viewtopic.php?f=65&t=82795
Ah nice. I'll see if that does what I want already, and if not. See if the licence allows me to edit it to what i'm desiring.

GPL 2

Re: Use GS to place towns and edit land

Posted: 26 Apr 2018 19:14
by agentw4b
The author of the script is I, the city bases it only on time setting, not as a result of city prosperity or actions from the player. But if you want to improve it or have ideas to improve it, you can.