oxyk wrote:thank you for spending your time on testing and valuable feedback, i really appreciate it. i'm complete noob with openttd scripting, the only experience i have is a bit of scripting for TES3 and TES4. but i'm willing to learn )
We all have to start somewhere, and making an AI is a nice way, as you get fast feedback whether it works or not. Much better than coding for a month and then finding the structure is wrong
oxyk wrote:if you have 5-6 circling, how much in total of arcraft that airport have? what is the engine models? does it started upgrage? you might think it's not useful and it does not in the first years. just watch what it will do next ) actually it's a strategy. AI tries to balance lines and transfer as much cargo as possible, so when it comes to better planes, AI will sell some of small planes and will get better stable profit. also when you will start to have lots of mail waiting on big stations (over 500), AI will launch mail route and it will be about 2-3x profitable than same pass route. In fact compare station profits for similar setup (another Ai or your own), does AI earn less than competitor?
i tested it in 3 games, would appreciate any feedback.
I attached the game. It has just started, with default vehicles in toyland, 1958.
I have built some trains to a toy-factory. There are 4 competitors, the yellow company is WmDot, very good at road building, but it does not understand you also need to build road vehicles to survive
The other 3 companies all all your AI.
They all set up a PAX connection with aircraft (see Drenford, at the far west). "Drenford airport" has 6 circling Ploddyphut 100 aircraft and one at the ground. it has 16 aircraft in its list. (and 2 airports in the order list). The other airport has just 3 circling. I don't know whether you ever watched a small airport, but with an aircraft at the ground, it is pretty much impossible to land another aircraft onto it, before the previous aircraft has left. The runway is simply not available enough.
So any surplus of aircraft simply gets queued in the air. Throwing in more aircraft just adds to the delay, since the queue gets longer. Ie it has the opposite effect than you intend to have.
The green company tried building stations, the "2 producer" station got the furthest. There is a track going south, but it stops at the foot of the hill at an unbuildable slope (without autoslope).
I didn't really play, so my profits are very low. I still beat the AIs though.
The best AI makes 175,000 a year with 16 aircraft. I make 120,000 with 5 trains, and another 55 with the buses I added for fun. The difference is not having to pay 20,000 interest
Airports at this point in time is not worth the effort, two stations with a few PAX trains scale way better.
(it may be difficult to get an AI to understand that, though)
oxyk wrote:strange thing with Next(), are you reffering to ingame console or AI debug window? what is your openttd version? never saw this message, please provide some info how to reproduce it.
I always play trunk with debugging info enabled. If you start the program with an -d option, it should also work I think. The output is printed at the console where I started openttd (ie open a command window, and type "openttd -d", or something in that direction). Quite likely the last stable will still work, otherwise you need to use a nightly.
Unfortunately, it gives not more information than that line of text (it gets printed several times though), which makes looking for the problem tricky.
The only thing I can think of is to look for all Next(), and check that it always has a Begin() before it.
oxyk wrote:bancrupcy as a result of finding the right spot. so i had to add aircraft as an insurance.
That works, as you can see in the profit graph. The blue company has aircraft very fast, and the other two took a while longer.
oxyk wrote:thank you,
oxyk
I hardly played, and it was certainly no good test
I was interested in a freight AI, so I was a bit surprised to see it running aircraft, but your explanation above clears that up nicely
Good luck with programming the AI