LAST EDITED ON Jun-15-03 AT 00:25 AM (EDT)
This should be subtitled "Yo Bob!", since I tried to email Bob and I'm getting that "no such user" message again. I forget, does that mean six more weeks of winter, or the forum server is gonna crash again?
Anyway, anybody else can toss their two cents in.Hey, Bob.I've finally gotten disgusted with the sim randomly locking up when I use the front coupler for switching, and I'm currently trying to hack for a crashproof switcher. It looked like I had one at one time, using part of your physics 4.5, combined with fixing the size box to hit the middle of the couplers, and the ESD bounding box exactly even plus and minus, and both length values exactly half the size value. Got some bouncing couplers on curves tho, and attempting to fix those I got the lockups back again. It's a truly random thing, sometimes don't kick in until you hit escape to end the activity, and of course different cars (I'm trying to come up with an ENGINE that will eliminate the lockup independently of the incorrect car values, so I'm currently using nothing but default unmodified 5/7/2001 KUJU cars) also trigger the bug more or less often.Some conclusions,
The front coupler does not engage by hitting the car while moving forward, it actually engages when you hit it hard enough to rebound, and the engine is moving backwards at +1m/s. That's why it takes such slow creeping to back away after uncoupling, the whole couple/uncouple subroutine is geared toward the back coupler, and the front coupler works the exact opposite way. To couple on, you only need to get the front coupler within the proximity boundary of the other coupler, then back away quickly enough to meet the proximity + movement direction + speed used for the back coupler. To uncouple, since it's using backwards movement for coupling, you need to back up slowly enough to avoid recoupling. You can duplicate the conditions with the back coupler, if you creep backwards and touch the car behind at less than 1m/s (takes some patience), once in contact you can push backwards for all you're worth and it won't couple. Shift to forward, pop it into notch 8, and accelerate away from the car like a dragster, the back coupler won't engage cuz you're moving the wrong direction. One item I'm currently looking at is the velocity line, I think that is what defines the actual coupling speed, so if that was raised to a higher value the uncoupling problem would be solved, just have to hit it a little harder. Trick is finding a balance between coupling on and uncoupling.Anyway, in all this I've been searching the loco design forum, the documentation for BBoxedit, the MSTS techdocs, and Richter's engine manual, but there are a lot of things that need to be explained in plain English, and also my trial & error testing has shown that there's a hell of a lot of misinformation and things that are just plain wrong stated as absolute facts. So I was thinking, possibly it's time for someone to compile the true facts, translate into plain English, and publish/upload an engine manual for dummies. That someone might be you? Hint hint? Maybe if we all understood exactly what the hell all these things in the .eng files actually did, we could find some way around the *&^%$#! buggy front coupler problems.From the techdocs (there's 2 on this, they appear identical at first glance, this is from v2)
"Size: Width (across the tracks), height and length (along the tracks) of the wagon in meters, in that order. The length figure excludes the length of the couplings and must be greater than or equal to the bounding box length. The bounding box length is specified in the wagon shapes corresponding .sd file."Okay, the size is what it actually collides with, what does the bounding box do? If size excludes the length of the couplings, then the visual coupling would have no space between cars, and most of them have the actual size & bounding box extending beyond the car to somewhere on the coupler, in apparent contradiction to that statement."InertiaTensor A box used to calculate an inertia tensor for the wagon. An inertia tensor describes the mass distribution of an object to the physics system. The dimensions of this box are therefore important to the physical behaviour of a wagon. The format is “Box” followed by width, height and length in meters, encased in parentheses e.g.
InertiaTensor ( Box (3m 3.5m 17.7m) )
These values should be the same as the Size values."If it should be the same as the size values, why have a seperate entry? Why not use the size dimensions for the physics? Van den Hoven says making the inertia tensor box bigger than the size cuts down on bouncing for sharp curves, don't work for me. Some say it should be the same size or smaller, but what exactly is the effect of changing the inertia tensor? If that bit in the techdocs about making it the exact same size as the size box is not true gospel, is there a formula for calculating effects with different ratios?The r0 (20cm 30cm),"r0 - The first value in here describes the rest length of the spring. The second indicates the length at which the second set of values kicks in.
Coupling springs work in compression as well as extension."Hmmm, WHAT second set of values? Stiffness & damping, maybe? They don't say. Let's take a look;"Spring – a sub-section of the coupling section that defines the physical parameters of the coupling. Springs in train have 2 different extension dependent sets of characteristics. This is so that for example the initial extension of the coupling can be mimicked with relatively low numbers using the first set of values until the extension reaches what in reality would be the maximum coupling extension and hence the much larger second set of values would kick in to mimic this.
Stiffness – 2 values in Newton Meters giving the stiffness of the coupling over the first and second extension stages.
Damping – 2 values in Newton Meters per Second giving the damping factor of the coupling over the first and second extension stages.
Break – 2 values in Newtons giving the force at which the coupling will break in the first and second stage. Generally these values will both be the same and will lie somewhere in the second stage of extension."Ok, so maybe the r0 first number is the at-rest, as in how far the coupler sticks out beyond the size box when there's nothing pushing or pulling on it. So that would be the first set of values, but with nothing pushing/pulling ("rest length"), the net newtonian physics acting on it would be zero. Unless they mean that the shoving & yanking starts it uses the first set of numbers, and waits until the spring is pulled to the extension of the second r0 number (and possibly compressed to the second number, "Coupling springs work in compression as well as extension.") before the second set of spring/damping/break values kick in.From physics 4.5 for the geep;Spring (
Stiffness ( 1.2e6N/m 4.8e6N/m )
Damping ( 1.2e6N/m/s 3.4e6N/m/s )
Break ( 1.6e7N 1.6e7N )
r0 ( 20cm 30cm )
So what do the numbers actually mean? "1.2e6N/m", the "6N/m" part I assume means 6 Newtons per meter, but what is "1.2e"? And if I'm reading all this tech stuff correctly, at rest 20cm we have stiffness 1.2e6N/m, damping 1.2e6N/m/s, then when the extension (and possibly compression) hits 30cm, suddenly it changes to Stiffness 4.8e6N/m and Damping 3.4e6N/m/s. Could that sudden change in physics be the cause of the sim locking up when using the front coupler? Because the big question is how does it handle it backwards, IE Damping 3.4e6N/m/s at 30, and as it's returning toward the rest length it stays at the higher values until it hits 20cm, then suddenly changes to the lower values. I've heard there was some good info in bboxedit, but clicking on the "help" button don't bring anything up. From the BBoxEdit.txt file;"WHAT IS A Bounding Box
______________________
The Bounding_Box is a box shape that determines what portion of the
car is solid. The portions of the car inside the box will collide
with other solid objects in the world. These objects include buildings,
bridges, overhead objects, objects alongside the tracks, other cars
and the ground itself. An improperly defined bounding box will cause
a car to derail too easily and too often. A common symptom is the
'bouncing' car. This can be the result of a too large bounding_box
causing the car to collide with the ground and/or other cars."I don't think that's right, the size value is what is the actual collision box, I can reduce the ESD bounding box in the .s file to half the length of the size length in the .eng file, hit CTRL KP+ and the red lines are near the middle of the car, but the coupler hits where it's supposed to.
Change the size in the .eng file, and that's what makes the spacing difference, independently of the ESD bounding box or the inertia tensor. If I make the size in the gp38.eng 10 meters, and couple two back to back, I can drive them around telescoped into each other like that and uncouple/recouple/couple to other cars with no apparent ill effects other than it looks wierd.
There's also a rumor floating around that the "buffers" section don't do squat since they never got around to programming it in, true or false? And if that's true, what else is there we're missing?Anyway, it's an idea, I've been hunting for answers for a week now, and the majority of the answers I've run across are either misinformation or don't work because they're affected by other things.
Printer-friendly page | Edit | Reply | Reply With Quote | Top
RE: Deciphering the .eng file, inertia tensor, etc., kevarc, Jun-15-03, 00:55 AM, (1) RE: Deciphering the .eng file, inertia tensor, etc., sniper297, Jun-15-03, 01:31 AM, (3) RE: Deciphering the .eng file, inertia tensor, etc., dvdhoven, Jun-15-03, 01:27 AM, (2) RE: Deciphering the .eng file, inertia tensor, etc., sniper297, Jun-15-03, 01:46 AM, (4) RE: Deciphering the .eng file, inertia tensor, etc., mickoo, Jun-15-03, 05:34 AM, (5) RE: Deciphering the .eng file, inertia tensor, etc., sniper297, Jun-15-03, 11:12 AM, (7) RE: Deciphering the .eng file, inertia tensor, etc., baldwin, Jun-15-03, 12:28 PM, (8) RE: Deciphering the .eng file, inertia tensor, etc., baldwin, Jun-15-03, 05:05 PM, (12) RE: Deciphering the .eng file, inertia tensor, etc., baldwin, Jun-15-03, 10:37 AM, (6) RE: Deciphering the .eng file, inertia tensor, etc., mickoo, Jun-15-03, 12:45 PM, (9) RE: Deciphering the .eng file, inertia tensor, etc., b101uk, Jun-15-03, 02:22 PM, (10) RE: Deciphering the .eng file, inertia tensor, etc., mickoo, Jun-15-03, 04:52 PM, (11) RE: Deciphering the .eng file, inertia tensor, etc., sniper297, Jun-15-03, 07:04 PM, (13) RE: Deciphering the .eng file, inertia tensor, etc., plainsman, Jun-16-03, 01:25 PM, (15) RE: Deciphering the .eng file, inertia tensor, etc., smmille1, Jun-16-03, 09:57 AM, (14) RE: Deciphering the .eng file, inertia tensor, etc., plainsman, Jun-16-03, 01:29 PM, (16) RE: Deciphering the .eng file, inertia tensor, etc., sniper297, Jun-16-03, 03:33 PM, (17) RE: Deciphering the .eng file, inertia tensor, etc., mickoo, Jun-16-03, 04:14 PM, (18) RE: Deciphering the .eng file, inertia tensor, etc., b101uk, Jun-16-03, 07:50 PM, (26) RE: Deciphering the .eng file, inertia tensor, etc., smmille1, Jun-16-03, 04:46 PM, (19) RE: Deciphering the .eng file, inertia tensor, etc., baldwin, Jun-16-03, 04:55 PM, (20) RE: Deciphering the .eng file, inertia tensor, etc., mickoo, Jun-16-03, 05:08 PM, (21) RE: Deciphering the .eng file, inertia tensor, etc., sniper297, Jun-16-03, 07:29 PM, (24) RE: Deciphering the .eng file, inertia tensor, etc., baldwin, Jun-17-03, 04:06 PM, (29) RE: Deciphering the .eng file, inertia tensor, etc., plainsman, Jun-16-03, 06:44 PM, (22) RE: Deciphering the .eng file, inertia tensor, etc., mickoo, Jun-16-03, 06:50 PM, (23) RE: Deciphering the .eng file, inertia tensor, etc., plainsman, Jun-16-03, 07:42 PM, (25) RE: Deciphering the .eng file, inertia tensor, etc., b101uk, Jun-16-03, 09:40 PM, (27) RE: Deciphering the .eng file, inertia tensor, etc., baldwin, Jun-17-03, 03:48 PM, (28) RE: Deciphering the .eng file, inertia tensor, etc., sniper297, Jun-17-03, 09:46 PM, (30) RE: Deciphering the .eng file, inertia tensor, etc., sniper297, Jun-17-03, 11:23 PM, (31) RE: Deciphering the .eng file, inertia tensor, etc., baldwin, Jun-18-03, 03:31 PM, (32) RE: Deciphering the .eng file, inertia tensor, etc., sniper297, Jun-19-03, 02:06 PM, (33) RE: Deciphering the .eng file, inertia tensor, etc., baldwin, Jun-19-03, 04:27 PM, (34) RE: Deciphering the .eng file, inertia tensor, etc., baldwin, Jun-22-03, 03:38 PM, (35) RE: Deciphering the .eng file, inertia tensor, etc., sniper297, Jun-23-03, 01:03 AM, (36) RE: Deciphering the .eng file, inertia tensor, etc., GaryG, Jun-23-03, 03:58 AM, (37) RE: Deciphering the .eng file, inertia tensor, etc., baldwin, Jun-23-03, 03:51 PM, (38) RE: Deciphering the .eng file, inertia tensor, etc., baldwin, Jun-23-03, 04:13 PM, (39) RE: Deciphering the .eng file, inertia tensor, etc., sniper297, Jun-26-03, 01:37 AM, (40)
Conferences | Topics | Previous Topic | Next Topic

Here's the US2 logger car with the ESD bounding box in the SD file set for double the length of the car, size in the .wag file reduced to 4 meters, inertia tensor at default. Note the Alco is inside the bounding box, it doesn't collide until it hits the actual car. It won't couple on that way tho, since the inertia tensor stops it before it gets to where the physical (not the visual) coupler is, attached to the 4 meter long size box.
Here both the inertia tensor and bounding box are 4 meters long, the size is back to default, the engine can couple on.See the top set of pics for both inertia tensor and size in the .eng or .wag file set smaller than the actual car size and bounding box.The actual collision takes place with the size value in the .eng or .wag, NOT the ESD bounding box. Been a lot of confusion on that one issue, I'm not clear about what the bounding box actually does, but contrary to popular opinion it does not define collision boundaries. How the inertia tensor fits in I don't know either, except that if it sticks out far enough beyond the size box it will prevent coupling and cause a rebound, possibly it's an elastic boundary. That would fit in with Dick van den Hoven's experiments with a slightly larger than size box inertia tensor reducing bouncing on tight curves, since the collision with the size box takes place within the inertia tensor boundaries, which would dampen the collision. If that's what the inertia tensor actually does, that is."Is it possible that stock is grounding out on lumps and bumps between track joins and thus uncoupling or derailing ?."Could be.http://www.train-sim.com/dcforum/User_files/3c805fad2e115d0a.zip