I recently tried to create a custom activity using TrainSimulation's BNSF Seligman Sub. I defined it as a simple 2 hr run from Winslow to the entrance of the Phoenix Sub near Williams.
I created a traffic file containing 72 trains, 36 eastbound and 36 westbound, and separated their start times 40 min apart, starting from midnight + 1 sec (since OpenRails does not load the traffic if there is a 0 second value in the trf file). I figured this would be good enough to be close to the 70-80 trains per day in real life.
The end result was that by the time I reached Canyon Diablo bridge (only half an hour from the start), I encountered 6 eastbounds at almost 5 minute intervals and I definitely realized I had done something wrong. Also, in the Alt-F9 window, I could see 27 trains, 26 AI and my own. And my GPU temp was skyrocketing high with the FPS almost lagging.
I checked some of the original maker's activity traffic files, and I could see that they defined at most 36 trains in any trf file. And in most activities, they kept the player's line free and only kept traffic in the opposing line (If the activity is westbound, almost all the traffic defined is eastbound).
Now while I think halving the number of trains and doubling the spacing to 80-90 mins in my custom activity will be my best option to keep both lines engaged relatively realistically, I wonder if any of you have any tips for effective AI traffic handling in general.
I created a traffic file containing 72 trains, 36 eastbound and 36 westbound, and separated their start times 40 min apart, starting from midnight + 1 sec (since OpenRails does not load the traffic if there is a 0 second value in the trf file). I figured this would be good enough to be close to the 70-80 trains per day in real life.
The end result was that by the time I reached Canyon Diablo bridge (only half an hour from the start), I encountered 6 eastbounds at almost 5 minute intervals and I definitely realized I had done something wrong. Also, in the Alt-F9 window, I could see 27 trains, 26 AI and my own. And my GPU temp was skyrocketing high with the FPS almost lagging.
I checked some of the original maker's activity traffic files, and I could see that they defined at most 36 trains in any trf file. And in most activities, they kept the player's line free and only kept traffic in the opposing line (If the activity is westbound, almost all the traffic defined is eastbound).
Now while I think halving the number of trains and doubling the spacing to 80-90 mins in my custom activity will be my best option to keep both lines engaged relatively realistically, I wonder if any of you have any tips for effective AI traffic handling in general.





Comment