OR "Common Inc" Files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Don6218
    1500 Post Veteran
    • Jun 2009
    • 1834
    • Oshawa ON

    #1

    OR "Common Inc" Files

    I am getting an error that I have not seen before while running an Activity on SLI-Green River. It is telling me that there is an issue with the Coupler part of the file. I have included the Log from the activity so that you can see what I am seeing. It does not seem to impact the actual activity though, these files are great and seem to improve OR in the Simulation, but why the errors and/or have they been corrected?
    OpenRailsLog.zip
  • derekmorton
    5500 Post Veteran



    • Nov 1999
    • 5699
    • Eltham, Victoria, Australia.
    • ORTS

    #2
    Hi Don,

    I am running the activity now, I do not get these errors.
    I suspect that the error is in "sli_greenriver_freight\openrails\50Ft_COAL_DRGW_1 9699_LD.wag"

    Could you post that file for me to look at please?

    Comment

    • lineman
      Senior Member

      • Mar 2007
      • 539
      • Phoenix AZ
      • General

      #3
      sli_greenriver_freight\50Ft_COAL_DRGW_19699_LD.wag this is where my coal wag exists. Note there is no space in the number '19699"

      Comment

      • derekmorton
        5500 Post Veteran



        • Nov 1999
        • 5699
        • Eltham, Victoria, Australia.
        • ORTS

        #4
        Hi Larry,

        You don't have Gerry's include files, so don't have the file that I mentioned.

        Comment

        • Don6218
          1500 Post Veteran
          • Jun 2009
          • 1834
          • Oshawa ON

          #5
          OR Inc File

          Originally posted by derekmorton
          Hi Don,

          I am running the activity now, I do not get these errors.
          I suspect that the error is in "sli_greenriver_freight\openrails\50Ft_COAL_DRGW_1 9699_LD.wag"

          Could you post that file for me to look at please?
          Taken from my Train File: here it is:
          OpenRails.zip

          Comment

          • derekmorton
            5500 Post Veteran



            • Nov 1999
            • 5699
            • Eltham, Victoria, Australia.
            • ORTS

            #6
            Hi Don,

            I can't find the problem,
            We will have to wait for Gerry to go past.

            Comment

            • crstagg
              4500 Post Veteran


              • Nov 1999
              • 4885
              • Huntsville, AL
              • Texan
              • MSOR

              #7
              Derek and Don,

              You have not looked at the other end. Can Don verify that his Trainset folder has a sub folder named "Common.inc" with a sub folder named "Fleet" with a file named "Standard_Freight_Coupler.inc" ????

              AND if those folders and file do exist, WHAT is on line 27?
              Charles

              Comment

              • R. Steele
                3500 Post Veteran

                • Feb 2013
                • 3928
                • known universe
                • ORTS

                #8
                derekmorton, Hi Don, I can't find the problem, We will have to wait for Gerry to go past.
                Originally posted by crstagg
                Derek and Don,

                You have not looked at the other end. Can Don verify that his Trainset folder has a sub folder named "Common.inc" with a sub folder named "Fleet" with a file named "Standard_Freight_Coupler.inc" ????

                AND if those folders and file do exist, WHAT is on line 27?
                Just spotted the thread...been recovering from a bike accident during the 1st week of October, today roofers arrived to begin re-roofing the house...so I'm not having much time for trains. Nothing broken, just very bad deep tissue bruising/twisting on my right (typing) side and arm...still hurts, but healing is going as expected.

                To the problem: Both Derek and Charles said pretty much everything I could say. Like Derek, I couldn't spot the problem from what Don provided either and as Charles said...probably would be a good idea to work it from the other end. Is the common.inc folder in the proper spot? .... were any mods made to the file path or anywhere else? I have had things like that happen to me, always found the mistake, typos, wrong path, misplaced quotes, could be anything. I'd need some screenshots.

                These particular files were tested, both by myself and others, no errors such as Don is seeing were found. I'm using more sub-folders in fleet...one for couplers and another for brakes.

                The log is curious...
                Information: MaximalPower not found in Diesel Engine Config, set at default value = 3019200

                Warning: Found an unexpected EOF, while reading an item started with a double-quote character. in C:\MSTS-1\Microsoft Games\Train Simulator\trains\trainset\SLI_GREENRIVER_FREIGHT\o penrails\..\..\Common.inc\Fleet\Standard_Freight_C oupler.inc:line 27

                Warning: Expected depth 0; got depth 2 at end of file (missing ')'?) in C:\MSTS-1\Microsoft Games\Train Simulator\trains\trainset\SLI_GREENRIVER_FREIGHT\o penrails\..\..\Common.inc\Fleet\Standard_Freight_C oupler.inc:line 27
                Maximal power is definitely included in all the diesel engine files, without seeing the file the best I can tell is that perhaps a parenthesis is missing somewhere? or a space has somehow slipped in.
                Cheers, Gerry
                "A mind is like a parachute. It doesn't work if it is not open." Frank Zappa
                It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.
                Forever, ridin' drag in railroad knowledge.
                Audi, Vide, Tace, Si Vis Vivere In Pace​

                https://www.trainsim.com/forums/filedata/fetch?filedataid=79656&type=medium​ https://www.trainsim.com/forums/filedata/fetch?filedataid=79654&type=small

                Comment

                • Don6218
                  1500 Post Veteran
                  • Jun 2009
                  • 1834
                  • Oshawa ON

                  #9
                  Originally posted by crstagg
                  Derek and Don,

                  You have not looked at the other end. Can Don verify that his Trainset folder has a sub folder named "Common.inc" with a sub folder named "Fleet" with a file named "Standard_Freight_Coupler.inc" ????

                  AND if those folders and file do exist, WHAT is on line 27?
                  Yes I do Charles. That is why I am puzzled that this is happening. I even re-downloaded the files to be sure it was not corrupt.
                  Common Inc Files.jpg

                  Comment

                  • Don6218
                    1500 Post Veteran
                    • Jun 2009
                    • 1834
                    • Oshawa ON

                    #10
                    Here is the file in question in ConText:
                    Common Inc Files Coupler.jpg

                    Comment

                    • R. Steele
                      3500 Post Veteran

                      • Feb 2013
                      • 3928
                      • known universe
                      • ORTS

                      #11
                      Originally posted by Don6218
                      Here is the file in question in ConText:
                      [ATTACH=CONFIG]77867[/ATTACH]
                      That would not cause a problem because it is in a comment line. It sure would cause a problem if incorrect quote marks were found in a working part of the file.
                      I just checked the upload in my archives and also downloaded the Green River conversion kit from the FL and that error in the comment line does not appear...so the big question is: how did it get there? and are there any other like it in the working files?

                      One thing to check...look at the default MSTS wagon -- 50Ft_COAL_DRGW_19699_LD.wag -- in the Green River freight folder ( NOT the OR wagon of the same name in the OpenRails folder ) and see if there are any errors in it. If there is, OR will cough up a warning in the log when it reads the data in the OpenRails folder.
                      The warning is misleading in that it leads one to believe that the error is to be found in the wagon (of the same name) in the OpenRails folder.
                      Last edited by R. Steele; 11-05-2019, 10:31.
                      Cheers, Gerry
                      "A mind is like a parachute. It doesn't work if it is not open." Frank Zappa
                      It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.
                      Forever, ridin' drag in railroad knowledge.
                      Audi, Vide, Tace, Si Vis Vivere In Pace​

                      https://www.trainsim.com/forums/filedata/fetch?filedataid=79656&type=medium​ https://www.trainsim.com/forums/filedata/fetch?filedataid=79654&type=small

                      Comment

                      • crstagg
                        4500 Post Veteran


                        • Nov 1999
                        • 4885
                        • Huntsville, AL
                        • Texan
                        • MSOR

                        #12
                        The error in the log file refers to line 27 in that file. You posted a picture of that file using ConText without line numbers turned on (On Context Menu choose Environment Options > Editor Tab > check Line Numbers middle of list). I tried to count the lines from your picture and it appears line 27 is the closing Paren for the Front Coupling section.

                        Again quoting log file:
                        Warning: Found an unexpected EOF, while reading an item started with a double-quote character. in C:\MSTS-1\Microsoft Games\Train Simulator\trains\trainset\SLI_GREENRIVER_FREIGHT\o penrails\..\..\Common.inc\Fleet\Standard_Freight_C oupler.inc:line 27


                        Warning: Expected depth 0; got depth 2 at end of file (missing ')'?) in C:\MSTS-1\Microsoft Games\Train Simulator\trains\trainset\SLI_GREENRIVER_FREIGHT\o penrails\..\..\Common.inc\Fleet\Standard_Freight_C oupler.inc:line 27
                        Note the first warning? "Found an unexpected EOF" Appears ORTS was expecting more data or a closing ")"

                        Could investigate more if you would post the actual file so that it could be looked at with Special characters turned on and/or converted to Hex to look for errors.
                        Charles

                        Comment

                        • crstagg
                          4500 Post Veteran


                          • Nov 1999
                          • 4885
                          • Huntsville, AL
                          • Texan
                          • MSOR

                          #13
                          Question for Gerry. Why is the entire text in the file indented?

                          What is the original download for this INC file?
                          Charles

                          Comment

                          • crstagg
                            4500 Post Veteran


                            • Nov 1999
                            • 4885
                            • Huntsville, AL
                            • Texan
                            • MSOR

                            #14
                            Gerry,
                            Note the second Comment line has "..\\..\\ then closes the quote with a ' not a "

                            Could that be causing ORTS to log a Warning?

                            NOTE: I just downloaded Open Rails Conversion Kit For DRGW Green River Name: drgwgreenriver_orkit.zip
                            which contains \\Common.inc\\Fleet\\Standard_Freight_Coupler.inc
                            Opened file in Context and found second comment to have:
                            Comment ( include ( "..\\..\\Common.inc\\Fleet\\Standard_Freight_Coupl er.inc" ) )
                            NOT
                            Comment ( include ( "..\\..\\Common.inc\\Fleet\\Standard_Freight_Coupl er.inc' ) )
                            as shown in picture of this file uploaded by Don.

                            Not having the ORIGINAL WAG or SLI Green River I cannot test to see if the "----' vice "----" cause the Warnings.
                            Last edited by crstagg; 11-05-2019, 11:24.
                            Charles

                            Comment

                            • crstagg
                              4500 Post Veteran


                              • Nov 1999
                              • 4885
                              • Huntsville, AL
                              • Texan
                              • MSOR

                              #15
                              Just guessing, but it appears that the ORTS Parser was looking for the closing Quote, read to the EOF and not having a Warning message for closing of a Quote logged a Warning for closing of a Paren. So the OpenRails coupler data was not read and the coupler data from the original WAG file was used.

                              BTW In post #14 the line I quoted from does not have a space between the l and the e in coupler. Don't know where that came from. T-S frequently adds carriage returns where there is none when one pastes maybe that is where it came from.
                              Charles

                              Comment

                              Working...