Hey everybody! I've been a lurker for a while but I'm trying to create my own AI.
I followed all the basic instructions with the info.nut and main.nut files, but my AI doesn't show up as an option when it's in either the Program Files or the documents sub folders (under the AI folder). What do I have to do to fix this? Thank you in advance!
(Note: I've compared my files to other AI ones and the intro stuff and I've done the code correctly, so I'm just confused if I need to compress it or something)
Creating New AI
Moderator: OpenTTD Developers
Re: Creating New AI
First check whether the files are detected, by running the openttd program with a -dmisc=9 option (open a command window and type "openttd -dmisc=9" without quotes).
The program dumps files that it finds, which should include your AI files.
For ease of debugging, you may want to move your regular content out of the way temporarily, to avoid too much output.
I am not sure what happens if your files have errors, likely they get reported somewhere, perhaps at the comand window too?
The program dumps files that it finds, which should include your AI files.
For ease of debugging, you may want to move your regular content out of the way temporarily, to avoid too much output.
I am not sure what happens if your files have errors, likely they get reported somewhere, perhaps at the comand window too?
Being a retired OpenTTD developer does not mean I know what I am doing.
Re: Creating New AI
Please post a copy of your info.nut, maybe the problem is there. Also check that your AI is in his own folder in the AIs folder.
Re: Creating New AI
Good Morning,
I recently did the same as the thread-creator and now I have exactly the same problems.
I'm running on Win10, the openttd directory is outside of the user structure created by Windows.
My "OpenTTD" directory is within this user-thing, under documents.
But my AI does not show up when I put it inside the directory <somepath>/openttd-1-10-3/ai/<AI-namespace> or C:Users/<my_username>/Documents/OpenTTD/ai/<AI-namespace>.
I already tried the command line suggested but it didn't work anyway.
Following now the files, as HGus said it could help, because there may be Errors inside.
When increasing the number of AIs, I get a red Error Window saying there are no AIs available, but i could download some via the online content system.
Has anyone experienced this before and would help in some way?
Thank you for your attention.
I recently did the same as the thread-creator and now I have exactly the same problems.
I'm running on Win10, the openttd directory is outside of the user structure created by Windows.
My "OpenTTD" directory is within this user-thing, under documents.
But my AI does not show up when I put it inside the directory <somepath>/openttd-1-10-3/ai/<AI-namespace> or C:Users/<my_username>/Documents/OpenTTD/ai/<AI-namespace>.
I already tried the command line suggested but it didn't work anyway.
Following now the files, as HGus said it could help, because there may be Errors inside.
When increasing the number of AIs, I get a red Error Window saying there are no AIs available, but i could download some via the online content system.
Has anyone experienced this before and would help in some way?
Thank you for your attention.
- Attachments
-
- info.nut
- The AIs Info.nut, very basic, didn't come to far, because it didn't show up.
- (585 Bytes) Downloaded 85 times
-
- main.nut
- The AIs Main.nut, very basic, didn't come to far, because it didn't show up.
- (1.13 KiB) Downloaded 80 times
Please excuse me for any spelling mistakes.
Have a nice Day.
Have a nice Day.
Re: Creating New AI
Yes, thank you.
Must have missed it in the wiki...
Must have missed it in the wiki...
Please excuse me for any spelling mistakes.
Have a nice Day.
Have a nice Day.
Who is online
Users browsing this forum: No registered users and 38 guests