Trans AI .:19.07.23 :.

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

xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: Trans AI .:18.06.22 :.

Post by xarick »

The index 'Info' does not exist
Attachments
Sem nome, 29 Mai 1969.png
(26.64 KiB) Not downloaded yet
Sem nome, 10 Nov 1969.sav
(150.74 KiB) Downloaded 181 times
Formerly known as Samu
User avatar
fanioz
Transport Coordinator
Transport Coordinator
Posts: 320
Joined: 19 Dec 2008 05:03
Location: Indonesia
Contact:

Re: Trans AI .:19.04.02 :.

Post by fanioz »

xarick wrote:The index 'Info' does not exist
Thanks for the bug report. :D

=================================================================================
Version 19.04.02 released on Bananas and also on first post.
Just fixes of the following bugs

Fixes: Not build rail depot if cant build the entry
Fixes: Prevent excessive CPU usage in valuator function - thanks to xarick
Fixes: index 'info' not found inside valuator - thanks to xarick
Correct me If I am wrong - PM me if my English was bad :D

**[OpenTTD AI]** Image
***[NewGRF] *** Image
xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: Trans AI .:19.04.02 :.

Post by xarick »

Return value of valuator is not valid (not integer/bool)
Attachments
Unnamed, 2137-05-23.png
Unnamed, 2137-05-23.png (97.49 KiB) Viewed 1124 times
Unnamed, 2138-03-28.sav
(1007.84 KiB) Downloaded 149 times
Formerly known as Samu
User avatar
fanioz
Transport Coordinator
Transport Coordinator
Posts: 320
Joined: 19 Dec 2008 05:03
Location: Indonesia
Contact:

Re: Trans AI .:19.05.06 :.

Post by fanioz »

xarick wrote:Return value of valuator is not valid (not integer/bool)
Thanks for the bug report. :D
=================================================================================
Version 19.05.06 released on Bananas and also on first post. :D

* 190506
Fixes: Return value of valuator is not valid (not integer/bool)
Feature: Add ability to use Town Actions and option to disable it
Change: Uses modified Fibonacci Heap from library for pathfinding.
Change: TransHeap class now become ListSorter.
Correct me If I am wrong - PM me if my English was bad :D

**[OpenTTD AI]** Image
***[NewGRF] *** Image
MatthijsH
Engineer
Engineer
Posts: 1
Joined: 01 Jun 2019 10:30

Re: Trans AI .:19.05.06 :.

Post by MatthijsH »

Assertion failed (savegame not added due to filesize)
Attachments
Klein Spijksrade Transport, Feb 15th, 2205.png
(367.71 KiB) Not downloaded yet
User avatar
fanioz
Transport Coordinator
Transport Coordinator
Posts: 320
Joined: 19 Dec 2008 05:03
Location: Indonesia
Contact:

Re: Trans AI .:19.05.06 :.

Post by fanioz »

MatthijsH wrote: 01 Jun 2019 10:34 Assertion failed (savegame not added due to filesize)
Thanks for the bug report. :D
=================================================================================

Version 19.06.25 released on Bananas and also on first post. :D

* 190625
Change: Limit iteration for path finding
Change: Add vehicle more often
Fixes: Sell vehicle without bright future
Fix: Don't wait too long if road has vehicle in the way
Fix: Assertion failed due to invalid Industry (thanks to MatthijsH)
Correct me If I am wrong - PM me if my English was bad :D

**[OpenTTD AI]** Image
***[NewGRF] *** Image
User avatar
ssmit132
Engineer
Engineer
Posts: 57
Joined: 09 Jul 2005 07:31
Location: Queensland, Austraila.

Re: Trans AI .:19.06.25 :.

Post by ssmit132 »

Hi,

Seeing that you just updated this AI, I thought I would give it a test in a game along with some other AIs :) . I've encountered two issues, though:

1) The first Trans AI tried to build a plane network, but it didn't take into account the range in PikkaBird's Av8 NewGRF and none of the planes could actually carry out their orders. Naturally they quickly became bankrupt. The next Trans AI company that took their place started to do the same thing.

Image

2) When I tried to reload the game later, Trans AI crashed immediately with an error about not being able to find "StationToClose".

Image

I'll attach the save game, but there are some NewGRF separators that aren't on Bananas in the NewGRF list so I'm not sure if you'll be able to open it.
Attachments
Typhlomence Transport, 1951-06-06.sav
Save game
(1.41 MiB) Downloaded 152 times
User avatar
fanioz
Transport Coordinator
Transport Coordinator
Posts: 320
Joined: 19 Dec 2008 05:03
Location: Indonesia
Contact:

Re: Trans AI .:19.06.25 :.

Post by fanioz »

ssmit132 wrote: 27 Jun 2019 09:50 Hi,

Seeing that you just updated this AI, I thought I would give it a test in a game along with some other AIs :) . I've encountered two issues, though:

1) The first Trans AI tried to build a plane network, but it didn't take into account the range in PikkaBird's Av8 NewGRF and none of the planes could actually carry out their orders. Naturally they quickly became bankrupt. The next Trans AI company that took their place started to do the same thing.
[+] Spoiler
Image
2) When I tried to reload the game later, Trans AI crashed immediately with an error about not being able to find "StationToClose".
[+] Spoiler
Image
I'll attach the save game, but there are some NewGRF separators that aren't on Bananas in the NewGRF list so I'm not sure if you'll be able to open it.
Thanks for test Trans AI :D ,

for the first issue, yes thanks for raise up this. It was fixed and will be available on Bananas after several days testing.

for the second, there was something weird. In debug window AI version was v200101, while the folder where Trans AI start is at 180411.
discrepancyversion.png
discrepancyversion.png (30.26 KiB) Viewed 4807 times
So please delete "Trans-AI_*.tar" file in "..\content_download\ai" folder, and download the latest available on Bananas (v190625). Let me know if this not solve your issue.
Thanks
:D
Correct me If I am wrong - PM me if my English was bad :D

**[OpenTTD AI]** Image
***[NewGRF] *** Image
User avatar
ssmit132
Engineer
Engineer
Posts: 57
Joined: 09 Jul 2005 07:31
Location: Queensland, Austraila.

Re: Trans AI .:19.06.25 :.

Post by ssmit132 »

Doing what you suggested appears to fix the issue I was having on load. Thank you for the advice; I look forward to playing against this AI in the future and seeing how it performs :)
Attachments
Typhlomence Transport, 1951-06-08 (2).png
(899.99 KiB) Not downloaded yet
User avatar
fanioz
Transport Coordinator
Transport Coordinator
Posts: 320
Joined: 19 Dec 2008 05:03
Location: Indonesia
Contact:

Re: Trans AI .:19.07.23 :.

Post by fanioz »

ssmit132 wrote: 14 Jul 2019 10:16 Doing what you suggested appears to fix the issue I was having on load. Thank you for the advice; I look forward to playing against this AI in the future and seeing how it performs :)
I'm glad that solve the issue. :mrgreen:
=============================================================

And now bugfix release version 19.07.23 available both on Bananas and also on first post. :D

* 190723
* Fixes: Aircraft did not respect NewGRF maximum distance
Correct me If I am wrong - PM me if my English was bad :D

**[OpenTTD AI]** Image
***[NewGRF] *** Image
RockyPapery
Engineer
Engineer
Posts: 16
Joined: 08 Apr 2020 13:23

Re: Trans AI .:19.07.23 :.

Post by RockyPapery »

Hi, I got an error in the middle of the game.
Attachments
Aurora Logistic, Mar 18th, 1947.png
(531.75 KiB) Not downloaded yet
xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: Trans AI .:19.07.23 :.

Post by xarick »

Since the last version, with vanilla aircraft, Trans builds airports but no aircraft at all.

EDIT: Replacing line 118 of manager/airconnector.nut with this, solves the issue:

Code: Select all

if (maxEngineDistance != 0 && orderDistance > maxEngineDistance) continue;
AIEngine.GetMaximumOrderDistance returns 0 for unlimited distance, which is the case for vanilla aircraft.
Formerly known as Samu
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 11 guests