Space Engineers

Space Engineers

Easy Lidar Homing Script
DMN Nitemare 3 Feb, 2020 @ 10:08am
Problems with Script
Everytime I try to get this script to work I get the following error:

Error: 'UpdateType' does not contain a definition for 'Antenna'

I can find the line its referring to but it doesn't even use an antenna system, does anyone have an answer on how to fix this? Or has anyone got this to work
< >
Showing 1-7 of 7 comments
DMN Nitemare 3 Feb, 2020 @ 10:11am 
the section of the code its referencing is this:


if (!init)
{
if (subMode == 0) //Check for configuration command
{
if ((updateSource & UpdateType.Once) > 0 || updateSource == UpdateType.Antenna)
{
return;
}

but not sure how to correct it
Killroy 4 Feb, 2020 @ 7:36am 
I had the exact same problem on the his airdart & twinbreaker blueprints.
Was able to copy the missile code from his Airdart Mobile SAM's right-most missile and copy it to other blueprints' missiles, apparantly all the other missiles have different code/version? idr what version that missile was using. (other airdarts' & twinbreakers' missiles were able to work with this copy paste)
Airdart Mobile SAM: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=972523983
Twinbreaker Mobile SAM: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=972524192

The Twinbreaker Mobile SAM is using v21 easy lidar homing script
The Airdart Mobile SAM is using v7 easy lidar homing script

v7 doesn't contain your code, slightly different, but compiles. Just recently stumbled across his missile system and know very little about coding. I'll get back to you later tonight.
Killroy 4 Feb, 2020 @ 8:34pm 
So the code in the v7 easy lidar where that was is:

if (!init)
{
if (subMode == 0) //Check for configuration command
{
subMode = 1;

but pasting just this into the twinbreaker or twinhydro instantly launches the missile. I got twinbreaker to work just replacing the whole missile computer script from the airdart v7 one. Interesting. Maybe Alysius can shine some light on whats going on. I'm guessing UpdateType.Antenna got deprecated or something since this is 2yrs old. Not entirely sure.
Killroy 4 Feb, 2020 @ 10:34pm 
Not sure why I didn't try this before, but he put out a new verison v25, and loading just that whole thing into the twinhydro blueprint works perfectly. Still tinkering how to replicate it or to get twinbreaker/dart to work
Malacanth 8 Feb, 2020 @ 10:33am 
Posted builds may contain old versions of the code, they do not get automatically updated, they must be manually re-input into the PBs. To fix this, subscribe the the codes from Alysius and put the lidar script into the missile computers and his launch control script into the launch control computer.
Last edited by Malacanth; 8 Feb, 2020 @ 10:34am
Bumongus 8 Feb, 2020 @ 2:07pm 
Yeah they might be old versions.
Killroy 30 Mar, 2020 @ 9:22am 
indeed it was. I believe i got those working as well.
< >
Showing 1-7 of 7 comments
Per page: 1530 50