AIAI
Moderator: OpenTTD Developers
Re: AIAI zeta (46) version
Known problems:
- train engines are not replaced
- adding trains to route is not working
- AIAI with enabled trains have worse start than with disabled
- not AI friendly brake vans in Japan Set
- stupid rail builder builds depot in stupid place
- too high pf time limit for second track
- RV with very small cargo capacity are confusing
- train engines are not replaced
- adding trains to route is not working
- AIAI with enabled trains have worse start than with disabled
- not AI friendly brake vans in Japan Set
- stupid rail builder builds depot in stupid place
- too high pf time limit for second track
- RV with very small cargo capacity are confusing
- Attachments
-
- Przechwytywanie.PNG (40.71 KiB) Viewed 6312 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: AIAI zeta (46) version
After a 35 year long AI battle (from 1950 to 1985), your AI is soon to get bankrupt.
I've noticed that your AI has very good serviced stations. Out of 80 stations, only two of them have waiting cargo. On many stations there are several trucks loading cargo. Perhaps some of these could be sold to give a better profit margin?
I've noticed that your AI has very good serviced stations. Out of 80 stations, only two of them have waiting cargo. On many stations there are several trucks loading cargo. Perhaps some of these could be sold to give a better profit margin?
- Attachments
-
- AI Marathon.sav
- r22127
- (697.19 KiB) Downloaded 164 times
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: AIAI zeta (46) version
Selling should happen but my method is likely to be destroyed be LongVehicles.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: AIAI zeta (46) version
Having trouble installing the AIAI by hand (cant go online) - can you please advise?
I put graph.aystar-6 into ai/library, as well as queue.binaryheap-1.
Still I get the error that the library graph.aystar is not found. What's wrong?
Thx for your advise.
I put graph.aystar-6 into ai/library, as well as queue.binaryheap-1.
Still I get the error that the library graph.aystar is not found. What's wrong?
Thx for your advise.
Re: AIAI zeta (46) version
graph.aystar-4 is required for the road pathfinder (it should be updated, i know
)

AroAI - A really feeble attempt at an AI
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Re: AIAI zeta (46) version
Ok I see.
Where can I find version 4? Its not linked any more on the bananas front page.
Edit:
Found it via goolge on
http://noai.openttd.org/downloads/Libraries/
Where can I find version 4? Its not linked any more on the bananas front page.
Edit:
Found it via goolge on
http://noai.openttd.org/downloads/Libraries/
Re: AIAI zeta (46) version
I was playing with some AI's in a cargodest game with some NewGRF's and AIAI was doing pretty well! It is pretty good at looking for opportunities in cargo delivery with vehicles. TransAI got bankrupt multiple times and SimpleAI didn't know what to do somehow so AIAI was the best AI by far.
Re: AIAI zeta (46) version
It sounds good!bokkie wrote:I was playing with some AI's in a cargodest game with some NewGRF's and AIAI was doing pretty well! It is pretty good at looking for opportunities in cargo delivery with vehicles. TransAI got bankrupt multiple times and SimpleAI didn't know what to do somehow so AIAI was the best AI by far.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: AIAI zeta (46) version
In my recent test, I spotted this using the version of AIAI with train support:
- Attachments
-
- wagons in depot.png
- (7.18 KiB) Downloaded 1 time
Re: AIAI zeta (46) version
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: AIAI zeta (46) version
Bugs:
Longvehicles bug: http://www.tt-forums.net/viewtopic.php?p=931701#p931701
Toyland bug: http://www.tt-forums.net/viewtopic.php?p=949897#p949897
Test map: http://www.tt-forums.net/viewtopic.php? ... 68#p774726
Known problems:
- train engines are not replaced
- adding trains to route is not working
- AIAI with enabled trains have worse start than with disabled
- not AI friendly brake vans in Japan Set
- stupid rail builder builds depot in stupid place
- too high pf time limit for second track
- RV with very small cargo capacity are confusing
Longvehicles bug: http://www.tt-forums.net/viewtopic.php?p=931701#p931701
Toyland bug: http://www.tt-forums.net/viewtopic.php?p=949897#p949897
Test map: http://www.tt-forums.net/viewtopic.php? ... 68#p774726
Known problems:
- train engines are not replaced
- adding trains to route is not working
- AIAI with enabled trains have worse start than with disabled
- not AI friendly brake vans in Japan Set
- stupid rail builder builds depot in stupid place
- too high pf time limit for second track
- RV with very small cargo capacity are confusing
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: AIAI eta (49) version
Known problems:
- RV with very small cargo capacity are confusing
- Test map: viewtopic.php?f=65&t=42468#p774726
- Sometimes after train upgrade AI should sell part of trains
FIXED: "for some reason hundreds of wagons are sitting in a train depot without a locomotive"
FIXED: adding trains to route is not working
FIXED: train engines are not replaced
FIXED: brake vans in Japan Set
FIXED: airport selection bug (AIAI ignored small airport)
FIXED: bug in debugging function
FIXED: too many airplanes directed to airport
FIXED: bug on large-map-scan
FIXED: railtypes (Japan trainset etc)
CHANGED:"Longvehicles" bug: viewtopic.php?p=931701#p931701 (now it rather agressive and may start "sell RV->buy RV-> sell RV etc" cycle )
BROKEN: unable to load saves from previous versions
Superlib version bumped to 6
DONE: better error handling
DONE: max number of trains in station name
DONE: store depot tile location in station name
DONE: better behaviour in games with vehicles never expiry (floods of low quality aircrafts)
- RV with very small cargo capacity are confusing
- Test map: viewtopic.php?f=65&t=42468#p774726
- Sometimes after train upgrade AI should sell part of trains
FIXED: "for some reason hundreds of wagons are sitting in a train depot without a locomotive"
FIXED: adding trains to route is not working
FIXED: train engines are not replaced
FIXED: brake vans in Japan Set
Code: Select all
function RailBuilder::GetBrakeVan()
{
local wagons = AIEngineList(AIVehicle.VT_RAIL);
wagons.Valuate(AIEngine.IsWagon);
wagons.RemoveValue(0);
wagons.Valuate(AIEngine.IsBuildable);
wagons.RemoveValue(0);
wagons.Valuate(AIEngine.CanRunOnRail, AIRail.GetCurrentRailType());
wagons.RemoveValue(0);
local cargo_list=AICargoList();
for (local cargoIndex = cargo_list.Begin(); cargo_list.HasNext(); cargoIndex = cargo_list.Next()){
wagons.Valuate(AIEngine.CanRefitCargo, cargoIndex);
wagons.RemoveValue(1);
}
if(wagons.Count() == 0){
Error("No brake van on the current track (" + AIRail.GetCurrentRailType() + ").");
} else {
wagons.Valuate(AIEngine.GetMaxSpeed);
return wagons.Begin();
}
}
FIXED: bug in debugging function
FIXED: too many airplanes directed to airport
FIXED: bug on large-map-scan
FIXED: railtypes (Japan trainset etc)
CHANGED:"Longvehicles" bug: viewtopic.php?p=931701#p931701 (now it rather agressive and may start "sell RV->buy RV-> sell RV etc" cycle )
BROKEN: unable to load saves from previous versions
Superlib version bumped to 6
DONE: better error handling
DONE: max number of trains in station name
DONE: store depot tile location in station name
DONE: better behaviour in games with vehicles never expiry (floods of low quality aircrafts)
- Attachments
-
- AIAI-eta.tar
- (287.5 KiB) Downloaded 186 times
-
- Przechwytywanie.PNG (62.5 KiB) Viewed 5334 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: AIAI eta (49) version
In headers.nut, you import version 7. Also, mind that as far as I know, BaNaNaS have a limitation that you can only select the last version of a library as dependency. This unfortunately means that new users of OpenTTD will not get the correct SuperLib version when they select to download AIAI whenever you decide to upload this version to BaNaNaS.Kogut wrote:Superlib version bumped to 6
If you don't feel like spending the time required to upgrade to SuperLib 13, you could include SuperLib 7 inside your source code. I think you would only need minor if any modifications to it to get it work. As long as you use GPL2 that would be perfectly legal even without my permission. It could however mean more work in the long run as well as duplicating code on bananas. But from a technical and legal point of view it is possible. Although, a better solution would be to fix BaNaNaS to allow dependencies to older libraries or pushing AIAI up to SuperLib 13.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: AIAI eta (49) version
IIRC such work is (slowly) in the making.Zuu wrote:Although, a better solution would be to fix BaNaNaS to allow dependencies to older libraries or pushing AIAI up to SuperLib 13.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: AIAI eta (49) version
Strange.Zuu wrote:In headers.nut, you import version 7
It is planned.Zuu wrote:pushing AIAI up to SuperLib 13.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: AIAI eta (49) version
Kogut wrote:Strange.Zuu wrote:In headers.nut, you import version 7
It is planned.Zuu wrote:pushing AIAI up to SuperLib 13.
Code: Select all
import("util.superlib", "SuperLib", 7); //http://www.tt-forums.net/viewtopic.php?p=960013#p960013 - przed up do 10
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: AIAI eta (50) version
New version, with additional bugfixes.
- Attachments
-
- AIAI-eta-50.tar
- (287.5 KiB) Downloaded 123 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: AIAI eta (50) version
Random bugfixes, slightly better AI log.
- Attachments
-
- AIAI-eta-51.tar
- (287.5 KiB) Downloaded 141 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: AIAI eta (51) version
New version, bananas ready!
DONE: SuperLib updated to v15
DONE: ConvertRailCrossingToBridge is imported in proper way
DONE: better debug output (still terrible)
FIXED: YA crash bug
DONE: SuperLib updated to v15
DONE: ConvertRailCrossingToBridge is imported in proper way
DONE: better debug output (still terrible)
FIXED: YA crash bug
- Attachments
-
- AIAI.PNG (149.23 KiB) Viewed 5115 times
-
- AIAI-eta-52.tar
- (286.5 KiB) Downloaded 165 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: AIAI eta (52) version
As I noticed Superlib v15 is in a fruit store, so a new version of AIAI is ready for official publication!
EDIT: random stat, cumulated download count reached 169054. Woooho!
EDIT: random stat, cumulated download count reached 169054. Woooho!
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Who is online
Users browsing this forum: No registered users and 6 guests