• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 03:02
CET 09:02
KST 17:02
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
ComeBackTV's documentary on Byun's Career !3Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win2Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15
StarCraft 2
General
Simple life skill activities that schools ignore ComeBackTV's documentary on Byun's Career ! Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win Did they add GM to 2v2? RSL Revival - 2025 Season Finals Preview
Tourneys
RSL Offline Finals Info - Dec 13 and 14! Master Swan Open (Global Bronze-Master 2) Winter Warp Gate Amateur Showdown #1: Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle How Rain Became ProGamer in Just 3 Months BGH Auto Balance -> http://bghmmr.eu/ [BSL21] RO8 Bracket & Prediction Contest BW General Discussion
Tourneys
[BSL21] WB SEMIFINALS - Saturday 21:00 CET [Megathread] Daily Proleagues [BSL21] RO8 - Day 2 - Sunday 21:00 CET [ASL20] Grand Finals
Strategy
Game Theory for Starcraft Current Meta Simple Questions, Simple Answers Fighting Spirit mining rates
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread General RTS Discussion Thread Dawn of War IV Nintendo Switch Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
Stages of a Sales Pipeline: Simple Explanation Nee The Games Industry And ATVI Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Expert Legal Assistance for Corporate Law Concepts Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
How Sleep Deprivation Affect…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1185 users

[Q] Cost to repair? - Page 3

Forum Index > Brood War Strategy
Post a Reply
Prev 1 2 3 4 5 Next All
Grobyc
Profile Blog Joined June 2008
Canada18410 Posts
Last Edited: 2009-04-24 02:42:25
April 24 2009 02:41 GMT
#41
Okay I got totally confused in my testing, and I have to go soon but I made a UMS map for testing it which can be found here:
http://files.filefront.com/test33scx/;13648175;/fileinfo.html

Some things to note:
- Operation cwal + changing the build time of the unit/building DOES AFFECT THE REPAIR COST
- Sending any unit to the beacon automatically sets your resource count(mineral and gas) to exactly 1000 each time. This is for setting a number that is high enough and easily recordable for seeing how much it cost to repair.
- The marine and ghost have modified damages incase you want to attack one of your units, reducing it's health so you can do another trial on it or something.
- I put duplicates of every mech unit, one with 100% health and the other set with 1% health.
- The factory and starport are there for building more units, in the case that you accidently killed your own or something.

Some things I noted in my little bit of testing:

- siege tank(150/100) had a repair cost of a ratio 1:1 with minerals to gas, EVEN THOUGH it is more mineral heavy than gas.
- I tried repairing a goliath(100,50) and it cost more minerals(i believe, or maybe it was gas) to repair than gas. I.E not a 1:1 mineral:gas ratio like the siege tank. it was more like 1.4:1 or something.
- When I changed the goliaths unit cost to 150/100 like the tank, it DID REPAIR AT A 1:1 RATIO.
If you watch Godzilla backwards it's about a benevolent lizard who helps rebuild a city and then moonwalks into the ocean.
Ryshi
Profile Blog Joined June 2004
Canada361 Posts
April 24 2009 03:57 GMT
#42
^that last bit is very interesting o_o
The World God Only Knows
Polemarch
Profile Joined August 2005
Canada1564 Posts
Last Edited: 2009-04-24 04:58:14
April 24 2009 04:55 GMT
#43
I'm guessing it's meant to be a 1:3 ratio of the unit/building's cost, but there's some rounding error that makes it equal gas/minerals for e.g. tank/BC.

e.g. mineral cost per repair-animation for a tank might be 1.2 and gas cost per repair animation might be 0.8; but both get rounded to 1.
I BELIEVE IN CAPITAL LETTER PUNISHMENT!!!!!
CharlieMurphy
Profile Blog Joined March 2006
United States22895 Posts
April 24 2009 09:01 GMT
#44
On April 24 2009 11:25 kakisama wrote:
so what about repair time?

That's the first thing I thought of when I saw this thread because I was already fairly certain everything is about 1/3 cost to repair.
..and then I would, ya know, check em'. (Aka SpoR)
Patriot.dlk
Profile Blog Joined October 2004
Sweden5462 Posts
April 24 2009 09:37 GMT
#45
I love blizzards algorithms =)
Thx for the people doin all the testing
jeppew
Profile Joined April 2009
Sweden471 Posts
April 24 2009 11:08 GMT
#46
it's probably like in Wc3, units have a repair cost, seperate from their acutal cost.
the repair cost is how many resources you need to repair from 0 to max hp.
so the rates should be related to their real cost but there might not be a universal algoritm for all of them, some units might be more cost effiecent to repair than others.
Jiiks
Profile Joined January 2009
Finland487 Posts
April 24 2009 11:31 GMT
#47
I tested all the units might test buildings if im bored here's my results:
Played on fastest didn't get times cause advloader clock bugged.
+ Show Spoiler +
Siege tank: 1-150hp
Minerals/Gas: 33/33
%of new: 22/33

SCV: 1-60hp
Minerals: 17
%of new: 34

Goliath: 1-125
Minerals/Gas: 34/17
%of new: 34/34

Vulture: 1-80hp
Minerals: 25
%of new: 33

Valkyrie: 1-200hp
Minerals/Gas: 84/42
%of new: 34/34

Wraith: 1-120hp
Minerals/Gas: 33/33
%of new: 22/33

Science Vessel: 1-200hp
Minerals/Gas: 33/66
%of new: 33/29

Dropship: 1-150hp
Minerals/Gas: 33/33
%of new: 33/33

Battlecruiser: 1-500hp
Minerals/Gas: 96/96
%of new: 24/32
niteReloaded
Profile Blog Joined February 2007
Croatia5282 Posts
April 24 2009 11:47 GMT
#48
On April 24 2009 11:41 Grobyc wrote:
Okay I got totally confused in my testing, and I have to go soon but I made a UMS map for testing it which can be found here:
http://files.filefront.com/test33scx/;13648175;/fileinfo.html

Some things to note:
- Operation cwal + changing the build time of the unit/building DOES AFFECT THE REPAIR COST
- Sending any unit to the beacon automatically sets your resource count(mineral and gas) to exactly 1000 each time. This is for setting a number that is high enough and easily recordable for seeing how much it cost to repair.
- The marine and ghost have modified damages incase you want to attack one of your units, reducing it's health so you can do another trial on it or something.
- I put duplicates of every mech unit, one with 100% health and the other set with 1% health.
- The factory and starport are there for building more units, in the case that you accidently killed your own or something.

Some things I noted in my little bit of testing:

- siege tank(150/100) had a repair cost of a ratio 1:1 with minerals to gas, EVEN THOUGH it is more mineral heavy than gas.
- I tried repairing a goliath(100,50) and it cost more minerals(i believe, or maybe it was gas) to repair than gas. I.E not a 1:1 mineral:gas ratio like the siege tank. it was more like 1.4:1 or something.
- When I changed the goliaths unit cost to 150/100 like the tank, it DID REPAIR AT A 1:1 RATIO.

now thats what I call a scientific approach
mahnini
Profile Blog Joined October 2005
United States6862 Posts
April 24 2009 11:48 GMT
#49
repair time and cost are related to build time and cost of whatever you're repairing. this is how people make stuff take forever to repair in UMS games, they just crank up the build times.
the world's a playground. you know that when you're a kid, but somewhere along the way everyone forgets it.
RaiZ
Profile Blog Joined April 2003
2813 Posts
April 24 2009 12:02 GMT
#50
Quick ! I'll do it before anyone can say something !
Insert a [we still have something to learn after 10 years ? Jez] comment ~
Okay solved.
Too much tl.net / starcraft yes ?
Man is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. Oscar Wilde
seppolevne
Profile Blog Joined February 2009
Canada1681 Posts
April 24 2009 13:41 GMT
#51
On April 24 2009 20:31 Jiiks wrote:
I tested all the units might test buildings if im bored here's my results:
Played on fastest didn't get times cause advloader clock bugged.
+ Show Spoiler +
Siege tank: 1-150hp
Minerals/Gas: 33/33
%of new: 22/33

SCV: 1-60hp
Minerals: 17
%of new: 34

Goliath: 1-125
Minerals/Gas: 34/17
%of new: 34/34

Vulture: 1-80hp
Minerals: 25
%of new: 33

Valkyrie: 1-200hp
Minerals/Gas: 84/42
%of new: 34/34

Wraith: 1-120hp
Minerals/Gas: 33/33
%of new: 22/33

Science Vessel: 1-200hp
Minerals/Gas: 33/66
%of new: 33/29

Dropship: 1-150hp
Minerals/Gas: 33/33
%of new: 33/33

Battlecruiser: 1-500hp
Minerals/Gas: 96/96
%of new: 24/32


Do you think I could throw this in OP? Great work ^^
J- Pirate Udyr WW T- Pirate Riven Galio M- Galio Annie S- Sona Lux -- Always farm, never carry.
jeppew
Profile Joined April 2009
Sweden471 Posts
Last Edited: 2009-04-24 15:22:09
April 24 2009 13:45 GMT
#52
On April 24 2009 11:41 Grobyc wrote:
Okay I got totally confused in my testing, and I have to go soon but I made a UMS map for testing it which can be found here:
http://files.filefront.com/test33scx/;13648175;/fileinfo.html

Some things to note:
- Operation cwal + changing the build time of the unit/building DOES AFFECT THE REPAIR COST
- Sending any unit to the beacon automatically sets your resource count(mineral and gas) to exactly 1000 each time. This is for setting a number that is high enough and easily recordable for seeing how much it cost to repair.
- The marine and ghost have modified damages incase you want to attack one of your units, reducing it's health so you can do another trial on it or something.
- I put duplicates of every mech unit, one with 100% health and the other set with 1% health.
- The factory and starport are there for building more units, in the case that you accidently killed your own or something.

Some things I noted in my little bit of testing:

- siege tank(150/100) had a repair cost of a ratio 1:1 with minerals to gas, EVEN THOUGH it is more mineral heavy than gas.
- I tried repairing a goliath(100,50) and it cost more minerals(i believe, or maybe it was gas) to repair than gas. I.E not a 1:1 mineral:gas ratio like the siege tank. it was more like 1.4:1 or something.
- When I changed the goliaths unit cost to 150/100 like the tank, it DID REPAIR AT A 1:1 RATIO.



maybe the cost of repairing 1hp is (mineralcost)*k/MaxHp for minerals and 1.5*(gascost)*k/MaxHp for gas.

where k is some konstant, so if k was 1 then repairing a tank from half hp would cost 75/75.
but, i would guess that k is probably somewhere around 0.2
so repairing a unit from 1hp to max should cost somewhere around 0.2 minerals of it's cost and 0.3 gas.

edit; didn't read the cwal part, sry.
so construction speed is a factor aswell, does the cost increase the quicker the unit is built or the other way around?
Jiiks
Profile Joined January 2009
Finland487 Posts
April 24 2009 14:00 GMT
#53
On April 24 2009 22:41 seppolevne wrote:
Show nested quote +
On April 24 2009 20:31 Jiiks wrote:
I tested all the units might test buildings if im bored here's my results:
Played on fastest didn't get times cause advloader clock bugged.
+ Show Spoiler +
Siege tank: 1-150hp
Minerals/Gas: 33/33
%of new: 22/33

SCV: 1-60hp
Minerals: 17
%of new: 34

Goliath: 1-125
Minerals/Gas: 34/17
%of new: 34/34

Vulture: 1-80hp
Minerals: 25
%of new: 33

Valkyrie: 1-200hp
Minerals/Gas: 84/42
%of new: 34/34

Wraith: 1-120hp
Minerals/Gas: 33/33
%of new: 22/33

Science Vessel: 1-200hp
Minerals/Gas: 33/66
%of new: 33/29

Dropship: 1-150hp
Minerals/Gas: 33/33
%of new: 33/33

Battlecruiser: 1-500hp
Minerals/Gas: 96/96
%of new: 24/32


Do you think I could throw this in OP? Great work ^^


Yea sure i dont mind.
cyronc
Profile Joined March 2008
218 Posts
April 24 2009 15:48 GMT
#54
as far as i know (and im not quite sure about this) the formula sc uses is something like (hp-to-repair/maxhp)*(unit cost in mins and gas)*constant value

i dont know what the constant value is but it would be neat if somebody could try to run the numbers gained via experiments above through this formula and see whether its a viable explanation (and if it is what the constant value lokks like) or not

gl hf
iH82G8!
HeaDStrong
Profile Blog Joined January 2009
Scotland785 Posts
April 24 2009 16:48 GMT
#55
This is nice read. I wish I wasn't that lazy and would experiment with stuff i'm curious about.

BTW has anyone though how an SCV can repair air units but cant atack them?! a mystery to be solved...

On April 24 2009 09:46 dirtnap wrote:
i think it's something like 5 minerals per HP. not much at all.


epic troll!
SirNukes
Profile Joined April 2009
18 Posts
Last Edited: 2009-04-26 20:54:20
April 24 2009 17:38 GMT
#56
I did some testing using staredit to modify single unit values (cost, build time, health) and came up with something that should be close to the SC repair logic. Testing was done with units at 50% health. It seems to me there are three variables that describe repairs: the cost per repair cycle, the time per repair cycle, and the health healed per repair cycle. I will lay out the logic I found for calculating these in steps.

---Finding the cost per repair cycle
1) Calculate 1% of the mineral and gas cost of the repair target, ignoring zeroes.
ex1. Siege Tank: 150 min * 0.01 = 1.5 min, , 100 gas * 0.01 = 1 gas.
ex2. Armory: 100 min * 0.01 = 1 min, 50 gas * 0.01 = 0.5 gas
ex3. CC: 400 min * 0.01 = 4 min
2) Divide the smallest value from (1) into 1 and note this new value, which I will call proportional change.
ex1. Siege Tank: 1 / 1 gas = 1
ex2. Armory: 1 / 0.5 gas = 2
ex3. CC: 1 / 4 min = 0.25
3) Apply this proportional change from (2) to each of the values from (1).
ex1. Siege Tank: 1.5 min * 1 = 1.5 min, 1 gas * 1 = 1 gas
ex2. Armory: 1 min * 2 = 2 min, 0.5 gas * 2 = 1 gas
ex3. CC: 4 min * 0.25 = 1 min
4) Round down the values from (3) to obtain the cost per repair cycle.
ex1. Siege Tank: 1 min, 1 gas
ex2. Armory: 2 min, 1 gas
ex3. CC: 1 min, 0 gas

---Finding the time per repair cycle
5) Calculate 2.8% of the unit's Build Time.
ex1. Siege Tank: 50 seconds *0.028 = 1.4s
ex2. Armory: 80 seconds *0.028 = 2.24s
ex3. CC: 120 seconds *0.028 = 3.36s
6) Multiply the value from (5) by the proportional change from (2) to obtain the time per repair cycle.
ex1. Siege Tank: 1.4s * 1 = 1.4 seconds
ex2. Armory: 2.24s * 2 = 4.48 seconds
ex3. CC: 3.36s * 0.25 = 0.84 seconds

---Finding the health healed per repair cycle
7) Divide the value(s) from (4) into the unit's total cost.
ex1. Siege Tank: 1 min / 100 min = 0.01, 1 gas / 150 gas = 0.00667...
ex2. Armory: 2 min / 100 min = 0.02, 1 gas / 50 gas = 0.02
ex3. CC: 1 min / 400 min = 0.0025
8) Multiply the highest of the values from (7) by the unit's maximum health and by 3.15 (this is not exact; the game appears to use a '3' value but some framerate rounding causes it to vary between 3 and 3.3 or so). This is approximately the health healed per repair cycle.
ex1. Siege Tank: 0.01 * 150 health * 3.15 = 4.725 health
ex2. Armory: 0.02 * 750 health * 3.15 = 47.25 health
ex3. CC: 0.0025 * 1500 health * 3.15 = 11.8125 health

To summarize the examples:
ex1. Siege Tank: Costs 1 min and 1 gas to heal 4.725 health over 1.4 seconds.
ex2. Armory: Costs 2 min and 1 gas to heal 47.25 health over 4.48 seconds.
ex3. CC: Costs 1 min to heal 11.8125 health over 0.84 seconds.

The above results appear to work for costs down to 1 and up to several thousand. The numbers are likely not exact in a couple places due to rounding, but should generally be close (+/- 5% or so).

Some extra observations:
If an SCV gets its repair command interrupted during a repair cycle (likely by another command), you do not get any sort of refund on unused repair time and will have to pay the initial cost again to resume repairs. However, if the repair target moves, the repair cycle pauses until the SCV catches up, at which time it will resume the cycle from where it left off, costing no extra resources. Multiple SCVs repairing the same target each run on their own repair cycles and do not seem to interact. While the game does track fractional health values (in 256ths, I read somewhere), it does not appear to track fractional resource values, at least not with repairs.
Impervious
Profile Blog Joined March 2009
Canada4212 Posts
April 24 2009 21:10 GMT
#57
^^

Wow. Nice work.
~ \(ˌ)im-ˈpər-vē-əs\ : not capable of being damaged or harmed.
Polemarch
Profile Joined August 2005
Canada1564 Posts
April 24 2009 21:34 GMT
#58
Wow that's great, sirnukes, thank you!

Regarding the extra observation about the repair command interruption; does this mean that e.g. if you spam an SCV and repeatedly tell it to repair a bunker, then it costs more (and repairs at the same rate) than if you had just told it to repair once and let it finish?
I BELIEVE IN CAPITAL LETTER PUNISHMENT!!!!!
SirNukes
Profile Joined April 2009
18 Posts
April 24 2009 22:33 GMT
#59
On April 25 2009 06:34 Polemarch wrote:
Regarding the extra observation about the repair command interruption; does this mean that e.g. if you spam an SCV and repeatedly tell it to repair a bunker, then it costs more (and repairs at the same rate) than if you had just told it to repair once and let it finish?

It will cost more and, it seems, repair slower since there is a tiny delay after giving the repair order and the SCV starting repairs. A 50% bunker took 10 seconds and 17 minerals to repair normally, while a spam-clicked 50% bunker took 15 seconds and 104 minerals to repair for me. If you click fast enough you can stop the SCV from repairing because it will be stuck in that tiny delay. In theory, I think you could click just right so that the SCV only repairs 1 health each time, meaning a 50% bunker would take 175 minerals to repair.
arb
Profile Blog Joined April 2008
Noobville17921 Posts
April 24 2009 23:23 GMT
#60
Does it cost more if you repair with more scvs?
Artillery spawned from the forges of Hell
Prev 1 2 3 4 5 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 1h 58m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 176
StarCraft: Brood War
Rain 5083
JulyZerg 29
NaDa 21
Shine 14
ZergMaN 12
Mong 11
Dota 2
NeuroSwarm93
League of Legends
JimRising 533
C9.Mang0431
Counter-Strike
shoxiejesuss15
Other Games
summit1g12648
WinterStarcraft441
Mew2King89
Trikslyr24
Organizations
Other Games
gamesdonequick804
StarCraft: Brood War
UltimateBattle 95
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• LUISG 3
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 1
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• HappyZerGling156
Upcoming Events
The PondCast
1h 58m
WardiTV 2025
4h 58m
Cure vs Creator
Solar vs TBD
herO vs Spirit
Scarlett vs Gerald
Rogue vs Shameless
MaNa vs ShoWTimE
Nice vs TBD
WardiTV 2025
1d 2h
ByuN vs TBD
Clem vs TBD
OSC
1d 5h
CranKy Ducklings
2 days
SC Evo League
2 days
Ladder Legends
2 days
BSL 21
2 days
Sziky vs Dewalt
eOnzErG vs Cross
Sparkling Tuna Cup
3 days
Ladder Legends
3 days
[ Show More ]
BSL 21
3 days
StRyKeR vs TBD
Bonyth vs TBD
Replay Cast
4 days
Monday Night Weeklies
4 days
WardiTV Invitational
6 days
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
WardiTV 2025
META Madness #9
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.