AdmiralAI v25
Moderator: OpenTTD Developers
Re: AdmiralAI v25
If you with *.nut files in installation directory refer to the compat*.nut-files, DO NOT move them to Documents\OpenTTD. They are made for exactly your current version of OpenTTD. When you upgrade/downgrade to a different version, you should use the compat*.nut files for that installation which are included with the installer/zip. Copying/moving them to Documents\OpenTTD will cause problems with wrong compat*.nut files being used.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: AdmiralAI v25
They started to fail one by one after 18 years 

- Attachments
-
- PET Transport, 30th Aug 1968.png
- (500.44 KiB) Downloaded 2 times
Re: AdmiralAI v25
Playing with 5 different AI's . Admiral AI , NoCAB, AIAI, Simple AI, Trans. Admiral crashed in 1970 he was doing well, and i guess updating to electrified rail crashed it.
- Attachments
-
- AdmiralAI(v25)-1970.png (39.11 KiB) Viewed 31779 times
Re: AdmiralAI v25
Here's a bug report, I have no idea what might have caused it but I was running 2 AdmiralAi, the year is 1986ish.
Happy Holidays!
Happy Holidays!
- Attachments
-
- Namnlös.png (21 KiB) Viewed 31162 times
Re: AdmiralAI v25
It is an evil setting but "property maintemance" option exists. After enabling it it is really hard to profit from air transport. AdmiralAI is trying anyway and failing.
In AIAI I solved it by refusing to use airports if this setting is enabled.
In AIAI I solved it by refusing to use airports if this setting is enabled.
- Attachments
-
- autosave11.sav
- (470.71 KiB) Downloaded 531 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: AdmiralAI v25

Maybe a similar problem to what the others had?
Sweet mother, I cannot weave –
slender Aphrodite has overcome me
with longing for a girl.
slender Aphrodite has overcome me
with longing for a girl.
Re: AdmiralAI v25
Too long to save crash
- Attachments
-
- Unnamed, 1965-02-10.sav
- (15.53 MiB) Downloaded 558 times
-
- Unnamed, 1965-02-10.png
- (109.71 KiB) Not downloaded yet
Formerly known as Samu
Re: AdmiralAI v25
Perhaps a hardcoded limit to number of routes it builds would avoid long save times.
SimpleAI v13 has it set @1000.
Or one could just raise the #opocdes before AI is suspended setting under Settings->Competitors->Computer players?
SimpleAI v13 has it set @1000.
Or one could just raise the #opocdes before AI is suspended setting under Settings->Competitors->Computer players?
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Re: AdmiralAI v25
AdmiralAI crashes in a game with multiple AI. Seemingly a different error than the other crashes reported here, as it says that the index 96 doesn't exist.
- Attachments
-
- Unnamed, 1971-11-02.png
- (732.41 KiB) Not downloaded yet
-
- AdmiralAI crashed, 1971-11-02.sav
- (1.09 MiB) Downloaded 477 times
-
- Engineer
- Posts: 1
- Joined: 06 Apr 2021 23:45
Re: AdmiralAI v25
Looking good so far. Bug discovered. Might be because my hard drive is running out space and my computer has been glitchy.
Link to screen grab: https://drive.google.com/file/d/1xq9eTQ ... vtYTZ/view
Link to screen grab: https://drive.google.com/file/d/1xq9eTQ ... vtYTZ/view
-
- Engineer
- Posts: 1
- Joined: 20 Jun 2021 20:03
Re: AdmiralAI v25
Bug Report
Error happens later game, around 1970 for me when electric trains are introduced. Thank you for the great AI Mod!

Error happens later game, around 1970 for me when electric trains are introduced. Thank you for the great AI Mod!

Re: AdmiralAI v25
Where is Yexo anyway?
Such a good AI as AdmiralAI is it should not be held back by all these issues.
Such a good AI as AdmiralAI is it should not be held back by all these issues.

NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
- Redirect Left
- Tycoon
- Posts: 7417
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: AdmiralAI v25
Based upon the latest nightly date on the first post link being 2011. They probably moved on to other things that do not include OpenTTD AIs. I suggest you either try to resolve the AI issues yourself, or try other AIs, although plenty of other AIs also are by people either inactive or rarely active.
Re: AdmiralAI v25
AdmiralAI crashes! The reason for this crash is the way it handles town indexes. It creates at the beginning, in _town_manager a table mapping TownID to TownManager. It doesn't account for new towns being created.
The newly created town is missing in the table, that's why it crashed.
Code: Select all
local town_list = AITownList();
foreach (town, dummy in town_list) {
local man = ::main_instance._town_managers[town];
- Attachments
-
- Unnamed, 1974-03-12.png
- (249.84 KiB) Not downloaded yet
Formerly known as Samu
AdmiralAI bug
Hi everyone!
I'm new, downloaded your game yesterday, few AIs, sound, music, haven't played much yesterday, but I did play about an hour today and it bugged, says it crashed and that I should report with the screenshot to you, so here it is:
I'm new, downloaded your game yesterday, few AIs, sound, music, haven't played much yesterday, but I did play about an hour today and it bugged, says it crashed and that I should report with the screenshot to you, so here it is:
- Redirect Left
- Tycoon
- Posts: 7417
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: AdmiralAI bug
Unfortunately the original developer of this AI seems to have moved on, as they've not posted since 2020.rblb wrote: 09 Dec 2023 16:24 I'm new, downloaded your game yesterday, few AIs, sound, music, haven't played much yesterday, but I did play about an hour today and it bugged, says it crashed and that I should report with the screenshot to you, so here it is:
AdmiralAI has a few known crash situations, if you'd like a competitive AI, try AAAHogEx which builds very large networks of trains, and when testing was stable. There's a thread on AI
here that tries to make it easy to understand the slight abandoned and dodgy AI hellscape OpenTTD lives in, so we can work together to find good AI.
Re: AdmiralAI v25
I have created a patch which fixes this particular problem. Here it is, along with the packaged AI.xarick wrote: 03 Mar 2023 23:00 AdmiralAI crashes! The reason for this crash is the way it handles town indexes. It creates at the beginning, in _town_manager a table mapping TownID to TownManager. It doesn't account for new towns being created.
The patch should be applied to AdmiralAI version 26, which can be found here.
- Attachments
-
- AdmiralAI-27.patch
- (12.81 KiB) Downloaded 309 times
-
- AdmiralAI-27.tar
- (386.5 KiB) Downloaded 367 times
My add-ons: • AdmiralAI fix • Persistence for vehicle evolution lines
My pictures: • The animation thread
My pictures: • The animation thread
Re: AdmiralAI v25
That's fantastic odisseus, but how can we, the gamers, update the AI through the game? Is there a functionality to redownload or update? I don't see any of those. I must stress out here that your game is simply not gamer-friendly, that's a fact.
- Redirect Left
- Tycoon
- Posts: 7417
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: AdmiralAI v25
You need to add it to the code of the AI, alternatively download the packaged AI to start with. You cannot redownload this through BaNaNaS (the ingame content distributor) because it was not uploaded there by the original author in the first place. You can then find out how to activate it in-game in any number of places on the internet, from this forum, to reddit and the openttd forum, perhaps most of your issue is you expect everything done for you, instead of looking it up.
Adding negativity to all your posts is really not required, once was sufficient.rblb wrote: 13 Dec 2023 13:13 I must stress out here that your game is simply not gamer-friendly, that's a fact.
- Redirect Left
- Tycoon
- Posts: 7417
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Re: AdmiralAI v25
Thanks for this little patch, its quite useful.
For my notes for AI testing, and to info others. Is this a drop in replacement? IE: Can someone start a game, go "oh no,this has become problematic!", exit, replace the AdmiralAI file with your updated and it'll work, or is it imperative you start with that?
I am also deciding if this is worth adding "AdmiralAI Fix" as a separate entity & tracking in the list of AI, but if its just patching that code it is probably still fair to name it just stick with one, and hope people find it before choosing the one without the fix. It is genuinely a nice AI when its running smoothly.
Who is online
Users browsing this forum: No registered users and 8 guests