Space Engineers

Space Engineers

130 ratings
Formations Script (outdated)
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
5.137 KB
17 Mar, 2017 @ 12:46pm
28 Aug, 2018 @ 10:07am
42 Change Notes ( view )

Subscribe to download
Formations Script (outdated)

In 1 collection by Kinesi
Kinesi's Scripts
3 items
Description
Kinesi's Formations Script ---

This script is now completely outdated and does not function because of the new block communication system. From what I've seen that system works well enough and I have no idea how to even begin to try and redo this script to make it work again. Thanks for all the support!

READ ABOVE

Behold, a script that can be used to control your ships to attack, defend, or transport. With some experience and constant refinement, the script is now easier to use than before! Skip to usage to see how to install it.

Update 03/06/21:
- Not working as of now due to the new IGC system being released. Working on redoing the script entirely.


Update 08/28/18:
- Fixed the "actually completely broken and useless for a while bug"
- Timers are required again, its not bad, just make sure you dont use "trigger now" in setup actions.
- Increased controlfactor default to 5. Increase it if your subs dont stop moving.

Announcements:
- If interesting in the development of Project Aegis, refer to my discord link at the bottom of this Description.
- Discussion threads created for Help, Bug Reports, and Suggestions & Requests.
- Examples: Director: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=941491539 Subordinate: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=941492832


Features:
- Formations to control multiple ships from one, for many purposes.
- Supports planet-space transitions and planet landing.
- Support for many sizes of ships.
- Scaling factor.
- Channels; which allows for multiple directors at once.
- Commands for subordinates

Available Formations:
- Line
- Dual Column
- Wedge
- VBox
- HBox
- Single Column

Available Commands:
- Follow
- PFollow **
- Wait
- Freelance (broken?)
- Recall
- Land

** Percision following (Collisionavoidance off, and Percision mode on)

Usage:
- If the tutorial video works for you, you can watch it. It cuts out at the end. Just make sure that you enable broadcasting on antennaes. Also, do not use "trigger now" on the timer.
- Have one Director ship for each formation. (Cockpit, antenna, program block, timer)
- Goto timer block on director: Setup Actions: Rightclick PB -> "Run" (with an empty argument) -> Rightclick Timer -> "Start". Set timer delay to 1 second.
- Have some subordinate drones. Each: (remote, antenna, program block, optional AI turret)
- Go to the antenna on EVERY subordinate and assign the program block to it.
- In the program block of each subordinate, set IsDirector to false, and set drone number. Do not have subordinates with the same number.
- Start the director's timer. (Profit??)
- OPTIONAL: Open up the G menu inside your cockpit of your director ship. Find the program block and right-click, then click "run". Type in a formation such as "F.Dual Column", "F.Box", "F.Wedge", or "F.Line" without the quotation marks. Repeat for as many desired formations. See "Available Formations" below for more formations.
- Activate the hotbar button coorisponding to the desired formation to initiate/change formation.
- OPTIONAL: Change any options you want in any ship.

Format for issuing commands and formations:

Command = C.Command
Formation = F.Formation

Example: C.Follow
or
F.Line

TroubleShooting:
- Make sure you've set broadcasting to ON all antennae.
- Make sure ships have the required blocks.
- "Edit" PB and then "Remember and Exit" - this resets the block's storage
- If you're still having trouble, message me here or Discord (see bottom of description)

Known Issues:
- Broken freelance mode?
- Sometimes, subordinates refuse to move

Tips for Director ships:
- Maximise antenna range
- The director ship can be put on autopilot to have formations patrol areas

Tips for Subordinate Ships:
- Equalized(ish) Thrust in all directions
- Self sufficient systems (solar panels, batteries)
- Armored + Decoys (for combat)

////////-
////////-

Note:
I used two methods from Whip's Turret Control script. GetTargetPoint() and VectorAzimuthElevation(). They are labeled inside the script.
Also, I started working on this idea when a friend on mine mentioned it to me. I have absolutely no intention for copying anybody elses work, and If I do end up using somone elses code, I'll mention it, and only use it with their permission.

Star Destroyer Images credit: Venator2070

Reuse Terms: You may reuse my script and modify it, just do not claim it as you own. This means that I want credit where due when you use it in images, videos, or any other form of entertainment/documentation. You are not required, but I appreciate your creations and I would love to see them, so share them on here or my discord.

Technical Notes:
- The script uses a Behavior Tree AI architecture.
Refer to the image lower in the article, it gives a rundown on different AI architectures. ref: http://intrinsicalgorithm.com/IAonAI/2012/11/ai-architectures-a-culinary-guide-gdmag-article/

/////////////////////////////////////////////////////////////////////////////////
You can ask questions or state concerns here (in discussions) or on the Kinesi Discord.
Join the Kinesi Discord: https://discord.gg/47uWVAn
Tell me if the above link doesn't work.
Ask to be a member if you want.
Popular Discussions View All (4)
39
27 Apr, 2019 @ 10:54pm
PINNED: Troubleshooting (Help)
Kinesi
14
18 Jul, 2021 @ 9:02am
PINNED: Bug Reporting
Kinesi
9
15 Oct, 2017 @ 11:40pm
PINNED: Suggestions & Requests
Kinesi
282 Comments
Kinesi  [author] 30 Oct, 2022 @ 1:04pm 
yessir. and with the new blocks coming out soon, the need for it will dissapear
Slate_gorgon 29 Oct, 2022 @ 11:09pm 
is this Script dead
Official Zealiux 26 Mar, 2022 @ 10:21am 
does this script still work as it gives me an error. but I would really like to use it as it is the only one that is easy to set up and has formation presets
Kinesi  [author] 16 Mar, 2022 @ 2:48pm 
SE's autopilot is horrendously broken, at least for me. So I don't really have any motivation for it unless I want to adopt someone else automated guidance program.
Zeusiboy 16 Mar, 2022 @ 6:13am 
Any chance you will work on this with the new warfare 2 update? i would love to have a fleet of ships
Kinesi  [author] 15 Oct, 2021 @ 2:46pm 
I was working on it for a bit then I got rolled-back due to data loss. Also this project is not high on my list. Someday, but dont hold your breath
Emperors_Nightmare 10 Oct, 2021 @ 2:14pm 
Fixit?
BIV 2 Jul, 2021 @ 9:25am 
@Kinesi, Cheers mate for working on this, I've been searching for this exact thing so good on ya. This is a pre-emptive thanks btw as I've read your messages and see that you are busy with real life stuff just knowing that it will be done one day will keep me happy for six months . Good luck and thanks.
Kinesi  [author] 29 Apr, 2021 @ 12:48pm 
still working on it... currently taking care of family matters so my versioning is a bit wacked out while im developing
Mexican O.D.S.T. 29 Apr, 2021 @ 9:53am 
Is it working or u still working on it?