Scalerail Conversions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eolesen
    9500 Post Veteran and Administrator



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

    #46
    Scalerail Conversions

    If the Ecobyte method is too tedious, then maybe you should consider WFH. The only prerequisite is to have the .W files uncompressed.

    WFH is donation-ware, but the money doesn't go into my pocket. Make a donation to a railway museum, provide me with proof, and I'll send you the file after you agree to the EULA.

    // note: my EULA reserves the right to pick and choose who gets access to my programs, so check with me before assuming it will be released to you //
    Last edited by eric; 05-13-2015, 16:50.
    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

    • Bananarama
      5500 Post Veteran
      • Nov 1999
      • 5606
      • Another Planet

      #47
      Originally posted by OTTODAD
      I hate to twist your arm, Marc, but before Tim can release his updated Dynatrax he needs to have your new Scalerail profiles to make sure that they work in it and I have tested it, converting a X-Tracks route I have already laboriously tested doing a Scalerail one, using the Ecobyte REPLACE TEXT utility, which can not read UNICODE text, I have reported here having done it !
      Nonsense. Why on earth would Tim need my profiles in order to release DynaTrax? You'll be able to download the profile when it becomes available on my site.
      Cheers!

      Melanie - 3DTrains

      Comment

      • tsf
        New Member
        • Jun 2011
        • 13

        #48
        No, I won't be needing anyones profiles to release DynaTrax, not sure where that came from - it will only be released with a UKFS package for use with my own track system, plus a demo package to help those that want to create their own profiles.

        Hoping to release a version later this week, if all goes well


        Tim Booth

        http://www.trainsimfiles.uk/
        tim@trainsimfiles.uk

        Comment

        • OTTODAD
          1
          • Feb 2001
          • 32344
          • England
          • General

          #49
          Originally posted by eric
          If the Ecobyte method is too tedious, then maybe you should consider WFH. The only prerequisite is to have the .W files uncompressed.

          WFH is donation-ware, but the money doesn't go into my pocket. Make a donation to a railway museum, provide me with proof, and I'll send you the file after you agree to the EULA.
          Yes, I would like to try it but would like to reward you for having created it, like I have done with other creators of Freeware add-ons for Train Simulators !

          Comment

          • OTTODAD
            1
            • Feb 2001
            • 32344
            • England
            • General

            #50
            Originally posted by Hack
            Nonsense. Why on earth would Tim need my profiles in order to release DynaTrax? You'll be able to download the profile when it becomes available on my site.
            Because he has changed the way it will read and process them, the currently available ones for Scalerail and UK-Finescale *.profile files not being recognised by it !

            Comment

            • Bananarama
              5500 Post Veteran
              • Nov 1999
              • 5606
              • Another Planet

              #51
              Originally posted by OTTODAD
              Yes, I would like to try it but would like to reward you for having created it, like I have done with other creators of Freeware add-ons for Train Simulators !
              Thank you, Otto, but that isn't necessary.
              Cheers!

              Melanie - 3DTrains

              Comment

              • OTTODAD
                1
                • Feb 2001
                • 32344
                • England
                • General

                #52
                O.K., here is how I have converted DB-Tracks to be used by MSTS routes, renaming their filenames prefixes to equivalent ones used by X-Tracks. It should explain why Dynatrax must have Profiles which have been tested to work BEFORE it is being released !

                Code:
                [B]1) UNCOMPRESS A ROUTE's WORLD FILES.
                
                2) DYNATRAX ALL MSTS DYNTRACKS and CHECK THAT THEIR /Routes/ROUTE NAME/Shapes/ PATH IS CORRECT IN 
                    ITS WORLD FILES !
                
                3) TSUTILS SHIFT - MVEOBJ, USUALLY UP 0.15, MAKING SURE THAT THE APPROPRIATE TSECTION.DAT HAVING 
                    BEEN USED WHEN PLACING TRACKS IN TI IS ACTIVE AND AFTER HAVING DONE THE "SHIFT" RESTORE THE 
                    CURRENT ONE !
                
                4) TRANSFER THE CONTENTS OF THE ROUTE's "newRoute" FOLDER INTO THE ROOT OF ITS FOLDER, ALLOWING 
                    THE EXIStING ONES TO BE OVERWRITTEN.
                
                ====================================================================================
                
                27) Shift tracks, roads and route-objects ignoring quad-borders
                  This function "mveobj" shifts (all) objects of a route to another position an leaves the terrain unchanged. The
                  objects may me shifted an arbitrary value in all three dimensions ("dx","dh","dz"). However, objects cannot be
                  shifted out of the allover valid range of coordinates.
                  The value, which is used to shift the objects, is messured/specified in Meter but NO whole-number is requested.
                  The shift-accuracy is limited through TS and represents ca. 1/10000 m (position-values normally contain 5 decimal
                  places).
                  If the target of a shift-operation points to a tile, which is NOT defined, this tile may be generated using
                  default-values. However, tile-creation must be enabled using the local option '-g'. The height value of the
                  terrain, which is generated in this case, is deviated from the shift-value of height ("dh"). If option '-g'
                  is not active, an error is generated and the object is not moved.
                
                  The set of shifted objects of the route may be restricted to track- and track-connected-objects (also called
                  'interactive objects') using a local option. If shifting is additionally restricted NOT to shift road-objects,
                  it is essential that the relation between roads and tracks is still correct and valid. However, this
                  restriction must not be used, if the route contains 'LevelCr'-objects, because these objects are based on a
                  fix relation between tracks and roads. Attention! This is not checked from TSUtil.   
                
                  The call of this function looks as follows:
                    C>java TSUtil [{-e|-w}] [-k] [-l[<logfle>]] [-m<id>] [-p<p>:<path>] [-q<n>:<fref>] mveobj
                        [-g] [{-t|-T}[[<om>]:<s>] [-r]] [-v] [-w] <dir> <dx> <dh> <dz>
                  with:
                    "dir" contains (fully defined) path to route-definition
                    "dx" is the difference value(float), which is to be added to all X-positionvalues (East(+)/West(-)).
                        This value may be greater than 2048 or less than -2048.
                    "dh" is the difference value(float), which is to be added to all height-values. (Y-position)
                    "dz" is the difference value(float), which is to be added to all Z-positionvalues (North(+)/South(-)).
                        This value may be greater than 2048 or less than -2048.
                    If an object is shifted out of its current tile and the target-tile is NOT defined, an error is created
                        and the object ist NOT moved. If - on the other side - the option '-g' is specified, a
                        target-tile is created using default-values and the object is shifted into this quad.
                       Remark: The default terrain-definition of such a tile can be found in the ErrMsg-file (Key='TSTF*000')
                    If option '-t'/'-T' is specified, ONLY Track-, Road- and connected interactive objects like platformmarker,
                        signals, gantries, crossings, etc are shifted.
                
                        Sometimes gantry-objects are defined as 'static' within a route. In order to be recognized as
                        a 'track-connected' object, the gantry-definition must be used. (Use 'Gantry' within Ref-file)
                        In order to include explicitely selected objects, the '-t/'-T'-option may be followed by an objectmask
                        "om" and a selectpattern "s". The objectmask "om" contains exactly 4 hexadecimal digits and is used to
                        select the type of objects, which should be included. Refer to X-mask within annex A for a decription of
                        the correlation between mask and object-type. If an object should be included due to object-type the
                        filename of this object must additionally match the selectpattern "s". If '-t' is used, the filename
                        must start with the "s"-string to match this specification, otherwise - if '-T' is specified - "s"
                        contains a 'regular expression' (refer to Annex B), which must match the whole filename. Comparison is
                        NOT case-sensitive in both cases.
                        If an object do NOT contains a filename (like Platform), the selectpattern is not used and the object is
                        included.
                        The objectmask "om" may be omitted, if ONLY 'static objects' should be additionally selected. The
                        default-value of the mask in this case is '0008'.
                        Option '-t'/'-T' may be specified more than once.
                        Example: '-T0008:Pltf.*\.s' (or '-T:Pltf.*\.s') - Include static objects whose filename starts with
                            'Pltf' and is later followed by '.s'. 
                    if option '-r' is specified road-objects are NOT shifted. This option is ignored, if option '-t'/'-T' is not
                        specified.
                       Attention: DO NOT specify '-r'-option, if the route contains 'LevelCr'-objects.
                    If option '-v' is specified, correction of positionvalues from soundobjects is suppressed. Normally, this
                        function adjusts soundobjects due to their real positions. If this involves a new quad, which is
                        NOT defined, the position values are corrected instead so that the object remains in the current
                        quad. If this option is specified this correction is suppressed, so that the position of the objects
                        will remain unchanged in this case. Therefore these objects may create errors. 
                    If the shifting of objects fails because of errors, function 'mveobj' is terminated and NO outputdata is
                        written. However, if option '-w' is specified, outputdata (world-files,...) will be created in every
                        case. This may cause writing of incorrect data to the 'newroute'-directory. So these files should
                        be checked after activation. (e.g.'function 'ichk')
                    Concerning the global options, compare to 'Introduction'
                
                  e.g. ProTrain 1: "java TSUtil -lC:\Logdat.log mveobj -g C:\TRSim\routes\ProTrain_Rheintal"
                
                  Action(s) to use the results of the function:
                  *********************************************
                
                    - Move all folders and files from the created by TsUtils 'NewRoute'-directory into same route-directory of the 
                     route having been processed and allow them to be overwritten ![/B]


                Here is the content of one of the Batch files I have created for use by conversions of tracks in MSTS route
                s.



                I do that in routes GLOBAL folders to save having to change their BATCH files path names when using them in other MSTS MINIs !

                That should now provide all MSTS users with tracks they like the looks of !!!

                Needless to say that a BACK-UP of a complete Train Simulator folder must have been saved to somewhere else on HDs BEFORE attempting to make any changes to it !!!!!

                Comment

                • OTTODAD
                  1
                  • Feb 2001
                  • 32344
                  • England
                  • General

                  #53
                  Originally posted by Hack
                  Thank you, Otto, but that isn't necessary.
                  But is being appreciated by those I can not treat buying them a few drinks of XXXXXX !

                  Didn't I do that after you have allowed me to release your modified by me Scalerail used by Railworks ?

                  Comment

                  • kraus
                    1000 Post Veteran

                    • Jan 2001
                    • 1086
                    • Madison, Wisconsin
                    • General

                    #54
                    Originally posted by eric
                    Three files attached -- one Kuju to SRv1.0 comma separated cross reference, one ReplaceText formatted file, and a listing of the pieces that don't have a corresponding Scalerail section.

                    [ATTACH]66693[/ATTACH]

                    [ATTACH]66694[/ATTACH]

                    [ATTACH]66695[/ATTACH]
                    The two track shapes A1tPnt5dSRgtMnl.s and SR_1tSwt_w_m05dR.s do not have corresponding geometry. While the curves match the start of the curves are at different offsets from the origin so the track paths will not match the track shape.

                    Code:
                    TrackShape ( 29090
                     FileName ( A1tPnt5dSRgtMnl.s )
                     NumPaths ( 2 )
                     MainRoute ( 0 )
                     ClearanceDist ( 52 )
                     SectionIdx ( 1 0 0 0 0 30507 )
                     SectionIdx ( 2 0 0 0 0 30508 174 )
                     ManualJunctionShape ( )
                    )
                    TrackShape ( 32313
                     FileName ( SR_1tSwt_w_m05dR.s )
                     NumPaths ( 2 )
                     MainRoute ( 0 )
                     SectionIdx ( 1 0 0 0 0 180 )
                     SectionIdx ( 2 0 0 0 0 182 174 )
                     ManualJunctionShape ( )
                    )
                    TrackSection ( 30507
                     SectionSize ( 1.5 62.5 )
                    )
                    TrackSection ( 30508
                     SectionSize ( 1.5 0.412364 )
                    )
                    TrackSection ( 174
                     SectionSize ( 1.5 0 )
                     SectionCurve ( 655.007 5 )
                    )
                    TrackSection ( 180
                     SectionSize ( 1.5 80 )
                    )
                    TrackSection ( 182
                     SectionSize ( 1.5 17.912364 )
                    )

                    Comment

                    • OTTODAD
                      1
                      • Feb 2001
                      • 32344
                      • England
                      • General

                      #55
                      Here I have further tested converting the JAPAN1 to using Scalerail, but not having any Profiles for Dynatrax to convert MSTS Dyntracks to them had to use the wooden ties DB-Tracks, which of course have widened by me trackbeds and will be less obvious next to the new wider Scalerail trackbeds !

                      There are some problems doing it with the Replace Text, some listed in the conversion text lists tracks I have used not having been replaced, I could not be bothered to find out why and replaced them in all the route's World files using the UltraEdit-32 program.

                      [/COLOR]​http://www.otto-wipfel.co.uk/video/japan1-scalerail.wmv



                      Last edited by eric; 05-13-2015, 21:48.

                      Comment

                      • OTTODAD
                        1
                        • Feb 2001
                        • 32344
                        • England
                        • General

                        #56
                        This being the ORTS forum I ran it in ORTS to see what it looks like !

                        http://www.otto-wipfel.co.uk/video/japan1-scalerail-orts.wmv

                        Comment

                        • muskokaandtahoe
                          3000 Post Veteran

                          • Apr 2003
                          • 3003
                          • Silicon Valley, CA, USA.
                          • ORTS

                          #57
                          Just a bit of trivia for you Otto: the track gauge for almost all railroad lines in Japan is 3 feet 6 inches. IIRC the "Shinks" use 4 feet 8.5 inch gauge. Marc did make some 3.5ft track shapes but AFAIK they were never formally released to the public and the library of those shapes is rather small.

                          Japan is a great place to visit and ride trains. If you are healthy enough at your age to make the trip -- and can remain calm on those few occasions when it's a bit confusing -- I'm sure you would enjoy it quite a bit.
                          Dave Nelson
                          sigpic
                          Seldom visiting, posting less often that that.

                          Comment

                          • OTTODAD
                            1
                            • Feb 2001
                            • 32344
                            • England
                            • General

                            #58
                            Originally posted by muskokaandtahoe
                            Just a bit of trivia for you Otto: the track gauge for almost all railroad lines in Japan is 3 feet 6 inches. IIRC the "Shinks" use 4 feet 8.5 inch gauge. Marc did make some 3.5ft track shapes but AFAIK they were never formally released to the public and the library of those shapes is rather small.

                            Japan is a great place to visit and ride trains. If you are healthy enough at your age to make the trip -- and can remain calm on those few occasions when it's a bit confusing -- I'm sure you would enjoy it quite a bit.
                            I would love to and on the way visit Hong Kong and China and eat lots of my favorite Chinese food. Been meaning to do that for decades !

                            My daughter in law who grew up in Beijing and moved to the US to study computing is Chinese, but can't visit them anymore because of my health, so my son and grandchildren are coming to the UK to see me next month.

                            Comment

                            Working...