by ENR3005 » Tue Mar 03, 2026 7:30 pm
Good Day All,
Today we are going to look at the Traffic Generator I have been developing almost as long my Sechelt & North Coast Railway route as it reaches functionality and what the goals are for this program and how it will hopefully work with Train Simulator Classic as it evolves further. To be honest this program is just as important to me as the route as a railroad needs to have operation which is fun and well thought out to keep it interesting. I have almost spent as much time developing it as I have route building and as a result I have created a way to generate approximately 7300 random different scenarios (A entire 365 Day year) for my route randomly which I will explain further and would keep anyone from becoming bored when operating the route. The post will grow in the future as I release more details and time permits.
First a little history first. This generator was initially started as part of a model railroad project about 15 years ago for a home layout I was starting to build and ceased due to an unexpected house move. The program then became part of my Sechelt & North Coast Railway route posts you see every now and then after ceasing to be a Model Railroader. The development of my program started years before Protrak which after reading and reviewing with others, felt would fit my bill of needs for operations with Railworks at the time, provided I had the appropriate information to enter for customers, rolling stock and details on my route which my own program already had. If any of you are model railroaders, you have likely heard of Protrak created by the late Jim Moir. It was a very elaborate and expensive piece of software which was featured in many Model Railroad magazine’s, used by many clubs and many of North America’s best modelers. It had a reputation for being the most prototypical piece of operational software available. Someone actually wrote a review of it and said the only downside is it was too prototypical. Jim was a Professional Engineer (not the railroad type) who developed his software for several decades and built the software purely on how real railroads operate often going to the real railroads for insight. I would still be using Protrak if Jim hadn’t passed and his program ceased functioning as Windows evolved over the last decade. Prior to Jim’s unexpected passing, he had actually looked at the Excel program I created as he wanted to get an idea of what I was looking to accomplish as he had not dealt with anyone wanting to use his program for Railworks (2014) and was keen to know how his program would be used. Jim reviewed it very thoroughly and actually provided me with a custom database to experiment with and I recreated my route within his program and it worked very well. As he knew, there was no way to import this information into Railworks at that time, so I built my scenarios manually and posted my results in the forum on his website and soon there were other users of Railworks and Trainz using his program as well.
After Jim’s passing and functionality disappearing with his software several years later due to Windows evolving, I went back to work on my own program taking what I had learned from his program and applying it to my own. I have essentially created an Excel inspired version of the program with custom features I wanted specifically for Train Simulator Classic but also doing many things that Protrak was not designed to do.
I could write for days on each component of my program which contains more than 650,000 formulas and lines of code however I have actually simplified my whole program into a 30 second quick setup to use by default so people do not fall sleep having to read a 400 page manual which I could easily write and honestly don’t have the time for. You simply click a date on the main screen after the quick setup and every piece of paper work is available including map display for the day you selected allowing you to start building your scenario manually. The goal of my program has always been able to assist with scenario building and real railroad paper work based off the CN prototype library Jim had posted on his Protrak site. As time has gone on, I have somewhat accidentally found a way to actually import this data into Train Simulator Classic and create scenarios automatically and that is now my end goal for this program as time permits.
Goals of this program in priority and completion status in order of priority and available time.
1. Generate prototypical traffic flows on a 140 mile shortline railway for an entire year using AAR data, competition formulas, government reports for carloads carried by real shortlines in the Pacific Northwest to calculate diversion to trucks, ships and economy for the year of 2022. Railway customer traffic is sourced from real world and proposed local industry and is only based on government or private reports for actual volumes supplied. Simply put if there was a real world railway here, this is what it would likely transport along with carload volumes. (100% complete)
2. Generate prototypical paper work for any given day of the year for any train, yard track or customer. Locomotive and car tracking functionality. (75% complete)
3. Produce a CTC like display overview to show the position of all freight cars at the start of any given day. (Map display 95% complete, displaying cars on 20% of entire route at this time)
4. Not initially planned as one of the original goals but likely doable after preliminary experimentation. Import daily information into Train Simulator Classic to generate custom scenarios for any day of the year. This is done by creating a dummy scenario template where the shortest length car used (invisible dummy) is generated on every customer track, yard track and siding creating a unique ID which can be swapped out by the generator. Unused cars, spaces are then deleted. (Railcar database 100%, implementation of car swapping 5%, experimental only but appears doable and requires a lot of time to finish. TS Tools does this, I am just going to use Excel to do it on a much larger scale in a very different way. Weather and other elements can be added as well based on historical data for the year the railroad is set in)