Train-Sim.Com
MSTS Route Design

Message Areas - "how to Edit the *.s files"

Train-Sim.Com Message Areas

"how to Edit the *.s files"

Email this topic to a friend
Printer-friendly version of this topic
Bookmark this topic (Registered users only)
Previous Topic | Next Topic Conferences MSTS Route Design (Protected) Original message
Motley24Crue2 (487 posts)
Apr-01-02, 08:43 PM (EST) "how to Edit the *.s files" ok from this site it explains what to do when you have Disappearing objectshttp://www.geocities.com/okrasaghia/dokuments/making.htmbut now how do i open the S file to edit it, when i open it in word it is Scrambled?Thanks Bob
Philadelphia, Pa Alert Edit | Reply | Reply With Quote | Top
Table of Contents

Subject Author Message Date ID RE: how to Edit the *.s files jleslie Apr-01-02 1 RE: how to Edit the *.s files Motley24Crue2 Apr-01-02 2 RE: how to Edit the *.s files zbobg Apr-04-02 3 RE: how to Edit the *.s files jleslie Apr-04-02 4

Lobby | Topics | Previous Topic | Next Topic
Messages in this topic
jleslie (128 posts)
Apr-01-02, 10:17 PM (EST) 1. "RE: how to Edit the *.s files" You have to use wordpad, it's in unicode like the other files are. I just went through this with a non-track object and did some experimenting and here's what I found. The same principle from the post about track didn't apply to this object. The object is a passenger platform, 250m long x 14m wide x .5m high. It was disappearing when viewed at either end. Here's the vector line that TSM gave it:vector ( 49.9964 0.25 0 ) 75.3241Here's the one I gave it to make it stop disappearing:vector ( 0 0 0 ) 250Don't ask me what all that does, I just played around with the numbers and found out what worked. The 250 just happens to be the exact length of the platform.I discovered this purely by accident. I don't know if it's right or not, but it works.Jeff Leslie Remove | Alert Edit | Reply | Reply With Quote | Top
Motley24Crue2 (487 posts)
Apr-01-02, 10:24 PM (EST) 2. "RE: how to Edit the *.s files" heh you know what that worked like a charm, thank you Bob
Philadelphia, Pa Remove | Alert Edit | Reply | Reply With Quote | Top
zbobg (6 posts)
Apr-04-02, 03:51 AM (EST) 3. "RE: how to Edit the *.s files" I have found that TSM is very dumb about the visibility. Open the '.s' file and find the vector line. In TSM find the largest dimension in the x, y or z axis - that is the point farthest away from the origin in any axis - positive or negative. Ignore the sign of the value. Take that value and multiply by 1.12 (this is 12% larger than the actual value) and replace the last number in the vector line with this new value (replace the number that is outside of the parens). If you have an '.s' file with multiple vector lines you'll have to guess which one to change - I believe only one may need to be changed - change one and test it and repeat as necessary.When you have parts in TSM that do not have their axis origin set to 0,0,0 you have to guess at the largest dimension. You can temporarily set the part axis to the origin to get a largest dimension and then set it back to 'axis to part'. I'm not certain but I think the origin you measure from is the origin of the main parent part which may have an origin that is not 0,0,0 although I make parts with their parent part's origin always at 0,0,0.Bob...Bob... Remove | Alert Edit | Reply | Reply With Quote | Top
jleslie (128 posts)
Apr-04-02, 07:59 AM (EST) 4. "RE: how to Edit the *.s files" I tried the 1.12 on an object that I noticed is a very good example for disappearing objects. I also tried the formula from Okrasa's link in the top post. Neither worked, the object still disappeared.The object is from the Bodiddly (Ohio & West Virginia RR), and it is the Victorian_block.s object.Here is what the vector line looks like out of the box:vector ( 25.7593 4.572 -0.00095125 ) 12.9573if you double the 3rd number or go 10% or 12% over that, you still end up with a negative number. None of those worked.I tried changing the 3rd number to 0, that didn't work either.I tried multiplying the largest number (25.7593) by 1.12 (25.850416) and replacing the number outside the parens with that, leaving everything inside the parens as in original. Didn't work.Then I doubled the 25.7593, but instead of using the calculator I just rounded it to 50, and it looked like this:vector ( 25.7593 4.572 -0.00095125 ) 50That finally did the trick, except that when the object is in the lower left corner of the screen looking at the front of the object, it disappears with about 10 pixels of the object left in the screen. Hardly even noticeable.Then I went for overkill, replaced the 50 with an arbitrary number 789. No change over the results with the 50.Also tried the exact double of the largest number (51.5186) outside the parens just to make sure, but no change over 50. Went down to 1.5 times the largest number (38.63895), same result as the 50. 1.25 times the number (32.199125) was a no-go, might as well have been the out-of-box value.Replaced everything in parens with 0's ( 0 0 0 ) leaving the 50 outside. Same result as above along the long axis with the 50, but now along the short axis it disappeared as soon as it hit the outer 1/3 of the screen.That's all the experimenting I did, so my conclusion is that somewhere around 50% over the largest value IN the parens should be the value that goes OUTSIDE the parens. It apparently doesn't matter how much over that 50% you go, as long as it's at least 50% higher.I have a feeling that some objects may be different, so this theory may not work with all objects. See my first post in this thread for the results there. I haven't gone back and tried the 50% thing with that yet.TSM and 3D Canvas give you entirely different vector values for the same object, so more study into that may be needed.Jeff Leslie
Remove | Alert Edit | Reply | Reply With Quote | Top

Lock | Archive | Remove

Lobby | Topics | Previous Topic | Next Topic

Restored from the Train-Sim.Com archive, captured June 14, 2002. About this archive.