The International Simutrans Forum

Development => Scripting Scenarios and AI => Topic started by: koa_jp on September 14, 2022, 11:04:50 AM

Title: [r10421]error of getting schedule entries
Post by: koa_jp on September 14, 2022, 11:04:50 AM
Hi.
I sometime encounter the follow error.
bebe.png

The code that causes the error is as follows.
local schedule_entries = line.get_schedule().entriesline is a parameter of line_x.

How can this error be avoided?
Title: Re: [r10421]error of getting schedule entries
Post by: Dwachs on September 14, 2022, 12:03:56 PM
I suspect the schedule of this line contains a large number of entries. Will see, what can be done.
Title: Re: [r10421]error of getting schedule entries
Post by: Yona-TYT on September 14, 2022, 01:22:24 PM
You are running a script scenarium?.
Title: Re: [r10421]error of getting schedule entries
Post by: koa_jp on September 14, 2022, 01:31:59 PM
Quote from: Yona-TYT on September 14, 2022, 01:22:24 PMYou are running a script scenarium?.
I use for AI player.
Title: Re: [r10421]error of getting schedule entries
Post by: Dwachs on September 14, 2022, 06:12:31 PM
Should be fixed in r10738.

Do you work on an own AI player script?
Title: Re: [r10421]error of getting schedule entries
Post by: koa_jp on September 14, 2022, 10:53:11 PM
Quote from: Dwachs on September 14, 2022, 06:12:31 PMDo you work on an own AI player script?

Yes.
Default passenger CP sets up routes between the two cities.
I want routes into many cities.
Title: Re: [r10421]error of getting schedule entries
Post by: Dwachs on September 15, 2022, 06:45:19 PM
Still not completely fixed. Working on it.