Space Engineers

Space Engineers

Not enough ratings
DraconisPod & Trailer + RoninScript
   
Award
Favorite
Favorited
Unfavorite
Type: Blueprint
File Size
Posted
1.257 MB
16 Mar, 2022 @ 3:39am
1 Change Note ( view )
You need DLC to use this item.

Subscribe to download
DraconisPod & Trailer + RoninScript

Description
This is for troubleshooting Ronin's Suspension Manager script with my vehicle.

Note, I am using a custom modification to the vanilla wheels that increase Propulsion Power and Friction, and also increased required power (electricity) and component cost to build.


This blueprinted rover and trailer have just 2 suspension settings saved ("01 - Default" & "02 - LowDrag Mining"). Differences between the 2 presets are:
01 - Default:
Rover: Height Offset = -32.0 cm | Friction = 45%
Trailer: Height Offset = -27.0 cm | Friction = 35%
02 - LowDrag Mining:
Rover: Height Offset = 0.0 cm | Friction = 85%
Trailer: Height Offset = -4.0 cm | Friction = 60%

Selecting and loading each setting via the cockpit LCD works no problem.
* Program Block toolbar controls are setup on page 3 (Ctrl+3)

I have also setup a toolbar action (9th slot) set to run the Program Block with argument "apply:01 - Default". There is also a button block placed on the right side of the rover with the same argument.

If I use cockpit LCD to select and load "02 - LowDrag Mining", then while the cockpit lcd menu is still selected on that preset (i.e., 02 - LowDrag Mining is highlighted), if I press the 9th toolbar action on page 3 or get out and press the button that are set to load the default settings, the vehicle and trailer load the expected friction settings but instead sink even lower. The resulting Height Offset values are changed to:
Rover: Height Offset = 26.0 cm (highest possible)
Trailer: Height Offset = 19.0 cm
* I can go to cockpit lcd, select & load preset 01 to get the settings to load properly.

If I load the 02 preset via cockpit lcd menu, but instead move the cursor/selected preset back up to where preset 01 is highlighted (without loading it), then select 9th toolbar slot or get out and press the button block, the vehicle & rover load the 01 default settings as expected.


The results are identical when the trailer is detached (can be done via 7th toolbar slot), and oddly, even when the trailer and rover are not attached, the trailer is receiving and performing all the program block commands. The trailer does have a Remote Control but not it's own Program Block or even an Antenna. I believe this behavior is new with the updated script, but cant say for certain if it was/wasn't doing that before the update.

P.S. What first instigated me wanting to setup toolbar actions to change suspension presets is due to the rover being outfitted with the fighter cockpit, which due to it's main lcd shape, causes parts of the text in each entry to be cut-off. But actually isn't that big of a deal since the script centers to the selected entry.

EDIT: Well using the 9th toolbar slot or button block (which are set to "apply:01 - Default") while the 02 preset is selected in cockpit lcd menu, actually applies the 02 - LowDrag Mining preset. And pressing a 2nd time further lowers the vehicles as described above. I'm wondering if I have completely misunderstood what the "apply:PresetName" command is meant to do.
1 Comments
Ronin Planetary Industries 16 Mar, 2022 @ 5:50pm 
Okay. I think I see what I did wrong. Before I update the script I want you to test it. Here is a link to an unlisted, updated copy of your rover. Also, thanks so much. I appreciate your time.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2780142177