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.