Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DUScripts/darthvator

 
 

Repository files navigation

alt text

Licence

GNU GENERAL PUBLIC LICENSE

Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. https://fsf.org/

You can use this for whatever you wish. Have fun, enjoy, share, Make it better if you can.

Installation

ship elements:

  • remote control [necessary] or any other control unit
  • emergency control unit [optional] will help you with a cradle setup
  • screen [necessary]
  • databank [necessary]
  • telemeter [optional] really helps with precise landing. Auto shutdown is not possible without
  • emitter [optional] used for automatic docking
  • radar [optional] use at your own risk bc of a well known radar bug

! all parts listed above should be linked before you aply autoconf

autoconf

  1. copy .conf file from repository to your custom directory Dual Universe\Game\data\lua\autoconf\custom
  2. link all elements to your control unit (order does not matter)
  3. RMB on your control unit and use context menu advanced->Update custom autoconf list
  4. RMB on your control unit and use context menu advanced->Run custom autoconfigure -> Darthvator 1.0.0r version number can be changed later
  5. Now you can activate control unit and follow instructions from the screen. Elevator will work in an easy_setup mode.
  • The first launch is important to be made properly. It should be done at the altitude you want it to be used from. It will store that altitude in databank. Script will also remember it's position and orientation. Elevation axis will be off of a gravity well so if you start it from a slope and don't have enough thrust to compensate deviation from gravity - it is your fault.

Is it really hard to use not an easy setup

EASY SETUP

  • it's a default mode in which scripts's precision is based on a user's ability to align elevator by maneuver tool. In other words I will not guarantee it's proper work in easy setup mode. That mode usually used for a quick demonstration and simple use cases. This mode can be disabled via editing lua parameters from the control unit context menu.

NOT AN EASY SETUP

  • it is not hard, trust me.
  • to make a proper setup you will need a customer service script which you can find in repository files.
  • How to:

    1. put a programming board, screen and adjustor next to the place where you want your elevator to be installed
    2. adjustor should be placed rigt in the center of a cradle (elevator pad or whatever you wish to use) You can place it at any relative altitude (usually under your elevator). it will repesent the point on a future elevation axis, so that axis will be calculated from the adjustor position. Keep in mind that bc of NQ "magic" there is an offset of 0.5 to the forward and to the right of adjustor's original position. Anyway it's not crucial and you can adjust adjustor's :) position later.
    3. copy customer_service.json to clipboard
    4. paste code from clipboard into the programming board via context menu
    5. link adjustor to the programming board first, then link the screen
    6. once you activate the programming board it will paste three vectors into the screen, which you can copy and paste straight into the code or (which is better) paste them to the lua parameters via context menu.
    7. via context menu of your control unit, uncheck easy setup in lua parameters

!whatever setup you choose you have to make a proper first launch!

  • in both easy and not easy setup modes you have to launch it from it's base position, so it will remember correct base altitude

CRADLE

  • for the cradle you can use sliding doors of any size, but ensure yourself that at least one of them is able to cover your elevator's telemeter.

  • cradle example:

    alt text

  • doors should be connected to the relay of a cradle logic

  • example of a cradle logic

    alt text

  • there are two receivers which provide signal for a SR latch. Their channels should be set for a unique value. For that purpose we use channel "salt". Channel "salt" should be set in your elevator control's lua parameters and also used to name channels on your cradle's receivers with a pattern dg_close_SALT/dg_open_SALT where SALT is your channel salt you set on elevator.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%