Stormworks: Build and Rescue

Stormworks: Build and Rescue

30 ratings
standard train couplings
By Jibbsie1802
in this guide i am going to describe a standard coupling for trains in storm works i am dubbing STS-1 (stormworks train standard - 1)
   
Award
Favorite
Favorited
Unfavorite
The couplings
this is a new standard i am going to try to make as i can't find another one this standard is STS-1 (stormworks train standard - 1)

The coupling uses 2 connectors a mandatory electrical connector and a non mandatory fluid connector

The electrical connector is placed on the same level as the block from the wheels (pictured)

the fluid connector is connected to the block below (pictured)


<edit> after the train update with the new wheels the electrical connector is positioned 4 blocks above the bottom of the wheel (you can set the train on the ground and measure it) (see new image below)

coupling jobs
there are multiple jobs for the couplings:

electric connector:
supplies power to the carriages from the train
main mechanical connector

composite data:
for the electrical connector there is a composite signal for data transfer.
The channel for each signal and the job is listed bellow:
1 - Carriage throttle (this is a number from -1 to 1 and is used by the carriages for throttle positions (it is suggested that in the carriage you have a reverse option in case the carriage is flipped))
2 - Locomotive throttle (this is a number from 0 to 1 for other locomotives connected inside the train)
3 - Reverse (this is a Boolean which reverses locomotives)
4 - Brakes (this is a number from 0 to 1 which control the brakes of the carriages and locomotives)
5 - Clutch (this is a number form 0 to 1 and controls the clutch of an engine this is not required and just here for more compatibility)
6 - Door/cargo left (this is a Boolean value for loading / unloading cargo or people on the left although it can be not just for cargo/people)
7 - Door/cargo right (this is a Boolean value for loading / unloading cargo or people on the right)
8 - Engine run (this is a Boolean value and is used with locomotives and if it is on then the engine will start when it turns off the engine will shut down)
9 - Lights (this is a Boolean value that controls if the lights are on/off)
10- Priority (this is a Boolean value that controls the priority of the signal when on if there are no other priority signals it will have full control of locomotives, this also helps set which composite carriages should read, if there is no priority signal or there is 2 the carriages and locomotives should add numbers and use an or gate for Boolean when there are 2 signals) - for this you can use a player sensor in the seat

fluid connector
This if for supplying fuel to the engines and should be diesel.
wiring up the composite cable
This is simple the output of the carriage electrical connector on the front goes to the input of the one on the back and vice versa then connect the composite out into the micro controller


For a locomotive wire it up so that the output from the electrical connectors goes only into the input of the locomotive micro controller then the output goes off to the input of both of the electrical connectors, WARNING the front output must connect to the electrical connector connected to the front input other wise it will not work properly.

For locomotives when wiring up the throttle through the micro controller but to control the locomotive in the cab the priority Boolean must be on and it has to be the only one one

additional notes
you can add more connections but to be complient with this standard you must have the electrical connector and the data through it, and no blocks must block any other connector.

an example of a carriage, locomotive and the micro controllers are bellow

carriage:
https://steamproxy.net/sharedfiles/filedetails/?id=2464338606

Locomotive:
https://steamproxy.net/sharedfiles/filedetails/?id=2464339627

Micro controllers:
Locomotive:
https://steamproxy.net/sharedfiles/filedetails/?id=2464340333

Carriage:
https://steamproxy.net/sharedfiles/filedetails/?id=2464340694

An example of a Locomotive is my shunter made with this coupling standard:
https://steamproxy.net/sharedfiles/filedetails/?id=2466064232

here is a high speed train using this standard:
https://steamproxy.net/sharedfiles/filedetails/?id=2480161113

thanks for reading

21 Comments
Tank Missile 27 Apr, 2024 @ 2:51pm 
Sorry for the also late response, yeah you have my permission to use the microcontrollers in the guide
phillydopey 27 Apr, 2024 @ 11:45am 
we need a universal braking system.
Jibbsie1802  [author] 20 Dec, 2023 @ 10:53am 
sure, I am fine with a derivative standard, the whole idea was to give a basics for trains from all creators working together so as long as they can work with other STS-1 trains, it is fine
Jibbsie1802  [author] 20 Dec, 2023 @ 10:51am 
sorry for the late responce, i'll check out those microcontrollers, and with your permission i would like to add them to the guide
FireFox 19 Dec, 2023 @ 9:06pm 
Can I make a derivative coupling standard of this? It will be guaranteed to be compatible with STS-1 but would have a secondary electric connector for some kind of train-OS.
Tank Missile 6 Jul, 2023 @ 11:53pm 
Ah, also they should theoretically have better performance since there are much fewer nodes. I don't have any data to support this though.

Also, sorry if my previous link doesn't work yet. I've just uploaded them so some of the controllers are still awaiting content moderation.
Tank Missile 6 Jul, 2023 @ 11:46pm 
I made some microcontrollers that have much simpler logic. I'm not sure if they function exactly the same as yours, but they do meet the spec. They should be much easier to maintain or modify for custom purposes.

Also, I guess it's too late to change the spec without breaking compatibility, but since number and boolean channels are completely separate they can each count up from 1 without conflicting.
Jibbsie1802  [author] 3 Dec, 2022 @ 4:22am 
him, there are currently no specification on dampeners, and i may release a new version with some added composite features (will be compatible with previous versions), i am just looking for some more things to add
Dr. Froth 27 Nov, 2022 @ 9:48am 
Also It would be a good Idea to have a composite channel for Carriage hadbreak release/activation
Dr. Froth 27 Nov, 2022 @ 9:25am 
Does this have any specification on Dampeners at the sides of the connector? Where they should be located?