Upcoming Games

No games to display

Full list
Add a game

Upcoming Events

No events to display

TT Validation with Decisions

You are here: Home > Forum > General > Timetabling > TT Validation with Decisions

Page 1 of 1

TT Validation with Decisions 05/10/2023 at 18:48 #153527
9pN1SEAp
Avatar
1102 posts
Hi,

The TT Analyse function in F4 can throw up errors if you have added new choices to a decision since the start of the game session. E.g.

6H50/$H396418[490.1]: Entry choice H396418 excludes all choices

I've only just added this choice and I know I'll have to re-open the sim for it to validate.

Could the relevant code be updated so that new decisions are fed into the validator please? :)

Thanks!
Jamie

Jamie S (JAMS)
Log in to reply
TT Validation with Decisions 05/10/2023 at 19:01 #153528
headshot119
Avatar
4869 posts
You'll need to provide more information for us to work out what you are actually doing here.

Are you adding Decisions and Choices while the clock is running?

"Passengers for New Lane, should be seated in the rear coach of the train " - Opinions are my own and not those of my employer
Log in to reply
TT Validation with Decisions 05/10/2023 at 19:30 #153529
postal
Avatar
5195 posts
Online
Similar thoughts about the Decisions display not updating in real time as Mantis #19827. Clive has added it to his master Decisions ticket (#31243).

Presumably this behaviour would be linked to that earlier report.

“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Log in to reply
The following user said thank you: 9pN1SEAp
TT Validation with Decisions 05/10/2023 at 20:43 #153534
headshot119
Avatar
4869 posts
postal in post 153529 said:
Similar thoughts about the Decisions display not updating in real time as Mantis #19827. Clive has added it to his master Decisions ticket (#31243).

Presumably this behaviour would be linked to that earlier report.
Mantis 19827 is to do with the display of decision in F4 though, rather than the analyser.

Without some steps to reproduce from Jamie it's impossible to say whether it's related, or whether it needs to be logged as a separate issue.

"Passengers for New Lane, should be seated in the rear coach of the train " - Opinions are my own and not those of my employer
Log in to reply
TT Validation with Decisions 06/10/2023 at 08:52 #153538
9pN1SEAp
Avatar
1102 posts
In this case the game was loaded up paused with the TT at 00:00. A choice was added to an existing decision and the choice was then added to a Timetable entry.

The choice was shown as invalid in the analyzer but upon re-opening the sim it validated correctly.

Jamie S (JAMS)
Log in to reply
TT Validation with Decisions 06/10/2023 at 17:10 #153542
bill_gensheet
Avatar
1318 posts
This sounds familiar and seems fixed on the test version of Loader I have.

The decision edits now show up live (ie click back onto open TT_analysis.txt window) and does not need a cycle through save TT - new sim - load TT back - F4 - analyse.

Back to 5.26 and the problem reappears

Last edited: 06/10/2023 at 17:11 by bill_gensheet
Reason: None given

Log in to reply
TT Validation with Decisions 06/10/2023 at 18:49 #153543
headshot119
Avatar
4869 posts
9pN1SEAp in post 153538 said:
In this case the game was loaded up paused with the TT at 00:00. A choice was added to an existing decision and the choice was then added to a Timetable entry.

The choice was shown as invalid in the analyzer but upon re-opening the sim it validated correctly.
I've just opened Crewe, Crewe 2015-04-08 SX [0000 Seed], Version 1.2. Started Paused.

I've edited the Decision "Aberthaw Cement Works Lafarge 6M83" to have an extra Choice "test999"

I've then given 1D19 which enters at "Madeley (Staffs) (FL) at 0002, the Decision "Aberthaw Cement Works Lafarge 6M83" Choice "test999". I don't get any warnings or errors on the analyser after doing this.

6C89 which enters "Basford Hall Group D-G (Old) Sidings, has the Decision "Mountsorrel 6C89" Choice "H23008", I've added Choice "test123" to the Decision, and edited 6C89 to use that choice, I don't get any warnings or errors on the analyser.

Have you got a reproduceable case, I appreciate you won't be able to upload a timetable that shows it as you say it cures after a restart, but a barebones timetable, with instructions on what to add and where might help track it down.

Another tester that looked at this yesterday added it might be caused by :-fo

"1) Not made the new decision used under the decision tab
2) Made a new decision and not entered the choice under the decision tab
3) Made a new decision and entered the choice but entered it incorrectly ie used for example h in one and H in the other, cases MUST match
4) Used an existing decision but not added the choice needed to use to the decision."

Edit to add, all of this was on 5.26 of the loader, a check of version control confirms no changes have taken place to the analyser since 5.26 was released.

"Passengers for New Lane, should be seated in the rear coach of the train " - Opinions are my own and not those of my employer
Last edited: 06/10/2023 at 19:00 by headshot119
Reason: Edit version info

Log in to reply
TT Validation with Decisions 07/10/2023 at 11:25 #153546
bill_gensheet
Avatar
1318 posts
Feel free to split if this is not the issue Jamie sees.

Load Wolverhampton with TT "test 4B06 errors"
>> Starts paused at 18:55 no trains in sim
>> Deliberate error 4B06 has decision [any] 1|3, but decision only has choices 1,2,4,5.
F4
Tools1
Analyse now

>> reports error 0Z00/$LE1G62: decision 'vans' choice '3' does not exist
>> Correct

Keep analysis window open

Edit 'vans' decision
Edit choice 4
rename 4 to 3
OK
OK
Click on analysis window

>> No change, reports error 0Z00/$LE1G62: decision 'vans' choice '3' does not exist
>> now wrong

Close analysis window
Tools1
Analyse now

>> No change, reports error 0Z00/$LE1G62: decision 'vans' choice '3' does not exist

Close analysis window
OK Timetable edit window
F4
Tools1
Analyse now

>> No change, reports error 0Z00/$LE1G62: decision 'vans' choice '3' does not exist

Save TT as "test 4B06 errors fixed"
Exit
Restart new simulation, run Wolverhampton with saved TT "test 4B06 errors fixed"
F4
Tools1
Analyse now

>> Different set of warnings based on choice vans=3
>> Correct

Keep analysis window open

Edit 0Z00 to run choice 1 only
Click on analysis window

>> Analysis window updates and is now clean

=====================

So timetable edits are (now ?) checked dynamically, and (some ?) decision edits are not.
Variability explains why I thought 5.26.02 was better.
For the exact above sequence, 5.26.02 is the same.
For the exact above sequence, 5.26.12 is the same.

Post has attachments. Log in to view them.
Last edited: 07/10/2023 at 11:41 by bill_gensheet
Reason: Add 5.26.12

Log in to reply
TT Validation with Decisions 07/10/2023 at 14:51 #153547
headshot119
Avatar
4869 posts
The warning you're reporting "0Z00/$LE1G62: decision 'vans' choice '3' does not exist" is entirely different to what 9pN1SEAp reports in the opening post "6H50/$H396418[490.1]: Entry choice H396418 excludes all choices".

That's why I've asked the original poster for further information.

"Passengers for New Lane, should be seated in the rear coach of the train " - Opinions are my own and not those of my employer
Log in to reply
TT Validation with Decisions 07/10/2023 at 17:22 #153550
bill_gensheet
Avatar
1318 posts
It is the same bug - (or something we have to live with due to how decisions work) changes to decisions are not dynamically re-evaluated when editing.

Jamie post is 'e.g.' so seemed fair to produce with a different decision error

However if you want a timetable that creates exactly the same error phrase .....

Load Wolverhampton with TT "test 4B06 errors v2"
>> Starts paused at 18:55 no trains in sim
>> Deliberate error 4B06 has decision vans 3, but decision only has choices 1,2,4,5.
F4
Tools1
Analyse now

>> reports error 4B06: Entry choice '3' excludes all choices
>> Also some warnings including
>> 4B06: decision 'vans' choice '3' does not exist
>> Correct

Keep analysis window open

Edit 'vans' decision
Edit choice 4
rename 4 to 3
OK
OK
Click on analysis window

>> No change, same reports
>> now wrong

Close analysis window
Tools1
Analyse now

>> No change, same reports

Close analysis window
OK Timetable edit window
F4
Tools1
Analyse now

>> No change, same reports
Screenshot, showing decision 3 exists whilst analysis says it does not.

Save TT as "test 4B06 errors v2 fixed"
Exit
Restart new simulation, run Wolverhampton with saved TT "test 4B06 errors v2 fixed"
F4
Tools1
Analyse now

>> No error, different set of warnings based on choice vans (1,2,5)
>> Correct

Keep analysis window open

Edit 0Z00 to run choice 3 only
Click on analysis window

>> Analysis window updates and is now clean


Post has attachments. Log in to view them.
Log in to reply
TT Validation with Decisions 09/10/2023 at 11:22 #153569
clive
Avatar
2738 posts
bill_gensheet in post 153546 said:

Load Wolverhampton with TT "test 4B06 errors"
>> Starts paused at 18:55 no trains in sim
>> Deliberate error 4B06 has decision [any] 1|3, but decision only has choices 1,2,4,5.
F4
Tools1
Analyse now

>> reports error 0Z00/$LE1G62: decision 'vans' choice '3' does not exist
>> Correct

Keep analysis window open

Edit 'vans' decision
Edit choice 4
rename 4 to 3
OK
OK
Click on analysis window

>> No change, reports error 0Z00/$LE1G62: decision 'vans' choice '3' does not exist
>> now wrong
I'm still looking into the rest of it, but I can explain this bit.

Very simply, the analysis window is a report, not an active status window. It tells you what was found when you ran the analyzer. If you run it again, the contents will be overwritten. But it does not attempt to track the effects of each change you make to the timetable (to do so would take a lot of CPU time with a big timetable).

So that's right, not wrong.

This doesn't explain the rest of your observations, I know. As I said, I'm looking into that.

Log in to reply
The following user said thank you: bill_gensheet
TT Validation with Decisions 10/10/2023 at 12:14 #153577
clive
Avatar
2738 posts
clive in post 153569 said:

I'm still looking into the rest of it, but I can explain this bit.
Okay, I've worked out what's happening. It's too embarrassing to put on the forum, but it will be easy to fix when I get a moment.

Mantis 39556.

Log in to reply
TT Validation with Decisions 10/10/2023 at 21:43 #153592
clive
Avatar
2738 posts
Both Mantis 39556 and Mantis 19827 fixed.
Last edited: 10/10/2023 at 21:43 by clive
Reason: None given

Log in to reply
The following users said thank you: 9pN1SEAp, postal, bill_gensheet
TT Validation with Decisions 17/10/2023 at 18:22 #153692
9pN1SEAp
Avatar
1102 posts
OK I managed to replicate the error I saw, at last!

I edited 6E99 and renamed choice "6E99" to "6E991". I then renamed the choice in the decision box and added new choice "6E992", then ran validator to get the attached errors.

Attached is before and after change (which will validate happily on reload!)

Thanks
Jamie


Post has attachments. Log in to view them.
Jamie S (JAMS)
Log in to reply