suggestion, add the option to spawn wagons behind the train
Spawn wagonSolved
I have something in the works for this.
I'd like to add a feature where you can configure each spawn trigger to spawn a complete train, with one or more workcarts, and one or more wagons. I'm also thinking about allowing spawn triggers to spawn only wagons, in case you just want to use it as a spawn point without any automation.
There are several things this plugin will need to take care of, including the following.
- Making the wagons invincible (same as the workcarts)
- Preventing automated trains from coupling with other trains
- Preventing players from uncoupling the train
- Signaling to all workcarts in a train to change instruction at the same time, when a workcart/wagon at the front of back (whichever direction is leading) reaches a trigger
- Only showing the map marker for the front-most workcart of a train
everything said is great
I have something partially implemented, which I've pushed to the develop branch on GitHub.
https://github.com/WheteThunger/AutomatedWorkcarts/tree/develop
For now, to spawn the additional wagons, you will have to edit the trigger data file after creating the trigger, to add the wagons you want. See the following example.
{
"Id": 14,
"Position": {
"x": 1208.44531,
"y": 18.4509735,
"z": 451.79483
},
"AddConductor": true,
"Brake": true,
"Direction": "Fwd",
"Speed": "Zero",
"TrackSelection": "Default",
"StopDuration": 5.0,
"DepartureSpeed": "Hi",
"Spawner": true,
"RotationAngle": 156.17865,
"Wagons": [
"assets/content/vehicles/train/trainwagona.entity.prefab",
"assets/content/vehicles/train/trainwagonb.entity.prefab",
"assets/content/vehicles/train/trainwagonc.entity.prefab",
"assets/content/vehicles/train/trainwagond.entity.prefab"
]
}
Several problems still need to be solved. I also noticed a new problem that I didn't previously anticipate, which is that when rear-ending a wagon, the workcart does not depart early (it does if you rear-end a workcart).
Thanks for your work, looking forward to the master branch release!
There are a few dozen more commits on the develop branch. All of the previously mentioned problems are now solved. It's ready for beta testing.
this is great, you are amazing!
Locked automatically