Stormworks: Build and Rescue

Stormworks: Build and Rescue

Ikke nok vurderinger
Customisable, fully automatic Lua gearbox for boat
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Vehicles: Sea
Tags: v0.10.33
Filstørrelse:
Offentliggjort:
Opdateret:
97.636 KB
9. aug. 2020 kl. 4:01
12. aug. 2020 kl. 0:03
3 ændringsbemærkninger ( vis )

Abonner for at downloade
Customisable, fully automatic Lua gearbox for boat

Beskrivelse
Edit 2025: Lua code is a piece of spaghetti and it's full of workarounds.
But it kinda works by itself.

Customisable, fully automatic gearbox on Lua, can be used for boat.
You can see how it works in practice, here https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2176155756 or here: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2181402367
It works about the same there.
Some info about inputs and outputs:
Gear - only for sending information to your dashboard (from -1 to 4);
Pilot - pilot/driver seats have an composite output, just put is here.

Short description: do not make any changes, connect nodes and it should work.
If you want to customise, read instruction.

Settings:
The main settings are outside of controller:
Target RPS: Idle RPS to get without normal throttle from lever;
RPS gear up: RPS to shift gear up;
RPS gear down: RPS to shift gear down;
RPS to drive: RPS to turn on 1st or rear gear;
Speed ​​with full clutch & Value to add to speed (for clutch): used formula for clutch - Speed + "Value to add to speed (for clutch)" / "Speed ​​with full clutch" - you need to config these values to get good clutch work;
Target RPS max throttle: maximum throttle to get Target RPS;
Min throttle: minimum throttle when the engine is on (this and the previous value should be very different from optimal for the current conditions and can be found in practice, for example, 0.08 and 0.09 are optimal for engine, but 0.05 and 0.12 are set here;
Use Park / Drive?: - use "Parking"? (Stop/Start moving) from driver hotkey (default is 1) or switch gears all the time;
Use throttle lever or WS (reset mode)? - usually on boats we use throttle lever, but changing of this option allows you to use W/S buttons instead of lever. If you don't need lever, all nodes "Throttle lever" may be deleted, and put W/S directly.

Additional settings in the controller itself:
By default "Engine on?" is On/Off input - red arrow on screenshot - it can be configured manually;
driver's seat buttons (hotketys) - info about stop/start - yellow arrow, hotkeys can be configured by changing channels (from 1 to 6).

Gearboxes are configured like this:
Rear: none,
1st: none,
2nd: 1st gearbox,
3rd: 1st and 2nd gearbox,
4th: 2nd and 3rd gearbox.
It can be configured by editing in Lua script - for all gearboxes there are an line with gears set (Gear 1 work, Gear 2 work, Gear 3 work), G1 is forward, G2 is rear, or in the Up / Down counter outside of script by editing of number of gears.

Good choice of gearboxes - better work in practice )

I hope my description is understandable.

You can use microcontroller in your creations and configure it, but save link to original.
Upgrading and reuploading to Workshop of this creation only with my permission )

Please report bugs in comments, check my other creations.
Sorry for my English, if it's bad.
Enjoy!

Tags: boat gearbox, lua boat gearbox
3 kommentarer
Husmus 17. aug. 2020 kl. 12:43 
Ok cool:winter2019joyfultearsyul::winter2019joyfultearsyul:
Supergan971  [ophavsmand] 12. aug. 2020 kl. 0:04 
MrViking, I fixed it, thanks for report
Husmus 11. aug. 2020 kl. 14:37 
well, the engines do not start, and idk if it is my fault (probably is) i am bad at sw pls halp