Brumi wrote:Hi Fanioz,
Hi, (again) Brumi
Brumi wrote:
I experienced some strange behaviour while playing with your AI. If '#opcodes before AI is suspended' is set to 5,000, sometimes Trans AI 'forgets' to start the first vehicle of a line, and doesn't rename the recieving station. I tried to figure out when this happens, but it seems to be random, it occurs in roughly 50% of the cases when the opcode count is set to 5,000. May be a bug in the API... Or are the AIs expected to behave differently based on this setting?
Anyway, I like the idea that Trans starts the first train before building the second line, it comes good if the AI fails to build it.
TransAI strange behaviour.sav
me too,
![Very Happy :D](./images/smilies/icon_biggrin.gif)
, So, it maybe API/OpenTTD bug, but I need to prove it with simplified script to reproduce this behaviour. Another thing happened if opcode was set to 5,000 is : Building a long rail track (about 400+ tiles) it will can't build some tiles in the middle, with the result of AIError.GetLastError() == AIError.Unknown.
And since the sequence of servicing is not satisfied, TransAI will immediatelly break, so it doesn't rename the station. And you're right, this occurs in roughly 50% of the cases.
Brumi wrote:
And some other issues:
If the AI fails to connect a road due to congestion, it doesn't check (correctly) if the road is OK or the vehicles indeed arrive to the station. Later Trans buys loads of new trucks, hoping to improve the service, but fails.
Current code doesn't check if a vehicle was arrive at station, just make sure there are road tiles connected. I think, I should improve this.
Brumi wrote:
I'm happy to see that Trans transports mail (and passengers by train), but it's not optimal yet, it often tries to transport mail from small villages. Or it builds entire mail trains, and the station is too far away from the town centre. Maybe combined passenger/mail trains?
Trans, would try to transport all transportable cargo, but it seems there are many things to check before doing something.
Brumi wrote:
I'm sorry if I seem to crtiticise your AI, in fact I really like it
![Smile :)](./images/smilies/icon_smile.gif)
Thanks, I'm glad to know what is inside your mind / your opinion about Trans.
Zuu wrote:About not renaming certain stations, I have noticed that sometimes PAXLink fail to rename its inter-city stations. I have not been able to track down the reason for it, but I have not tried any different op-code settings than the default value.
Well, if that is really true, it mean that OpenTTD opcode switcher (or whatever the name
![Question :?:](./images/smilies/icon_question.gif)
) forget to return to AI's state, or there is something I did'nt know yet ?
![Very Happy :D](./images/smilies/icon_biggrin.gif)