News:

Congratulations!
 You've won the News Item Lottery! Your prize? Reading this news item! :)

Passenger Script-AI from koa

Started by Andarix, May 12, 2026, 07:07:10 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Andarix

Download

The original astar.nut should be replaced with the one from sqai_rail, as the original apparently cannot build bridges in version 124.4.x.

Another problem is that, apparently, only one road depot is built at the start. This means that all buses have to travel a very long distance from there to reach their destination city.

A significant amount of capital is lost because stations are made public—even when no other player is active.

The expansion is very rapid. As a result, the AI quickly goes bankrupt.

Tested with pak64 and Simutrans 124.4.1. A brief test was also conducted with pak64.german.

koa

Thanks for the review.

Quote from: Andarix on May 12, 2026, 07:07:10 PMThe original astar.nut should be replaced with the one from sqai_rail, as the original apparently cannot build bridges in version 124.4.x.
I'll try merging the new astar.nut.

Quote from: Andarix on May 12, 2026, 07:07:10 PMAnother problem is that, apparently, only one road depot is built at the start.
This is just my playstyle.
In pak128.japan, I don't want to build many depots.

Quote from: Andarix on May 12, 2026, 07:07:10 PMA significant amount of capital is lost because stations are made public
This is to check if multiple AI players will use public stations when I run them.
So it's pointless if there's only one AI player.

Quote from: Andarix on May 12, 2026, 07:07:10 PMThe expansion is very rapid. As a result, the AI quickly goes bankrupt.
I don't think this is due to the pace of business expansion. I believe the real problem is that it's not connected to cities with high demand. I haven't found a solution yet.

prissi

It is good to have another try at an AI.

Yesterday it performed quite well, but today, on a more hilly map, it went backrupt very quickly due to very complicated landscaping. Maybe the newer astar merging helps with it.

Also, does it constrcut trains at a point? I have never seen anything but bus lines?

And, what license it is? Can it be included as another AI with Simutrans?

koa

Quote from: prissi on Yesterday at 12:48:44 PMdoes it constrcut trains at a point? I have never seen anything but bus lines?
It has the source code for the railway construction, but since it has even more bugs than the bus system, it will only run if the effort to alleviate congestion on bus routes fails.

Quote from: prissi on Yesterday at 12:48:44 PMAnd, what license it is? Can it be included as another AI with Simutrans?
This license complies with the sqai_rail's license (since it is based on sqai_rail).

Andarix

#4
I haven't used pak128.japan in ages.

My test map for pak64 is 320x320, and the passenger AI went bankrupt every single time after just three months.

And within a single month, it had taken over the entire map.