Space Engineers

Space Engineers

Not enough ratings
Setting up Core
By Xardkort
  • Combat autopilot.
  • Printers management.
  • Autoprinting drones for Swarm.
  • Gravity drive.
  • Raycast target search.
  • Control of turrets.
  • Control of gyroscopes on subgrids.
  • Beam-riding guidance for drones.
  • Graphical interface.
  • Data transmission to Swarm and Launcher.
  • Data reception from Swarm.
   
Award
Favorite
Favorited
Unfavorite
Important
  • Do not leave the sensor area during compilation
  • Do not use cockpits/seats while compiling
  • Do not place anything in the custom data of programmable blocks
  • Group names are not case sensitive and can be supplemented with prefixes and suffixes.
  • If there is an enemy player in the sensor's area, the interface will be blocked.
  • If the enemy starts hacking the programmable block, self-destruction will start.
Setting
Core:
  1. Create a group with the Core tag in its name.
  2. Add the following blocks to it:
    • RC/cockpit blocks (so that the autopilot, drones and missiles avoid collisions with this grid, if you don't need the rest of the Core functionality, finish the build at this stage).
    • sensor
    • programmable block
    • LCD panel (interface will be displayed on the PB screen if the LCD is missing/destroyed in battle)
    Lidar:
    • cameras (preferably not less than 8)
    • sound block (for status sounds)
  3. Paste the script into a programmable block added to the Core group and click "recompile".
Add a AI attack/defense block to the grid if you want to increase the aiming radius of the turrets to their maximum firing range.
Autoprinter:
  1. Create a group with the tag Autoprinter and any unique id in the name (for example: Autoprinter 1).
  2. Add the following blocks to it:
    • pistons, hinges or rotors (for moving the print head)
    • welders
    • merge blocks or engines (for automatic detachment of drones)
    • projectors with blueprints (you can add the blueprint name to the custom data, if you have multiple printers with the same blueprints you can specify the name only on one of them, the blueprint name will be displayed in the "Orders" section, written as the grid name, and also added to the drone block names)
    • rotor (optional) for rotating the projection or print head (if you don't need rotation, lock it or disable the rotor)
Gravity drive:
  1. Create a group with the tag Gdrive or Grav in its name.
  2. Add the following blocks to it:
    • gravity generators (spherical are not supported)
    • artificial masses
Arguments
Argument
Description
w, a, s, d or up, down, left, right
menu navigation
auto
autopilot (use AI in fight)
lock
lidar (raycast from cameras)
damp
gravity drive dampeners (if your grid does not have thrusters, you will not be able to change the dampeners mode via Z)
grav
gravity drive
gyro
control of gyroscopes on subgrids
tag
set tag for data exchange via antennas
Overlay
forw – enemy direction in RC/cockpit block orientation (up, down, left, right, forw, back).
NEAR – target type, NEW - detected less than 5 seconds ago, NEAR - closest (detected by turrets/drones), LOCK - closest target locked by lidar.
d: – distance to target.
s: – target speed (if negative, it means the target is flying away from you).
t: – time elapsed since last target detection in seconds.
r: – target radius.
ALL: – total number of targets.
Interface
Info – information about targets
The target locked by the lidar is always first on the list.
State – current state of lidar, Idle, Search target, Target locked.
Type – type of target locked by lidar (player/grid, etc.).
Radius – target radius.
Distance – distance to target.
Speed – target speed (if negative, it means the target is flying away from you).
LastLock – time elapsed since last target detection in seconds.
< focus – Increase target priority by 30%.
ignore > – ignore the target.


Beam – beam riding
The beam will be directed forward (in the orientation of the RC block/cockpit) from the center of your grid.
Length – beam length.
< Ride – transmit a beam to the selected programmable block.
Stop > – stop beam transmission.
To have drones follow a beam, go to the GPS section in Swarm, find and select the name of the grid whose beam you want to follow. If the beam is stopped, the GPS will retain its last position.




Setup/General – general settings
Lidar – lock targets by raycast using cameras. Max range of the lock if: you use the camera - 7 km, third person view - 5 km. The target tracking range is not limited. Raycast will accumulate when lidar is off (2 km/s per camera). To reduce the load on the server and save raycast, its frequency depends on the characteristics of the target.
Control turrets – control of turrets on the current grid (improved lead, protection from shooting at grids with Core or Transmitter, alternate shooting with a delay).
Subgrid gyros – control of gyroscopes on subgrids if: they do not have a Core group with a cockpit or a PB/RC block, they are connected directly to the current grid (only the first grid in the chain is controlled, for example, if another subgrid is connected to a subgrid connected to a grid with a script, its gyroscopes will be ignored). Search for new gyroscopes on enable. If the subgrid becomes disconnected from the script grid, the gyroscope control will stop. Automatic shutdown if there are no more gyroscopes left to control.
Use AI in fight – autopilot, on - on all the time, assist - takes control if you don't control the ship for more than 1.65 seconds or an enemy tries to crash into you (made to protect against missiles). If enabled, a green square appears in the upper right corner. The autopilot will avoid collisions with grids containing the Core or Transmitter.
Dampeners – gravity drive dampeners.
Speed limit – speed limit in the world.
Scan grid – grids scanning, runs on all PBs that are connected to this PB, deletes destroyed/searches new blocks, Swarm scripts. Doesn't add new functionality (for example, if you add a gravity engine to the grid, Scan grid won't help detect it, you need to recompile the script).
Setup/Broadcast – data exchange via antennas
Transceiver – receive/transmit data.
Radius – antenna range (do not set small values ​​as antennas search for each other once every 10 seconds).
Tag – tag (password) for secure data exchange.
Receivers – number of receivers receiving your data.
Transmitters – number of transmitters sending data to you.







Printer/Info – information about printers
< setup – open printer settings.
pause > – pause the printer.
Base Large – printer name.
Idle – current printer status, Idle, Welding, Scanning - moves and scans the grid, Extending, Retracting, Rotating - rotates the print head or projection, Non-weldable order - weld the remaining blocks manually, Rotor stuck - the rotor (rotating the head/projection) is stuck, Arm stuck - the arm (moving the head) is stuck, Projection is static - convert projection to ship, Projection empty - there is no more projection in the projector, Broken - part of the printer is broken/destroyed, Reinit - re-initialize the printer, attempt to synchronize the arm (starts if the pistons/rotors/hinges that make up the arm are in different positions/angles), Order ready - printing completed.
Printer/Info/< setup – printer settings
Welding time (s) – min welding time.
Arm spd (m/s) – arm movement speed.
Max joint spd (rpm) – speed of the joints of the arm (in rpm if the arm consists of hinges/rotors, in m/s if of pistons).
Rotor spd (rpm) – speed of the rotor rotating the print head/projection.
Reinit – reinitialize the printer (can be used instead of recompiling after changing the printer design).
Idle – current printer state.





Printer/Order – orders for printing
InWork – orders that are currently being printed.
Auto – orders from Swarm automatically leave the print zone and are connected to the customer's grid.
Manual – manual printing ordered from this menu, after finishing printing you need to free the print area from the printed grid yourself.
Assault/Fighter etc. – list of blueprints available for printing.