Page 6 of 7

Re: OtviAI (version 398)

Posted: 29 Feb 2012 08:51
by Maninthebox
Thanks for the report, I'll have a look at it!

Re: OtviAI (version 399)

Posted: 14 Mar 2012 14:29
by Maninthebox
With OpenTTD version 1.2 almost there it was time to make the jump to API 1.1 :)

Changelog:
- update to API 1.1
- stop building like a madman once maximum number of vehicles has been reached
- improved initial industry route selection
- improved maintenance handling
- fixed some depots for industry routes
- fixed cargo going to town (thanks Steffl for the bug hunting!)
- better money check
- and a few small tweaks

Re: OtviAI (version 411)

Posted: 01 May 2012 13:25
by Maninthebox
The version 1,2 release has arrived! The biggest change being that boats are now supported! That code is still a bit beta quality, so if you find a bug: let me know. Other changes: better vehicle selection function (solves the problem with some newgrfs); further improvements on the money flow and changed the way orders are given to new vehicles and some small changes/tweaks/fixes.

As usual, it's available in bananas or in the first post of this thread.

Re: OtviAI (version 411)

Posted: 01 May 2012 18:36
by Brumi
Great! Nice to see a new ship using AI :D

Sometimes your AI builds the docks in unconnected waters, however.
screenshot.png
screenshot.png (118.05 KiB) Viewed 1761 times
EDIT: I think you should update your AIInfo::GetDescription, your AI already transports freight :wink:

Re: OtviAI (version 411)

Posted: 01 May 2012 19:58
by Maninthebox
Hmmmm... it seems some debugging is in order indeed... Either AIMarine::AreWaterTilesConnected isn't doing what I expect or I'm feeding it the wrong things :P I'll look into it :) And I'll update that text too indeed.

Re: OtviAI (version 411)

Posted: 01 May 2012 21:49
by Zuu
Maybe you missed this precondition:
API documentation wrote:'tile_from' and 'tile_to' are directly neighbouring tiles.

Re: OtviAI (version 413)

Posted: 15 May 2012 16:52
by Maninthebox
Bugfix version released. Boat implementation is greatly improved. (the bug was not in that precondition, but in the fact that I should feed it the waterside tile of the possible dock location, not the landside tile).

If you can still break it: let me know :)

Re: OtviAI (version 413)

Posted: 26 May 2012 20:06
by kazocsaba
Hello,

I'm getting errors about the fact that the index 'GetName' does not exist.

Re: OtviAI (version 413)

Posted: 15 Jul 2012 23:09
by hydrogeek
I know the thread is old, but I 've had this crash a few times so far...

https://www.dropbox.com/s/c0z50z59dmpa7 ... -08-20.jpg

Re: OtviAI (version 414)

Posted: 09 Aug 2012 15:25
by Maninthebox
New updated version!

Fix the bug reported by kazocsaba: thanks!

Apart from the bugfix it's a lot of changes in the train code to better handle 2cc, ECS and nutracks and combinations.

------
@Hydrogeek: that link of yours doesn't point to a file I can look at.. if it's the same bug as kazocsaba reported: it's fixed, otherwise: could you give me a working link for what you're trying to show or just add the picture to your post here?

Re: OtviAI (version 414)

Posted: 17 Nov 2012 13:32
by Steffl
Hi,
OTVI version 414 has problems with subtropical climate. It crashes every time short after it started.
I didn't make a screenshot because it happens everytime and you can look at it yourself in game.
Bye :-)

Re: OtviAI (version 414)

Posted: 08 Jan 2013 16:46
by Maninthebox
Bug found, bug squashed. Looking at the code I fail to see how this worked without problems in the other climates though, cause it's a bug that should have popped up in any climate :)

The newer version is in bananas as usual. Thanks for the bug report!

Re: OtviAI (version 415)

Posted: 10 Apr 2013 23:31
by Samu
What is the preferable Path AI for OTVIs ships? I see some ships with only 1 order in schedule.

ERR_ORDER_TOO_FAR_AWAY_FROM_PREVIOUS_DESTINATION
A vehicle got lost! Ships always with only 1 order unless I missed something.

Currently using YAPF. 90 degrees is turned off.

Re: OtviAI (version 415)

Posted: 11 Apr 2013 00:38
by Samu
Another problem.

(Many) Ship depots blocking own dock and opponents' dock (that's NoCAB).

I'm using oTVI v415.

Re: OtviAI (version 415)

Posted: 11 Apr 2013 09:05
by Maninthebox
Heh... I can perhaps get away with calling blocking opponents' docks a feature, but blocking my own docks is not so smart... I seem to have some troubles with boats and YAPF sometimes and then boats get stuck humping the coast instead of going around the peninsula. The fact that the boat then has only one order is an attempt at removing all orders from the unprofitable boat and sending it to a depot. I'm afraid I will have to start adding buoy support...

I'm currently in the process of finetuning the next version, which will also have aircraft. I'll try to fix this as well in this release.

Thanks for the reports!

Re: OtviAI (version 415)

Posted: 02 Jun 2013 15:45
by Phrossi_TTD
any updates ? :roll: :mrgreen:

Re: OtviAI (version 415)

Posted: 05 Jun 2013 14:59
by Maninthebox
Yep. There's a new version :)

This one adds semi-decent air support and improved selection of what engine to use: it now roughly calculates for all available engines how profitable it would be on that distance with that cargo and no longer selects engines that would be known unprofitable (they exist due to NewGRF mostly). This release is mostly a lot of very small changes, too many to name all here. It successfully completes all tests that I have here (aka: doesn't crash or go bankrupt) so if you find a situation in which it does crash or go bankrupt: please give me the configuration parameters! There's still a long TODO list of things I want to change, so onwards to the next version :)

Re: OtviAI (version 415)

Posted: 05 Jun 2013 20:29
by Phrossi_TTD
Maninthebox wrote:Yep. There's a new version :)

This one adds semi-decent air support and improved selection of what engine to use: it now roughly calculates for all available engines how profitable it would be on that distance with that cargo and no longer selects engines that would be known unprofitable (they exist due to NewGRF mostly). This release is mostly a lot of very small changes, too many to name all here. It successfully completes all tests that I have here (aka: doesn't crash or go bankrupt) so if you find a situation in which it does crash or go bankrupt: please give me the configuration parameters! There's still a long TODO list of things I want to change, so onwards to the next version :)
that is better, it bought other AIs that had planes and the ai did not manage them.
there is also an problem with water in which the ai connects towns not connected via water, so the AI needs to build cannals and locks.
thanks for the new version, i will try it!

Re: OtviAI (version 415)

Posted: 08 Dec 2013 17:45
by skippern
Just had an incident where OtviAI sabotaged my shipping trade. Is that something purpose built into the AI? (I have version 418 downloaded from in game download content menu)

See thread I started on the topic: http://www.tt-forums.net/viewtopic.php?f=65&t=69632 (sorry for creating a new thread, found this thread only afterwards)

Re: OtviAI (version 415)

Posted: 15 Apr 2015 16:24
by Baldy's Boss
Just noting that at least in "league table" terms,I find OTVIs to be my closest competitors of a bunch of AIs,though it seems they eventually go bust.
Has work been done on renewing and pruning aging networks?