Forged Alliance Forever Forged Alliance Forever Forums 2014-04-06T13:54:15+02:00 /feed.php?f=2&t=6689 2014-04-06T13:54:15+02:00 2014-04-06T13:54:15+02:00 /viewtopic.php?t=6689&p=70622#p70622 <![CDATA[Re: Reclaim Formula]]> Statistics: Posted by rockoe10 — 06 Apr 2014, 13:54


]]>
2014-04-05T15:05:25+02:00 2014-04-05T15:05:25+02:00 /viewtopic.php?t=6689&p=70539#p70539 <![CDATA[Re: Reclaim Formula]]> Statistics: Posted by ZLO_RD — 05 Apr 2014, 15:05


]]>
2014-04-04T23:14:08+02:00 2014-04-04T23:14:08+02:00 /viewtopic.php?t=6689&p=70514#p70514 <![CDATA[Re: Reclaim Formula]]>
Crotalus wrote:
Reclaim time
-- Return the total time in seconds, cost in energy, and cost in mass to reclaim the given target from 100%.
-- The energy and mass costs will normally be negative, to indicate that you gain mass/energy back.
GetReclaimCosts = function(self, target_entity)
local bp = self:GetBlueprint()
local target_bp = target_entity:GetBlueprint()
if IsUnit(target_entity) then
#LOG('Reclaim Target Is Unit')

local mtime = target_bp.Economy.BuildCostEnergy / self:GetBuildRate()
local etime = target_bp.Economy.BuildCostMass / self:GetBuildRate()
local time = mtime
if mtime < etime then
time = etime
end

time = time * (self.ReclaimTimeMultiplier or 1)
time = math.max( (time/10), 0.0001) -- this should never be 0 or we'll divide by 0!
return time, target_bp.Economy.BuildCostEnergy, target_bp.Economy.BuildCostMass

elseif IsProp(target_entity) then
local time, energy, mass = target_entity:GetReclaimCosts(self)
#LOG('*DEBUG: Reclaiming a prop. Time = ', repr(time), ' Mass = ', repr(mass), ' Energy = ', repr(energy))
return time, energy, mass
end
end,


Question: Are these two time values suppose to use the opposite resource?
Analysis: The larger of the two times is used to calculate the DPS. From what I understand.

Statistics: Posted by rockoe10 — 04 Apr 2014, 23:14


]]>
2014-04-04T03:35:12+02:00 2014-04-04T03:35:12+02:00 /viewtopic.php?t=6689&p=70413#p70413 <![CDATA[Re: Reclaim Formula]]>
Code:
-- Return the total time in seconds, cost in energy, and cost in mass to reclaim the given target from 100%.
    -- The energy and mass costs will normally be negative, to indicate that you gain mass/energy back.
    GetReclaimCosts = function(self, target_entity)
        local bp = self:GetBlueprint()
        local target_bp = target_entity:GetBlueprint()
        if IsUnit(target_entity) then
            #LOG('Reclaim Target Is Unit')

            local mtime = target_bp.Economy.BuildCostEnergy / self:GetBuildRate()
            local etime = target_bp.Economy.BuildCostMass / self:GetBuildRate()
            local time = mtime
            if mtime < etime then
                time = etime
            end

            time = time * (self.ReclaimTimeMultiplier or 1)
            time = math.max( (time/10), 0.0001)  -- this should never be 0 or we'll divide by 0!
            return time, target_bp.Economy.BuildCostEnergy, target_bp.Economy.BuildCostMass

        elseif IsProp(target_entity) then
            local time, energy, mass =  target_entity:GetReclaimCosts(self)
            #LOG('*DEBUG: Reclaiming a prop.  Time = ', repr(time), ' Mass = ', repr(mass), ' Energy = ', repr(energy))
            return time, energy, mass
        end
    end,


Capture time
Code:
-- Return the total time in seconds, cost in energy, and cost in mass to capture the given target.
    -- Calculation given by Jake - 6/26/06
    GetCaptureCosts = function(self, target_entity)
        local target_bp = target_entity:GetBlueprint().Economy
        local bp = self:GetBlueprint().Economy

        local time = ((target_bp.BuildTime or 10) / self:GetBuildRate()) / 2
        local energy = target_bp.BuildCostEnergy or 100
        time = time * (self.CaptureTimeMultiplier or 1)

        return time, energy, 0
    end,

Statistics: Posted by Crotalus — 04 Apr 2014, 03:35


]]>
2014-04-03T23:38:34+02:00 2014-04-03T23:38:34+02:00 /viewtopic.php?t=6689&p=70399#p70399 <![CDATA[Re: Reclaim Formula]]>
Build Power: 56
Time to Reclaim: 782 sec
HP Reclaimed: 110,000
Mass Reclaimed: 37,500

DPS = (110,000 hp / 782 sec) = ~140.665 hp/sec
------------ OR
DPS = (37,500 mass / 782 sec) = ~47.95 mass/sec


DPS per Buildpower = 140.665/56 = ~2.5119 DPS/BP

I also did a test on the Galactic Colossus. Math below:

Build Power: 56
Time to Reclaim: ~619 sec (I couldn't pause again and could be off by a few seconds.)
HP Reclaimed: 99,999
Mass Reclaimed: 27,500

DPS = (99,999 hp / 619 sec) = ~161.55 HP/sec
------------ OR
DPS = (27,500 mass / 619 sec) = ~44.43 mass/sec


DPS per Buildpower = 161.55/56 = ~2.8848 DPS/BP


So as you can see, i am getting different numbers for DPS, both HP and mass related. This is more than likely due to the Build time of each unit

Statistics: Posted by rockoe10 — 03 Apr 2014, 23:38


]]>
2014-03-20T22:00:57+02:00 2014-03-20T22:00:57+02:00 /viewtopic.php?t=6689&p=69453#p69453 <![CDATA[Re: Reclaim Formula]]>
rockoe10 wrote:
ZLO_RD wrote:speed wich unit can be reclaimed by build capacity depends on amount of build power and build time of target

it is pretty easy imho, for example: reclaimming t1 radar takes alot of time, while ACU can reclaim hydrocarbon faster then shoot it down
so you just take unit build time and divide by your build power and you get time that you need to reclaim target (then may divide HP on time and get DPS of reclaim


Is this a 100% positive formula? Because I "feel" like its faster to reclaim than build. I could be wrong


agree... looks like my formula is wrong/not complete

Statistics: Posted by ZLO_RD — 20 Mar 2014, 22:00


]]>
2014-03-20T18:34:41+02:00 2014-03-20T18:34:41+02:00 /viewtopic.php?t=6689&p=69443#p69443 <![CDATA[Re: Reclaim Formula]]>
ZLO_RD wrote:
speed wich unit can be reclaimed by build capacity depends on amount of build power and build time of target

it is pretty easy imho, for example: reclaimming t1 radar takes alot of time, while ACU can reclaim hydrocarbon faster then shoot it down
so you just take unit build time and divide by your build power and you get time that you need to reclaim target (then may divide HP on time and get DPS of reclaim


Is this a 100% positive formula? Because I "feel" like its faster to reclaim than build. I could be wrong

Statistics: Posted by rockoe10 — 20 Mar 2014, 18:34


]]>
2014-03-19T19:22:58+02:00 2014-03-19T19:22:58+02:00 /viewtopic.php?t=6689&p=69358#p69358 <![CDATA[Re: Reclaim Formula]]>

Statistics: Posted by E8400-CV — 19 Mar 2014, 19:22


]]>
2014-03-19T07:01:06+02:00 2014-03-19T07:01:06+02:00 /viewtopic.php?t=6689&p=69318#p69318 <![CDATA[Re: Reclaim Formula]]> Statistics: Posted by ZLO_RD — 19 Mar 2014, 07:01


]]>
2014-03-18T23:53:36+02:00 2014-03-18T23:53:36+02:00 /viewtopic.php?t=6689&p=69303#p69303 <![CDATA[Re: Reclaim Formula]]> Statistics: Posted by Vee — 18 Mar 2014, 23:53


]]>
2014-03-18T22:10:29+02:00 2014-03-18T22:10:29+02:00 /viewtopic.php?t=6689&p=69297#p69297 <![CDATA[Re: Reclaim Formula]]>
so capture isn't faster than reclaim.

Statistics: Posted by CrayzyNath — 18 Mar 2014, 22:10


]]>
2014-03-18T21:39:04+02:00 2014-03-18T21:39:04+02:00 /viewtopic.php?t=6689&p=69291#p69291 <![CDATA[Re: Reclaim Formula]]>
If the buildpower of the unit doing the reclaiming is higher, then it reclaims faster. If the buildtime of the unit being reclaimed is lower, then it reclaims faster.

The actual time it takes also depends on which unit it is. For example aeon quantum optics facility takes a very long time to reclaim, afaik even longer than it takes to build it. On the other hand, t2 power gets reclaimed about 2x as fast as it takes to build it. Maybe this also changed since engymod?

I do know the formula for how long it takes to capture: half the time it takes to build. For all the units I tested, capturing is faster than reclaiming.

Statistics: Posted by Vee — 18 Mar 2014, 21:39


]]>
2014-03-18T20:41:07+02:00 2014-03-18T20:41:07+02:00 /viewtopic.php?t=6689&p=69285#p69285 <![CDATA[Re: Reclaim Formula]]>
it is pretty easy imho, for example: reclaimming t1 radar takes alot of time, while ACU can reclaim hydrocarbon faster then shoot it down
so you just take unit build time and divide by your build power and you get time that you need to reclaim target (then may divide HP on time and get DPS of reclaim

Statistics: Posted by ZLO_RD — 18 Mar 2014, 20:41


]]>
2014-02-16T22:14:00+02:00 2014-02-16T22:14:00+02:00 /viewtopic.php?t=6689&p=65555#p65555 <![CDATA[Reclaim Formula]]> Statistics: Posted by rockoe10 — 16 Feb 2014, 22:14


]]>