Sechelt & North Coast Railway Traffic Generator

Discussion about RailWorks scenario creation.

Re: Sechelt & North Coast Railway Traffic Generator

Unread postby harryadkins » Wed Mar 04, 2026 2:44 pm

This is awesome work! You could sell this package to real railroads...

Harry
User avatar
harryadkins
 
Posts: 3167
Joined: Sun Aug 23, 2009 8:01 am
Location: South Carolina, USA

Re: Sechelt & North Coast Railway Traffic Generator

Unread postby ENR3005 » Thu Mar 05, 2026 3:51 pm

harryadkins wrote:This is awesome work! You could sell this package to real railroads...

Harry


Thank you, I think most folks will find that this will be fun to use once released to see just what could be done for scenarios. This is essentially a simulator for a simulator as funny as that sounds.
ENR3005
 
Posts: 261
Joined: Fri Mar 19, 2010 11:50 pm

Re: Sechelt & North Coast Railway Traffic Generator

Unread postby Chacal » Thu Mar 05, 2026 5:34 pm

This could start me playing again.
As everyone I like a good route and good rolling stock, but good scenarios are the most important aspects of a rail sim IMHO.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6589
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Sechelt & North Coast Railway Traffic Generator

Unread postby harryadkins » Thu Mar 05, 2026 6:36 pm

I would be interested in helping create a series of operations based scenarios.

Harry
User avatar
harryadkins
 
Posts: 3167
Joined: Sun Aug 23, 2009 8:01 am
Location: South Carolina, USA

Re: Sechelt & North Coast Railway Traffic Generator

Unread postby Alpenfreight » Tue Mar 17, 2026 8:54 am

This project looks great!

I would be very interested in learning more about how you've figured out how to automatically generate the scenario. I have worked on a similar project where I built some python scripts which can dynamically place traffic/cars on a railroad randomly based on some rules (ie. populate the yard 55% full etc).

I have this semi-working but need to understand more Railworks ribbon system for how track is defined. I have issues currently of cars spawning in places I dont want them to, or not fully filling certain tracks etc.

Im curious if you discovered how to properly generate the scenario.xml with this method you are using
https://alpenfreight.wordpress.com/

I hear the train a comin'
It's rollin' 'round the bend
User avatar
Alpenfreight
 
Posts: 402
Joined: Fri Jan 09, 2015 8:32 am
Location: Boston

Re: Sechelt & North Coast Railway Traffic Generator

Unread postby ENR3005 » Tue Mar 17, 2026 11:53 am

Alpenfreight wrote:This project looks great!

I would be very interested in learning more about how you've figured out how to automatically generate the scenario. I have worked on a similar project where I built some python scripts which can dynamically place traffic/cars on a railroad randomly based on some rules (ie. populate the yard 55% full etc).

I have this semi-working but need to understand more Railworks ribbon system for how track is defined. I have issues currently of cars spawning in places I dont want them to, or not fully filling certain tracks etc.

Im curious if you discovered how to properly generate the scenario.xml with this method you are using


Thanks much appreciated. This is very much a unplanned end goal as I noted but seems doable with what I have learned over the years. I am no programmer but I do know Excel, so I kept it simple with what I know will work with experimentation from the past. This is planned to be a simple railcar swap on a much larger scale in Excel built upon a predefined template that I will eventually complete which will be built as follows.

1. I create a dummy scenario template where the shortest length car used (a low poly 40ft box) is placed on "every" customer track, yard track and siding to the max capacity of that piece of track. I will have multiples of these dummy cars named for each timetable location so I can find a location in the template by area as there is a lot of information wade through reading a scenario file.
2. Import the scenario template into Excel and ensure that it works by exporting as is before starting to edit anything.
3. Start mapping the track ribbon by dummy car location. Every car has a unique number which will be mapped for each section of track with my own id number which I will code to match where each location and car is exactly placed. I suspect this portion of the project will be very long and tedious.
4. Program the workbook to swap out the dummy cars with the program database ones. This is already partially built as it will simply read from a daily list that has the location of all cars which the paperwork portion of the program already reads as shown in previous posts. I will start small with something like the rail barge and the small yard at Langdale, start testing and continue editing from there.
5. Generate the scenario by filtering out / deleting dummy car spaces not used and exporting.
6. If all goes well, there will be a usable scenario to use.
ENR3005
 
Posts: 261
Joined: Fri Mar 19, 2010 11:50 pm

Previous

Return to Scenario Creation

Who is online

Users browsing this forum: No registered users and 5 guests

cron