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
<taniwha>
N70: orphan it
<taniwha>
(and -NC is generally incompatible, especially with the GPL (dunno about Unlicense))
Technicalfool has joined #kspmodding
<taniwha>
N70: though, really, why do you want to destroy a PartResource?
<N70>
... for some reason, JDiminishingRPG was doing it
<N70>
RTG*
<N70>
and i was porting it to 1.4.1
<taniwha>
ah, from pre-1.2
<taniwha>
prior to 1.2, PartResource was a MonoBehaviour
<taniwha>
that was "fixed" for 1.2
<taniwha>
so, yeah, just pull it from the list of resources and drop it
<N70>
also, where could i get some antenna modules
<N70>
i need some low gain antennas for kerbalism... due to a lack of a method for having long-range relays due to a lack of low-gain long range antennas
<taniwha>
low-gain long range is an oxymoron
<N70>
low-gain means omnidirectional, no?
<taniwha>
gain = range
<N70>
"Antenna gain is often quoted with respect to a hypothetical antenna that radiates equally in all directions" -wikipedia
<N70>
"The larger the collecting area of an HGA, the higher the gain, and the higher the rate of data transfer it will support. However, the higher the gain, the more highly directional it is. When using an HGA, it must be pointed to within a fraction of a degree of Earth for communications to work. Once this is achieved, communications may take place at a high rate over the highly focused radio signal.
<N70>
"
<taniwha>
omnidirectional means low gain, not the other way
<N70>
yees
<N70>
But how tf would people be able to get a relay to reach even the freaking Mun in kerbalism
<taniwha>
well, first, you could consider that kerbalism might be wrong
<taniwha>
(not stating that it is)
<N70>
if it is, how could I fix that?
<taniwha>
by adjusting the antenna ranges
<taniwha>
and remembering that effective range = sqrt(range1*range2)
<N70>
The best low-gain in Kerbalism has a distance of 5e6
<taniwha>
oh, and I wouldn't trust the guy, since he left it in a mess in the first place :)
<N70>
i barely used his code
<N70>
besides Cryofuels code
<N70>
background simulation code*
<taniwha>
as for haully, "doing the math" was impossible due to bad coding
<taniwha>
anyway, you want rate to decrease with distance. if you want smooth falloff from maxrate at 0 range, use maxrate * Exp(-distance/cutoff_distance)
<N70>
guessing d is cutoff_distance
<taniwha>
if you want maxrate out to a certain range and then inverse-square falloff, maxrate * Math.Min(1.0, (cutoff_distance/distance)*(cutoff_distance/distance))
<taniwha>
N70: that was my guess in the first place, yes
<N70>
ok
<taniwha>
of course, there are other similarly behaved equations you can use that give slightly different properties at around distancefactor = 1