Retaining Car Numbers in Consists.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dkingsburg
    Senior Member
    • May 2010
    • 564
    • Cabot, Arkansas
    • MSOR

    #1

    Retaining Car Numbers in Consists.

    I Running TSRE Consist Editor v0.7.012. When I Make Changes to a Consist and the Original Consist Numbers we're 0-1,0-2 ect. If I Change the Car the Replacements Don't Match the Original so I Might Have 0-1 and now the Second Car is 0-15. Is there A Way to Reset the Number Sequence back to 0-1,0-2 ect?
    Thankyou,
    DaveK
  • derekmorton
    5500 Post Veteran



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

    #2
    Not at this time, other than doing it by hand.

    Comment

    • eric
      9500 Post Veteran and Administrator



      • Dec 2002
      • 9583
      • NS MP245.4 CNO&TP South District
      • English, SQL
      • General

      #3
      Correct... the NextWagonUID () value always gets incremented by one, so if you make lots of changes, the UID's will always be a little out of whack with the number of cars in the consist.

      There's an option to Open Consist in External Editor, which is basically Notepad. You could easily adjust the numbers that way, but it's not automatic as Derek mentions.
      If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, or items available in our library, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

      Comment

      • R. Steele
        3500 Post Veteran

        • Feb 2013
        • 3928
        • known universe
        • ORTS

        #4
        I keep a copy of ConBuilder for the purpose of sequencing the car numbers. Otherwise, I don't use it much anymore. There's a version of ConBuilder in the file library.

        cb249.zip
        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

          #5
          Yes, renumbering UiD is one of the tools ConBuilder has that TSRE-CE has not implemented. However, using ConBuilder for this function may not work as intended if the consist includes ENG or WAG files that use Include statements as ConBuilder may not load those items into the editor.
          Charles

          Comment

          • eric
            9500 Post Veteran and Administrator



            • Dec 2002
            • 9583
            • NS MP245.4 CNO&TP South District
            • English, SQL
            • General

            #6
            Let me see what I can do.... I've got functions in WorldFileHacker that renumber UID's, and this could be salvaged into a standalone utility.

            To be clear on the outcome --
            • All UID's would be renumbered consecutively from 0 to N
            • A new NextWagonID () would be generated
            Out of the box, my renumber function would not distinguish between engines and wagons, so DPU's and power cars at the end of the train would receive the next highest number available.

            Is there a need to keep engines numbered with the lowest numbers, and then wagons?

            Not a promise to actually solve this, but I'll take a look in my downtime.
            If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, or items available in our library, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

            Comment

            • crstagg
              4500 Post Veteran


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

              #7
              Originally posted by eric
              Let me see what I can do.... I've got functions in WorldFileHacker that renumber UID's, and this could be salvaged into a standalone utility.

              To be clear on the outcome --
              • All UID's would be renumbered consecutively from 0 to N
              • A new NextWagonID () would be generated
              Out of the box, my renumber function would not distinguish between engines and wagons, so DPU's and power cars at the end of the train would receive the next highest number available.

              Is there a need to keep engines numbered with the lowest numbers, and then wagons?

              Not a promise to actually solve this, but I'll take a look in my downtime.
              Your Bullets are exactly what CoinBuilder does when the Renumber tool is invoked.
              Charles

              Comment

              • dcarleton
                1000 Post Veteran


                • Nov 2008
                • 1004
                • MSOR

                #8
                Or...
                You can load the consist into TSRE-CE and use the button that reverses the order of the consist. That will also renumber the consist from the caboose to the engine, 0 to N. Then use the same button again, and it will renumber the consist from the engine to the caboose, 0 to N. Problem solved!

                Comment

                • R. Steele
                  3500 Post Veteran

                  • Feb 2013
                  • 3928
                  • known universe
                  • ORTS

                  #9
                  Originally posted by dcarleton
                  Or...
                  You can load the consist into TSRE-CE and use the button that reverses the order of the consist. That will also renumber the consist from the caboose to the engine, 0 to N. Then use the same button again, and it will renumber the consist from the engine to the caboose, 0 to N. Problem solved!
                  Ahhhh...so that's how that button works. Something new all the time.
                  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

                  • eric
                    9500 Post Veteran and Administrator



                    • Dec 2002
                    • 9583
                    • NS MP245.4 CNO&TP South District
                    • English, SQL
                    • General

                    #10
                    If that works, there's no need for a new tool...

                    Now that I've tested it... there's an issue. It also appears to have de-duped the consist -- my 2 engines + 10 car consist became 1 engine + 5 cars...

                    Disregard. It works great. Reverse, save, reverse, save, and the UID range gets compressed and renumbered.
                    Last edited by eric; 09-27-2023, 15:51.
                    If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, or items available in our library, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

                    Comment

                    • dkingsburg
                      Senior Member
                      • May 2010
                      • 564
                      • Cabot, Arkansas
                      • MSOR

                      #11
                      Thankyou for the Help, I'll try it and see if it Works for Me!
                      DaveK

                      Comment

                      Working...