Page 6 of 6

Re: DictatorAI

Posted: 29 May 2019 19:53
by xarick
I don't know what the error was. Can't scroll further up.

Re: DictatorAI

Posted: 28 Jun 2021 18:38
by Tim_F
Hi,

I have an error after saving my game and opening the next day is this something that can be fixed? This seems like an old forum page so not sure if this is still being worked on or not.

Update,

I see others have reported this years ago I will leave on here incase it is ever resolved but appreciate times have moved on now.

Re: DictatorAI

Posted: 14 Apr 2022 13:34
by BurinisTT
Today, while playing OpenTTd JGR 0.47.1, I got this error:
Image
Can you tell me what's the matter?

Bug report

Posted: 08 Oct 2022 13:41
by Krohon
Hi!, just catch a bug.

Image

Re: DictatorAI

Posted: 21 Nov 2022 11:34
by krinn
That error is because the AI use a function to read all tiles of the map when loading and find what we own
however it's an error from OpenTTD, that now disallow this

I have stop working on AI due to life, DictatorAI should no more be use with newest OpenTTD version.
Sorry

Re: DictatorAI

Posted: 21 Nov 2022 11:37
by ChillCore
krinn wrote: 21 Nov 2022 11:34 That error is because the AI use a function to read all tiles of the map when loading and find what we own
however it's an error from OpenTTD, that now disallow this

I have stop working on AI due to life, DictatorAI should no more be use with newest OpenTTD version.
Sorry
You can set a max version for your NewGRF/AI if you really have no plans for updates for now

Re: DictatorAI

Posted: 21 Nov 2022 12:05
by krinn
version is set, however OpenTTD use a compatibility layer to help move out old API AI to new API revision, maybe now there's a new max API version that could be set, no idea

but anyway, the problematic function itself doesn't use a new API function (i didn't look at newer API) and should be also present in new API, but the implementation was changed, from free cpu time, to a limited amount of cpu time
before this, on huge map, function was working (hence my message about frozen on huge map warning), and openttd was taking time needed to execute it, the new implementation throw the error when it takes too much time.

It could be fixed, maybe by reading partial area of the map, or just disable it (without it, the AI will be blinded to road/rails it own when loading a game)
But that would need changes, and a time i don't have.

Re: DictatorAI

Posted: 21 Nov 2022 12:21
by ChillCore
I was not saying you should or should not fix it ... it may be simple or it may be not ...
I was just saying that the max version helps you avoid questions regarding of it being broken ... newer versions will simply not show it nor allow it for dowload

Older versions of OpenttD will still see it but it should work in them eh?


all the best in whatever life brings you ;)

Re: DictatorAI

Posted: 18 Dec 2022 22:30
by maninred
Hi!
Catch a bug after loading saved game:
b1.PNG
b1.PNG (17.99 KiB) Viewed 2512 times

Re: DictatorAI

Posted: 19 Dec 2022 08:45
by jfs
How big is the map?

Re: DictatorAI

Posted: 25 Dec 2022 17:53
by maninred
2048x512

Re: DictatorAI

Posted: 24 Mar 2024 12:52
by Wilmo
image_2024-03-24_125158044.png
image_2024-03-24_125158044.png (13.76 KiB) Viewed 1518 times

Re: DictatorAI

Posted: 24 Mar 2024 13:14
by kamnet
Wilmo wrote: 24 Mar 2024 12:52 image_2024-03-24_125158044.png
See previous post from author two years ago:
krinn wrote: 21 Nov 2022 11:34 I have stop working on AI due to life, DictatorAI should no more be use with newest OpenTTD version.