simonjackson1964 Posted November 13, 2020 Share Posted November 13, 2020 A steam train pulls into a bay platform, and stops. The carriages it is hauling are uncoupled. another engine is sitting in a connected siding and reverses onto the train. This new locomotive is coupled up, and as soon as all the passengers are aboard, it sets off on its way back to where the train came from. As soon as the departing train is clear, the locomotive that pulled the train in reverses back out into the siding the second engine was sat in, and from there makes its way to the turntable, reversing on due to the way the sidings are connected. Once on, the table swings around through 180° and the locomotive reverses off, now heading back the way it came, and parks up in the siding to await the return of the coaches. Seems fairly straight forward? In fact pretty standard practice in the age of steam, if no run-around track was available (In fact, before electrification, they did the same with diesel locomotives). And I have managed to automate the entire process except for one really annoying bit! The locomotive simply refuses to leave the turntable unless I manually set a speed for it. I've tried everything! This is the current event (of many different variations) The loco leaves the track that connects to the turn table. First I check if it's actually on the turntable, because if it's going back the other way I don't want to do any of this. The boolean "Just Turn Around" is telling the event that this locomotive is not heading for the loco shed or the coaling line. So far I'm not doing anything else but I believe in forward planning. So first action, stop the loco. The previous event that heads it in this direction sets the speed to -20 so it stops on the table. I set the variable that pulled me in to this option false, just in case that was somehow bouncing back in and setting the speed to zero - I put that there when I was using a track contact to trigger the event. Wait 2 seconds for the loco to get stopped, then swing the turntable around I only have settings 0 to 7, so 4 is a 180° turn. The boolean "Loco Turning.Turning" tells the track contact just beyound the next set of points to toggle them and send the loco back the way it came in. Two second delay for things to stop moving, and then set the trigger locomotive's speed to -30 so it reverses back out the way it reversed in. Everything works fine, except that last action. I've tried it with two different locos, I've tried it without the time delays, I've even tried putting an event in to check if the loco stops and restarting it. That was interesting because the event triggered and must have attempted to do the restart, because it reset a variable designed to stop it restarting the train any other time... But the locomotive stubornly refused to move. There is something somewhere that is setting it's speed to zero repeatedly. And it has got to be in that event, because when I give in and set the loco's speed manually , Off it goes, and as I said the rest of the events work fine, bouncing the loco from one to the next as it hits the track contacts. Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now