Noob

Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.

Moderator: OpenTTD Developers

Hannibal
Engineer
Engineer
Posts: 4
Joined: 19 Jan 2009 14:58

Noob

Post by Hannibal »

Hello, I'm new here.
My Question is:

I would realy like to have an AI in game.
What's is the best at this time?
Where do I find it?
How do I put it in my game?
I looked in the forum but it is still al abracadabra to me ?(

Thanx!
User avatar
CommanderZ
Tycoon
Tycoon
Posts: 1872
Joined: 07 Apr 2008 18:29
Location: Czech Republic
Contact:

Re: Noob

Post by CommanderZ »

If you mean "best to play against", then I would say latest AdmiralAI (I haven't try all the AIs made, it is just my opinion).

If you mean pure economical power, then I guess is still best that Dutch "around the church" monster :D Warning: its practices are very unrealistic...selling vehicles after every trip, sabotaging opponents...
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Noob

Post by Yexo »

Hannibal wrote:Where do I find it?
How do I put it in my game?
Download the latest nightly and go to "Check online content". Download one or more Ais and start a new game.
Hannibal
Engineer
Engineer
Posts: 4
Joined: 19 Jan 2009 14:58

Re: Noob

Post by Hannibal »

ok, i follow
but what is a nightly? is it some kind of version? :D
i feel realy dumb.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Noob

Post by Yexo »

Hannibal
Engineer
Engineer
Posts: 4
Joined: 19 Jan 2009 14:58

Re: Noob

Post by Hannibal »

ok thanx done that.
and where can i find the "online content" part? and where do i put the AI?
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Noob

Post by Yexo »

Hannibal wrote:ok thanx done that.
Are you sure? If so, start the game and look at the bottom-left button in the main menu.
Hannibal
Engineer
Engineer
Posts: 4
Joined: 19 Jan 2009 14:58

Re: Noob

Post by Hannibal »

oeps
yeah i see it:) didn't start it yet :D
one more time, thanx:)
NetNazgul
Engineer
Engineer
Posts: 2
Joined: 15 Feb 2009 19:32

Re: Noob

Post by NetNazgul »

Yexo wrote:Download the latest nightly and go to "Check online content". Download one or more Ais and start a new game.
My openTTD fails to decompress downloaded files. I've tried to do it manually and finally succeeded with OtviAi, but other AIs that require additional libraries fail to work properly. I just don't know where to put those libraries, can anyone help?
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Noob

Post by Yexo »

You've found the directory your AIs go in, right?
Call that directory "ai/", then put the libraries in "ai/library/"
NetNazgul
Engineer
Engineer
Posts: 2
Joined: 15 Feb 2009 19:32

Re: Noob

Post by NetNazgul »

The solution was finally found as it required to put libraries in special subfolders (Graph, Pathfinder, Queue). :)
markzl
Engineer
Engineer
Posts: 30
Joined: 20 Jan 2009 01:58

Re: Noob

Post by markzl »

hi
i dont have internet @ home, but have 7 ai's that openttd can see. None of them builds stuff but 1, which builds a hq only. Do i need grf files? tried setting randomAI and manually entering each individual ai. i play 2048x2048 maps & tried 14 players. i have a few grf's but not for trains/carriages these are:

18/09/2007 01:55 PM 104,678 BKTund.grf
14/09/2005 09:11 PM 31,298 newcargo.grf
27/07/2003 10:54 AM 493,998 newships.grf
27/12/2005 07:01 PM 1,493,408 newstats.grf
19/09/2005 08:24 PM 649 paper.grf
23/10/2006 11:51 PM 508,561 PlaneSet.grf
09/08/2005 08:34 PM 1,221,297 T2M.grf
08/04/2007 09:29 PM 3,332,552 ttrs3.GRF
07/01/2009 01:11 AM 2,748 WatrEdge.grf

i havnt tried playing without grf's, will try when i get home.

P.S. i just wanted to thank those of you helped me with getting openttd to run on my old p166, it worked (the compiling) & the nightlies also worked for me (but i now have a p4 2.8 just to get to the 2048x2048 maps!!!)

thanks.
User avatar
fanioz
Transport Coordinator
Transport Coordinator
Posts: 320
Joined: 19 Dec 2008 05:03
Location: Indonesia
Contact:

Re: Noob

Post by fanioz »

Hi .. :D
Wich version of OTTD you're running ?
Maybe some screenshot of AI debug panel would give more explaination ..
AI Debug panel
AI Debug panel
aidbg.png (11.04 KiB) Viewed 5386 times
Correct me If I am wrong - PM me if my English was bad :D

**[OpenTTD AI]** Image
***[NewGRF] *** Image
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Noob

Post by Roujin »

Generally, make sure that you've got the newest nightly and the newest versions of the AIs. Since there's still changes in the AI API, AIs often only work with a specific range of revisions of OpenTTD (and may or may not work with 0.7.0 beta1).

And like fanioz posted, open the AI Debug window and check if there's a lot of red lines. If so it would be good if you could somehow manage (even with no internet @home) to show us a screenshot of that.
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
markzl
Engineer
Engineer
Posts: 30
Joined: 20 Jan 2009 01:58

Re: Noob

Post by markzl »

i put the tar files into C:\Documents and Settings\user\My Documents\OpenTTD\ai

admiralai-v19.tar
CluelessPlus-v3.tar
Convoy-v10.tar
felicitus-ai-0.2.1.tar
OtviAI.tar
pathzilla.tar
PAXLink-v4.tar

could not be seen by openttd (even though i got the other 2 otvi files from the same thread as the 1st)
medievalai.tar
OtviCargo.tar
OtviSubAI.tar

could not find "WrightAI (v2)"

would it help if i decompressed? do they normally need to be? where to decompress?


can't add more pics, but the general prob of them all is "can not find library..."

thanks again.
markzl
Engineer
Engineer
Posts: 30
Joined: 20 Jan 2009 01:58

Re: Noob

Post by markzl »

and some more... since the otvi seems like a different error
Morloth
Transport Coordinator
Transport Coordinator
Posts: 378
Joined: 07 Feb 2008 14:06
Location: Glasgow

Re: Noob

Post by Morloth »

You may want to get the latest version of all AIs. Also, currently only a handful of AIs are updated to reflect the latest changes in the API, the rest will fail. Use:

AdmiralAI v20
Convoy v11
NoCAB v1.10
PAXLink v7
WrightAI v3

All other AIs will fail. The easiest way to obtain these is to download the latest OpenTTD (nightly or 0.7 beta) and click in 'check online content'. Check the AIs you want to check out and let the system do the rest for you :). Otherwise you will need to download the AI Library yourself, more info: http://wiki.openttd.org/wiki/index.php/AI:Library.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Noob

Post by Yexo »

As Morloth says, only some AIs will currently work, and make sure you have the latest version of those AIs. If you really want to download those manually, you'll have to download the libraries too. They can be found here: http://devs.openttd.org/~yexo/ai_libraries/
Place them in My Documents\OpenTTD\ai\library
rokku
Engineer
Engineer
Posts: 23
Joined: 12 Mar 2006 05:38
Location: London, UK
Contact:

Re: Noob

Post by rokku »

Hi,

I am using the new 0.7 beta and have checked online content and updated all the AI's.

I played with 14 players and used all the different AI's, but only the one that builds plans works.

Should I assume that since 0.7 is so new, that is the reason most AI's are not working, as they will need to be updated to work in the newer code (or whatever you might call it lol)?

Or am I doing something wrong?

R :)
Check out the NEW GALLIFREY multiplayer server if you like DOCTOR WHO.

PRISONER: CELL BLOCK H Back in your cell Smith!!
"If I had a bulldog with a face as ugly as hers I'd shave its backside and teach it to walk backwards!"

DOCTOR WHO FORUM Best Doctor Who forum on the net!!
DISCWORLD Great books!! PREMIUM BONDS Not the lottery!!
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Noob

Post by Yexo »

rokku wrote:Hi,
Hello rokku,

You were told in the other thread to look here for answers, not to repeat your problem again. Anyway, can you please read http://www.tt-forums.net/viewtopic.php?f=65&t=42159 and follow the directions there? Then we might be able to help you.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 9 guests