Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
ZE Train Drivetrain Demo
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Vehicle, Advanced, Train
Tags: v1.11.8
File Size
Posted
Updated
591.918 KB
16 May @ 4:02pm
1 Aug @ 5:45am
5 Change Notes ( view )

Subscribe to download
ZE Train Drivetrain Demo

Description
Description
  • Demo of the drivetrain controllers for dual-cab and single-cab train locomotives, that can be used standalone or with the ZE Multiple-Unit master-slave system. Has similar functionality as the drivetrain and dual-cab modules for the SRC-TCP.
  • There is a dummy car with a simplified compatible controller for slave-only cars, that don't require a main multiple-unit controller and has lower signal delays. You can use it for your cars as well.
  • Control seat and all buttons except emergency brake are active only if the cab is master. In this demo, the priority cab for automatic master selection is linked to occupied seat, but you can unlink that node or replace it with your logic.

Features
  • Two engine types
    • Locomotives can use ordinary medium electric motors, or the exploitable infinite steam turbine. Works correctly if the train has locomotives with both engine types.
    • The motor throttle calculation is based on the target speed, so it is not strictly synchronized on all train cars.
  • Target speed
    • Maintains the target speed set with the seat WS axis, and adjusts motor throttle with antislip feature. Maximum target speed and its changing rate can be set in the controllers properties, with different values for the slow mode.
    • When the target speed is 0, press the S key for smooth manual braking.
    • Set the seat WS axis sensitivity to 100%. If your train accelerates too slow, reduce the antislip sensitivity slider.
  • Reverse
    • Can be engaged with the panel reverse button or with WASD when the brake key is pressed second time after full stop. If you press the reverse button when the current speed is greater than 0, the train will stop with smooth brake and reverse will be engaged right after.
    • Reverse and direction indication correctly applies to all train locomotives regardless of their position and orientation.
  • Smooth brake
    • Smooth train stop that resets the target speed. If you disable it when the train is not completely stops, it will set the target speed the same as the current speed, so it is the fastest way to reduce your target speed when the train is accelerated.
    • Also can be used as a parking brake and is on by default.
  • Emergency brake
    • Immediate train stop with creaking and sparks. Can be activated from any panel of any locomotive regardless if it is the train master, and also should be deactivated from that panel manually.
    • Supports maximum 10 cars with the slave feedback.
  • Stop if there is no player in train
    • Based on player sensor readings and disabled by default. Enables smooth brake if there is no player in all train cars for 3 seconds.
    • Supports maximum 10 cars with the slave feedback.
  • Remote enabling
      Slave cars can be enabled remotely from the master car. You can disable this feature in the controllers properties.
7 Comments
Uran_Wind  [author] 28 May @ 5:52am 
Nevermind, updated the dual-cab and single-cab controllers and added the feature for remote enabling from the master car.
Dedalous 27 May @ 6:26pm 
Thanks for the advice! I've been stuck trying to work around the single-cab controller. If I'm reading this right, you're suggesting using the multi-cab controller instead. I'll give that a shot and see how it goes. Your info's detailed enough that it should be a simple matter now I understand what I'm doing.
Uran_Wind  [author] 27 May @ 3:19am 
You can insert your controller in pass-through between multiple-unit and drivetrain controllers. For the master car to enable slave cars, write the bool signal to master broadcast composite link starting from 5 channel. For slave cars to be enabled from the master car, read the corresponding bool channel from the master broadcast node. For slave cars to indicate the enabled status, write the bool signal to slave feedback composite link on channel 3 (as the 1 and 2 are taken for emergency brake and player sensor). For master car to read the enabled status of every slave car, read the 3, 6, 9 and so on multiple of three channels from the slave feedback composite link.
Dedalous 27 May @ 1:22am 
Any chance of having this updated with a remote enable function, so I can start my B units from the main cab? Possibly with a bool channel and a number channel for feedback? I've tried to rig up a remote start on my own that doesn't interfere with your communications protocol, but your wizardry is beyond my current comprehension despite my digging. (I'd also happily take advice on how to rig this up on my own)
Sithtrooper 21 May @ 1:29am 
Another amazing microcontroller just like usual :FH5Kudos:
Uran_Wind  [author] 19 May @ 11:59am 
Glad to hear it. Updated it just now, make sure you are using the most recent version.
Sir Floofy 19 May @ 11:53am 
Yeaaaaaah downloaded this (along with a couple other ECU's) for a project im doing. Im turning RootinTootinCowboy's Y-1 Turboliner into a battery/genny combo but i needed a way to control throttle and brakes on my tanker cars (batteries and motors on every car in the train all powered by loco's generators)

This controller is everything i could have ever hoped for and more. Im putting this on every single train i make from here on. Actually redesigned my project a bit to work better with this controller.