The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Andarix on December 19, 2024, 11:20:16 PM

Title: Program file for Windows wanted for troubleshooting Script-AI
Post by: Andarix on December 19, 2024, 11:20:16 PM
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.
Title: Re: Program file for Windows wanted for troubleshooting Script-AI
Post by: prissi on December 20, 2024, 04:03:26 AM
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
Title: Re: Program file for Windows wanted for troubleshooting Script-AI
Post by: Andarix on December 20, 2024, 01:35:51 PM
r11487 works
Title: Re: Program file for Windows wanted for troubleshooting Script-AI
Post by: Andarix on December 20, 2024, 07:36:52 PM
r11487

I think not all correct works.

Screenshot 2024-12-20 203305.jpg

Construction direction should be player road -> city road.
Title: Re: Program file for Windows wanted for troubleshooting Script-AI
Post by: prissi on December 21, 2024, 04:06:36 AM
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.
Title: Re: Program file for Windows wanted for troubleshooting Script-AI
Post by: Andarix on December 21, 2024, 06:13:44 AM
Could it be that city cars are preventing construction?

The route was built by the script AI.

It worked when I ran it again.
Title: Re: Program file for Windows wanted for troubleshooting Script-AI
Post by: prissi on December 21, 2024, 07:10:45 AM
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.
Title: Re: Program file for Windows wanted for troubleshooting Script-AI
Post by: Yona-TYT on December 21, 2024, 08:02:02 AM
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.