Moderator: OpenTTD Developers
full save load support
support for eGRVTS, HEQS, NARS, 2cc etc
support for FIRS, ECS etc
full RV support
freight train support
uses all cargoes (except mail, tourists)
code and bug tracker resides at https://github.com/matkoniecz/AIAI
- support for FIRS and eGRVTS.PNG (38.88 KiB) Viewed 46040 times
- Now with trains!.png (140.29 KiB) Viewed 40158 times
- support for HEQS.PNG (21.81 KiB) Viewed 46038 times
- av8 support.PNG (56.3 KiB) Viewed 45626 times
- basic ECS vectors support.PNG (71.87 KiB) Viewed 45626 times
- AIAI crash
- Neu Hahnmünster Transport, 13-02-1975.png (33.49 KiB) Viewed 46036 times
limit of RV in one route
useless vehicles are sold
better error handling
improvement of road pathfinder (from SimpleAI)
fixed crash when no suitable RV are available
better secondary cargo handlig (conditional orders)
It remembers me a little to the Pathzilla AI, which is one of my favourite AI's.
But unfortunenally I have to report a little bug, which I don't know why it happened.
Keep on working. Nice greetings.
I have an idea to fix the problem. You just have to change line 352 of main.nut to:
local name=AIVehicle.GetName(car)+" ";
- Baker & Co., 22. Sep 1947.png
- (10.75 KiB) Downloaded 5 times
The main problem was that vehicleID was valid in RenevRV function (when AI created vehicle list in 413 line) but RV was destroyed before executing of CzyNaSprzedaz function. In result vehicle become invalid and program crashed. I must check what happen when Noai API get it: AIVehicle.Sth(invalid_vehicle).
local name=AIVehicle.GetName(car)+" "+" "+" "+" "+" "+" "; //it may work, but i must check what getname return when performed on illegal vehicle
- Planes (support for air newgrfs)
- Kind of support for ECS
- Bugfixes (thx Steffl)
- Better menagement
- Now ai (should) replace vehicles
- (94 KiB) Downloaded 1773 times
It's still one of the fastest AIs of all time, it was working fine in my test, it reached the vehicle limits in a matter of years...
I have one little problem: airports are sometimes overworked, there were 14 planes using one small airport, for example. Apart from that, it was doing very well.
EDIT Another bug fixed, new version uploaded
- stupid plane behaviour on very large maps (too big distances between airports)
- sometimes ai try to build aircrafts when limit is reached
- (96.5 KiB) Downloaded 1548 times
Fixed known probles, new problems are known:
n^2 is bad idea when n may be 5k (n = AIIndustryList().Count() ) In other words - searching for best industry on large maps is very, very slow.
solution: change to amortized contant time (200)
long bridges sometimes are unavailable!
very high rotation of vehicles
- (113.5 KiB) Downloaded 1731 times
PS.: I try to make a AI too (ok, it's not really mine), but it can hardly compete with your AI. Only sometimes it is a little bit better. But in most cases your AI wins.
This is gamma version/first bananas candidate.
So I wait for next bug reports.
The biggest new feature: industry to city routes.
And one small question. I keep aiai in content_download folder. Where it should be to avoid overwrittion by Bananas?
- Przechwytywanie.PNG (82.16 KiB) Viewed 45245 times
- (123.5 KiB) Downloaded 1498 times
Congratulations with your AI, I just took it for a test run and it performs really well! I did 2 quick runs I did with it it beated NoCAB fair and square . It was quite a nice match to see, NoCAB took the initiative while your AI was able to catch up after 10-15 years and took the lead after that. Seems that your strategy to look for the best industries and connect those pays off, from what I gleaned from the games played NoCAB spends way too much time planning and thinking while AIAI builds and takes the lead as it is really fast.
Later in the game NoCAB did manage to crawl closer to your AI as better trains became available and it replaced all its small airfields with larger ones, but never close enough to surpass yours (at least not before 1985 after which time I had to quit).
Well done and I'm looking forward to your final AI! In the meantime I'll use this one to benchmark my own .
An AI that beats NoCAB? (i've never tried Rondje OK?)
This is going to be some fearsome 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
Users browsing this forum: No registered users and 3 guests