Log File Warning Missing signal shapes
#1
Posted 09 January 2022 - 07:30 AM
Warning: 4 missing SignalShape(s) in C:\1MSTS\ROUTES\Chiltern\sigcfg.dat:line 20076
I need help in understanding what is wrong here and in developing a strategy to eliminate the problem.
Martin
#2
Posted 09 January 2022 - 08:17 AM
Line number 20076 will list the shapes that the OR log refers to.
You'll have to add these shapes to the routes shape folder. Don't forget the textures as that will probably trip another error.
Randy
#3
Posted 09 January 2022 - 09:52 AM
The number in SignalShapes (### has to match the number of SignalShape declared in the file.
#4
Posted 09 January 2022 - 10:53 AM
I have the released version of your Chiltern route and have a similar warning in the log.
I believe the reason is because, earlier in the log, you'll see 4 Duplicate SignalShape warnings. When counting the number of SignalShape entries, Open Rails ignores those it's marked as duplicates.
Last year I started developing a program which checks for such errors in the sigcfg file - it is definitely working, so please let me know if you'd like to see if it will help :)
Cheers,
Ged
#5
Posted 09 January 2022 - 12:00 PM
slipperman, on 09 January 2022 - 10:53 AM, said:
This sounds like a bug we would like to fix. Would you please raise a bug report on our Bug Tracker and provide the information needed to fix it (perhaps a sample file that shows the issue?).
Many thank,
#6
Posted 09 January 2022 - 01:39 PM
Quote
Unfortunately, this is not the case. Line 20076 is simply a line with a closing bracket near the end of the file.
I suspect that the problem is indeed a discrepancy between the number of Signal Types and the number of Signal Shapes. The problem is to identify which Signal Shapes are missing.
If nobody has any helpful suggestions as to how to figure out which are the missing shapes, I would be interested to see whether your program, Ged, can help with the identification. Can you send it to me as an email attachment or will you need to upload it to my OneDrive page? Either way, drop me a line at docmartin7644 AT gmail.com and many thanks for your offer.
Martin
#7
Posted 09 January 2022 - 02:36 PM
Docmartin, on 09 January 2022 - 07:30 AM, said:
Warning: 4 missing SignalShape(s) in C:\1MSTS\ROUTES\Chiltern\sigcfg.dat:line 20076
I need help in understanding what is wrong here and in developing a strategy to eliminate the problem.
Martin
The file either has four fewer SignalShape entries than the total SignalShapes value at the top of the shapes section, or there are four duplicate shapes which use the same shapename (e.g. Signal1.s) as other shapes, which is not allowed.
Because the .tdb uses the shape file's name (Signal1.s), allowing two different SignalShape entries using the same shape file name into the same route could have disastrous results. For this reason, OR's current practice of not counting more than one entry with the same shapename and throwing an error in the log is an effective safety catch to prevent this from happening
#8
Posted 09 January 2022 - 02:44 PM
Quote
I did as you suggested, Weter, and indeed the error has disappeared. I don't quite understand why reducing the number by 2 should have eliminated an error of 4 missing shapes and I hope that by reducing the number of shapes by 2 will not mean that OR is now skipping a couple of shapes that are in fact used in the route.
However, TSRE is not reporting any errors relating to signals and now neither is OR so I am very grateful for your help.
Martin
#9
Posted 09 January 2022 - 02:47 PM
Quote
A:
Quote
#10
Posted 10 January 2022 - 01:14 AM
Quote
Tdb does not use a .s file.
Identification is done differently.
SignalItem ( TrItemId ( 19 ) TrItemSData ( 75.8375 00000002 ) TrItemRData ( -668.38 372.904 -322.561 -5448 14708 ) TrSignalType ( 000000c1 1 3.06263 GWRGrdsig ) TrSignalDirs ( 1 TrSignalDir ( 533 1 0 0 ) ) )
The shape name is in the W file only. In the corresponding entry, GWRGrdsig is listed along with its serial number. GWRGrdsig is a SignalSubObj, of which there can be more than one flag, so it has a serial number. These two data are transferred to the tdb file.
Sincerely, Laci1959