Deleting AI's?

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

Post Reply
noname1208
Engineer
Engineer
Posts: 5
Joined: 13 Oct 2014 23:38

Deleting AI's?

Post by noname1208 »

I'm terribly sorry if this had been posted before, but I cannot for the life of me find out how to delete this one AI that places signs down all over the place.. Now if there is a way to permanently tell it to never place signs then I'm all good with that, but if not then how do I delete it?
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Deleting AI's?

Post by Leanden »

Press the ` button on your keyboard, and then use the command Stop_ai x where x is the number of the AI player.

WARNING: THIS WILL DELETE ALL INFRASTRUCTURE EXCEPT BUOYS AND ROADS!
Image
noname1208
Engineer
Engineer
Posts: 5
Joined: 13 Oct 2014 23:38

Re: Deleting AI's?

Post by noname1208 »

Ooh, thank you for that! I'll test it out as soon as I can get on.

And so it seems there is no way to actually delete an AI?
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Deleting AI's?

Post by Leanden »

The function ive mentioned here is the delete AI function.
Image
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: Deleting AI's?

Post by Lord Aro »

If you mean "delete AI from your OpenTTD install, there's currently no easy way of doing so"
you'll need to find your OpenTTD downloads folder (likely <User>/Documents/OpenTTD/content_downloads/ai ) and deleting the offending AI
(Of course, making sure not to redownload the AI again later)
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
User avatar
Leanden
Tycoon
Tycoon
Posts: 2613
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Deleting AI's?

Post by Leanden »

On reflection i realise this must be what he meant ;)
Image
noname1208
Engineer
Engineer
Posts: 5
Joined: 13 Oct 2014 23:38

Re: Deleting AI's?

Post by noname1208 »

Aha! Thank you both Lord Aro and Leanden. Indeed Aro that is what I meant, but also thank you Leanden, that command helped much with my current save file.
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: Deleting AI's?

Post by Zuu »

In the long run, it can help to report the problem to the forum thread of that AI. On bananas you find links to the forum thread of most AIs. Also take a look at the AI settings so that you did not accidentally enabled debug signs of that AI.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
noname1208
Engineer
Engineer
Posts: 5
Joined: 13 Oct 2014 23:38

Re: Deleting AI's?

Post by noname1208 »

Well, it is enabled by default. I can turn it off in the settings yes, but on random AI it will revert back to yes on debug signs. I suppose I could try to edit the AI file directly but I do not know how to edit the NUT files themselves. I'll look for the forum of that AI though and see if this is reported.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: Bing [Bot] and 43 guests