Space Engineers

Space Engineers

80 ratings
SE Macros
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
321.484 KB
2 Jun, 2019 @ 9:29am
7 Mar @ 12:48pm
65 Change Notes ( view )

Subscribe to download
SE Macros

Description
This in-game script is a simple solution for simple algorithms.

A good choice if you don't know C#.


Last added v1.75 - v1.76
  • Added DetailsHas branch. (suggested by Âmøur)
  • Now it shows the Process on PB screen in realtime (don't forget to use Text and images in PB)
  • Added ClearLog to clean the PB screen

Last added v1.60 - v1.742
  • Added AlienBlocks, turns on when the grid has blocks of other owners. (suggested by Âmøur)
  • Added HackWarning, turns on WHEN somebody hacks you. (suggested by Âmøur)
  • Added Disconnected state branch for connector (suggested by PressureSwitchX)
  • Added Range for Light blocks
  • Title command for TextPanel block
  • Added Lock / Unlock commans for landing gears (suggested by Shadowpheonix)
  • Added new branch value(> < =) for pistons and thrusters also gravity(> < =) branch (suggested by the_fallen_angel)
  • Added attach / detach] commans for pistons and rotors (suggested by Professor)
  • New branch parameter SunMaxPower (kW) for solar panels
  • H parameter for rotor head displacement
  • TextColor=R,G,B and BackGroundColor=R,G,B for LCD panels
  • V=##, V+, V-, V=R now works with Gravity Generators too (for Gravity Acceleration value)
  • Mode command for Battery (Charge mode), Hydrogen Tank (Ptockpile value)
  • New option ShowDebugMessages - On by default - debug info in PB details (like wrong block names)
  • New option (In head of the script) - RealTimeProcess, on True will be used Update1 (60 times per second)
  • Directive OptimizeTurrets - for all turrets: No idle move and Maximum Range

Last added v1.51-v1.59
  • Commands TextInsert/Scr#Insert to add text to the head, also now you can use #gps and #time in text
  • Command GPS, sends gps coordinates of block to the block CustomData
  • Gravity/NoGravity branches - (NoGravity)Air Thrust*:Off
  • Goto can choose line randomly from the list - Goto Step1//Step2//Step3
  • Gyroscope support
  • Say GPS directive
  • IsDamaged branch
  • Text=Damage (Damaged list)
  • now you can use Scr# to set the Surface Provider Text panel, like Industrial Cockpit:Scr0=MyText (also Industrial Cockpit:Scr0Add=MyText, Industrial Cockpit:Scr0From=Connector, Industrial Cockpit:Scr1=Damage)
  • Warhead commands: Start, Stop, Time=##, Detonate (example on video)
  • Value+, Value+##, Value-, Value-## for the piston block (+/- by 1m, Value+2.3 increase by 2.3m)
  • Conditions for the ShipControllers (Cockpits, Remote controller, seats ...):
    Up, Down, Left, Right, Forward, Backward, RollLeft, RollRight - detects user input.
    Example (Cockpit?Backward)BackLighs:On
  • TextFrom=Camera (raycast info)
  • Conditions Distance>,Distance< for camera block

Last added v1.50
Added: Now it possible to use the Run parameter for short commands
For example, you can run it with parameter *light*:OnOff to switch all the lights
Also you can use // to send many of commands, like
Command one // Command two // ... // ...
Example: Rotor:V=R//Delay 12//Repeat
Will reverse the rotor block velocity every 2 seconds

Last added v1.41 - v1.47
  • Value for the Piston block (with video preview)
  • Start, Stop, Delay=##, Activate commands for the Timer Block (suggested by Ornament)
  • GridName=$$ directive
  • Run, Run=$$ commands for programmable blocks (suggested by Criminal)
  • Support for MaxD/MinD=-, =+; for V now V=-, V=+, V=R (R is reverse)
  • StackCargo directive
  • TextFrom=BlockName (Block Types: SolarPanel, Battery, Thruster, Motor, Piston, TextPanel, Cargo, Landing Gear, Reactor, Door, Laser Antenna, other blocks turned on/off

Last added v1.40
  • Text=$$. TextAdd=$$, TextLine=$$ (effect), TextRead=$$(effect), Cargo>##(%), Cargo<
  • DistanceToEnemy<##
  • CheckWheels
  • Doctor, Sound block commands, Thrust, Dampeners, Handbrakes, Control branches ...
  • ArrangeToStop, ArrangeToEnemyBy, Shoot
  • EnemyDetected, Speed, Altitude, DistanceTo, Battery values, HudText, Range and more ...


    The video may appear too

    Suggestions are welcome
48 Comments
🍁BuzzedBear🍁 17 Sep, 2022 @ 10:57am 
Not sure if I just missed it, but is there a command to change the color of lights, whether it be individual lights or by group?
Siv 9 Aug, 2022 @ 10:15pm 
This is a really great idea and the implementation is pretty great. I love the full words for most commands. Makes it much easier to remember.

I'm wondering if you could add full word aliases for tests and parameters, so instead of:

(Rotor?A<15)Rotor:V=1;Spotlight *:Color=255,0,0

One could write:

(Rotor?Angle<15)Rotor:Velocity=1;Spotlight *:Color=255,0,0

Regardless, this is excellent work. Thank you.
Cruel Sun  [author] 31 May, 2021 @ 5:07am 
Fixed TextFrom error (reported by Shadowpheonix)
Cruel Sun  [author] 29 May, 2021 @ 10:01am 
Juroguy Johnson
it's not a mod - it's a ingamescript - search it in PB
Cruel Sun  [author] 29 May, 2021 @ 10:00am 
The_liminator 30
can we have a command just to simply reverse the rotor (and hinge,pistons...)
There is present V=R
Cruel Sun  [author] 29 May, 2021 @ 9:57am 
cy-one, you can write comments in a new line like this
Now we turning on all lights
*Light*:On

or this like
*Light*:On; Now we turning on all lights

wrong "directives" will be ignored
Juroguy Johnson 22 May, 2021 @ 5:53pm 
I cant see this in the modlist is that normal?
Cheezy Proot :3 30 Mar, 2021 @ 8:16am 
oh wait the script already have one
Cheezy Proot :3 30 Mar, 2021 @ 8:14am 
can we have a command just to simply reverse the rotor (and hinge,pistons...)
cy-one 5 Jan, 2021 @ 7:55am 
Could we get a "key" to declare comments? Especially on the same line as a command (like "lights:On // turns the lights on you fool!")