• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 05:33
CET 11:33
KST 19:33
  • 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
TL.net Map Contest #21: Winners5Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
Starcraft, SC2, HoTS, WC3, returning to Blizzcon!28$5,000+ WardiTV 2025 Championship5[BSL21] RO32 Group Stage4Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win9
StarCraft 2
General
5.0.15 Patch Balance Hotfix (2025-10-8) Starcraft, SC2, HoTS, WC3, returning to Blizzcon! TL.net Map Contest #21: Winners RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win
Tourneys
- nuked - Constellation Cup - Main Event - Stellar Fest $5,000+ WardiTV 2025 Championship Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
BW General Discussion [ASL20] Ask the mapmakers — Drop your questions [BSL21] RO32 Group Stage BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review
Tourneys
[Megathread] Daily Proleagues [BSL21] RO32 Group B - Sunday 21:00 CET [BSL21] RO32 Group A - Saturday 21:00 CET BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION
Strategy
PvZ map balance Current Meta How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread ZeroSpace Megathread General RTS Discussion 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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Dating: How's your luck?
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Why we need SC3
Hildegard
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1515 users

Defence Maps Damage Optimization

Blogs > Hidden_MotiveS
Post a Reply
Hidden_MotiveS
Profile Blog Joined February 2010
Canada2562 Posts
May 04 2011 04:01 GMT
#1
Have you ever played a starcraft defence map and wondered whether you should build more units or upgrade your units attack in order to increase their damage output?

[image loading]
How do you turn lights off?


Well wonder no further!

The damage output of all of your units can be expressed as a simple formula

number_of_units * (base_damage_of_unit + damage_increase_per_upgrade * number_of_upgrades)

The total cost of all of your units can be expressed as the sum of the costs of all the units you build, and the sum of the costs of all of your upgrades.

total cost = cost_of_all_units + cost_of_all_upgrades

The cost of all of your units is just the cost of one unit times the number of units you build

cost_of_all_units = cost_of_one_unit * number_of_units

The cost of the upgrades can vary. Assuming that the costs of the upgrades increases arithmetically, (1,2,3,4,5 minerals for the 1st, 2nd, 3rd, 4th, and 5th upgrades) then the total cost of all your upgrades can be expressed as the (sum of the first term plus the sum of the second term) times half the number of terms.

aside**
+ Show Spoiler +

[image loading]
Gauss was the original G-unit. Look at him.
I bet he wasn't afraid to divide by zero.


Professors often talk about how kid Gauss figured out this mathematical phenomena.
See teachers in the 1800's were really really lazy. They were so lazy in fact, that Gauss's elementary school teacher, told his students to add up the first 100 whole numbers, while he went to take a nap. As the others students scurrilously started adding numbers on their papers, Gauss figured out that, adding 1 and 100, produced the same result as adding 2 and 99. He just added the sum of 1 and 100 and multiplied by the number of pairs of number he would have.

He figured out the sum of the first 100 whole numbers (5050), woke his teacher up from his nap, and went on to develop lots of ways to torment engineering students taking electromagnetics courses.

[image loading]
Though best known as the inventor of the gauss rifle, gauss also did a lot of math in his spare time.



cost_of_all_upgrades = number_of_upgrades / 2 * (sum_of_first_and_last_upgrade)

and sum_of_first_and_last_upgrade can be defined as number_of_upgrades + 1 (the first upgrade costs one mineral, and the last one costs the same amount as the number of upgrades you've gotten).

Knowing all this, you can optimize damage with respect to cost by putting all the equations together.

{damage}/{cost} = { number_of_units * (base_damage_of_unit + damage_increase_per_upgrade * number_of_upgrades) } / { [ cost_of_one_unit * number_of_units ] + [ number_of_upgrades / 2 * (number_of_upgrades + 1) ] }

Now you break out your handy excel spreadsheet!... What you don't have a handy excel spreadsheet? Fine... you can borrow mine.
It tells you when you should upgrade and when you should build. If only you'll fill in some numbers.

I understand that damage calculations have lots of confounding variables, such as splash damage, range, or the speed of projectiles. I made this blog mainly to get a 1000th post. Theorycrafting can be useful for things like saturation calculations but that's a bit more complicated.

I personally don't play defence maps. There are too many newbies who make you lose. The only defence maps I play are SAT control, and ones where I can play individually.

ReketSomething
Profile Blog Joined November 2008
United States6012 Posts
May 04 2011 04:26 GMT
#2
1000

Man that lights on lights off thing was great. Whoever thought of using that to exploit BW was a friggin genius and made me waste so much of my time in high school
Jaedong :3
Boblion
Profile Blog Joined May 2007
France8043 Posts
Last Edited: 2011-05-04 04:48:40
May 04 2011 04:48 GMT
#3
On May 04 2011 13:01 Hidden_MotiveS wrote:

How do you turn lights off?

Sc2 people will never know about cannon stacking =(
fuck all those elitists brb watching streams of elite players.
LaSt)ChAnCe
Profile Blog Joined June 2005
United States2179 Posts
May 04 2011 05:00 GMT
#4
On May 04 2011 13:48 Boblion wrote:
Show nested quote +
On May 04 2011 13:01 Hidden_MotiveS wrote:

How do you turn lights off?

Sc2 people will never know about cannon stacking =(


in sc2 we don't need glitches to cannon stack
ReketSomething
Profile Blog Joined November 2008
United States6012 Posts
May 04 2011 05:02 GMT
#5
On May 04 2011 14:00 LaSt)ChAnCe wrote:
Show nested quote +
On May 04 2011 13:48 Boblion wrote:
On May 04 2011 13:01 Hidden_MotiveS wrote:

How do you turn lights off?

Sc2 people will never know about cannon stacking =(


in sc2 we don't need glitches to cannon stack


Game was SOOO much more fun with the lights thing.
1) Clueless people were clueless. People confused is always fun.
2) When lights are off, you can't attack so it requires speed and precise building execution.

definitely more fun. tower defense games already require so little apm and with no glitches its less fun lol
Jaedong :3
Mindcrime
Profile Joined July 2004
United States6899 Posts
May 04 2011 06:31 GMT
#6
On May 04 2011 13:26 ReketSomething wrote:
1000

Man that lights on lights off thing was great. Whoever thought of using that to exploit BW was a friggin genius and made me waste so much of my time in high school


Evil genius maybe. I saw it in melee games before ums.
That wasn't any act of God. That was an act of pure human fuckery.
RoieTRS
Profile Blog Joined July 2008
United States2569 Posts
May 04 2011 07:03 GMT
#7
SAT control was fun.
konadora, in Racenilatr's blog: "you need to stop thinking about starcraft or anything computer-related for that matter. It's becoming a bad addiction imo"
kOre
Profile Blog Joined April 2009
Canada3642 Posts
May 04 2011 07:07 GMT
#8
On May 04 2011 13:48 Boblion wrote:
Show nested quote +
On May 04 2011 13:01 Hidden_MotiveS wrote:

How do you turn lights off?

Sc2 people will never know about cannon stacking =(

SC2 people + some BW people will never know about Hydra stacking ... lol 1 Hydra somehow does 1000 damage ... lol
http://www.starcraftmecca.net - Founder
Mortician
Profile Blog Joined December 2008
Bulgaria2332 Posts
Last Edited: 2011-05-04 07:45:05
May 04 2011 07:44 GMT
#9
On May 04 2011 16:07 kOre wrote:
Show nested quote +
On May 04 2011 13:48 Boblion wrote:
On May 04 2011 13:01 Hidden_MotiveS wrote:

How do you turn lights off?

Sc2 people will never know about cannon stacking =(

SC2 people + some BW people will never know about Hydra stacking ... lol 1 Hydra somehow does 1000 damage ... lol


Man, SC2 people will never know how to morph lurkers from zerglings, or turn zerglings into mutas
"If anything, the skill cap in sc2 is higher [than sc1] because there are a lot more things you can do at one given time. " darmousseh
LaSt)ChAnCe
Profile Blog Joined June 2005
United States2179 Posts
May 04 2011 08:09 GMT
#10
or how to make drones fly
eviltomahawk
Profile Blog Joined August 2010
United States11135 Posts
May 04 2011 08:43 GMT
#11
With Galaxy Editor, anything is possible.
ㅇㅅㅌㅅ
Yurie
Profile Blog Joined August 2010
11923 Posts
May 04 2011 09:38 GMT
#12
Building stacking is possible in sc2, seen it in several UMS maps. I think zillion zerglings make use of it.
a176
Profile Blog Joined August 2009
Canada6688 Posts
May 04 2011 10:03 GMT
#13
On May 04 2011 17:43 eviltomahawk wrote:
With Galaxy Editor, anything is possible.


and you could do jack all with staredit, which made lights out so awesome
starleague forever
Boblion
Profile Blog Joined May 2007
France8043 Posts
Last Edited: 2011-05-04 11:50:45
May 04 2011 11:49 GMT
#14
Now that i remember there was a weird cannon stack hack in melee too. I think it got patched around 2006

One guy used it against me in a 2v2 Lt noob back then. I was completly clueless, i didn't even know how to cannon stack in UMS haha. Too bad that guy sucked and my ally killed him lol.
fuck all those elitists brb watching streams of elite players.
Please log in or register to reply.
Live Events Refresh
Next event in 1h 27m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Calm 7742
Jaedong 647
BeSt 372
Stork 253
Light 225
Mini 156
Leta 150
JYJ141
PianO 131
Larva 126
[ Show more ]
Aegong 107
Pusan 101
EffOrt 88
sSak 86
soO 48
Sharp 44
Backho 43
Rush 37
sorry 25
yabsab 20
Barracks 20
NotJumperer 18
HiyA 10
Terrorterran 10
Bale 9
Noble 7
scan(afreeca) 2
Icarus 2
Dota 2
Gorgc5679
KheZu210
XcaliburYe161
League of Legends
JimRising 412
Reynor173
Counter-Strike
fl0m1739
zeus128
taco 81
Other Games
summit1g16616
singsing1141
ceh9459
crisheroes191
Happy176
Sick127
XaKoH 102
NeuroSwarm43
Organizations
Other Games
gamesdonequick517
Counter-Strike
PGL167
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• LUISG 34
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos3775
• Stunt597
Upcoming Events
OSC
1h 27m
LAN Event
4h 27m
Lambo vs Harstem
FuturE vs Maplez
Scarlett vs FoxeR
Gerald vs Mixu
Zoun vs TBD
Clem vs TBD
ByuN vs TBD
TriGGeR vs TBD
Korean StarCraft League
16h 27m
CranKy Ducklings
23h 27m
LAN Event
1d 4h
IPSL
1d 7h
dxtr13 vs OldBoy
Napoleon vs Doodle
BSL 21
1d 9h
Gosudark vs Kyrie
Gypsy vs Sterling
UltrA vs Radley
Dandy vs Ptak
Replay Cast
1d 12h
Sparkling Tuna Cup
1d 23h
WardiTV Korean Royale
2 days
[ Show More ]
LAN Event
2 days
IPSL
2 days
JDConan vs WIZARD
WolFix vs Cross
BSL 21
2 days
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
2 days
Wardi Open
3 days
WardiTV Korean Royale
4 days
Replay Cast
4 days
Kung Fu Cup
5 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
5 days
The PondCast
5 days
RSL Revival
5 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
6 days
WardiTV Korean Royale
6 days
RSL Revival
6 days
Classic vs Creator
Cure vs TriGGeR
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
Stellar Fest: Constellation Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
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.