Comments (2)
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.
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)
- Missing files?? HOT 3
- Detecting KSP version HOT 2
- Feature request: @descripion ^= : $:#localization_xys : HOT 2
- [Bug] Patches can't be applied to parts with spaces in name HOT 1
- Feature request: Advanced constructs HOT 1
- Heya.
- Patching Thread: Crash when :LAST[x] pass found and [x] is not a valid pass HOT 1
- ENHANCEMENT: Informative Log Labeling HOT 2
- :NEEDS[sub/directory] doesn't seem to be functioning HOT 4
- ModuleManager.log filepath HOT 7
- [Question] How do I rename a node? HOT 6
- when kerbalx.com was crashed, I can't click any button HOT 1
- [Bug] Index operator has no effect when used in conjunction with `:HAS` clause on a node
- 4.2.0 With RP-1 install has errors
- Module Manager stuck "waiting for patching to finish" HOT 1
- KSP load longer even with Saved ModuleManager's Caches when load compare to ModuleManager while generating Caches HOT 1
- sorry - missclick :) HOT 2
- ModuleManager seems to be unable to parse a value (see more below)
- MM should report an error for missing operators in HAS nodes
- Identify arrays with elements seperated by \tab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modulemanager.