Space Engineers

Space Engineers

Formations Script (outdated)
 This topic has been pinned, so it's probably important
Kinesi  [developer] 25 May, 2017 @ 11:42pm
Troubleshooting (Help)
If you're having trouble setting up or running the program, you can get help here. Please describe your problem and how you've gotten to it.
Last edited by Kinesi; 25 May, 2017 @ 11:45pm
< >
Showing 1-15 of 39 comments
geniusface1234 7 Jun, 2017 @ 1:41pm 
after the update i ran the program and it says "DATA EXEMPT" and a string of numbers and commands
this is after trying to excecute the "C.Follow" command with 6 subordinate ships following 1 director ship
the full string (or what i can see of it) is as follows
"Running Director Method
30
DATA EXEMPT

0:23815,45355,86744:C.Follow:F.Wedge:(probably the coordinates of all of my subordinate ships):

Broadcasting
Secure
Package
Channel:
0

DroneCount:
6

Formation:
F.Wedge

Command:
C.Follow"
geniusface1234 7 Jun, 2017 @ 2:05pm 
FOUND THE ISSUE:
the remote controls are set to Patrol by default and the script doesnt set them to One Way
must set to one way to make them work
Kinesi  [developer] 7 Jun, 2017 @ 2:35pm 
That's right. I accidently removed the automatic setting of the One Way. Also, the Data Exempt is happening because I no longer use the Storage string. I'll fix these things in the near future. Thanks.
geniusface1234 7 Jun, 2017 @ 3:11pm 
welcome
Muttl3y 23 Sep, 2017 @ 3:10am 
Hi Kinesi.
First off let me thank you for sharing an awesome script.
I'm having a slight issue, my subordinates don't seem to travel in the direction they're suppsed to. It looks hilarious that they're flying upside down and sideways but I don't think that's what you intended for them to do. How does the script determine the direction of the ship? is it from the remote control like normal?
Kinesi  [developer] 23 Sep, 2017 @ 12:04pm 
@Muttl3y, yeah, the forward direction is determined by the forward direction or the remote control and the setting in the control panel.
Muttl3y 24 Sep, 2017 @ 7:43pm 
Okay, Built a bigger drone, they seem to point in the right direction now but their rotation is rarely in line with the director. Also what's the max speed they're supposed to follow at? I keep losing them at anything over 20mps
Kinesi  [developer] 24 Sep, 2017 @ 10:07pm 
I suggest maximizing antenna range. Rotation is not syncronized in open space. Adding rotation syncroninity is not on my list.

Max speed is the max speed of the remote control, which currently can only go up to 100m/s.
Muttl3y 27 Sep, 2017 @ 4:20am 
Sorry, I should have phrased my question better. the subs only do about 25m/s max
Kinesi  [developer] 27 Sep, 2017 @ 10:18pm 
I understand. Autopilot will only go as fast as it can practically stop. Avoid hydrogen thrusters, and try to have as much reverse thrust as you have forward thrust.
Muttl3y 28 Sep, 2017 @ 3:56pm 
Thats makes a lot of sense, I have only a few forward thrusters on my fighter designs because i use them like an aircraft; fast sweeping attacks. Thanks for your help!, I'll get redesigning asap.
Internetorian 8 Oct, 2017 @ 9:55am 
i don't know what is happening, i have subscribed to the script, however it doesn't appear in script-list in SE menu. (i am new to Space Engineers so i have no clue what to do about it) please help
Kinesi  [developer] 8 Oct, 2017 @ 1:41pm 
Like in the "Browse Workshop" button after you're in the PB? It should be there.
Grim 8 Oct, 2017 @ 9:04pm 
i currently have the script on my large grid fleet, and they follow fine (sometimes sideways) but they seem to wanna run into each other but avoid me. i set thepublic double ControlFactor on each for the remote to shut off diferntly on each. 1 on 200m, another on 300m and so on. but my problem is they wont form up in the formation i set them too. these are the setting i set...

public bool IsDirector = false;// Set to either true or false depending if this ship is a director or not.
public string Channel = "0";// Channel for this unit. Match the channel up with other subordinates.
// Do not have 2+ directors on the same channel.
public string DefaultForm = "F.Line";// Default Formation for when the script runs after "Remember and Exit".
public string DefaultCommand = "C.Follow";// Default Command for when the script runs after "Remember and Exit".

//Director Config - Change these if this ship is a director.
public double Dist = 30; //Scaling factor for formations, base distance between points.
public int DroneCount = 8;//(AS DIRECTOR) Set to however many drones you want following.


//Subordinate Config - Change these if this ship is a Subordinate.
public bool AllowAttack = true; //Allow this subordinate to break formation to attack an enemy. Must have AI controlled turret.
public int DroneNum = 1; // Position number for this Subordinate; Use #1-X; Do not repeat.
public double ControlFactor = 200; //Distance in meters to target point for autopilot to shut off. Generally, use half the length of your ship.
// Small ship blocks are 0.5M, large blocks are 2M.
Kinesi  [developer] 8 Oct, 2017 @ 10:31pm 
See "Int DroneNum"; That number needs to be different between drones. 1 - whatever. It's the position they try to get to.

Also, the control factor should be a bit smaller (less than 100m), if you want them to be more accurate for getting to formation positions.

To fix the "going sideways" thing, get more reverse thrust (or less forward). Try to have it balanced.

Remember that formations are determined by the Director. Also know to set your Dist value to something larger than 30 if you're working with larger ships. (Only on the director)

Let me know if theres any other problems.
< >
Showing 1-15 of 39 comments
Per page: 1530 50