Space Engineers

Space Engineers

Easy Lidar Homing Script
DMN Nitemare 2020 年 2 月 3 日 上午 10:08
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
< >
正在显示第 1 - 7 条,共 7 条留言
DMN Nitemare 2020 年 2 月 3 日 上午 10:11 
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 2020 年 2 月 4 日 上午 7:36 
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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=972523983
Twinbreaker Mobile SAM: https://psteamcommunity.yuanyoumao.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 2020 年 2 月 4 日 下午 8:34 
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 2020 年 2 月 4 日 下午 10:34 
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 2020 年 2 月 8 日 上午 10:33 
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.
最后由 Malacanth 编辑于; 2020 年 2 月 8 日 上午 10:34
Bumongus 2020 年 2 月 8 日 下午 2:07 
Yeah they might be old versions.
Killroy 2020 年 3 月 30 日 上午 9:22 
indeed it was. I believe i got those working as well.
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50