Space Engineers

Space Engineers

SWCS | Whip's Subgrid Wheel Control Script
 Tämä aihe on kiinnitetty, joten se on todennäköisesti tärkeä
Whiplash141  [kehittäjä] 19.7.2018 klo 5.22
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!
Viimeisin muokkaaja on Whiplash141; 19.7.2018 klo 5.22
< >
Näytetään 1-15 / 53 kommentista
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.
Viimeisin muokkaaja on Горячий Павел; 29.7.2018 klo 14.02
Whiplash141  [kehittäjä] 29.7.2018 klo 15.33 
Das_Ist_VOLTONE lähetti viestin:
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.8.2018 klo 15.02 
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  [kehittäjä] 27.8.2018 klo 19.58 
The Juice lähetti viestin:
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.
v9 - 8.27.19
It will increase the speed forward and backward, but wont steer left or right
Whiplash141  [kehittäjä] 28.10.2018 klo 10.43 
Der Neue lähetti viestin:
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.
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.
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.
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  [kehittäjä] 12.12.2019 klo 13.21 
chevyblazer96 lähetti viestin:
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.
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  [kehittäjä] 3.1.2020 klo 16.49 
Nhoj1000 lähetti viestin:
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.
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.
Also, it doesn't seem to work at all with wheels mounted parallel to the ground.
Whiplash141  [kehittäjä] 7.1.2020 klo 17.26 
Heinz lähetti viestin:
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
< >
Näytetään 1-15 / 53 kommentista
Sivua kohden: 1530 50