Diesel ENG file for OR A sample of a complete diesel engine file
#21
Posted 29 April 2016 - 10:22 AM
#22
Posted 29 April 2016 - 10:30 AM
#23
Posted 29 April 2016 - 11:23 AM
Also the question about 1 or 2 slashes. See this post by James Ross http://www.elvastowe...post__p__182993
#24
Posted 29 April 2016 - 08:52 PM
cr-stagg, on 29 April 2016 - 11:23 AM, said:
- The backslash ( \ ) is the correct path separation character for Microsoft Windows. This is a holdover from MS-DOS.
- In "C" programming languages (e.g. C, C++, C#), the backslash is a special character in text string data. The backslash signals the start of an escape, which in these computer terms means a special embedded code to represent non-printable or non-textual data. The curious can read more about this here. What this means, though, is that a single backslash in a text string is invalid and makes no sense, sort of like dividing by zero. To actually have a backslash, its escape sequence must be used, which is two: \\
- Escaped or continued (across multiple physical lines—this is common in .trk files) MSTS strings should always be double-quoted.
- Adding to point #1, the forward slash ( / ) may be sometimes accepted as a substitute for a backslash in Windows paths, but this is not official nor universal, and should not be relied upon. The forward slash is the standard path separation character for Unix operating systems, which is why you see them in URLs like http://google.com. So, do not confuse the two contexts.
- Forward slashes often seem to work in MSTS configuration files, and they also do not technically need enclosed in double-quotes, but it is still the wrong way to go about it.
#25
Posted 30 April 2016 - 01:53 AM
cr-stagg, on 29 April 2016 - 09:45 AM, said:
I have another question. Why are these lines written this way:
ORTSEmergencyCausesThrottleDown( 1 )
)
ORTS (
ORTSEmergencyEngagesHorn( 0 )
)
ORTS (
ORTSWheelSlipCausesThrottleDown( 1 )
)
ORTS (
ORTSEmergencyCausesPowerDown( 1 )
)
If OR reads these like that, then it's probably a bug. Anyway i don't know what's the point of that ORTS () section. The parameter name itself tells that it's for ORTS, and the most of the other ORTS specific params don't need to be in ORTS ().
#26
Posted 30 April 2016 - 02:32 AM
ATW, on 29 April 2016 - 10:01 AM, said:
disc, on 30 April 2016 - 01:53 AM, said:
I can see no evidence in the code that these items need to be in their own "ORTS" blocks; they will work identically inside a single "ORTS" block. (And yes, the block is probably unnecessary but I am not sure we can change them now as they've existed for some time.)
#27
Posted 30 April 2016 - 07:51 AM
Lines like ORTSEmergencyCausesThrottleDown( 1 ) are understandable, values are either 1 or 0, but ORTSEngineBrakeReleaseRate ( 38 ) is not. 38 what? pounds per minute, or tons per second or liters per hour?
#28
Posted 30 April 2016 - 08:06 AM
#29
Posted 30 April 2016 - 08:18 AM
ATW, on 30 April 2016 - 08:06 AM, said:
That is NOT my question. I can tell that by the name. What does 38 mean? 38 WHAT? pounds per minute, or tons per second or liters per hour?
BUT my real question is where is the document that defines this example and ALL the other ORTS parameters for ENG and WAG files?
#30
Posted 30 April 2016 - 08:22 AM