[Posting] Re: core regeneration bug?
From:GhostWriter
Thread:core regeneration bug?
Forum:Bugs
In reply to:Re: core regeneration bug?
Date:Thu, 2013-03-28 12:57 GMT
Edited:Thu, 2013-03-28 13:19 GMT

GhostWriter: i have noticed that the planet core regeneration rate is lower than THost. what is the PHost formula?

the THost formula is CoreRegenAmount = CEILING(RegenRate*(mining rate/100)), thus a mining rate of 21 with a [THost] default core regeneration rate of 5 percent gives a core regeneration of 2.

streu: For what THost version is your formula?

The formula I know is ERND(RegenRate*Density/100), where ERND is the "round to nearest integer, .5 rounds up or down to next even number" function. PHost's formula is ROUND(RegenRate*Density/100), which is always the same or more (.5 always rounds up).

--Stefan

GhostWriter: i recently checked the time-stamp on the THosts in question. specifically, in my last public THost game (start ~April 2000,) the argument that i remember as the .046/.047 change in the max movement rate, (from what i have seen in the last few months,) was probably, in fact, the .026/.027 movement rate change argument. this make sense? if that is the case, and i am convinced that is what happened, then the THost mining rate that i remember is from 3.22.026 (?), or before.

...

that said, which THost change altered from the mid-90's formula (CEILING) to the lower formula that you have?

cherek: The only change that Tim make in .047 was to add a third decloak to eliminate an exploit that a Privateer and myself used when crossing the map seam in THost.

GhostWriter response: the question that i am seeking the answer to is:

what THost (fix?) changed the planet regen rate from the CEILING that i remember in the mid/late 90s to the "ERnd" that Stefan found and modified for PHost?