Space Engineers

Space Engineers

SWCS | Whip's Subgrid Wheel Control Script
525 件のコメント
Whiplash141  [作成者] 11月20日 15時16分 
if you have a wheel on the main grid, you can just use the parking brake via the ship controller like usual
Ubermensch 11月20日 15時15分 
I have a wheel suspension on the main grid that I use for another purpose, and because of this, brake_on doesn’t work. Is there a way to fix this? I added an 'Ignore' tag to this wheel, but it didn’t solve the problem. I don’t have a handbrake right now.
Whiplash141  [作成者] 10月19日 3時38分 
@ALEGATOR2222
stabilization of what?

@MarzEz
It is possible to add, I just need to have some time (and energy) to do it
ALEGATOR2222 10月18日 21時34分 
Can you tell me if there is a script for directional and lateral stabilization?
MarzEz 9月5日 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  [作成者] 8月14日 4時19分 
the script controls all subgrids that it sees. How are your subgrids connected to eachother?
Alexis The Calico Yokai 8月13日 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 8月9日 14時44分 
You are a god! Thank you, now I can realize all my engineer fantasies!
Whiplash141  [作成者] 7月8日 14時48分 
Scripts are vanilla; however, I don't know anything about subgrid control without scripts.
►relaxxx◄ 7月8日 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 6月28日 13時22分 
Thank you very much!
Whiplash141  [作成者] 6月28日 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 6月27日 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 2024年10月3日 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
godsshadow755 2024年10月3日 1時39分 
where do i put the arguments do i put it in the custom data of the cockpit or the program block itself?
Whiplash141  [作成者] 2024年10月2日 23時47分 
have you read the entire "How the heck does braking work" section above?
godsshadow755 2024年10月2日 23時03分 
cant seem to get the braking to work on sub grids, I put that argument in the cockpit but I cant turn brakes on
OVERLORDTHOR 2024年9月23日 22時45分 
Is there a way to get this working with remote control?
Whiplash141  [作成者] 2024年7月20日 23時30分 
Sounds like the wheels are friction binding. Experiment with friction and steer angles
Eliree 2024年7月20日 8時16分 
Fot some weird reason , my rover instantly brakes when i turn the wheels , any idea what this could be ?
Into 2024年5月20日 9時26分 
My cockpit changes direction, how do I ensure that forward stays forward and doesn't change with cockpit direction?
E-Man720 2024年3月14日 20時47分 
This gets asked monthly I swear. It's not a mod, that's why it doesn't show in mods. It's a ingame script.
Poutine 2024年3月14日 13時45分 
For some reason, I can't find this mod in my modlist? Am I a moron or am I just blind? https://i.imgur.com/RqOS3iP.jpeg https://i.imgur.com/a2pa8No.jpeg
Raven 2024年2月18日 22時53分 
@Whiplash141 appreciate you lookin into it! That makes sense. The same rough setup seemed to work when I tested on a single grid so I hadn't thought about the steering angle.
Whiplash141  [作成者] 2024年2月18日 22時18分 
I got decent behavior by simply disabling steering on the 4 central wheels.
Whiplash141  [作成者] 2024年2月18日 22時13分 
Checked the grid and the script is doing what it is told. The issue seems to be the very aggressive turning angles. You generally don't want (1) all wheels steering or (2) all wheels steering with the same angle. You want them to steer about a convergence point where the outer wheels steer the most aggressively, and the center wheels steer less aggressively.
Raven 2024年2月18日 14時17分 
@Whiplash141 Yeah no problem, here: Link
Whiplash141  [作成者] 2024年2月18日 8時52分 
I haven't heard any reports like this, no. Got a blueprint I can look at?
Raven 2024年2月17日 21時47分 
Having some trouble with this script on a rover. Currently it seems like some wheels lock up and stop applying propulsion when steering and accelerating at low speeds (e.g. holding 'W' and 'A' at the same time), easiest to reproduce when accelerating from a standstill, but hard to guarantee which wheel, or when.

Another issue had the script not drive forward at all, steering control was still fully functional, but neither 'W' nor 'S' would drive anywhere - though it *would* raise the power usage displayed on the HUD. It's like the wheels were fighting each other or something? And no, the parking brake was not engaged :P I cycled it several times while trying to get it to budge, just to be sure.

Have any issues like this been reported before? I'm using a mechanical suspension system so there are a lot of subgrids - three per wheel suspension, plus the 'main' grid, and all joining points use two blocks. Maybe the complexity of the grid connectivity is complicating/confusing things?
Whiplash141  [作成者] 2024年2月17日 8時56分 
Just mark one as main
REB 2024年2月17日 8時05分 
Please add way to prefer/ignore the ship controller, similar to your thruster subgrid control script, as a quick fix I modified the script to have an INI entry to ignore an specific ship controller like this

else if (block is IMyShipController)
{
if (!StringExtensions.Contains(block.CustomName, controllerIgnoreNameTag))
{
shipControllers.Add((IMyShipController)block);
}
}
Whiplash141  [作成者] 2024年2月8日 13時40分 
The way to get perfect braking as enumerated above is to add a ship controller on the same subgrid as the wheels for brake toggling. Otherwise, the script does its best to approximate brakes. You can configure how aggressive the brake approximation is with the "Braking constant" config key in custom data.
Stoner Jezus 2024年2月8日 11時48分 
both parking brake and handbrake only seem to cancel out propulsion input. The vehicle keeps roling no matter what. The wheels are on subgrids, I upped the value for braking by a lot, and placed a suspension on the main grid, but nothing seems to fix it. I'm using compact 2x2 suspensions.
Sapioit 2024年1月24日 2時11分 
I understand. Honestly, I wish your scripts were actually in-game features without the need for experimental features being enabled.
E-Man720 2024年1月24日 1時23分 
Wouldn't the main issue be script complexity limits when it come to trying to combine them?
Whiplash141  [作成者] 2024年1月23日 19時04分 
@Sapioit
Generating good code with ChatGPT is like trying to win a cooking competition with off-brand Hamburger Helper.

If I combine the scripts, I'm going to do it right.

@Blood Brother:
Glad to hear it
Blood Brother 2024年1月23日 17時57分 
Hey Whip, thanks man. It was my own lack of understanding that was the problem, not your mod or the server. I got it working now. Thanks for responding.
Sapioit 2024年1月22日 10時04分 
Gocha. Thanks for the reply! You could try using ChatGPT to do that for you, and if it doesn't work, you simply don't publish the new script.
Whiplash141  [作成者] 2024年1月22日 8時03分 
That's a *lot* of code. I don't have any plans to do that anytime soon.
Sapioit 2024年1月22日 1時23分 
Could it be possible to merge the 3 subgrid manager scripts you have into a single one? Though I guess that might create more problems than it's worth.
Whiplash141  [作成者] 2024年1月5日 19時59分 
This isn't a mod. It's an in-game script, so you shouldn't be installing it a mod
Blood Brother 2024年1月5日 15時01分 
This is a GTX Gaming Server that I pay for. In the server settings both Experimental mode and Enable Scripts are activated. Your mod is literally the only mod that will not work although I've had your mod work just fine in my solo games even when people have joined me in them. Could it have something to do with the fact that I'm using a external server? And if so, why do the other mods work?
Whiplash141  [作成者] 2024年1月3日 16時49分 
MP probably doesn't have scripts enabled then. Ensure experimental mode and scripts are turned on in the MP world's settings.
Blood Brother 2024年1月3日 10時00分 
Hey Mr. Whip. I would like to use this mod in a private server with my friends but I can't get it to work in MP only in solo play. Can I fix that?
Swann 2023年11月30日 13時43分 
Thank you Mr. Whip. This script is simply the most important, most indispensable, most seminal mod ever added to this game. Unequivocally, SE would hold no value to me and be joylessly unplayable without this script. Keen should be embarrassed that Mr. Whip had to provide such basic functionality for them. Thank you, thank you.
Dead_Pixels 2023年10月31日 7時47分 
Hey Whip! I'm using this script on a series of semi trucks and trailers and noticed something strange. I'm not sure if this is done by your script or the base game though. I have a trailer with 8 axles, all with steering enabled to and none set to invert, and while steering the first axle (furthest to the front) and sometimes the second axle will invert their steering angle. Is this something your script does? If so, can I disable it?
Dahar 2023年9月20日 9時04分 
Thanks for your script! Is there any way to set cruise control to certain speeds? 10,20,30 m/s. Or add such a function through commands?
Whiplash141  [作成者] 2023年7月20日 20時42分 
See the section "How the heck does braking work?"
Cam 2023年7月20日 20時05分 
okay, idk what i did but it seems to be working fine now lol.. now i just gotta get the parking brake to work without having to input a command every time
Cam 2023年7月20日 19時42分 
yes, the brakes are off.. the other curious thing is it only overrides propulsion in the control panel. i tried to set a toolbar key and it immediately resets to 0%