"debug_level ai=4" not working

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
Harikawashi
Engineer
Engineer
Posts: 2
Joined: 01 Mar 2013 12:51

"debug_level ai=4" not working

Post by Harikawashi »

Hi. I'm just starting to try out AI dev for openTTD, and I'm following the instructions from the wiki here: http://wiki.openttd.org/AI:Introduction

From the wiki:
Enable output of print and AILog.* statements from your AI by typing
debug_level ai=4
However, when I type "debug_level ai=4", I get the error popup:

"Unknown debug level 'ai=4'"

What am I missing?
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: "debug_level ai=4" not working

Post by planetmaker »

the debug type was changed from ai to script with the advent of game scripts.

Thus
script=4
should do the trick. You might want to update the wiki :-)

also ./openttd -h does list the available debug facilities
Harikawashi
Engineer
Engineer
Posts: 2
Joined: 01 Mar 2013 12:51

Re: "debug_level ai=4" not working

Post by Harikawashi »

Thanks! I've updated the wiki accordingly.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 18 guests