Update
Danny and others,
Well, no one volunteered to write code so I tought myself with the help of the great guys that monitor the Trainz Devepolment website forum. I have just put the finishing touches on the first working draft of my system and have it available for beta testing. I am quite pleased with the results. There may be another bug, but so far it seems to be pretty solid. One drawback is that the data from a session cannot be saved. Just a quirk of the software, but then Trainz is only a $39.95 piece of software.
Here is what the system looks like. I call it the Car Movement and Traffic Management System or CMTM for short. There are three assets that make up the system. Fist is the CMTM Portal which is Chris Margetts' Re-Rail Portal with a simple addition to make it work with the CMTM system. This portal will emit a string of cars without a locomotive - a very necessary component to simulate interchange traffic with another railroad. (One feature that makes it fun it that when you deliver cars to this interchange portal, you have to "drop kick" them into the portal so you don't loose your locomotive. I take a 20mph run at the portal track, uncouple the enigne at that speed then cut the throttle. The cars roll smoothly into the portal and you still have your locomotive. Most protoype railrods discourage this manuver but it works in Trains. The alternate would be to put the portal on a down grade and let gravity take the cars to the portal.)
These Portals also function as a regular portal. Each freight car in every train that is emitted by these portals has a series of destinations assigned to it. The second asset that is added to the route in Surveyor is the CMTM Anchor. This is a simple scenery asset that instantiates a Library Class script which is the third component - the heart of the system.
To impliment this System on a specific route, one must do a lot of operations and traffic flow planning. These movements are then entered into a spreadsheet in a specific format. This data is then exported as a comma delimited text file (.cvs format) and inbedded in the string table of CMTMSystem's config.txt file.
Implimenting this system takes a lot of work, but if you are into prototype operations the pay-off is worth it. There are some assets that will need to be "fixed" to work with this system. It relies on all freight vehicles to have in their config.txt files the correct "catagory class". Not all content from the DLS have all the correct data in their config.txt files so if you want to use that vehicle, it must be fixed.
Now, in Driver, there will be a small pop-up window in the upper left corner of the screen. This window states the name and destination of the last vehicle upon which you have done a left mouse button click. This window also allows you to notify the system when a car has been delivered. This begins a clock that will keep track of the amount of time left before the car will be loaded or unloaded. So, you have delivered a freight car and clicked on the delivered button. The next ime you click on that car, the window will tell you how much time is left before the load/unload will be finished. You determine this number when you enter data in the spreadsheet. If the time has already expired, the next destination is displayed.
If you are interested in beta testing this system, PM me your email address.