Had the engine with the cars behind it, left it running for a while, came back to this. The first pic happened when it stopped at a trigger. After that, it reverted back to the engine "pushing" the cars... though there's about 10 feet between them.
Strange Things...
same
hope thers a fix
I haven't been able to reproduce this yet. I've been testing with a single workcart with 2-4 wagons behind it, since that seems to be what dravenmeex has in the screenshots (though I can't tell the exact length). I also tested with a super train with like 20 cars and multiple workcarts on it. My guess is that this is a vanilla bug that just manifests more often when trains are constantly stopping around the map. There is a similar old vanilla bug where workcarts can get stuck inside each other, which the plugin does detect and mitigate. I might need to make the plugin apply those same mitigations for the new train wagons as well.
When you see this happen, does it happen between wagons and workcarts that are part of the same whole train to begin with, or is the workcart just driving right through wagons that are in front of it?
Do you have any other workcart plugins installed such as TrainRustEdit or WorkcartSpawner? I know some of them have applied questionable changes to workcart collision triggers in order to allow them to pass through terrain triggers, so that could possibly contribute to the behavior you are seeing.
I have 2 wagons behind the main engine. It runs around the Rail Ring, making four far-spaced-apart 45-sec stops before continuing on at "Hi" speed. I spawned the engine, then spawned two wagons behind, followed by inserting gas into the engine and backing up slowly until both wagons were connected. I then accelerated the entire train to the "Conductor" trigger to allow your plugin to take over. I stayed on the train, hopping back and forth between the wagons and the engine and it seemed to be doing fine. Left it for about an hour and a half. Went back to catch the train at one of the stops and noticed it was "pushing" the two wagons, with about 10 feet of space between the engine and the wagons. The wagons were connected to each other, though. When I finally caught the train, I stayed on until it came to its next stop. When that happened, I got what you see in the first picture; engine clipped into the wagons. Once the train left, it flipped them back into order, with the two wagons in front and the engine "pushing" them. There was a client-side update this morning, so maybe it's a fix for something FP saw and could possibly sort this out. I'll keep checking.
Update #1: The engine seems to have lost its wagons altogether. Just caught the train and the only thing running was the engine. Going to ride full circle to see if they appear somewhere on the track.
Update #2: No wagons in sight. Going to ent kill the engine and respawn it, along with the two wagons, get it running, then wait an hour or so to see if it reproduces the issue. Will update.
Merged post
Update #3:
https://imgur.com/a/itAn3CB
(3 images this time)
Left it for a while, opened the map to see where the train was and saw that there were now 2 trains; both with 1 engine and 2 cars. I ent kill'd one of them (the engine and the cars) and went to the other train to see that it was again pushing the two cars... but now the entire thing was running in the OPPOSITE direction.
In the first picture, the train is stopped at a Brake trigger. Second picture is at the same place, but a side view, showing the engine clipped into the cars. Third picture is the train accelerating again, but reconfigured so that the engine is "pushing" the two cars with about 10 feet of space between them.
Another strange thing; when I destroyed the workcart in the picture, the two cars stayed connected, but immediately began to travel in the opposite direction... back in the direction I had originally put them to move. So, when I spawned them all and started them, the entire train was traveling in the clockwise direction. They then were traveling in the counterclockwise direction. When I destroyed the workcart, the two cars began to move in the clockwise direction before slowing down and stopping. I have no clue what's going on, but this wasn't an issue before the May update. This morning's client-side update didn't seem to fix the issue.
Merged post
Also don't have any plugins for the trains besides yours.
Merged post
Note: Engine without cars seems to run fine and in the correct direction.
Merged post
Other than some rare rubberbanding, I cannot duplicate the issue while I'm ON the train for several complete round trips.
Stood by one of the stops and let it make 3 round trips with no issues.
Moved away from the tracks, logged off, then went back to one of the stops and it was still correctly intact. No clue what's going on. Won't report back until it happens again.
Merged post
Happened again. Different configuration that it decided to do on its own.
HUGE thanks for going into so much detail! This is the exactly the level of detail needed to troubleshoot issues like this.
I'll continue to try and reproduce the issue.
Merged post
I haven't been able to reproduce this yet, though I've mostly been focused on adding a feature to spawn wagons, and some other plugins.
Would either of you be able to share the map size+seed of procedural maps where you've encountered this? I've seen some videos where workcarts perform dance moves which seems to happen at specific spots only, so I'm thinking the issue may be your specific maps. I've also seen some folks in the Rust official discord showing screenshots of wagons getting into each other, so I'm continuing to suspect it's a vanilla issue.