[Script] Basic space autopilot

All about coding and Lua scripts
Site Admin
Site Admin
Posts: 112
www.4poziom.waw.pl
Joined: Sun Jul 26, 2020 3:49 am
Location: Sosua

Has thanked: 5 times
Been thanked: 5 times

North Industries

[Script] Basic space autopilot

Post by scheissegalo »

Dual_2020_05_16_16_25_33_627.png
Dual_2020_05_16_16_25_33_627.png (1.76 MiB) Viewed 214 times


About

This is a basic autopilot script that can accelerate your construct towards a planet and later apply brakes to stop. Vertical space engines are used to control drift.


Requirements

Space brakes, 1.5+ g.
Vertical space engines (pointing down), 0.3+ g. Space engines pointing left, right and up are optional.
A remote control unit or a separate hover seat.


Limitations

No manual piloting. Use another script to get to space and to land.
No collision avoidance. Make sure there are no planets, moons, asteroids or space stations between you and the destination.
Planet positions are stored in the script. If NQ moves the planets, the script will have to be updated.


Set-up

With an auto-configuration schema (recommended)

to Game\data\lua\autoconf\custom in your Dual Universe installation directory. By default it's C:\ProgramData\Dual Universe\Game\data\lua\autoconf\custom
Important! The file has to be saved with a .conf extension. To make sure the extension is correct, enter "flight-space-autopilot.conf" (with the quotes) in the browser's "Save As" window.
Right-click the control unit (a remote control or a hover seat) and select "Update custom autoconf list". This needs to be done only once.
Right-click the control unit and select "Actions for this element", "Run custom autoconfigure", "Basic Space Autopilot".

With a pasteable script configuration

and copy everything to clipboard.
Right-click the control unit (a remote control or a hover seat) and select "Actions for this element", "Paste Lua configuration from clipboard".
The game should display a "Lua script loaded" message. If it did not, restart the game and copy the script configuration again.
Link the core (required) and fuel tanks (optional) to the control unit.

Original: https://board.dualthegame.com/index.php ... -autopilot
TeamSpeak3: LINK | Steam: LINK | Facebook: LINK | Say NO to Corona's witnesses


Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest