Train-Sim.Com
MSTS Route Design

Replacing default tracks with Scale Rail the Mousy way!

Notice to all visitors and members of the Train-Sim.Com message forums:
If you plan on using a signature banner in your posts, we would like to remind you that there is a maximum size for banners. That maximum is 450 pixels wide by 120 pixels high, and not to exceed 25k. Your compliance is appreciated. FORUM RULES Problems? There are two common reasons for problems with logging in and posting messages. The first is that you are running a firewall that prevents your messages from being sent to the server. The other is that you have cookies disabled; the DCForum software requires cookies to work properly.

Previous Topic | Next Topic

Printer-friendly copy Email this topic to a friend

Reading Topic #12337

Charter Member · 6896 posts

Well, Mousy was supposed to write a tutoriaI on this, I dunno where Mousy went, maybe a cat ate him. BAD putty-tat! A lot of people are hollering for replacement of tracks with ScaleRail (not "scalerails"!) in assorted routes, so here's the quick and easy way to do it.If you understand the route folder structure;http://www.train-sim.com/cgi/dcforum/dcboard.cgi?az=show_thread&om=4559&forum=DCForumID6&ar chive=yesYou'll know that what you actually drive on is the track database, contained in the root files RouteName.tdb and RouteName.tit. (For "RouteName" substitute whatever the name of the route is.) The track you actually see in the game is not there, it's in the \RouteName\World folder, in all the .w files.TrackObj (
UiD ( 2 )
SectionIdx ( 8 )
Elevation ( 0 )
CollideFlags ( 551 )
FileName ( A2t100mstrt.s )
StaticFlags ( 00200180 )
Position ( -781.388 -0.873085 -932.009 )
QDirection ( 0 0.0872863 0 0.996183 )
VDbId ( 4294967294 )
StaticDetailLevel ( 0 )
)I can replace that shape file name with anything in the global shapes folder, or alias it back to the route's shapes folder;TrackObj (
UiD ( 2 )
SectionIdx ( 8 )
Elevation ( 0 )
CollideFlags ( 551 )
FileName ( ../../Routes/Portogden9B/Shapes/US2farm.s )
StaticFlags ( 00200180 )
Position ( -781.388 -0.873085 -932.009 )
QDirection ( 0 0.0872863 0 0.996183 )
VDbId ( 4294967294 )
StaticDetailLevel ( 0 )
)And since the track database is unaffected, the train will drive as tho it was on the a2t100 meter straight track.Replacing default tracks with Scale Rail the Mousy way! – image 1This gets even wierder, the information for the advanced TDB rebuild is not taken from the shape file, it's taken from the position and Qdirection lines, the shape file is totally ignored by the TDB rebuild. So even with that barn in place of a track section a TDB rebuild would work exactly the same, provided I don't change the position and Qdirection lines.So all the default track shapes in a route can be replaced with the Scale Rail equivelant sections by using Route Riter's "Replace Shape in W" button. First off you need the Scale Rail beta from www.3Dtrains.com , plus Route Riter from the file library installed. Before starting, did you make a backup copy of the \World folder from the route? Good for you, now make another backup just to be sure!Here's mousy's list;http://www.train-sim.com/dcforum/User_files/4119a42044767e28.txtThat's only a partial, and for concrete ties substitute a "c" for the "w", SR_1tStr_w_010m.s is a 10 meter straight with wood ties, SR_1tStr_c_010m.s is the same with concrete ties. To do this, get an idea of what track sections are actually used in the route;Replacing default tracks with Scale Rail the Mousy way! – image 2Or just go down the list and replace them all.Replacing default tracks with Scale Rail the Mousy way! – image 3Route Riter won't hurt anything if you try to replace a non-existant shape, it will just skip past it, so replacing a 5d left switch when you don't have any 5d left switches in the route will just make it skip past the replacement.After each track section is replaced with the equivelant ScaleRails section, there's no need to rebuild the TDB, since each ScaleRail that has an equivelant default is the same dimensions as the default it replaces. I did nothing more than use mousy's compiled list of equivelant track sections, and ran down the list typing the first shape in the top box and second in the bottom, then hit okay for each one.Manual replacement of switches with linked signals requires clicking on a switch, removing all the links, deleting the switch, placing the new switch and aligning and elevating as necessary, then relinking all the signals. Then move on to the next switch and do it again, and so on ad tedium. "Replace Shapes in W" will just go thru and replace every instance of the shape, no need to unlink and relink signals or T flip or adjust for grade.Only word of warning, the "Okay" button should be considered the plunger for a detonator, and you should make sure you have the correct corresponding shape in each window before clicking Okay. It's easy to get a rythym going to make the process fast, but if you copy "A1tPnt10dRgt.s" from Mousy's text and paste into the top window, then copy "SR_1tSwt_w_a10dR.s" and paste in the bottom window, click Okay, you just replaced all the automatic 10d right switches in the route with 10d right ScaleRail autoswitches. If you now select "A1tPnt10dLft.s" and paste into the top window, get distracted and click Okay before copying and pasting "SR_1tSwt_w_a10dL.s" in the bottom window, then you just replaced all the 10d left autoswitches with 10d right ScaleRail autoswitches, since "SR_1tSwt_w_a10dR.s" was still in the bottom "replace with" window. If that happens there's no undo, so other than going thru the whole route and replacing by hand, the only fix is to restore the backup W files and start over. Best bet is to doublecheck that you have the right filenames in the right windows before clicking okay each time. Taking a break and backing up the partially completed W files is a good idea, you can pick up where you left off without any problem. The whole process should take less than an hour even on the biggest routes.After replacing all the "snap track" sections, if you're really ambitious you can go thru the route deleting all the dynamic track and replacing with the odd short curve and straight sections of Scale Rail, still a lot faster than replacing everything by hand. If you run across a whole bunch of 45 yard curves or something that you forgot to replace, just save, exit the route editor, and fire up Route Riter again to replace that one shape.Those of you with Port Ogden & Northern version 8 can get a replacement set of W files here:http://www.train-sim.com/dcforum/DCForumID3/24290.html

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

RE: Replacing default tracks with Scale Rail the Mousy , jdtrainman, Aug-11-04, 02:12 AM, (1) RE: Replacing default tracks with Scale Rail the Mousy, robertreedy, Aug-16-04, 08:53 PM, (2) RE: Replacing default tracks with Scale Rail the Mousy, sniper297, Aug-16-04, 11:50 PM, (3) RE: Replacing default tracks with Scale Rail the Mousy , OkrasaGhia, Aug-17-04, 11:11 AM, (4) RE: Replacing default tracks with Scale Rail the Mousy, sniper297, Aug-17-04, 01:24 PM, (5) RE: Replacing default tracks with Scale Rail the Mousy, OkrasaGhia, Aug-18-04, 10:33 AM, (6) RE: Replacing default tracks with Scale Rail every whic, yellowdog, Nov-17-04, 12:33 PM, (7) RE: Replacing default tracks with Scale Rail the Mousy, robertreedy, Nov-17-04, 05:50 PM, (8) NUKE THE WEENIES!!, sniper297, Nov-18-04, 00:39 AM, (9) RE: NUKE THE WEENIES!!, OTTODAD, Nov-18-04, 08:36 AM, (10) It's all fun and games til someone loses his weiner, yellowdog, Nov-18-04, 10:09 AM, (11) RE: It's all fun and games til someone loses his weiner, yellowdog, Nov-18-04, 11:15 AM, (12) RE: It's all fun and games til someone loses his weiner, robertreedy, Nov-18-04, 11:25 AM, (13) RE: It's all fun and games til someone loses his weiner, yellowdog, Nov-18-04, 12:50 PM, (14) RE: It's all fun and games til someone loses his weiner, robertreedy, Nov-18-04, 05:40 PM, (15) RE: It's all fun and games til someone loses his weiner, yellowdog, Nov-19-04, 11:01 AM, (16) RE: It's all fun and games til someone loses his weiner, westerngy, Nov-19-04, 12:59 PM, (17)

Conferences | Topics | Previous Topic | Next Topic

Member since Apr-8-03 · 1632 posts

RE: Replacing default tracks with Scale Rail the Mousy

Sniper sayeth: "the "Okay" button should be considered the plunger for a detonator, and you should make sure you have the correct corresponding shape in each window before clicking Okay."NOT to mention the absolute required complete and SAFELY STOWED AWAY back-up of your route BEFORE you attempt to do something this major.I KNOW that ol' "sinkin' feeling" FAR too well....Back up, my children.... Back up!JBD

Jim Duncan
Midwest Rail Group

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 1533 posts

RE: Replacing default tracks with Scale Rail the Mousy

Click to send message via ICQ

... and CHECK your backups! Had some beautiful and timely backups .. not one of them any good. Fortunately it was just doing some testing, but could have been disastrous.RobertR .. ADF-M&RM at http://www.adfrr.com

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 6896 posts

RE: Replacing default tracks with Scale Rail the Mousy

Coulda sworn that was in the hacker's 10 commandments somewhere, yeah, here it is, #1:Thou Shalt Always backup thy files before thou hacketh, plus subdirectories, yea verily shalt thou even back up subdirectories unless thou art willing to repeat all thy labors endlessly.

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 1619 posts

RE: Replacing default tracks with Scale Rail the Mousy

Replacing default tracks with Scale Rail the Mousy way! – image 4

That replacement thingy Horace can do also and in batches of five at a time. Added benefit is you get to select the 'with' shape from a list of existing sections. Reduces the risk for misstakes, Horace only works with track shapes though.
Public beta of the new Horace which takes less than half a century to run will soon be posted to a forum near you.


//Okrasa
Chief Engineer
okrasa @ xtracks.tk
http://www.geocities.com/okrasaghia
http://www.xtracks.tk

Replacing default tracks with Scale Rail the Mousy way! – image 5

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 6896 posts

RE: Replacing default tracks with Scale Rail the Mousy

I had to chew on that for a while, "in batches of five at a time", meaning if I have 500 10d left manual switches I want to replace with 500 Scale Rail or UKfinescale 10d left manual switches, I'd have to repeat the replacement 100 times? Or do you mean it will replace 5 different track shapes with 5 other different track shapes (hopefully without mixing them up) at one time in the entire route?

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 1619 posts

RE: Replacing default tracks with Scale Rail the Mousy

Replacing default tracks with Scale Rail the Mousy way! – image 6

I meant the second, replacing five different shapes with possibly five other shapes (or the same) in the entire route and without mixing them up. Caveat is the current version will also go over all dynamic track sections to make them confirm with the global tsection.dat but that can easily be changed to make it optional.


//Okrasa
Chief Engineer
okrasa @ xtracks.tk
http://www.geocities.com/okrasaghia
http://www.xtracks.tk

Replacing default tracks with Scale Rail the Mousy way! – image 7

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 1891 posts

RE: Replacing default tracks with Scale Rail every whic

At the risk of being shot, I'm dredging up an old thread. OK, Snipe, I understand everything in your post but this:"Manual replacement of switches with linked signals requires clicking on a switch, removing all the links, deleting the switch, placing the new switch and aligning and elevating as necessary, then relinking all the signals. Then move on to the next switch and do it again, and so on ad tedium."Could you give us the weanie-level version of this explanation? Thanks!!

Clayton

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 1533 posts

RE: Replacing default tracks with Scale Rail the Mousy

Click to send message via ICQ

LAST EDITED ON Nov-17-04 AT 05:51 PM (EST)

Clayton, your answer is somewhat hidden in the last part of the paragraph.>Manual replacement of switches with linked signals requires
>clicking on a switch, removing all the links, deleting the
>switch, placing the new switch and aligning and elevating as
>necessary, then relinking all the signals. Then move on to
>the next switch and do it again, and so on ad tedium. This is what you would have to do if doing it manually.>"Replace Shapes in W" will just go thru and replace every
>instance of the shape, no need to unlink and relink signals
>or T flip or adjust for grade. This is doing it by RR replacement. No need to unlink and relink or do anything. Just replace.Hope this makes sense.RobertR .. ADF-M&RM at http://www.adfrr.com

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 6896 posts

NUKE THE WEENIES!!

By a "weenie" explanation I assume you mean simplified, and since a picture's worth a whole package of hot dogs;Replacing default tracks with Scale Rail the Mousy way! – image 8To replace this switch with a Scale Rail switch in the traditional route editor method, I have to delete the switch and then place a Scale Rail switch where it was. As soon as I select the switch tho, I get the linked signal message, so I have to unlink the signals to select and delete this switch. Then I place the new switch, and have to relink the signals as they were before without making any m!$t@ke$. Some switches have one doublehead signal linked thru the base, others have more than one signal - and multiply this process by hundreds of linked switches in the route, and it's obvious that a global replacement is (A) a lot faster, and (B) considerably more Murphy proof, since each switch you do manually increases the odds that you're gonna relink one of them signals sdrawkcab.Add to all that the usual gremlins in the route editor, replacing a linked switch the normal way affects three files;http://www.train-sim.com/cgi/dcforum/dcboard.cgi?az=show_thread&om=4559&forum=DCForumID6&archive=yesThe .w file for the visual display of the actual shape,
The .tdb for the paths,
The .tit for the signal links.One little system crash and you got them unholy "out of synch" errors.
By using Route Riter to just replace the shapes, the .tdb and .tit files aren't affected.

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 6236 posts

RE: NUKE THE WEENIES!!

Hi Jim !The way I read it is that simply replacing a track section with another of identical Tsection.dat dimensions does not cause problems with either .tdb nor .tit files, their and their associated interactive objects positions and characteristics not changing as fas as they are concerned.ROUTE RITER 6.1.35 has now a function to list all the track and road shapes used in a route, taken from the World files, a useful starting point for replacing them manually with HORACE or a "Search and Replace in Files" Text Editor like UltraEdit-32.But doing this one can only use either concrete or wooden ties for the entire route, not knowing whether ScaleRail replacements are for Mainline or older type lesser used tracks. And then there are also DYNtrack sections to be replaced !Been thinking about creating a list of all ScaleRail tracks and their Xtracks equivalents but looking at their ever growing range am having second thoughts ! Take Care, O t t o.

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 1891 posts

It's all fun and games til someone loses his weiner

LAST EDITED ON Nov-18-04 AT 10:10 AM (EST)

No, no, NO!! I said the "WEANIE-level" version, not the "WEENIE-level" and CERTAINLY not the "You-Have-To-Use-The-RE-To-Do-This,-SUCKER" version!! (Although you're probably right, I probably should have put WEENIE instead of WEANIE, but you probably should have used WEINIE instead of WEENIE--now I'm all confused).Ah, I guess I'll have to dig around in the RE after all. This is NOT good. . . EDIT: "in the RE" wouldn't fit at the end of my Subject line. See, the RE just ruins ALL my fun!

Clayton

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 1891 posts

RE: It's all fun and games til someone loses his weiner

Oops, I just re-read that post and it didn't sound as funny as it did in my head when I was typing it. I suppose I should have put in lots of , , and to offset the other parts of the post. Oh well.

Clayton

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 1533 posts

RE: It's all fun and games til someone loses his weiner

Click to send message via ICQ

Clayton, Sniper, unless I'm totally mis-reading this .. Clayton you don't have to touch the RE. You simply search and replace the one shape with its corresponding shape in Route-Riter. This keeps from having to go in and do it all manually.If this is not correct .. then I have a full bag of wienies, weenies, vieners or whatever you wish to call them ready to eat. Beats crow any day RobertR .. ADF-M&RM at http://www.adfrr.com

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 1891 posts

RE: It's all fun and games til someone loses his weiner

Hey, Robert, I think it's just the switches that have me weiner-fied. Looks like everything else is pretty simple to do with Route Riter. There's ALWAYS a catch!!

Clayton

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 1533 posts

RE: It's all fun and games til someone loses his weiner

Click to send message via ICQ

Clayton, know what you mean about always a catch! However, if I'm not totally out of the ball park on this one (haven't done it yet), I think the switches can be replaced the same as the normal track without having to do anything in the RE. The only time you would have to unlink, relink etc. is if you would do it manually (in the RE). Route-riter is definitely the only way to go on something like this.RobertR .. ADF-M&RM at http://www.adfrr.com

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 1891 posts

RE: It's all fun and games til someone loses his weiner

May as well give it a go, eh? As long as I'm backed up, I can always just reload the route. Thanks, guys!

Clayton

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Member since Jul-18-02 · 539 posts

RE: It's all fun and games til someone loses his weiner

Clayton just to throw something else at you I used search and replace by FUNDUC to change the Blackfoot Sub to scalerail.Took about 1-2 hrs to do after some hick ups things went smooth as silk.Just Rollin Down The Tracks
Replacing default tracks with Scale Rail the Mousy way! – image 9
Dale

Alert | IP


[ Home | MSTS Forum | MSTS FAQ | How To... | File Library ] Copyright © 2004 by Nels Anderson. All Rights Reserved.

Restored from the Train-Sim.Com archive, captured November 22, 2004. About this archive.