Giter Club home page Giter Club logo

Comments (2)

Kerbas-ad-astra avatar Kerbas-ad-astra commented on September 2, 2024

With the forum down, I can't give you a link to sarbian's explanatory post at this time, but it is possible to "call out" individual members of a symbol-separated list, do math on them individually, and then assemble them back together. My SMURFF does this, like so:

@MODULE[ModuleEngines*]:HAS[@PROPELLANT[SolidFuel]],*
{
    key0 = #$atmosphereCurve/key,0[1, ]$ //get the keys -- the second element of the first space-separated list called "key".
    key1 = #$atmosphereCurve/key,1[1, ]$
    @key0 += 40 //modify values -- add 40 seconds to bring Kickback close to Space Shuttle SRBs.
    @key1 += 40
    @atmosphereCurve
    {
        @key,0 = #$key,0[0, ]$ $../key0$ $key,0[2, ]$ $key,0[3, ]$
        @key,0 ^= : +$:: //Snip out any trailing spaces, since not all keys have four elements
        @key,1 = #$key,1[0, ]$ $../key1$ $key,1[2, ]$ $key,1[3, ]$
        @key,1 ^= : +$::
    }
}

(FYI, you can put code blocks in GitHub comments with triple-accents ``` before and after.)

from modulemanager.

Sigma88 avatar Sigma88 commented on September 2, 2024

hi Kaa

I already know about that possibility, but that would not allow to edit an unknown amount of keys.

I need this feature in order to rescale atmospheres of mods like RSS which have 71 keys in the same node :)

I've already asked Sarbian and he told me he would look into this, so I opened the issue to help with keeping track of this ;)

thanks anyways for your suggestion

from modulemanager.

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.