Here's a nice tid-bit of info for people using the rail creator and engine. When using the "TM_MaxDistance" function, the highest value for when using #true is 576, this is the square-root of 24. If you choose not to pass any arguments, it defaults to 450.
So what does this mean? It means that if you are 'x' tiles away from destination x, 'y' tiles away from destination y and 'z' tiles away from destination z, these are added together and multiplied by it self. If the addition is equal to or lower than 24, you'll most likely arrive at your destination.
Example: my destination "X" tile is 1500, "Y" tile is 2000 and "Z" tile is 5. This is the waypoint tile, so the railengine is going to try to get you there. Lets say my current position is 1483, 1996 and 3 (x, y and z respectively). Subtracting the differences results in this set of results: 17, 4 and 2 (relative coordinates

). The sum of this set is 23 and is likely to get you to your destination when you pass #true 576 to the TM_MaxDistance function. If you had left it blank, default to 450, the rail would error out.
Hope someone finds this useful

BTW TrailMyx, plopping in a square-root for 450 is 21.213203..hehe.
This is why sometime rail errors occur even when you are 9-10 tiles of both your x and y destination tiles, it's the 'z' tile that's putting you over the 24 threshold of erring out. Hilly area's are best left to pathfind
