Train-Sim.Com
MSTS Locomotive Design

Comments in the .sd file?

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 #6778

Member since Apr-8-03 · 220 posts

Comments in the .sd file? – image 1

Anybody know if there is a safe way to insert comments into an .sd file? I'd like to insert a line holding the name of the person who created the shape and/or the downloaded filename.Dave Nelson Comments in the .sd file? – image 2 Aug 1950

Alert | IP

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

Charter Member · 4695 posts

RE: Comments in the .sd file?

Congratulations, a first time question. Never thought about it, but it struck me that any unicode file oughtta accept
comment (blah blah blah)
just like any other one does. Not the case tho, I added that just below the header, and got "failed to load extended shape data". Possibly looking at the coding more closely would help, maybe I'm not closing the comment properly (I DID manage to make that 64k "hello.com" work in a C++ tutorial, but that's the only thing I ever wrote in C code that actually worked!). Don't seem to matter if you add it after the ESD bounding box and then the ")" under that, since I believe that last close parenthesis is an "end of file" marker. Possibly anything under that would be ignored even without the "comment (yada yada yada)" format, I dunno. But with a comment under that last parenthesis it does work, hitting CTRL and keypad + brings up the bounding box lines, so it's obviously reading that last line correctly.

Attachments
Comments in the .sd file? – image 3
http://www.train-sim.com/dcforum/User_files/3ee931f70e3313d9.jpg

Alert | IP

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

Charter Member · 112 posts

RE: Comments in the .sd file?

LAST EDITED ON Jun-13-03 AT 01:38 PM (EDT)

the conventanal method works in all utxt related to msts1 even .s and .w files witch have been compresed, maker markersESD_Detail_Level ( 0 )
ESD_Software_DLev ( 2 )
ESD_Alternative_Texture ( 252 )
comment ( real: 10ft+3in 15ft+6in 76ft+0in )
comment ( ESD_Bounding_Box ( -1.52538 0.23572 -11.2 1.57886 4.76894 11.2 ) )
ESD_Bounding_Box ( -1.52538 0.23572 -11.15 1.57886 4.76894 11.15 )
)
b101uk

Alert | IP


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

Restored from the Train-Sim.Com archive, captured July 27, 2003. About this archive.