Giter Site home page Giter Site logo

Comments (11)

matpratta avatar matpratta commented on June 12, 2024 1

In this format?

name: Gunner v2
slots:
    core:
        class: CoreUnit
    weapon:
        class: WeaponUnit
        select: manual
    radar:
        class: RadarPVPUnit
        select: manual

handlers:
    library:
        start:
            lua: |

Hi @Snipey, this format you mentioned is the YAML/JSON which is already generated for copy-paste into the object. I guess you meant something similar to ArchHUD's .conf files stored for easy apply, those are currently not generated but can be worked out! Let me take a look on what is currently used :)

from du-luac.

matpratta avatar matpratta commented on June 12, 2024 1

@Snipey @Serializer I've done some work on getting proper autoconfig .conf files working, if you want to try it out, install directly from the branch using: npm i -g git://[email protected]:wolfe-labs/DU-LuaC.git#feature/autoconf

The only changes necessary on project files to support it is adding the select field under slots, possible values as far I noticed are manual and all:

{
  "builds": {
    "main": {
      "name": "main",
      "slots": {
        "special": {
          "name": "special",
          "type": "screen",
          "select": "manual"
        },
        "others": {
          "name": "others",
          "type": "screen",
          "select": "all"
        }
      }
    }
  }
}

from du-luac.

Serializer avatar Serializer commented on June 12, 2024

That's already in there?

from du-luac.

Snipey avatar Snipey commented on June 12, 2024

In this format?

name: Gunner v2
slots:
    core:
        class: CoreUnit
    weapon:
        class: WeaponUnit
        select: manual
    radar:
        class: RadarPVPUnit
        select: manual

handlers:
    library:
        start:
            lua: |

from du-luac.

Serializer avatar Serializer commented on June 12, 2024

Not sure about the format it's in, but for the build targets, it's json that can be copy/pasted I haven't tested wolfe's script for weapons nor radars, I can do it for others, and they are in the list, so I am guessing it works :)

from du-luac.

Serializer avatar Serializer commented on June 12, 2024

My test project.json for my accountsSystem, it only has a development target, for build I would minify and not handle errors :)
{ "name": "Yggdrasil-Society.tests", "description": "Tests for libraries/databases and systems developed by Yggdrasil Society", "sourcePath": "src", "outputPath": "out", "libs": [ { "id": "Yggdrasil-Society.libraries", "path": "..\\libraries\\" }, { "id": "Yggdrasil-Society.databases", "path": "..\\databases\\" }, { "id": "Yggdrasil-Society.systems", "path": "..\\systems\\" } ], "targets": [ { "name": "development", "minify": false, "handleErrors": true } ], "builds": { "TestAccounts": { "name": "TestAccounts", "slots": { "ygdsScreen": { "name": "screen", "type": "screen" }, "accountsDB": { "name": "accountsDB", "type": "databank" } } } } }

from du-luac.

Snipey avatar Snipey commented on June 12, 2024

Not sure about the format it's in, but for the build targets, it's json that can be copy/pasted I haven't tested wolfe's script for weapons nor radars, I can do it for others, and they are in the list, so I am guessing it works :)

So from what I'm seeing this is not technically an auto configure script just generating the slot names for the board. The autoconf is the right click apply that is on Arch HUD. it allows the naming of classes for the script and auto links them to the control unit.

This just generates json to paste to a unit with all the slots predefined. On a ship you don't know how many of every element you have.

Referring to scripts placed here
C:\ProgramData\Dual Universe\Game\data\lua\autoconf\custom

from du-luac.

Serializer avatar Serializer commented on June 12, 2024

It is an autoconfigure json as far as I know, except the links have to be either added in the same order as you do with the tool, or rearrange them in the project.json, or you can use code to link them by class, or by name...Don't know how that works, I am not using those features yet

from du-luac.

Snipey avatar Snipey commented on June 12, 2024

Yes I was referring to the .conf files as it is easier to keep those around for control units like RC, Gunner chairs, and command seats. It also is great for auto linking things to the chair.

from du-luac.

Serializer avatar Serializer commented on June 12, 2024

@MatheusMK3 I would test it, however I currently have no ship nor flightscript to test it on, I say currently I've only ever owned one x-small core ship :D

from du-luac.

matpratta avatar matpratta commented on June 12, 2024

Closing the issue as that should be live by now

from du-luac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.