Space Engineers

Space Engineers

180 ratings
[APck] Commander (fleet RTS control)
7
3
2
2
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
431.960 KB
17 Dec, 2022 @ 1:46pm
1 Change Note ( view )

Subscribe to download
[APck] Commander (fleet RTS control)

Description
Fleet command script allowing RTS-style controls using transparent HUD or normal screen for grids controlled by the AutoPillock script.

Features

  • Mouse-controlled interface
  • Mouse-drag rubber selection
  • Two renders - transparent and normal screen with free 3d camera
  • Full support for APck features - task queues, autodocking, autolanding, waiting, repeat orders, etc
  • Context-bound commands - click on friendly grid while having a unit selected to order follow, on enemy target to attack, etc
  • Task queue visualization
  • Higly customizable - add your own commands and draw icons for them

Quickstart
Getting familiar with the system using reference control module (deprecated)

Code compatible with 1.0 systems can be found in the new control module blueprint

1. Get the blueprint.
2. Get AutoPillock-controlled grids.
3. Get in the control module and use toolbar:
toolbar 3-1: (toggle:control) - capture controls on/off - sets ControlGyros to Off on cockpit, sends "toggle:ignore-user-thruster:true" to local APcl for WASD suppression
toolbar 3-2: (command:cycle-view) - switch render view HUD/BlackScreen
toolbar 3-5: (command:commit) - signal to selected units (APck command:signal) - completes wait-for-signal task
toolbar 3-9: (command:cast) - create static point using raycast to mouse pointer

When in control mode (HUD view):
  • Use mouse to move cursor
  • E button click to issue orders and activate buttons
  • Hold E and drag to select multiple units
  • Drag on empty space to deselect
  • Click E on task nodes to delete task
  • Bottom row of buttons change the default command (top center green text). Default command is issued when E-clicking.
  • E-clicking on a specific entity would issue a default action for that entity. For unit, it is follow. For target - attack. For static point - attack. For task - delete.
  • Hold D to show round menu. Its' contents depend on where you hover - empty space, friendly unit, selected target or casted point. Release D to activate option. It is used for issuing non-default command

  • [HUD-specific] Hold Q and drag mouse up-down to adjust 3d pointer depth (with unit(s) selected). Double tap Q to reset.

When in control mode (Black screen view):
  • Use mouse to move cursor
  • E button click to issue orders and activate buttons
  • Hold E and drag to select multiple units
  • Drag on empty space to deselect
  • Click E on task nodes to delete task
  • Bottom row of buttons change the default command (top center green text). Default command is issued when E-clicking.
  • E-clicking on a specific entity would issue a default action for that entity. For unit, it is follow. For target - attack. For static point - attack. For task - delete.
  • Hold D to show round menu. Its' contents depend on where you hover - empty space, friendly unit, selected target or casted point. Release D to activate option. It is used for issuing non-default command

  • [Black screen specific] Double tap Q to toggle free camera mode.
  • [Black screen specific] Use A/D/space/C to move free camera focus point. Use W/S to increase/decrease focus distance.
  • [Black screen specific] Double tap E to teleport camera to currently selected unit.


Uncomment "toggle:render-inactive-view" in PB CustomData to have only one View rendering at a time (default is "true", so both views are updated).

If you have issues
Problems/questions related to AutoPillock are discussed on that scripts' page. If you have weird unit behavior (i.e. its' PB crashes, or it gets' stuck, etc) this is usually caused by AutoPillock on that unit. Although some issues may originate in Command script, especially if you modify it by adding your custom commands.

If you are sure that the problem is related specifically to Command script, ask here:
Known Issues & Bug Reports
Popular Discussions View All (1)
11
18 Feb, 2023 @ 2:36pm
Known Issues & Bug Reports
cheerkin
47 Comments
cheerkin  [author] 30 Jun @ 11:16am 
I don't have discord server for this but you can ask for help here:
https://discord.gg/veeGwKSh
There are people experienced in using APck scripts for pretty complicated scenarios and they often are willing to help.
Kira 29 Jun @ 10:22pm 
This is amazing but... .jeeez its so complex.... Cant figure out how to get it to work with my existing ships. The documention on autopllock isnt exactly intuitive.
cheerkin  [author] 19 Mar @ 6:38pm 
If I update this item, then everyone who still runs pre-1.0 stuff would get crashes. That's why for now new version is only in the 1.0 command bridge example blueprint, as mentioned on this page.
Dragontail 19 Mar @ 2:45pm 
Can you please update this to 0.9.188 that is running in the 1.0 command bridge example blueprint in the Red PB block. I get a critical system error, System.InvalidCastException.
Soulless Jelu 3 Jun, 2023 @ 8:06am 
What about mining ?
cheerkin  [author] 20 May, 2023 @ 11:24am 
No, but I can give you a hint. There are many ways of doing that like just using projection matrix, or using properties of right triangles, etc, but I think the easiest to understand way is just finding the intersection of ray (your POV is origin, direction towards 3d point) with screen plane. There is a Keen method for that (iirc PlaneD.IntesectWith(RayD)). Then you have a point in 3d space on your screen, you can subtract screen position (its center) and scale the result based on screen resolution and physical size.
skjolbir 20 May, 2023 @ 8:50am 
Is there a github for this script? I am trying to understand how to use transparent LCDs as a screen HUD for displaying information about asteroids I have catalogued (by their coordinates). This script seems to have that functionality, but for a different purpose.
cheerkin  [author] 5 Apr, 2023 @ 4:02pm 
Most is found on the main AutoPillock script page. I don't really know what to say about this script except Quick Start and other stuff that is already in the description.
TPRQHR 5 Apr, 2023 @ 10:13am 
@cheerkin Hey dude this is awesome but for beginners like me are there any guides you made or made by other people I couldn't find any on media since this mod is not very popular but it's amazing!
cheerkin  [author] 25 Feb, 2023 @ 2:35pm 
You would have lower refresh rate of the GUI on server (Keen limitation) compared to local game, other than that you should be fine.