This is what I've found in the OR log file:
Warning: System.IO.FileLoadException: {TileX:-10398 TileZ:10355 X:121.126 Y:16.8887 Z:-900.388} scenery object 3955 failed to load ---> System.InvalidCastException: No se puede convertir un objeto de tipo 'Orts.Formats.Msts.SignalItem' al tipo 'Orts.Formats.Msts.SpeedPostItem'.
Warning: System.IO.FileLoadException: {TileX:-10398 TileZ:10355 X:114.735 Y:16.8867 Z:-920.6} scenery object 3956 failed to load ---> System.InvalidCastException: No se puede convertir un objeto de tipo 'Orts.Formats.Msts.EmptyItem' al tipo 'Orts.Formats.Msts.SpeedPostItem'.
Warning: System.IO.FileLoadException: {TileX:-10398 TileZ:10355 X:62.2501 Y:16.8867 Z:-907.766} scenery object 3934 failed to load ---> System.InvalidCastException: No se puede convertir un objeto de tipo 'Orts.Formats.Msts.SignalItem' al tipo 'Orts.Formats.Msts.SpeedPostItem'.
These are on the W file I've edited last week, -10398-10355. I've opened this file and the three objects are these:
Quote
UiD ( 3955 )
Speed_Digit_Tex ( RENFEnum.ace )
Speed_Sign_Shape ( 1 -0.061 2.924 -0.099 0 )
Speed_Text_Size ( 0.405 0.27 0 )
TrItemId ( 0 11844 )
TrItemId ( 0 11845 )
TrItemId ( 0 11846 )
TrItemId ( 0 11847 )
FileName ( RENFEcomlimpercp.s )
Position ( 121.126 16.8887 -900.388 )
QDirection ( 0 0.654412 0 0.756138 )
VDbId ( 4294967295 )
)
Speedpost (
UiD ( 3956 )
Speed_Digit_Tex ( RENFEnum.ace )
Speed_Sign_Shape ( 1 -0.061 2.924 -0.099 0 )
Speed_Text_Size ( 0.405 0.27 0 )
TrItemId ( 0 11848 )
TrItemId ( 0 11849 )
TrItemId ( 0 11850 )
TrItemId ( 0 11851 )
FileName ( RENFEcomlimpercp.s )
Position ( 114.735 16.8867 -920.6 )
QDirection ( 0 -0.777146 0 0.629321 )
VDbId ( 4294967295 )
)
Speedpost (
UiD ( 3934 )
Speed_Digit_Tex ( signnumbers.ace )
Speed_Sign_Shape ( 2 -0.01 0.5 -0.097 0 -0.01 0.5 0.097 3.14159 )
Speed_Text_Size ( 0.17 0 -0.17 )
TrItemId ( 0 8374 )
TrItemId ( 0 8375 )
FileName ( RENFE_kilometrico.s )
Position ( 62.2501 16.8867 -907.766 )
QDirection ( 0 0 0 1 )
VDbId ( 4294967295 )
)
Two first are speed limits, and the last one is a milepost. I've also found this on W file:
Quote
UiD ( 6812 )
FileName ( LTC-LAV-3L1.s )
Position ( -23.977 16.8755 -894.017 )
QDirection ( 0 0.613515 0 0.789683 )
VDbId ( 4294967295 )
SignalSubObj ( 00000001 )
SignalUnits ( 1
SignalUnit ( 0
TrItemId ( 0 8374 )
)
)
)
Signal (
UiD ( 6813 )
FileName ( LTC-LAV-3L1.s )
Position ( -26.7187 16.8743 -903.393 )
QDirection ( 0 0.613037 0 0.790054 )
VDbId ( 4294967295 )
SignalSubObj ( 00000001 )
SignalUnits ( 1
SignalUnit ( 0
TrItemId ( 0 8375 )
)
)
)
Signal (
UiD ( 6814 )
FileName ( LTC-LAV-3L2.s )
Position ( -35.1418 16.8718 -901.519 )
QDirection ( 0 0.795488 0 -0.60597 )
VDbId ( 4294967295 )
SignalSubObj ( 00000001 )
SignalUnits ( 1
SignalUnit ( 0
TrItemId ( 0 11844 )
)
)
)
Signal (
UiD ( 6815 )
FileName ( LTC-LAV-3L2.s )
Position ( -33.3963 16.872 -891.367 )
QDirection ( 0 0.795527 0 -0.605918 )
VDbId ( 4294967295 )
SignalSubObj ( 00000001 )
SignalUnits ( 1
SignalUnit ( 0
TrItemId ( 0 11845 )
)
)
)
As you can see, these four signals have the same TrItemID that the speedpost and milepost above. Now I've opened the *.TIT file and searched for these TrItemId:
SignalItem (
TrItemId ( 11844 )
TrItemSData ( 442.15497 00000002 )
TrItemRData ( -34.779053 16.890305 -898.25659 -10398 10355 )
TrSignalType ( 00000000 0 4.9812169 LAV-100 )
)
SignalItem (
TrItemId ( 11845 )
TrItemSData ( 439.69684 00000002 )
TrItemRData ( -33.517136 16.890305 -893.43353 -10398 10355 )
TrSignalType ( 00000000 0 4.9813461 LAV-100 )
)
EmptyItem (
TrItemId ( 11846 )
)
EmptyItem (
TrItemId ( 11847 )
)
EmptyItem (
TrItemId ( 11848 )
)
EmptyItem (
TrItemId ( 11849 )
)
EmptyItem (
TrItemId ( 11850 )
)
EmptyItem (
TrItemId ( 11851 )
)
SignalItem (
TrItemId ( 8374 )
TrItemSData ( 449.23312 00000002 )
TrItemRData ( -24.29998 16.890305 -895.87933 -10398 10355 )
TrSignalType ( 00000000 1 1.8205855 LAV-060 )
)
SignalItem (
TrItemId ( 8375 )
TrItemSData ( 451.11462 00000002 )
TrItemRData ( -26.120438 16.890305 -900.55914 -10398 10355 )
TrSignalType ( 00000000 1 1.8217937 LAV-060 )
)
It's confirmed that there is a problem with TrItemId in the W file. TDB file matches with TIT file: TrItemID are the same and they are all right.
It seems that both speedlimits and milepost were deleted by me, TDB and TIT files were updated but their entries in the W file still remained. Then I've added two signals and they have occupied four TrItemId and the rest remained empty.
Now I've deleted the three entries in W file and I can open TSRE5 again!!! :)