Jump to content

chapstickelk

Members
  • Posts

    15
  • Joined

  • Last visited

Reputation

1 Neutral

Profile Information

  • About me
    Bottle Rocketeer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Using Trajectories v2.3.4 with kOS v1.2.1.0 in KSP 1.10 setting the trajectories target with addons:tr:settarget(geocoordinates) always sets the target to a geoposition on kerbin. for example, addons:tr:settarget(mun:geopositionlatlng(45,75)) will set the target on kerbin at those coordinates. Am i missing something?
  2. I'm just going to drop a thank you to the devs for keeping this mod going. I love love love KoS.
  3. Looks like I just needed a break. Looking at it today the answer became obvious to me. When i changed it into a function i did a find/replace on all SET to LOCAL... the pos0 variable inside the if/else statements was getting set local to that scope, separate from the pos0 variable which was local to the main scope of the function. I guess when i was testing it I didnt notice that it was always messing up when moving away from the ascending node.
  4. Maybe someone can point out what i am missing.. I have a function to return a list of arguments to create a node to match inclination with a target: function inc_match{ DECLARE parameter tg. local myNorm to vcrs(ship:up:vector,ship:velocity:orbit). local tgNorm to vcrs(tg:up:vector,tg:velocity:orbit). local point to vcrs(myNorm,tgNorm). local pos0 is vang(ship:up:vector,point). local oldAngle to vang(ship:up:vector,point). wait 1. if oldAngle < vang(ship:up:vector,point) { local pos0 to 360 - vang(ship:up:vector,point). } else { local pos0 to vang(ship:up:vector,point). } local burnETA to (ship:obt:period/360) * pos0. local v to velocityat(ship,time:seconds+burnETA):orbit:mag. local dv to 2*v*SIN(vang(myNorm,tgNorm)/2). local n to list(time:seconds+burnETA,0,-dv,0). unlock angleToAN. return n. } if i cut and paste the contents of that function block of code into its own script, it works well.. i get very erratic results when it's used as a function like: set foo to inc_match(target). exec_node(foo). exec_node is a function that creates and executes a maneuver node according to the arguments in the list.
  5. If you have a module with a node that takes a comma separated list of values and want to add to that list... is there a way to APPEND values to a nodes existing values? MODULE { name = Blah foo = bar, bar2, bar3 } and lets say I would like to use a MM cfg to add "bar4" to that list: MODULE { name = Blah foo = bar, bar2, bar3, bar4 } if it was only one part, I would just do "@foo = bar, bar2, bar3, bar4". but I'm dealing with multiple parts that have differing values to which i would like to append "bar4"
  6. First, I love this. Thanks for making and sharing. One suggestion: It would be nice to have a button to recover/fill all the tanks of a given resource. So If you have multiple tanks you don't have to scroll down clicking them all to recover your resources, you can just "recover all". Great mod!
  7. It should adjust the water volumes of all partsnproperly regardless of which mod they're from. I use a bunch of mods too. It won't adjust any existing craft of course. Just craft built after adding this config.
  8. It's the KESA config with some adjustments.. so its making interstellar use Tac Water as a resource instead of lqdWater. Then the additions I made convert TAC water to use litres as a unit instead of the current unit of one kerbal's water consumption in one day. I did this so the amounts make sense to the interstellar parts that consume water.
  9. I believe the correct syntax for this line is: @MODULE[FNModuleResourceExtraction],*:HAS[#resourceName[LqdWater]] There is also the issue of interstellar lqdWater amounts are in litres, whereas TACLS uses a unit equal to one kerbal's consumption per day. So I made an assumption that a kerabal would use 10 litres/day. At the top of the config I added some lines to change the densities and amounts of Water and wasteWater to be quantized in litres before changing lqdWater occurrences to Water: // First adjust TAC water amounts to be litres instead of days per kerbal @RESOURCE_DEFINITION[Water] { @density = 0.001 } @RESOURCE_DEFINITION[WasteWater] { @density = 0.0012 } @PART [*]:HAS[@RESOURCE[Water]] { @RESOURCE[Water] { @amount *= 10 @maxAmount *= 10 } } @PART [*]:HAS[@RESOURCE[WasteWater]] { @maxAmount *= 10 } And then adjust the consumption rate in the in-game TACLS settings accordingly. I was a bit lazy with my maths, but that's easy for anyone interested to adjust within this framework. but this way you still get one day's resources per kerbal in your pods and the values are in line with interstellar mod's. I also removed the "resizing" of the interstellar long water tank found in these lines: // ../Parts/FuelTank/LongWaterTank/part.cfg @PART[FNLiquidWaterTank]:Final { @RESOURCE[LqdWater] { @name = Water @amount = 4065 @maxAmount = 4065 } } You can download my config here if you like: https://drive.google.com/file/d/0B82EGaR6GNXeMUpyNU9qenRKS1k/edit?usp=sharing Hope this helps
  10. Well, as it was released under the GNU GPL I'm thinking this will be ok: https://drive.google.com/file/d/0B82EGaR6GNXeRVFqMVpvN19sNlk/edit?usp=sharing
×
×
  • Create New...