Page 7 of 10

Re: [AI] AAAHogEx

Posted: 24 Apr 2023 14:05
by AAAHogEx
xarick wrote: 23 Apr 2023 13:36 You nearly got 5000 vehicles of all types, amazing!
But then, Excessive cpu usage.
Thank you for your report. This is a great test! :o

Re: [AI] AAAHogEx

Posted: 25 Apr 2023 07:15
by Redirect Left
xarick wrote: 23 Apr 2023 13:36 You nearly got 5000 vehicles of all types, amazing!
That is really impressive for an OTTD AI! I never really was able to let AI's stretch their legs all that much in my mass testing for suitability. I couldn't risk them all going nuts and slowing down the computers I used for testing, so they had 2k max trains, 1k max RV's (these really killed the CPU cycles more than anything from the show frame rate window), just 50 planes, and 250 ships.
It's a shame due to the single threaded nature of OpenTTD, I can't offload each AI and relevant maths for its units/pathfinding to a separate core/thread for each one, it'd be fantastic to let all AI stretch their legs on a giant map with the max 5k of each unit possible for everyone. Would probably be the first time my i9-12900 had actually been pumped to 100% usage :lol:

I've also noticed AAAHogEx using more sensible routing lately, so you also managed to do a decent job at getting its sometimes unwieldy routes in order.
I'm tempted to start a game where the only goal is: Get more money than AAAHogEx. Unfortunately that is probably a pipe dream, it seems pretty unbeatable in that way!

Re: [AI] AAAHogEx

Posted: 25 Apr 2023 07:55
by TheDarkGiganotosaur
Wow! Having around 5000 vehicles of each type (around 20000 vehicles in total) is far too much... and no player could've built these too many vehicles, let alone compete with this AI. Must be a new record in the history of OpenTTD for an AI-controlled player to go that far and eventually break the game's limits. Well done! Image

Re: [AI] AAAHogEx

Posted: 26 Apr 2023 07:56
by AAAHogEx
Thank you all for your help!
Redirect Left wrote: 25 Apr 2023 07:15 I'm tempted to start a game where the only goal is: Get more money than AAAHogEx. Unfortunately that is probably a pipe dream, it seems pretty unbeatable in that way!
I tried it out and this AI knocked me out in terms of profitability. If you win, please report back how you won! :bow:

Re: [AI] AAAHogEx

Posted: 29 Apr 2023 20:41
by Daktyl
Just got this error. What happened is that one of the stations got removed between first and second lane of tracks got laid down and after script finished placing last tile of track script crashed
OpenTTDAIError.png
OpenTTDAIError.png (40 KiB) Viewed 5914 times
EDIT: Ok, looks like it was somehow caused by "took control over" when I was spectating this AI. When I'm not doing it it seems to perform stable

Re: [AI] AAAHogEx

Posted: 20 May 2023 17:15
by ahyangyi
The AI seems to refuse to work if I disable all types of transportation except trams. Of course, I tested with NewGRF providing trams (either 2cc tram or Road Hog).

Can AAAHogEx love Road Hogs?

Re: [AI] AAAHogEx

Posted: 24 May 2023 00:51
by Redirect Left
Hello, tis I, the AI tester again!*
Using the newest relase on BaNaNaS, the AI does some... interesting moves.
2023-05-24 01_49_08-OpenTTD 13.1.png
2023-05-24 01_49_08-OpenTTD 13.1.png (194.86 KiB) Viewed 5666 times

*I really should setup an AI macro to do this for me

Re: [AI] AAAHogEx

Posted: 27 May 2023 16:13
by YottaMxt
Hello,

So I don't know if it happens with all NewGRFs, but when I add a car NewGRF which isn't in the list AAAHogEx crashes instantly after beggining its construction. Currently, it does crash with Eyecandy road vehicles, Funny cars and generic cars.

Here is an image of the debug window: Image

Thanks in advanced.

Re: [AI] AAAHogEx

Posted: 30 May 2023 06:42
by Auge
Hello
YottaMxt wrote: 27 May 2023 16:13 So I don't know if it happens with all NewGRFs, but when I add a car NewGRF which isn't in the list AAAHogEx crashes instantly after beggining its construction.
Do you add the Cars-Set before starting a new game or from within the running game?

Tschö, Auge

Re: [AI] AAAHogEx

Posted: 22 Dec 2023 07:16
by uzurpator
The Hog crashes in tropical climate when trying to make a copper ore route ( at least, that is what the log suggests ). Only new grf used was tropic refurbishment. Yes - all those crashed AIs are hogx and the log is the same for each of them.

Also - as an observation - the best way to fight a Hog is to run it against others of her kind. They crowd around the same resource and cannibalize themselves. I provide a screenshot of four of them duking it at each other on one route and it is a theme in this savegame - there are bound to be more opportunities there - it is 4046x4096 map after all.

Lastly - on those 4k vs 4k maps Hog takes a loooooooong while to start building stuff. Years sometimes.

Re: [AI] AAAHogEx

Posted: 24 Dec 2023 12:48
by uzurpator
Another crash. This time i let 15 hogs duke it out on 4k x 4k map. Most got to ~500trains and they keep going.

Re: [AI] AAAHogEx

Posted: 26 Dec 2023 10:28
by uzurpator
I unshackled the best - allowed it to run 20 tile trains and gosh darn it it's going to run 20 tile trains.

Re: [AI] AAAHogEx

Posted: 26 Dec 2023 11:02
by Redirect Left
uzurpator wrote: 26 Dec 2023 10:28 I unshackled the best - allowed it to run 20 tile trains and gosh darn it it's going to run 20 tile trains.
That's something I noticed in my mass testing, AAAHogEx is really adaptive and seems to make use of as many settings as it can.

Re: [AI] AAAHogEx

Posted: 23 Jan 2024 04:14
by AAAHogEx
Daktyl wrote: 29 Apr 2023 20:41 Just got this error. What happened is that one of the stations got removed between first and second lane of tracks got laid down and after script finished placing last tile of track script crashed
OpenTTDAIError.png

EDIT: Ok, looks like it was somehow caused by "took control over" when I was spectating this AI. When I'm not doing it it seems to perform stable
Thank you for your report.
I apologize for the delay in addressing this issue, as I was occupied with a major task until now. However, I have now released a fixed version for this problem.

With the completion of that large task, I am now able to address other issues that may arise.

Re: [AI] AAAHogEx

Posted: 23 Jan 2024 05:21
by AAAHogEx
ahyangyi wrote: 20 May 2023 17:15 The AI seems to refuse to work if I disable all types of transportation except trams. Of course, I tested with NewGRF providing trams (either 2cc tram or Road Hog).
Thanks for your report. There was an issue where disabling Roads would inadvertently also disable Trams, not just in RoadHogs. I am reporting that this has been fixed and released in version 54.
ahyangyi wrote: 20 May 2023 17:15 Can AAAHogEx love Road Hogs?
Give it a try! :]

Re: [AI] AAAHogEx

Posted: 23 Jan 2024 05:24
by AAAHogEx
Redirect Left wrote: 24 May 2023 00:51 Hello, tis I, the AI tester again!*
Using the newest relase on BaNaNaS, the AI does some... interesting moves.
2023-05-24 01_49_08-OpenTTD 13.1.png
*I really should setup an AI macro to do this for me
Thank you for your report. This issue seems to occur frequently when disused branch lines are dismantled. I am thinking about a solution, but it appears to be a challenging problem.

Re: [AI] AAAHogEx

Posted: 23 Jan 2024 05:41
by AAAHogEx
YottaMxt wrote: 27 May 2023 16:13 Hello,

So I don't know if it happens with all NewGRFs, but when I add a car NewGRF which isn't in the list AAAHogEx crashes instantly after beggining its construction. Currently, it does crash with Eyecandy road vehicles, Funny cars and generic cars.
Thank you for your report. It seems that the presence of vehicles with a price of 0 was causing crashes. I have released a fixed version as version 55.

Re: [AI] AAAHogEx

Posted: 23 Jan 2024 06:17
by AAAHogEx
uzurpator wrote: 22 Dec 2023 07:16 The Hog crashes in tropical climate when trying to make a copper ore route ( at least, that is what the log suggests ). Only new grf used was tropic refurbishment. Yes - all those crashed AIs are hogx and the log is the same for each of them.
uzurpator wrote: 24 Dec 2023 12:48 Another crash. This time i let 15 hogs duke it out on 4k x 4k map. Most got to ~500trains and they keep going.
Thank you for your report. I was unable to reproduce the issue exactly, so I am not certain if it has been fixed, but I have made some adjustments to the suspicious areas and released it as version 56. If the crashes continue, it might be a crash dependent on specific settings, so it would be helpful if you could attach the save data.
uzurpator wrote: 22 Dec 2023 07:16 Also - as an observation - the best way to fight a Hog is to run it against others of her kind. They crowd around the same resource and cannibalize themselves. I provide a screenshot of four of them duking it at each other on one route and it is a theme in this savegame - there are bound to be more opportunities there - it is 4046x4096 map after all.

Lastly - on those 4k vs 4k maps Hog takes a loooooooong while to start building stuff. Years sometimes.
I am aware of this issue as well, but due to structural problems, it is difficult to resolve. At this point, I apologize, but I do not recommend using 4k4k maps or launching multiple instances of AAAHogEx simultaneously.

Re: [AI] AAAHogEx

Posted: 23 Jan 2024 12:41
by AAAHogEx
I have improved the performance on 4k4k maps. It has been released as version 57.

Re: [AI] AAAHogEx

Posted: 24 Jan 2024 16:14
by uzurpator
I am using version 58 and the crash on copper ore service crash remains. Base game - no mods whatsoever. Just a game with 5 Hogs.