Space Engineers

Space Engineers

Easy Automation V2.0
Coren  [udvikler] 30. maj 2016 kl. 16:35
Questions on Use
If you are still having problems after reading the guide then ask your questions here
< >
Viser 1-15 af 293 kommentarer
Entersprite 6. juni 2016 kl. 2:03 
Is there any options to reach the values of IMyShipController? I'd like to make a script which prevents the player shooting with guns while moving but I can't code in C#. And if it isn't possible, is there a way to check if rotors are safety locked?
Sidst redigeret af Entersprite; 6. juni 2016 kl. 2:05
Coren  [udvikler] 6. juni 2016 kl. 10:20 
Currenty this script does not have support for those bits of functionality.
La Gandouille 8. juni 2016 kl. 4:02 
Hello Coren, is this possible to do some basic calculations with variables ?
Such as :
@Variables{
MyRotorVelocity = Velocity of MyRotor
}

@Main{
Velocity of MyRotor2 = MyRotorVelocity + 5
}

or use basic trigonometric fuctions as Cos, aCos and such ?
Coren  [udvikler] 8. juni 2016 kl. 9:46 
@La Gandouille@ There is no math functionality in this script as of yet. I do plan on adding some simple math such as a single addition, subtraction, or scaling a value per statement, but probably nothing very complex. definitely not anything that requires order of operations. Honestly I think a person would be better off using the actual programing block with c# if they are looking to get into complicated mathematical functionality. The fact that the "Variables" in this script aren’t reassignable during run time is a large disadvantage when it comes to mathematical functionality as well. Adding math on a level that even approaches what is available in c# is quite a large endeavor. Also The text panel input screen is really small and I am trying to keep the statements as short and sweet as possible so they can fit.
Coren  [udvikler] 8. juni 2016 kl. 9:55 
@La Gandouille@ hmm you've got me thinking now. I think that math would be done and assigned in the Variables CodeBlock. This would be rather simple to implement and would fit within many of the restrictions of the current script and game.... something to play with.
La Gandouille 9. juni 2016 kl. 4:19 
Nice ! :) I was thinking about a kind of semi automatized planetary siege mortar or a catapult able to adjust its lauching angle with range and elevation variables taking gravity and the projectile weight in count
Stilgar 12. juni 2016 kl. 19:21 
What format should I put colors in when I want to change the color of an interior light?
Coren  [udvikler] 12. juni 2016 kl. 22:16 
@Stilgar "R:G:B" with colons. Its also explaned in the guide under the index "Value Types"
Stilgar 13. juni 2016 kl. 12:05 
Ah, I just didn't look close enough then. :P Thanks!
AgentLocke 17. juni 2016 kl. 21:23 
I'm really looking forward to developing competence with what promises to be a terrific utility.

My question is regarding the "Show Properties of" function.

I'm trying to set up an LCD screen to display the "Missing components:" section of the Nanite Control Factory properties. I've tried several permutations of code and I just can't seem to get the hang of it. The LCD will display the T/F values for power, show in terminal, etc., but I can't get it to display the "Missing components:" values that are important. Do you have time to give me a little guidance?
Coren  [udvikler] 18. juni 2016 kl. 0:54 
@AgentLocke
the Nanite Control Factory is a mod and a rather complex one at that. This script will work with all vanilla blocks but when it comes to mods, unless the creator of the mod has considered this script and built the mod to be compatible then it is really just luck if some features do work with the Easy Automation script. I don't know if "Missing components" are even properties of the Nanite Control Factory block (I am not sure why they would be properties as properties are usually reserved for sliders and buttons such). If they are displayed in the Detailed info of the Nanite Control Factory in the proper format then you will be able to store them in variables and display them with the write statements as is explained in the guide under the “LCD Statements”.
Zle4R0 19. juni 2016 kl. 1:34 
Can you change the blueprint from the projector or the sound from a sound with the script?
Coren  [udvikler] 19. juni 2016 kl. 2:32 
@MOG As far as i know this is impossible with InGame scripts. From what I have seen, the SoundBlock only allows a script to play the currently selected sound. The Projector suffers from a similar lack of functionality. If it ever becomes apparent that these things have become possible then I will definitely be I adding these bits of functionality.
Arcoth 31. aug. 2016 kl. 6:57 
Hey Coren! I'm having an issue when trying to execute multiple commands inside a code block. E.g.

@Init{
LowerLimit of Rotor = -85
UpperLimit of Rotor = 0
Velocity of Rotor = 2
}

After executing this section only the LowerLimit will have been changed. Any ideas what I'm doing wrong? :)

EDIT: It works with the old version of the script!
Sidst redigeret af Arcoth; 31. aug. 2016 kl. 14:04
Torki 1. sep. 2016 kl. 14:59 
Hello !
I've been trying to play with you script today et some lamps ( of course !! )

Here is the script i used :

@light on{
OnOff_On lightName
}

@light blue{
Color of lightName = 0:0:255
}

@Toggle light{
if OnOff of lightName = off
{
@light on
@light blue
}
else
{
OnOff of lightName = off
Color of lightName = 255:255:255
}
}

( You've probably seen it before ;) )

Problem in run into is : Light does Turn On if Its Off and will turn Off if Button is pressed again
But wont turn back on after that unless I reset Program Block..

What i'm i missing ? Is there a loop creating or is the script on hold waiting nothing ?

Read about "stop" and "end" but nothing about it in the guide

Thanks :D and Great work !



Edit:

I've been playing around some more and it seems to get stuck when asked to change Color
I can toogle the Light On and Off but if I try to cycle Color then it changes it Once then wont do anything ( and no info on debug screen)

Hope you can help :)
Sidst redigeret af Torki; 2. sep. 2016 kl. 11:49
< >
Viser 1-15 af 293 kommentarer
Per side: 1530 50