Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Thu Jul 19, 2018 7:55 am

All times are UTC




Post new topic  Reply to topic  [ 13 posts ] 
Author Message
 Post subject: [AI] CityConnecter
PostPosted: Sun Feb 23, 2014 12:28 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Wed Oct 30, 2013 1:57 pm
Posts: 199
I have just uploaded my first attempt on an AI, mostly done as a try on Squirrel and the NoAI API. It will select the largest cities (towns marked as city) and connect it with nearby towns (of any size), when distance to next town is too great, it jumps to the next city, and continues like that. Since it is a company, it will eventually go bankrupt as it doesn't try to make money in any way, but I have tried to make it so that it reduces the amount of loan while calculating the routes, so that, hopefully it can live a little longer and connect a few more towns.

Version 1 available on BaNaNaS


Attachments:
File comment: CityConnecter v1
CityConnecter-1.zip [4.86 KiB]
Downloaded 976 times

_________________
Skippern
OpenTTD Mac user
Top
   
 Post subject: Re: [AI] CityConnecter
PostPosted: Tue Mar 04, 2014 8:30 am 
Offline
Engineer
Engineer

Joined: Tue Mar 04, 2014 8:27 am
Posts: 1
Nice post


Top
   
 Post subject: Re: [AI] CityConnecter
PostPosted: Fri Oct 31, 2014 2:23 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Wed Oct 30, 2013 1:57 pm
Posts: 199
I have just started to recreate this AI as a GameScript, that way I will get the purpose of the AI covered without occupying a company slot.

I am still not sure of how I would want the GameScript to work other than I would like all towns and cities to build out the network towards their neighbouring towns.

One idea I have is that the speed of building will depend on town size, for example a town builds 4 tiles per 1000 citizen, while a city builds 8 tiles per 1000 citizen.

Another idea is that after a certain date, for example 1960, Cities will prioritise building dual carriage ways towards other cities (this does not apply to town links)

Further another idea, is large cities will try to make ring-roads circling the circumference of the city, this work might start in 1985.

I might do minor adjustment to the AI but will not do any major alterations. If any bugs encountered, please report them here.

_________________
Skippern
OpenTTD Mac user


Top
   
 Post subject: Re: [AI] CityConnecter
PostPosted: Mon Jan 22, 2018 8:50 am 
Offline
Engineer
Engineer
User avatar

Joined: Mon Jul 25, 2016 11:44 pm
Posts: 45
Doesn't seem to work well with bridges.
Also it builds unrealistic long bridges over lakes when it's possible to make a route on land around the lake.
Tested with JGR patchpack.


Attachments:
Cityconnecter 1.png
Cityconnecter 1.png [ 267.91 KiB | Viewed 2698 times ]
Cityconnecter 2.png
Cityconnecter 2.png [ 558.39 KiB | Viewed 2698 times ]
Top
   
 Post subject: Re: [AI] CityConnecter
PostPosted: Tue Jan 23, 2018 9:38 am 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Wed Oct 30, 2013 1:57 pm
Posts: 199
Thanks for feedback. I will make a note of this in case I do update this AI. I have somewhat abandoned the AI to re-create the same as a game script, though are far from having anything playable. I am currently in a play break from OTTD, and have no immediate plans to pick it up again.

Seems like the router have changed behavior since the AI was made, can't remember the turn immediately after bridge being an issue earlier


Sent from my iPhone using Tapatalk

_________________
Skippern
OpenTTD Mac user


Top
   
 Post subject: Re: [AI] CityConnecter
PostPosted: Sat Mar 31, 2018 4:13 pm 
Offline
Engineer
Engineer

Joined: Sat Jun 18, 2016 7:05 pm
Posts: 38
Please come back soon!
This AI would suit a GS perfectly. I've been building a road network at the start of my games using an idle AI for ages. I'd start by joining all The towns with motorways using The Dutch road furniture GRF, then join up all The primary industries to The nearest road creating a huge network. The problem with AIs was if the road was in your way, you were screwed. With a GS I'm assuming the roads would be town owned, so easier to "move" if you needed to. That and the money problems.
Hope you get this up and running. I'm available for testing and suggestions if needed.


Top
   
 Post subject: Re: [AI] CityConnecter
PostPosted: Thu May 31, 2018 2:05 pm 
Offline
Engineer
Engineer
User avatar

Joined: Fri Jul 29, 2005 3:22 pm
Posts: 29
Location: Haarlem, Netherlands
Another player here that would love a GS like this. :D

Having cities connect to one another with roads would increase the immersion a heck of a lot. :)


Top
   
 Post subject: Re: [AI] CityConnecter
PostPosted: Tue Jun 19, 2018 4:53 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Wed Oct 30, 2013 1:57 pm
Posts: 199
I have barely initiated the code for this as GS, than ran out of time. Currently I don't have OTTD installed, but hope to reinstall shortly


Sent from my iPhone using Tapatalk

_________________
Skippern
OpenTTD Mac user


Top
   
 Post subject: Re: [AI] CityConnecter
PostPosted: Tue Jun 19, 2018 4:55 pm 
Offline
Engineer
Engineer
User avatar

Joined: Fri Jul 29, 2005 3:22 pm
Posts: 29
Location: Haarlem, Netherlands
skippern wrote:
I have barely initiated the code for this as GS, than ran out of time. Currently I don't have OTTD installed, but hope to reinstall shortly


Sent from my iPhone using Tapatalk

Yeesss you're still active! Awesome! :D


Top
   
 Post subject: Re: [AI] CityConnecter
PostPosted: Tue Jun 19, 2018 6:51 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Wed Oct 30, 2013 1:57 pm
Posts: 199
Wouldn't call it active, rather a semi-present idle...


Sent from my iPhone using Tapatalk

_________________
Skippern
OpenTTD Mac user


Top
   
 Post subject: Re: [AI] CityConnecter
PostPosted: Tue Jun 26, 2018 11:54 pm 
Offline
Engineer
Engineer
User avatar

Joined: Mon Jan 02, 2012 4:45 pm
Posts: 2
I have a problem, the AI wouldn't start. Always outputs this error:

Image


Top
   
 Post subject: Re: [AI] CityConnecter
PostPosted: Wed Jun 27, 2018 10:47 am 
Offline
Engineer
Engineer

Joined: Wed Mar 07, 2018 5:00 pm
Posts: 34
bladez wrote:
I have a problem, the AI wouldn't start. Always outputs this error:

Looks like you haven't downloaded all the required SuperLibs. If you download AIs via ingame content download, dependencies would be automatically selected for download aswell.


Top
   
 Post subject: Re: [AI] CityConnecter
PostPosted: Wed Jun 27, 2018 2:47 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Wed Oct 30, 2013 1:57 pm
Posts: 199
Or a compatibility issue, anyway the correct version of minchin super lob should solve the problem


Sent from my iPhone using Tapatalk

_________________
Skippern
OpenTTD Mac user


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 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.