Space Engineers

Space Engineers

Easy Automation V2.0
Coren  [udvikler] 21. juli 2019 kl. 22:51
Share Code
Feel free to use this discussion to share what you have made and what you are working on in Easy Automation. This is the open forum for you to share and learn with each other.
< >
Viser 1-6 af 6 kommentarer
🍁BuzzedBear🍁 8. aug. 2019 kl. 16:11 
Hey everyone and anyone. I am a very old dog and the last time I programmed was 30+ years ago when BASIC was a language.... so... I need help. I need examples (I am a visual learner) to help me wrap this old brain of mine around new formats.... here is what I need, or would like to do.
I have several sensors on my ship and they are grouped under the name "ThreatSensors". What I would like to do with them initially is this: When any of the sensors detect a threat, I would like a group of lights (grouped under "StatusLights") to turn red, and another group of lights (grouped under "Ceiling-Wall-Lights" to be dimmed about 50% so that the overall lighting is red. I would also like to be able to turn on my defence system (my turrets) under the group name "WelcomeParty". Of course, when the sensors no longer detect the threat I would like to return everything back to the way it was - Red lights turned to Green, Regular Lights back to their set intensity, and turrets turned back off.

To most, this would be simple, but I am just not grasping the programming and how to get states from the devices. I am hoping that seeing a code block to do the above will help me to get a grasp of how to do more with other items.... (I am a big fan of sub grids :steammocking: )

Thanks in advance to anyone who takes the time to educate this old dog.
Coren  [udvikler] 8. aug. 2019 kl. 19:53 
@-=312th=- BuzzedBear
What have you tried so far? It helps to start out with something simple. Can you set up one sensor to activate the EA programming block with an argument that will reference a code block on an LCD? Have the code block turn on a light when it is used. This is a good place to start. Have you looked at the guide?
Emiricol4Rl 6. okt. 2019 kl. 16:36 
I love the potential of this mod. I would dearly love to see a repository of code people have used in-game. I want to find time to use this to do two things. 1) Use one script until an environmental variable = X, then use a different script with a specific argument that depends on a separate environmental variable's value. Example: Use Easy Ascent until gravity = 0.0; then use Auto Docking to: dock at home base if it's the closest base I own, or to dock at an ally's moon base if my home base is not the closest. Example 2: Use PAM script until job% complete = 75%; then use Easy Docking to return to home base if Stone inventory less than X, else delay 10000 until Stone Inventory less than X and return to home base.
Mitts 28. jan. 2020 kl. 14:41 
Shared some code for a very simple mining platform, runs for 1.5 hours and pulls in roughly 1.4m of ore. Script is on Pastebin - runs with the argument "Drill".

Posted on Reddit: https://www.reddit.com/r/spaceengineers/comments/evctjo/sharing_my_easy_automation_2_script/

Images: https://imgur.com/gallery/xWKZq9d

Pastetbin (the script): https://pastebin.com/iZzDMwnv
cjfoks 30. jan. 2020 kl. 3:57 
I made Miner, then I realized that automation using
Timer block's is painful and space taking option.
After searching Steam workshop I stumbled Easy Automation 2.
So here it is:
Workshop: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1981564284
Pastetbin (script): https://pastebin.com/qYMnA7aZ
Emiricol4Rl 30. jan. 2020 kl. 10:35 
Nice code! Thanks! Also nice miner -- I gave it a thumbsup.
< >
Viser 1-6 af 6 kommentarer
Per side: 1530 50