Space Engineers

Space Engineers

SWCS | Whip's Subgrid Wheel Control Script
 This topic has been pinned, so it's probably important
Whiplash141  [developer] 19 Jul, 2018 @ 5:22am
Bug Reports
Please include the following in your bug reports:
  1. Code version number
  2. What went wrong
  3. How to reproduce the error
    • If it is hard to reproduce, a blueprint (if vanilla) or world (if modded) will suffice

This will help me fix any issues y'all find promptly!
Last edited by Whiplash141; 19 Jul, 2018 @ 5:22am
< >
Showing 1-15 of 53 comments
7.18.19
The script does not work on two-cockpit vehicle when two players are sitting in the cockpits. One of the cockpits is designated as the main one. Vehicle can be controlled from the non-main cockpit.
Last edited by Горячий Павел; 29 Jul, 2018 @ 2:02pm
Whiplash141  [developer] 29 Jul, 2018 @ 3:33pm 
Originally posted by Das_Ist_VOLTONE:
7.18.19
The script does not work on two-cockpit vehicle when two players are sitting in the cockpits. One of the cockpits is designated as the main one. Vehicle can be controlled from the non-main cockpit.
If the person in the non-main cockpit is the host of the game that will happen. It is a quirk of Keen's code.
Juice 27 Aug, 2018 @ 3:02pm 
on line 100, 'power' should be set to values 1-0, but wheel.Power returns values 100-0

replace line 100 with "var power = wheel.Power/100;", and wheels with waaaaay too much power should be fixed.
Whiplash141  [developer] 27 Aug, 2018 @ 7:58pm 
Originally posted by The Juice:
on line 100, 'power' should be set to values 1-0, but wheel.Power returns values 100-0
Yet another of Keens moronic design choices. It really tilts me how the getters and setters aren't consistent.

Good catch, patched in version 9.
Dexival 28 Oct, 2018 @ 6:33am 
v9 - 8.27.19
It will increase the speed forward and backward, but wont steer left or right
Whiplash141  [developer] 28 Oct, 2018 @ 10:43am 
Originally posted by Der Neue:
v9 - 8.27.19
It will increase the speed forward and backward, but wont steer left or right
Just tested, steering works on v9 for me. Ensure that your steering angle is not set to zero, and ensure that steering is enabled for each wheel.
NXTtrain 11 May, 2019 @ 1:03pm 
V10 - 11.22.18
The script does not drive wheels that are positioned sideways. It's for use in a rail mounted vehicle, so I don't care about steering.
Sir Borks-a-Lot 3 Dec, 2019 @ 12:21pm 
Version 11.1.0
I've placed the wheels on pistons for widening the profile, and when I try to turn the wheels would just move... oddly. They'd both point inwards as I try to steer right, and they'd start to flutter if I hold it for more than 4-5 seconds. If I try to steer left the wheels would just flutter like wings trying to flap.
SlyMisty 12 Dec, 2019 @ 11:50am 
Just curious, when I used this script, the rotors seem to "lock" in place, whereas before the rotors worked fine, I just couldn't control the wheels. I'm trying to build a vehicle with independent suspension, the rotors have no power, and a kept unlocked; basically the rotors are just hinges. Is there something I did wrong with the script?
Whiplash141  [developer] 12 Dec, 2019 @ 1:21pm 
Originally posted by chevyblazer96:
Just curious, when I used this script, the rotors seem to "lock" in place, whereas before the rotors worked fine, I just couldn't control the wheels. I'm trying to build a vehicle with independent suspension, the rotors have no power, and a kept unlocked; basically the rotors are just hinges. Is there something I did wrong with the script?
This script does not touch rotors at all, so no.
Nhoj1000 3 Jan, 2020 @ 3:42pm 
When disconnecting with a merge block, there seems to be a delay in losing control over the other wheels. When I disconnect the merge, I have control over the other grid despite no connection then after a few seconds, I lose control again.
Whiplash141  [developer] 3 Jan, 2020 @ 4:49pm 
Originally posted by Nhoj1000:
When disconnecting with a merge block, there seems to be a delay in losing control over the other wheels. When I disconnect the merge, I have control over the other grid despite no connection then after a few seconds, I lose control again.
That is a side-effect of the block fetching only occurring once every 10 seconds. Not high priority, but I'll try and find a graceful solution.
Heinz 6 Jan, 2020 @ 10:09pm 
Code - 11.1.0
Echoing Shadowstorm - Both wheels point inward and "flap" if I hold A to try and turn left. If I try to turn right with D they'll both either turn inward, or outward, seemingly choosing randomly, and sometimes rotating from inward to outward without releasing D.
Heinz 6 Jan, 2020 @ 10:25pm 
Also, it doesn't seem to work at all with wheels mounted parallel to the ground.
Whiplash141  [developer] 7 Jan, 2020 @ 5:26pm 
Originally posted by Heinz:
Code - 11.1.0
Echoing Shadowstorm - Both wheels point inward and "flap" if I hold A to try and turn left. If I try to turn right with D they'll both either turn inward, or outward, seemingly choosing randomly, and sometimes rotating from inward to outward without releasing D.
If they are not mounted in a way that would sensibly provide propulsion with respect to the reference seat, they will not behave normally. This script is designed for wheeled vehicles so if they are oriented in a strange way like rims to the ground, there is no good way to determine where the thing should turn
< >
Showing 1-15 of 53 comments
Per page: 1530 50