Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Nov 19, 2018 12:39 pm

All times are UTC




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Apr 25, 2018 1:40 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Jan 22, 2005 7:31 pm
Posts: 6362
Location: Wakefield, West Yorkshire
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.

_________________
Image
Worst Behaved IRC Member of 2008, 2009 & 2010 - Go Me!


Top
   
PostPosted: Wed Apr 25, 2018 2:13 pm 
Offline
Graphics Moderator
Graphics Moderator
User avatar

Joined: Mon Sep 13, 2004 1:21 pm
Posts: 5305
Location: The Moon
As far as I can tell, all of what you've described is possible with NoGo as it currently stands.

_________________
Pikkarail.com blog | Patreon
Dev reference: NML Specs - NewGRF Specs - Savegame Internals - NoAi API - NoGo API


Top
   
PostPosted: Thu Apr 26, 2018 7:03 pm 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 112
Location: Czech Republic
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

_________________
Owner and admin of servers:
Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My newGRFs: ---


Top
   
PostPosted: Thu Apr 26, 2018 7:08 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Jan 22, 2005 7:31 pm
Posts: 6362
Location: Wakefield, West Yorkshire
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.

_________________
Image
Worst Behaved IRC Member of 2008, 2009 & 2010 - Go Me!


Top
   
PostPosted: Thu Apr 26, 2018 7:08 pm 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 112
Location: Czech Republic
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

_________________
Owner and admin of servers:
Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My newGRFs: ---


Top
   
PostPosted: Thu Apr 26, 2018 7:14 pm 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 112
Location: Czech Republic
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.

_________________
Owner and admin of servers:
Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My newGRFs: ---


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.