enginerust
New member
Hello, I've been thinking about a project to build a short scenicked stretch of track, with portals on both ends loaded up with consists that will flow each direction. Basically the goal is a railfanning operation where I can just watch the various consists pass. My wish is to load the portals with RANDOM consists that I have built programmatically. I have been working on a program that takes ALL my train vehicles, categorizes them by type, road name, etc and then builds random traains. This part is working well and I can generate a config.txt file to change the contents of existing generic named consists (CON01, CON02, etc). I can load a portal with session edit with these consists, but I of course can see what's in the consists I am loading up. I would like to just be able to create a session, load up the portals with these generic named session one time, and from that time forward, I would want to just change the content of the consists outside of trainz using my program before each game session so that I do not have any idea which types of trains will be coming out of the portals, I want to be completely random with them. I guess my ultimate question is: Is there any way to programmatically change the content of consists that are contained in a portal outside of Trainz session editor ? I hope I explained what I'm looking for here well enough.