Space Engineers

Space Engineers

Otillräckligt med betyg
Wico Craft Control
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
Uppdaterades
71.101 KB
8 dec, 2015 @ 0:04
22 dec, 2019 @ 22:46
42 ändringsnotiser ( visa )

Abonnera för att ladda ner
Wico Craft Control

I 1 samling av Wicorel
Wico Drone Control Scripts
8 artiklar
Beskrivning
Rover and Drone Control

Meant to be generic controller script for keeping rovers and drones working correctly.


  • calculates basic information needed by most scripts such as current location, simspeed, movement speed, etc.
  • initiates sub-modules
  • passes arguments on to sub-modules.
  • processes 'commands' in its own name to set operational modes and options. For example, 'rocket'.
  • making sure antenna doesn't get turned off (bug in SE turn off antenna when trying to remotely connect to grid)

Modes Handled:
  • MODE_IDLE default to 'do nothing' mode. can be used for manual control.

    Some sub-modules may detect environment and then change the mode. For example, a planetary navigation module may change to MODE_HOVER if the ship is in gravity.

  • MODE_ATTENTION Another 'do nothing' mode, but means the ship needs player attention to resolve an issue.


General Commands
idle - manual control
init - re-gather all blocks for the craft
coast - turn on/off backward thrusters to allow coasting
setvaluef - set a float value of a named block

setvaluef <block name>:<Property Name>:<value>

Example:
setvaluef Miner Advanced Rotor:UpperLimit:-24

genpatrol [distance [up]]

Examples:
genpatrol genpatrol 300 150 genpatrol 500



Setup:

Programmable block.
Add the following to the name of the block to set basic operartional overrides:
  • "Rocket" (whithout quotes) to designate as a rocket (main thrusters are 'forward')
  • "Sled to force Sled" mode vehicle (0 friction wheels for support and forward/back/left/right thrusters + Gyros for movement
  • "Orbital" to force orbital-capable mode. This mode will also be defaulted if the craft contains more than one type of thruster.
  • "nad" No automatic docking. Do not detect connector lock and automatically connect connectors.
  • "rotor" [obsolete]
  • "pet" pet mode is enabled. if Pet sub-module is installed, it will check sensors for player
  • "noautogyro" turn off auto-align capability in planets. (note: sub-modules must be written to pay attention to this option)
  • "nopower" do not manage power systems such as batteries. Mainly for sub-modules that detected 'docked' and would want to turn on 'recharge' mode.
  • "notank" do not manage hydrogen tanks. Same reason as nopower.

Optional Main Timer Block
Create a timer block
  • Name not important.
  • set to 1 second delay
  • run the PB with the control script with the parameter "timer"
  • (optional) run other scripts that want a 1second delay
  • start itself

Optional Timer blocks
"FAST" timer
  • Name must contain "[WCCT]".
  • delay is not important
  • run the PB with the control script with the parameter "wcct"
  • DO NOT (re)start itself

sub-module timer
  • Name must contain "[WCCS]".
  • delay is not important
  • run the sub-module's PB with the control script with the parameter "wccs"
  • add all sub-modules as needed
  • DO NOT (re)start itself

Text Panels (LCD/Text)

Wico Craft Status Optional. Text panel with this name will receive status updates from the script. Updated once per script execution. Optional
Wico Craft Log Optional. Text panel with this name will receive long term updates on changes in the script. Optional
"Craft Report" Optional. the first text panel containing this string will be used for mode reporting. For example, details during orbital launch.
Wico Craft Save Text panel with this name will serve as long-term storage for the script to allow operations to continue after game load. REQUIRED FOR SUBMODULES.



Some of my example blueprints:

Very capable orbital Launch and landing craft:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=602335946

Pet (auto-follow)
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=605033718


Sub-Modules list:

Collection: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1436521807


Source Code:
MDK: https://github.com/malware-dev/MDK-SE/
Uncompressed source for this script here: https://github.com/Wicorel/SpaceEngineers/tree/master/MDK%20Craft%20Control



37 kommentarer
Wicorel  [skapare] 28 jul, 2020 @ 20:55 
None of mine do. Just flying, frictionless wheels and rotor.

I could add it, but I haven't been motivated to completed the integration.
big_blue_4101 28 jul, 2020 @ 19:35 
which module supports wheeled vehicles?
Wicorel  [skapare] 28 jul, 2020 @ 18:59 
For this revision of my control system, this module is required. The other modules are NAV (navigation) and docking; but they don't support wheeled propulsion.

For the newer revisions, it's not necessary.
big_blue_4101 28 jul, 2020 @ 13:39 
does this script offer functionality for rovers?
Wicorel  [skapare] 28 jul, 2019 @ 9:54 
These scripts are... complex.. If you have any questions, please let me know
MagicMarker 27 jul, 2019 @ 21:44 
@Wicorel Thank you for your response... I will look a little more carefully at your mod, because clearly, I've overlooked something earlier.
Wicorel  [skapare] 27 jul, 2019 @ 15:06 
The docking module handles docking. https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=883865519

Yes. I'm working on a re-write that does not require ANY timers. Currently, only the WCCS timer is required if using sub-modules.
MagicMarker 26 jul, 2019 @ 2:47 
And --unless I failed to see it-- with all the power that it has, there is not a HINT of any possibility to make a ship dock with a specific connector, unload ores, load supplies, and then undock again automatically. Which, in *my* opinion, would be the sole justification for any autopilot system to even exist! So is there a chance of that ever coming? Or would you advise me to look elsewhere?

Just asking :D

And is there a chance of this system ever not requiring timer blocks anymore?
tom 18 nov, 2017 @ 9:53 
awesome, thanks man. hope that makes sense about the thrusters.. some way to use ion only or to be able to specify which group of thrusters to use would be great
Wicorel  [skapare] 18 nov, 2017 @ 9:46 
Scripts updated. I'll look at the "ion-only even having hydrogen" thing in nav (and dock).