Space Engineers

Space Engineers

1,173 arvostelua
SWCS | Whip's Subgrid Wheel Control Script
8
3
2
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tunnisteet: other_script
Tiedostokoko
Julkaistu
Päivitetty
810.377 KB
19.7.2018 klo 5.20
18.4.2023 klo 16.51
13 muutosilmoitusta ( näytä )

Tilaa ladataksesi
SWCS | Whip's Subgrid Wheel Control Script

1 kokoelmassa, tekijä Whiplash141
Whip's Scripts
22 luomusta
Kuvaus

  Description

This script allows you to control steering and propulsion of wheels attached via pistons, rotors, or hinges using regular movement keys! Wheels will also emulate brake inputs as well.

The acronym is pronounced like "swicks" :)

This is a feature we have been dying for for ages, and Keen has finally allowed this control in the new MP update :D




  How Do I Use This?!
Setup
  1. Place this script on your ship with subgrid wheels
  2. CHECK OWNERSHIP
  3. Enjoy!

Seat Priority
Seat prioritization closely matches vanilla for simplicity. In order of highest priority to least:
  1. The main cockpit on the ship
  2. The first controlled seat that can control wheels
  3. The first seat the code finds

Other Features
  • You can configure variables like the braking constant in the Custom Data of the programmable blocks this runs from
  • Handbrake (P or toggling handbrake on for the seat that you are controlling the wheels from) is synchronized across all ship controllers on the grid. If you place remote controls on the subgrids that have wheels, this will make the parking brake much more effective!


  How the heck does braking work?
Poorly. This is because of several things:
  1. There is no brake toggle option for individual wheels. To apply brakes to a wheel, you must do that via a ship controller.
  2. A ship controller can only apply brakes to the wheels on its grid
  3. As of update 1.199, ship controllers with no wheels on their grids can no longer be used to read braking information

Handbrake
If you hold space...
Hand brakes will be enabled for the duration of the keypress.

Toggling Parking Brake
If your main ship controller has no wheels on its grid...
To toggle parking brake, you must use one of the following script arguments:
brake_toggle brake_on brake_off
If your main ship controller does have wheels on its grid...
To toggle parking brake, hit the

key (default parking brake key)

How Brakes Are Applied
If your subgrid wheels are on the same grid as a ship controller...
When parking brake is toggled, the ship controller will be used to turn brakes on for that grid's wheels.
If your subgrid wheels are on not the same grid as a ship controller...
When parking brake is toggled, the script will attempt to approximate parking brake by controlling the wheels to slow you down. This is less effective than the alternative, but it is better than nothing.


  Author's Notes

I hope y'all enjoy this! I've had a framework waiting for ages on the chance that this functionality would be added, so I was ecstatic when I saw that these functions were in the MP test branch!

I tried to make this script crazy simple to configure, so I hope it doesn't backfire XD

There is no brake override (the checkbox in terminal is something completely different), so I had to improvise. It isn't perfect but it works.

Be sure to report any bugs below in the Bug Reports discussion.

(Also, this should also go without saying, but do not reupload without explicit permission from me, not even to mod.io.)

Suositut keskustelut Näytä kaikki (5)
53
12.7. klo 22.28
TÄRKEÄ: Bug Reports
Whiplash141
9
5.9. klo 19.08
TÄRKEÄ: SWCS Creations!
Whiplash141
1
25.8.2020 klo 14.22
Great Concepts I have for. Scripts
mhwyoshi
521 kommenttia
MarzEz 5.9. klo 18.57 
Is there a way to get this script to reference a remote control block or programmable block as the "forward" position?
I have built a mobile slewing crane, but when the cab rotates, steering and drive of the wheels fight each other. I have a remote control block to enable use of the handbrake, if there's any code I can change or any way to use the position/orientation of that block to determine forward/left/right, that would be exquisite.
Whiplash141  [tekijä] 14.8. klo 4.19 
the script controls all subgrids that it sees. How are your subgrids connected to eachother?
Alexis The Calico Yokai 13.8. klo 23.31 
I'm making a monorail and it has 2 subgrids and the script is one only controlling one of the subgrids. is there a way to get it to control both?
Killer66 9.8. klo 14.44 
You are a god! Thank you, now I can realize all my engineer fantasies!
Whiplash141  [tekijä] 8.7. klo 14.48 
Scripts are vanilla; however, I don't know anything about subgrid control without scripts.
►relaxxx◄ 8.7. klo 9.32 
This is a feature we have been dying for for ages, and Keen has finally allowed this control in the new MP update :D
Does it mean I can somehow make it in vanila without this script? (Without scripts at all to be clear)
Grebanton1234 28.6. klo 13.22 
Thank you very much!
Whiplash141  [tekijä] 28.6. klo 12.27 
You can use my scripts however you want, I don't even need attribution since that lives in the script itself. If you create derivative work (like modifying the actual script), I only ask for attribution and a clear indication that the work is not officially supported by me.
Grebanton1234 27.6. klo 11.46 
Hey there, may I use your script for the current research bunker competition? I think legally I have to ask you for permission because I think by submitting the build I give Keen the right to use it how they want to.
godsshadow755 3.10.2024 klo 1.53 
ok i got it had to put the arguments in custom data then toobar the run PB Argument Brake_toggle, then everything started working right