Quad Tree location?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • charland
    3000 Post Veteran


    • Dec 2006
    • 3107
    • Brockville, ON, CA
    • General

    #1

    Quad Tree location?

    I'm extending the DAR)56 route south to Yarmouth. When I added the new tiles south of Coldbrook I forgot to add the 34 ft offset so my new version drops straight down around Waterville. I need to go back to the quad tree used by the DAR_56 route to correct my mistake and rename it DAR_56v2. I can't find out where Quad Trees are stored.... any idea?

    Paul :-)
  • kapitaen
    Senior Member

    • May 2010
    • 331
    • Germany
    • German + a little bit English
    • MSOR

    #2
    The square structure is saved in the td folder: x+x.td and td_idx.dat for the standard terrain, and x+x.tdl and lo_td_idx.dat for the Distant Mountains.

    Jan
    You can open them in tsdataex.exe in the ROUTE GEOGRAPHY CREATOR folder even if MSTS is no longer working.

    Comment

    • charland
      3000 Post Veteran


      • Dec 2006
      • 3107
      • Brockville, ON, CA
      • General

      #3
      Thanks Jan,

      Just trying to start from the older route now, might have a look at your files just to learn how they work... if this doesn't work out might have to try anyway!

      Paul :-)

      Comment

      • charland
        3000 Post Veteran


        • Dec 2006
        • 3107
        • Brockville, ON, CA
        • General

        #4
        Well my problem is that the new tiles need to be raised 34 feet and even though I set that in Options, when they generate they are not coming up. I'm not sure what I'm doing wrong.

        Paul

        Comment

        • kapitaen
          Senior Member

          • May 2010
          • 331
          • Germany
          • German + a little bit English
          • MSOR

          #5
          If you create the tiles using the ROUTE GEOGRAPHY CREATOR, you must then create the terrain buffers using the MSTS RouteEditor. If you use elevation data, you can also create the tiles in the TSRE. There is also an offset option available there.
          Jan

          Comment

          • charland
            3000 Post Veteran


            • Dec 2006
            • 3107
            • Brockville, ON, CA
            • General

            #6
            Morning Jan,

            I've been doing that... over and over and the new 1100+ tiles are just not coming up to the height of the rest of the tiles. I've done this about eight times over the years and never had a problem until now. I'm going to make another copy and make a fresh step of tiles and hope they will be set to the correct height.

            Paul :-)

            Comment

            • charland
              3000 Post Veteran


              • Dec 2006
              • 3107
              • Brockville, ON, CA
              • General

              #7
              This just boggles my mind. I've been starting to add tiles south of the DAR_56 route to add the southern tiles to Yarmouth from the DARv3 route. All these routes were extensions of the original DAR route that because of the tide was set to 34 feet about the default 1M tile height.

              I started adding the new tiles in Route Geometry Extractor, adding them to the DAR_56 route (a copy of course). Opened the route and found the new tiles were at the default height and not the adjusted height of 34 feet they were created at. After playing around at this for a day I just tried something different. I started off with the tiles from the DARv3 route. I checked the height from south of Coldbrook and everything looked right on. That meant that all the tiles from the new DAR_56 portion of the route were not adjusted as they were and I should have been able to copy and paste the tiles from that route into the folder of the combined route and everything should have been OK. Well, the elevation of the tiles on the new DAR_56 route were correct but the elevation of the tiles on the portion of the route south of Coldbrook dropped 34 feet.

              Paul

              Comment

              • scottb613
                2500 Post Veteran


                • Apr 2003
                • 2848
                • Downeast Maine (soon)
                • ORTS

                #8
                Hi Paul,

                While I can’t help you immediately - I’m away until the 19th - my Lidex app already shifts terrain on the X and Y compass heading axis - it should be pretty straight forward to shift Z for altitude as well - performing seamless edge matching between old and new. If it’s still an issue for you next week - I’ll take a look when I’m back in front of my PC.

                Regards,
                Scott
                <a href=https://www.trainsim.com/forums/filedata/fetch?filedataid=80663&type=full title=thumb_80663.png >thumb_80663.png</a>​ My Blender Models

                Comment

                • charland
                  3000 Post Veteran


                  • Dec 2006
                  • 3107
                  • Brockville, ON, CA
                  • General

                  #9
                  Hi Scott,,

                  Is you app available and do you think it will work on a Windows 7 computer? I'm running out of things to try!

                  Paul :-)

                  Comment

                  • scottb613
                    2500 Post Veteran


                    • Apr 2003
                    • 2848
                    • Downeast Maine (soon)
                    • ORTS

                    #10
                    Hi Paul,

                    I need to make code changes when I get home to support shifting terrain vertically - it doesn’t do that yet.

                    Regards,
                    Scott
                    <a href=https://www.trainsim.com/forums/filedata/fetch?filedataid=80663&type=full title=thumb_80663.png >thumb_80663.png</a>​ My Blender Models

                    Comment

                    • charland
                      3000 Post Veteran


                      • Dec 2006
                      • 3107
                      • Brockville, ON, CA
                      • General

                      #11
                      OK Scott,

                      I have one or two more ideas to get this to work so I'll keep tinkering with it but I'm guessing I'll end up waiting for your program when you have time.

                      Thanks,, Paul :-)

                      Comment

                      • charland
                        3000 Post Veteran


                        • Dec 2006
                        • 3107
                        • Brockville, ON, CA
                        • General

                        #12
                        I think I have this figured out. It's been two and a half years since the last time I merged routes and I think this time I've been just doing things out of order. Should have the route extended this morning.

                        Paul :-)

                        Comment

                        • kapitaen
                          Senior Member

                          • May 2010
                          • 331
                          • Germany
                          • German + a little bit English
                          • MSOR

                          #13
                          Sorry for bringing this up again.
                          I created a new route for a friend and ran into some issues with GeoExtractor in the process. Have you tried removing the tiles that need to be raised before recreating the route? (I didn't mean to say “delete”—You can simply move them somewhere else before anything else goes wrong.) In any case, I thought that existing tiles weren't being recreated properly.

                          Jan

                          Comment

                          • charland
                            3000 Post Veteran


                            • Dec 2006
                            • 3107
                            • Brockville, ON, CA
                            • General

                            #14
                            Hi Jan,

                            I tried pretty much everything people suggested and then ended up doing it manually for the 140 some miles of track. I had to select each tiles one at a time and raise it 68 feet using TSRE, so that's about 7 tiles east to west a for every 1 tile I went south. I thin went to DEMEX and created new tiles for the southern half of the route. I opened the route in MSTS RE and the tiles were at the same altitude as the ones for the northern half of the route. I copied the Tiles from the DARv3 route to the DAR_56 route, then did the same with the last save of the DAR_56 route and everything is fine now.

                            Paul :-)

                            Comment

                            Working...