Sarbian changed the topic of #kspmodding to: Welcome to #kspmodding - the channel for discussing, and learning about, modding Kerbal Space Program. Code of Conduct: https://git.io/vSQh6 | Always provide logs. | *** PSA: https://kerbalspaceprogram.com/api/index.htm | Someone is writting a Phd dissertation on KSP modding please fill out this survey https://goo.gl/forms/1vrkPYH4az8l32sb2 - I have met him and it s legit
<Papa_Joe>
Quick question on Module Manager configs. It is possible to do a MathF.Clamp as part of an arithmetic expression? IN BDA we are looking at assigning a calculated value from existing part values on a part by part basis... We would like to avoid having to manipulate the partPrefab
<taniwha>
Papa_Joe: does MM give access to either tanh or atan?
<taniwha>
or even exp?
<taniwha>
or even some form of power (a^x)
<Papa_Joe>
the wiki says standard arithmetic operators, so that leads me to belive addition division multiplication, etc, but I've not looked at the parsing code yet to see what is possible.
<Papa_Joe>
I may just have to do that.
<taniwha>
tanh can be implemented from exp
<taniwha>
and tanh can give a non-linear approximation of clamp
<taniwha>
hmm
<Papa_Joe>
ah.. that might work. I was thinking of possibly working around it is that manner, but thought I simply ask first.
<taniwha>
wonder what x/sqrt(x^2+1) looks like
<Papa_Joe>
Might have to give it a shot and see...
<taniwha>
x/sqrt(x^2+1) works too
<taniwha>
maps -inf..inf to -1..1
<taniwha>
0.98 at 5
<taniwha>
0.89 at 2
<taniwha>
0.71 at 1 (sqrt 0.5, actually)
<Papa_Joe>
thx!
<taniwha>
did JPLRepo ever mention my KerbalStats to you?
<taniwha>
he told me you might be interested in its KerbalExt for some of your stuff
<Papa_Joe>
He did. and we discussed it. We both agreed that a collaboration would likely be a great idea.
<Papa_Joe>
We've have been kind of busy of late, but definitely want to pursue it.
<Papa_Joe>
Roster Manager is the mod we have sort of developing on the side, but there is a lot of potential there.
<taniwha>
cool :)
<taniwha>
x*x*sgn(x)/(x*x+1) works too: 0, 0.5, 0.8, 0.9, 0.94, 0.96
<taniwha>
(+/-)
<Papa_Joe>
Nice. passing that on to the developer working that feature. thanks!
<taniwha>
np :)
<Papa_Joe>
He was talking about doing a partPrefab scheme and I said I just know there is an easier way.
<taniwha>
btw, sqrt(x^2+1)+x is at the heart of asinh and is what I use for EL's productivity calculations for high-level kerbals
<Papa_Joe>
good to know.
<taniwha>
-inf..0 -> 0..1, 0..inf -> 1..x
jbos has joined #kspmodding
jbos has quit [Quit: X]
Mathuin has quit [Remote host closed the connection]
BasharMilesTeg_ has joined #kspmodding
BasharMilesTeg has quit [Ping timeout: 186 seconds]
Rokker has quit [Quit: Connection closed for inactivity]
SilverFox has quit [Ping timeout: 183 seconds]
SilverFox has joined #kspmodding
riocrokite has joined #kspmodding
Rokker has joined #kspmodding
ferram4 has quit [Ping timeout: 383 seconds]
hashashin has joined #kspmodding
Ezriilc has joined #kspmodding
egg|zzz|egg is now known as egg
Rokker has quit [Quit: Connection closed for inactivity]