New AI

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

What do you think about TT AI?

I like the old AI
3
6%
I what a new AI
39
78%
I don't care
8
16%
 
Total votes: 50

User avatar
Death
Tycoon
Tycoon
Posts: 992
Joined: 02 Aug 2005 13:00
Location: Jerusalem, Israel

New AI

Post by Death »

Hi,
In the "Configure Patches" there is a switch which called "Enable new AI (alpha). Road vehicles are only work as I see. I whant to know if anybody
works on new AI for trains, aircrafts and ships. and when it will be ready for downloud (I can't stand the old AI any more :x ).
User avatar
gkirilov
Chief Executive
Chief Executive
Posts: 696
Joined: 03 May 2005 09:32
Location: Othala

Post by gkirilov »

the answer is clear ... it will be ready when it is.

http://wiki.openttd.org/index.php/Development:Main_Page
OTTDCoop NewGRF Pack|Different sets of GRFs for TTDPatch (some of them work in OTTD) - 1|- 2|GRF sets for OTTD|OTTD nightly
Image
I hooked up my accelerator to my brake lights. I hit the gas, people behind me stop, and I'm gone.
Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you take the wall with you. Spoilers and bodykits are how much of the wall you take with you. Rollcages and windownets are how much of a mess you leave on the wall.
User avatar
SirkoZ
Tycoon
Tycoon
Posts: 1518
Joined: 06 Mar 2004 23:51
Location: The sunny side of Alps

Post by SirkoZ »

I agree with gkirilov, althought the old AI is ridiculously jaded. :lol:

By the way you should have written "I want a new one".
User avatar
Death
Tycoon
Tycoon
Posts: 992
Joined: 02 Aug 2005 13:00
Location: Jerusalem, Israel

Post by Death »

gkirilov wrote:the answer is clear ... it will be ready when it is.
It was a rhetoric question.

And SirokZ your right, I should have written "want"... :oops:

:arrow: Anyway, why did Chris Sawyer make so stupid AI?
It so boring to play with the computer,
I want a new AI NOW!!! :evil: (I'm just kidden')

:arrow: How will the new AI build railroads?
I hate those "snakes" on my map.

:arrow: Who's voted "I like the old AI"?
Are you OK man, or maybe the old AI took control on your mind?
User avatar
SirkoZ
Tycoon
Tycoon
Posts: 1518
Joined: 06 Mar 2004 23:51
Location: The sunny side of Alps

Post by SirkoZ »

:lol:

Well - I, for one, woted for the new AI, but you should know it's not that easy to write a new AI, at best it's quite time consuming, that's why Chris Sawyer didn't improve it...
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7596
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

AI's are a hard thing to make. Its not as easy as any old feature. You have to tell it how to behave in all situations.
Image
User avatar
Death
Tycoon
Tycoon
Posts: 992
Joined: 02 Aug 2005 13:00
Location: Jerusalem, Israel

Post by Death »

Did I say it's easy?
User avatar
magnato
Traffic Manager
Traffic Manager
Posts: 241
Joined: 08 Sep 2004 20:35
Location: Oslo
Contact:

Post by magnato »

to write a new AI, at best it's quite time consuming, that's why Chris Sawyer didn't improve it...

... and actually he told in the lauch of TT he DID work a lot with the AI to add depth to the game. But please take in the challenge here. Chess computers software have been worked on for more than 40 years and up to now and only recently they were able to compete with the best chess players. Though I hope the new AI will take less than 40 years. :lol:
Magnato, Oslo
User avatar
SirkoZ
Tycoon
Tycoon
Posts: 1518
Joined: 06 Mar 2004 23:51
Location: The sunny side of Alps

Post by SirkoZ »

I know what Chris said about adding the depth to the game, although - did anyone ever notice, how AI in TTOriginal and in TTD builds railways very often with and "S" in it? They like the S so much, it's kinda ridiculous.
If the AI only made a more straight way, it would be a lot better - and no long bridges.
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Post by CobraA1 »

IMHO he chose a poor algorithm in the first place - I'm surprised he chose something that degenerated so quickly as the recursion factor increased.
"If a man does not keep pace with his companions, perhaps it is because he hears a different drummer. Let him step to the music he hears, however measured or far away" --Henry David Thoreau
User avatar
Death
Tycoon
Tycoon
Posts: 992
Joined: 02 Aug 2005 13:00
Location: Jerusalem, Israel

Post by Death »

If he chose a poor algorithm, why did he work a lot with the AI, as Magneto said? and how do you know it, Magneto?
User avatar
magnato
Traffic Manager
Traffic Manager
Posts: 241
Joined: 08 Sep 2004 20:35
Location: Oslo
Contact:

Post by magnato »

He said so in interviews when he was introducing the first game Transport Tycoon before Christmas 1993.
did anyone ever notice, how AI in TTOriginal and in TTD builds railways very often with and "S" in it?
This is why I suggest only a small improvement in the AI would have great impact. In fact it seems to me the AI stops working on one line as soon as he has made connection. This is a bad mistake. He should continue to work on the track a few seconds more just to cansel out the wellknown "S"! May be this could did not have to be so complecated:

If the AI just measure up the distance in squares and compare this to the number of squares of his new track like this: Q = Y/X
where:
X = Squares in distance from A to B"
Y= "Numbers of Squares in New Track"/Distance,

He would get a number bigger than 1, as the distance "Y" divided on numbers of tracks "X" always has to be bigger than 1. (how to make the AI make diagonal track structure, I dont know, because even though diagonal tracks makes the track shorter, it does not cut down on the no of tracks)


We should just give AI 10 seconds extra eg to improve his new track after he has made de connection to get the value "Q" as low as possible. This is how Chess computers work all the time.
Magnato, Oslo
User avatar
Death
Tycoon
Tycoon
Posts: 992
Joined: 02 Aug 2005 13:00
Location: Jerusalem, Israel

Post by Death »

I see you like chess games...
Anyway, AI works slowly, I don't know if it's good to give
the AI more time. We need to try it.
User avatar
magnato
Traffic Manager
Traffic Manager
Posts: 241
Joined: 08 Sep 2004 20:35
Location: Oslo
Contact:

Post by magnato »

Yes I had had a look at development of chessgames software for the last 15 years or so, and changes have been just incredible!
If the OTTD was nearly as perfect as some of these software it would have finished the whole OTTD within a year, giving us humans no chance to compete whatsoever! I am glad its not that perfect!

BUT, a little more perfect than it is now, would make us all more happy. May be we should invite a chess programmer to look into the problem?

If the AI just went on thinking AFTER the connection was made a lot of the flaws could been canceled out. The AI could just buy trains and set them to do business, but he should at the same time look after his new connections to see if any improvements could be done. May be the above formula could help us on the way?
Magnato, Oslo
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

I read that Chris wanted to make a non-cheating AI player, so it could only build one tile at a time. Since it should also take into account that human players would cut it off, it would have to look ahead each time a new tile was build. It also had to run on the hardware we used more than 10 years ago. He also wanted it to make mistakes once in a while since humans do that too

TrueLight started work on a new AI and added the road part of it to the source. He started working on the train part, but before he got any useful results, he decided to rewrite the network part instead. He managed to remove most desyncs so we actually got a game, which is stable enough to play over the internet. That's another way of getting an oppenent, which aren't braindead

One of the problems with a new AI is that it needs constant updating. It will not use the features that was added after it was updated the last time, like multiple road vehicle stops or replace vehicles
User avatar
magnato
Traffic Manager
Traffic Manager
Posts: 241
Joined: 08 Sep 2004 20:35
Location: Oslo
Contact:

Post by magnato »

:D the network part is one of the coolest things since i started playing OTTD again, so i am happy he made that choice!

then, I dont think its all that important to have the AI fully up to date to use all kinds of new features/viechles. If it just works in a conservative but logical way, it will mean a lot.

Two things I think is of most importance:
* do you think it would be possible to make the AI improve its own tracks? So as to rule out the famous S track curves?
* do you think it would be possible to have the AI use more of its piled up money in the mid-game? If the AI were able to utilize their money reserve better, a more aggressive attitude could be reflected.
Magnato, Oslo
User avatar
magnato
Traffic Manager
Traffic Manager
Posts: 241
Joined: 08 Sep 2004 20:35
Location: Oslo
Contact:

Post by magnato »

... and also one more thing. Can you give the AI a penalty (negative value) for making those extremly sharp curves and also going up and downhill?

I think if there were some value on the track as i mentioned above, a lot of improvements could have been made on the tracklayout after finishing the connection from A to B.
Magnato, Oslo
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

magnato wrote:... and also one more thing. Can you give the AI a penalty (negative value) for making those extremly sharp curves and also going up and downhill?

I think if there were some value on the track as i mentioned above, a lot of improvements could have been made on the tracklayout after finishing the connection from A to B.
it's possible. The new AI already do that with roads. It even look at what roads are already in place and tries to figure out if it can use some of it
User avatar
magnato
Traffic Manager
Traffic Manager
Posts: 241
Joined: 08 Sep 2004 20:35
Location: Oslo
Contact:

Post by magnato »

this is very good news!

Would be very fun to see these changes also in the AI train system!

Just normal A to B connections :D
Magnato, Oslo
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

magnato wrote:this is very good news!

Would be very fun to see these changes also in the AI train system!

Just normal A to B connections :D
hehe.... who will code it? AI stuff is pretty hard to do. I think we have to wait a while to see this :(
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Amazon [Bot] and 23 guests