News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Program file for Windows wanted for troubleshooting Script-AI

Started by Andarix, December 19, 2024, 11:20:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andarix

The script AI seems to have broken between r11427 and r11463.

To narrow down the cause, I need program files (Windows) between these two revisions. Or you can test whether the script AI builds routes or not.

[edit]

The error is related to the bridge builder.

prissi

Thanks, that helped with error finding. wt_all did no longer allow for connection check, as it was internally now wt_ignore. Fixed in r11486


Andarix

r11487

I think not all correct works.

Screenshot 2024-12-20 203305.jpg

Construction direction should be player road -> city road.

prissi

Apart from the definition of "wt_all" nothing was changed. In all my trials, I could connect such a road, i.e. the wayfinder finds than tile.

Andarix

Could it be that city cars are preventing construction?

The route was built by the script AI.

It worked when I ran it again.

prissi

Citycars should not prevent construction. I am not sure about cars from other companies. But in principle, only ribis are added, that should work staright forward.

Recently (i.e. about a year), I see occasional strange things, like passengers appearing at stops with a via which is not part of the stop or the old good AI choosing choosing oil trucks for coal. All those cases, these are not reproducable and go away after saving and loading.

I have stepped up memory debugging of the freelist, but it turned up nothing.

Yona-TYT

Quote from: Andarix on December 20, 2024, 07:36:52 PMr11487

I think not all correct works.

Screenshot 2024-12-20 203305.jpg

Construction direction should be player road -> city road.
Does the same happen if the route is owned by the player who builds it? I suspect all_pl (player 16).

Player 16 (unknown player) should not be the same as pl_all in my humble opinion.