openrails / test-launchpad-bugs

TEST repository for Launchpad bug migration exploration
0 stars 0 forks source link

[BUG 1722022] System.IO.InvalidDataException at Orts.Simulation.Timetables.TimetableInfo.GetPlayerTrain (1.2.3766, Custom Timetable, Player train crash) #1937

Open twpol opened 7 years ago

twpol commented 7 years ago

Imported from https://bugs.launchpad.net/bugs/1722022

Property Value
Reported by Michael Brettle (mike91)
Date reported Sun, 08 Oct 2017 02:26:39 GMT
Tags content, crash, timetable

Hi,

I have created a custom timetable using the Timetable Editor in OR but I receive the error:

"System.IO.InvalidDataException: Player train : C:\Program Files (x86)\Microsoft Games\Train Simulator\ROUTES\AUeppingline\ACTIVITIES\OPENRAILS\timetable 1 - Copy.timetable_or:Player1 not found in timetables"

when trying to load the timetable. Have I possibly named something incorrectly in the timetable? Any help would be appreciated.

twpol commented 7 years ago

Imported from https://bugs.launchpad.net/or/+bug/1722022/comments/1

Property Value
Posted by Michael Brettle (mike91)
Date posted Sun, 08 Oct 2017 02:26:39 GMT
twpol commented 7 years ago

Imported from https://bugs.launchpad.net/or/+bug/1722022/comments/2

Property Value
Posted by r.roeterdink (r-roeterdink)
Date posted Mon, 16 Oct 2017 16:03:18 GMT

How did you start this session? The fourth parameter, defining the train, is completely wrong - it should just be the train and timetable reference, not the file path. See example below.

Version = Build = 0.0.6496.26512 (2017-10-14 14:43:44Z) Logfile = C:\Users\Roeterdink\Desktop\OpenRailsLog.txt Executable = RunActivity.exe Argument = -start Argument = -timetable Argument = D:\TrainSim\Org\ROUTES\Newfoundland\ACTIVITIES\OPENRAILS\NF2017.timetablelist_or Argument = 2017_WSU_BUC_down:0614_WSU_DLK_SAY Argument = 0 Argument = 1 Argument = 0

twpol commented 7 years ago

Imported from https://bugs.launchpad.net/or/+bug/1722022/comments/3

Property Value
Posted by Michael Brettle (mike91)
Date posted Fri, 20 Oct 2017 08:23:26 GMT

Sorry for the late reply, I have finally had a chance to do some testing.

Your post got me thinking so I decided to create a new timetable using the Timetable Editor in Open Rails, the same way I did with the initial timetable.

The old timetable displays the full file path of the timetable, where as the new timetable appears as just the timetable name (see screenshot). Not sure how this has occurred, but I am fairly sure I created the timetables in exactly the same way.

twpol commented 7 years ago

Imported from https://bugs.launchpad.net/or/+bug/1722022/comments/4

Property Value
Posted by Michael Brettle (mike91)
Date posted Fri, 20 Oct 2017 08:24:42 GMT

Just for completion, I have tested the new timetable and it does load correctly