• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 13:49
CEST 19:49
KST 02:49
  • 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: Voting4[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
Weekly Cups (Oct 6-12): Four star herO65.0.15 Patch Balance Hotfix (2025-10-8)72Weekly Cups (Sept 29-Oct 5): MaxPax triples up3PartinG joins SteamerZone, returns to SC2 competition325.0.15 Balance Patch Notes (Live version)119
StarCraft 2
General
The New Patch Killed Mech! TL.net Map Contest #21: Voting 5.0.15 Patch Balance Hotfix (2025-10-8) Ladder Impersonation (only maybe) Weekly Cups (Oct 6-12): Four star herO
Tourneys
LiuLi Cup - September 2025 Tournaments Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) Tenacious Turtle Tussle WardiTV Mondays
Strategy
Custom Maps
External Content
Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers Mutation # 492 Get Out More
Brood War
General
BW General Discussion Pros React To: BarrackS + FlaSh Coaching vs SnOw BW caster Sayle ASL20 General Discussion [ASL20] Ro4 Preview: Descent
Tourneys
[Megathread] Daily Proleagues [ASL20] Semifinal B [ASL20] Semifinal A [ASL20] Ro8 Day 4
Strategy
Current Meta BW - ajfirecracker Strategy & Training Siegecraft - a new perspective TvZ Theorycraft - Improving on State of the Art
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread ZeroSpace Megathread Dawn of War IV Path of Exile
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
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
SPIRED by.ASL Mafia {211640} TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Men's Fashion Thread Sex and weight loss
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023
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
Inbreeding: Why Do We Do It…
Peanutsc
From Tilt to Ragequit:The Ps…
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1010 users

[L][D] Visualizing Zerg Supply Blocks

Forum Index > StarCraft 2 Strategy
Post a Reply
Normal
aerique
Profile Joined January 2012
Netherlands15 Posts
Last Edited: 2012-03-30 13:44:49
March 27 2012 13:00 GMT
#1
2012-03-30: added support for injects to the script

The script is available here: http://github.com/aerique/sc2-utils

Note: this post isn't about overlord timings (although I welcome improvements to the used build order) but about visualizing supply blocks.

As a lowly bronze zerg I needed some visual feedback on supply blocks since I was of the mindset of "how bad can it really be, eh?". So I started working on a small script that simulated a build order and fed (hopefully) relevant data into gnuplot.

I've finished a first alpha version of this script, meaning it is still full of bugs, incorrect assumptions and I'm the only one to have looked at it. That said, the graph has already given me an appreciation of the effect of an early supply block on the rest of the game.

Here's a graph it has produced of a 'proper' 15h15p build and the same build that's supply blocked at 28 for 40 seconds. The blue graph is the proper build and the red is the supply blocked one. The magenta graph shows the difference in the number of drones between the blue and red graph. The 'blocky' lines show the number of drones and the curved lines the amount of minerals:
[image loading]

This is what the graph looks like if the player tries to drone / catch up as good as possible after the supply block:
[image loading]

I have used Belial88's supply-at-8-minutes benchmark.

This is the build order for the blue line:

15 hatch / 15 pool:
( 9 :overlord)
(15 :hatchery)
(15 :spawning-pool)
(16 :overlord)
(16 :queen)
(16 :queen)
(24 :overlord)
(25 :hatchery)
(26 :overlord)
(32 :overlord)
(34 :queen)
(40 :overlord)
(48 :overlord)
(54 :overlord)
(62 :overlord)
(70 :overlord)
(78 :overlord)
(86 :overlord)
(this is a straight copy & paste from the code so excuse the formatting)

The script has the following assumptions and bugs:
  • it updates once per second
  • every update all the drones are divided optimally over all hatcheries
  • no workers transfers
  • max 19 larvae per hatchery
  • if the number of larvae drops below 3 at a hatchery a timer starts running and after 15 seconds a new larva will spawn if there's still less than 3 larvae
  • injects are hit almost perfectly (max delay of 1 second)
  • queens are automatically assigned to a hatchery for spawning larvae
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
March 27 2012 13:08 GMT
#2
Man, if you spent as much effort in playing the game as analysing it, you wouldn't be in bronze

That said, good job, it's always nice with some statistical information for future arguments on the forums.
Ketch
Profile Joined October 2010
Netherlands7285 Posts
March 27 2012 13:13 GMT
#3
You should of course be able to calculate optimal overlord timings if you do your math .... Cool insight anyway. I am always the red line obviously
Rannasha
Profile Blog Joined August 2010
Netherlands2398 Posts
March 27 2012 13:31 GMT
#4
I'm interested in some of the assumptions that go into your model. For example, how do you model the spawning of larva? As far as I know, larva spawn at a rate of 1 per 15 seconds (game time) unless 3 or more larva are already on the hatchery. Depending on what your larva situation is at the time of the supply block, the effects are different. If your hatches are empty, you won't lose any larva, but if you've just finished an inject and there's plenty of larva on the hatch, you'll lose out on larva spawning.

Additionally, how do you model base saturation? Do you spread all workers equally between bases, maximizing worker efficiency for long-term benefits, but losing some short-term income due to worker-transfers... Plenty of important questions. I'd love to see some details.
Such flammable little insects!
Maggost
Profile Joined August 2011
Venezuela296 Posts
March 27 2012 13:41 GMT
#5
On March 27 2012 22:08 Tobberoth wrote:
Man, if you spent as much effort in playing the game as analysing it, you wouldn't be in bronze

That said, good job, it's always nice with some statistical information for future arguments on the forums.


This pretty much.

With that information i am pretty sure that you can get into Platinum! by the way, that graph could be applied for the other races for sure.
Quote
DatDarnDude
Profile Joined September 2010
United States5 Posts
Last Edited: 2012-03-27 13:52:58
March 27 2012 13:51 GMT
#6
Maybe Im reading it wrong but your graph suggests your supply block occurs at 18, not 28.
Belial88
Profile Blog Joined November 2010
United States5217 Posts
Last Edited: 2012-03-27 13:55:34
March 27 2012 13:54 GMT
#7
It looks like you make your overlords a bit too early. Try this:

17
26/28 (if hatch went at 20, maybe 24 or 25, depends)
32-33/36
44/44 (since you throw down 4 gas, or generally buildlings, you can adjust if you dont plan to, like in zvz, maybe 40/44)
46/52
52/60, start 2nd overlord when 1st is more than half done
Make another overlord shortly after.

In general it sounds like you are making a bit early. You want it so as soon as that overlord pops, you are ready to just pump a bunch out. You never want to sit at that supply, ie you make overlord for 28 cap, and then you sit at 28/36 for a while.

I'm also not someone to listen to, probably.


How to build a $500 i7-3770K Ultimate Computer:http://www.teamliquid.net/blogs/viewblog.php?topic_id=392709 ******** 100% Safe Razorless Delid Method! http://www.overclock.net/t/1376206/how-to-delid-your-ivy-bridge-cpu-with-out-a-razor-blade/0_100
HaXXspetten
Profile Blog Joined October 2009
Sweden15718 Posts
March 27 2012 14:00 GMT
#8
On March 27 2012 22:08 Tobberoth wrote:
Man, if you spent as much effort in playing the game as analysing it, you wouldn't be in bronze

That said, good job, it's always nice with some statistical information for future arguments on the forums.

My thoughts exactly. It's a nice study, now go put it to some good use
AuxPriest
Profile Joined May 2010
Canada38 Posts
Last Edited: 2012-03-27 14:14:04
March 27 2012 14:13 GMT
#9
I'm sure that it is less than optimal, but the way I work my overlords into my play is that I'll make them when I am about 6-8 supply before a cap.

Say I am at 54/62, I'll make as many overlords as I have bases. Three base = three ovies, that will take me up to x/86, and I'll have still been producing units. Usually the way it works out in my play, I'll hit 60-62/62 before the ovies pop, and just slightly before/shortly after that, larva would have popped from my hatches. Reinject, create units, save the last three larva to make three more ovies.

Over all I'd say that I float maybe 16-24 over my actual food count, and it's probably not optimal, but it works for me, and at the level I play at I find it much better to spend some minerals on extra ovies than to constantly get supply capped.
aerique
Profile Joined January 2012
Netherlands15 Posts
Last Edited: 2012-03-27 14:23:20
March 27 2012 14:20 GMT
#10
On March 27 2012 22:08 Tobberoth wrote:
Man, if you spent as much effort in playing the game as analysing it, you wouldn't be in bronze

Haha, yes. Except I'm not always behind the machine that runs Starcraft! (In fact, I'm rarely behind that machine and usually only after 22:00 / 23:00 )

On March 27 2012 22:13 Ketch wrote:
You should of course be able to calculate optimal overlord timings if you do your math

That's indeed one of the future uses!

On March 27 2012 22:31 Rannasha wrote:
I'm interested in some of the assumptions that go into your model. For example, how do you model the spawning of larva? As far as I know, larva spawn at a rate of 1 per 15 seconds (game time) unless 3 or more larva are already on the hatchery.

Currently, whenever a hatch drops below 3 larvae a timer starts running and after 15 seconds a new larva is spawned. I'm not sure sure whether this simulates the game correctly.

Additionally, how do you model base saturation? Do you spread all workers equally between bases, maximizing worker efficiency for long-term benefits, but losing some short-term income due to worker-transfers...

I do indeed spread the workers equally between bases. Worker transfers are not modeled.

I'd love to see some details.

I could throw the script on-line if you're interested?

On March 27 2012 22:41 Maggost wrote:
by the way, that graph could be applied for the other races for sure.

Definitely! This is just an initial version and I play Zerg.

On March 27 2012 22:51 DatDarnDude wrote:
Maybe Im reading it wrong but your graph suggests your supply block occurs at 18, not 28.

Hm, I better run that script again. edit: oh wait, that is not necessary... the left y-axis shows the number of drones not the supply

Big J
Profile Joined March 2011
Austria16289 Posts
March 27 2012 14:23 GMT
#11
yeah, the 28block is a reason to let an opponent read a unexpected 'gg', before you even had contact with him
madhyene
Profile Joined March 2011
France43 Posts
March 27 2012 14:23 GMT
#12
You know, it's not really about making overlords at certain supply caps, it's just that you have to get about 1 overlord per injection if you're making 2-supply units and 1 for 2 injections if you're making 1-supply units. Of course there's still a few larvae left from the natural larva spawn, but you're using most of them for ovies anyway + you're losing population from engagements and adding more buildings to your tech.

Anyway you're a bronze player, you should just stick to roach rushing until gold league, where you'll start learning macro.
aerique
Profile Joined January 2012
Netherlands15 Posts
March 27 2012 14:26 GMT
#13
I'm also curious how I could better show the impact of having on average 8 drones less mining for over three minutes. Cumulatively add the income per second?
scaban84
Profile Joined August 2010
United States1080 Posts
March 27 2012 14:29 GMT
#14
Cool study but as a bronze player you shouldn't be overly concerned with this. Just learn to pick your fights better and macro with your hotkeys whilst attacking. You don't really need refined builds until gold-plat. And over-droning will get you killed in gold-diamond because most players (in NA) will just do 1 base timing attacks.
"The curious task of economics is to demonstrate to men how little they really know about what they imagine they can design." — Friedrich von Hayek
TheSambassador
Profile Joined May 2010
United States186 Posts
March 27 2012 14:37 GMT
#15
Supply blocks are bad... especially early game. Later supply blocks are manageable, but the early ones, as you've shown, can have massive consequences.

In regards to "when" you build your overlords, with a 15/15 or 15/16, I find that I can drone till 18 and have the overlord pop with the spawning pool/hatchery. Note that my early mechanics might be a bit stronger (mid/high masters) but if you focus on building drones as soon as you can (spam S-D on the hatchery while you're waiting for the larvae to appear) you should be able to do this as well. I always build my 3rd overlord at 24-26 supply.
Rannasha
Profile Blog Joined August 2010
Netherlands2398 Posts
March 27 2012 17:29 GMT
#16
On March 27 2012 23:20 aerique wrote:

Show nested quote +
I'd love to see some details.

I could throw the script on-line if you're interested?


Yeah, if you don't mind, I'd love to take a look.
Such flammable little insects!
Jombozeus
Profile Blog Joined August 2010
China1014 Posts
Last Edited: 2012-03-27 17:35:50
March 27 2012 17:35 GMT
#17
When you're 40-70 supply, make two overlords every pop. You need the spare apm to do other stuff and the spare supply to slam units if you get hit by an unfamiliar timing.

From 70-150, I make overlord by the 3s. And then I usually slam straight to 200 in the next pop. This makes 0 difference to me and I'm mid-high masters.

Making overlords slightly earlier has negligible affects on gameplay at any current level.

Your macro needs to be a thousand-fold better before this matters at all, just make them early and don't get supply blocked, early overlords are okay.
aerique
Profile Joined January 2012
Netherlands15 Posts
March 30 2012 09:58 GMT
#18
I have added support for injects to the script and updated the OP.
Rannasha
Profile Blog Joined August 2010
Netherlands2398 Posts
March 30 2012 10:06 GMT
#19
if the number of larvae drops below 3 at a hatchery a timer starts running and after 15 seconds a new larva will spawn if there's still less than 3 larvae


The actual mechanism is a bit different. When the larva-count hits 3, the timer on the new spontaneously generated larva will pause. It will resume once the larva-count goes below 3 again. Without injects, this is the same as they way you model it. With injects, things change. If the timer is at 10 seconds when the injected larva pop out, you only have to wait 5 more seconds for a new larva once you've used up your current ones.

Source: http://www.teamliquid.net/forum/viewmessage.php?topic_id=323422
Such flammable little insects!
aerique
Profile Joined January 2012
Netherlands15 Posts
March 30 2012 10:12 GMT
#20
On March 30 2012 19:06 Rannasha wrote:
The actual mechanism is a bit different. When the larva-count hits 3, the timer on the new spontaneously generated larva will pause. It will resume once the larva-count goes below 3 again. Without injects, this is the same as they way you model it. With injects, things change. If the timer is at 10 seconds when the injected larva pop out, you only have to wait 5 more seconds for a new larva once you've used up your current ones.

Source: http://www.teamliquid.net/forum/viewmessage.php?topic_id=323422


Thanks for this!

I'll try and get the script online later today.
Cereb
Profile Joined November 2011
Denmark3388 Posts
March 30 2012 12:51 GMT
#21
I love all these mathematical analysis of sc2
"Until the very very top in almost anything, all that matters is how much work you put in. The only problem is most people can't work hard even at things they do enjoy, much less things they don't have a real passion for. -Greg "IdrA" Fields
b0rt_
Profile Joined October 2011
Norway931 Posts
March 30 2012 13:00 GMT
#22
Good post. Have you got a graph for 3 min supply block? aka me
aerique
Profile Joined January 2012
Netherlands15 Posts
Last Edited: 2012-03-30 13:12:47
March 30 2012 13:12 GMT
#23
On March 30 2012 22:00 b0rt_ wrote:
Good post. Have you got a graph for 3 min supply block? aka me

You mean a supply block that lasts for three minutes or one at three minutes? If the former, at which supply do you want it?
aerique
Profile Joined January 2012
Netherlands15 Posts
March 30 2012 13:46 GMT
#24
On March 28 2012 02:29 Rannasha wrote:
Show nested quote +
On March 27 2012 23:20 aerique wrote:
I could throw the script on-line if you're interested?

Yeah, if you don't mind, I'd love to take a look.

I've put the script online here: http://github.com/aerique/sc2-utils
b0rt_
Profile Joined October 2011
Norway931 Posts
March 30 2012 14:36 GMT
#25
On March 30 2012 22:12 aerique wrote:
Show nested quote +
On March 30 2012 22:00 b0rt_ wrote:
Good post. Have you got a graph for 3 min supply block? aka me

You mean a supply block that lasts for three minutes or one at three minutes? If the former, at which supply do you want it?

Could you do multiple blocks at different supplies that total about 2 mins? Say 28 supply, 44, 60? I expect many lower leagued players will have larger than one 40 sec block per game.
aerique
Profile Joined January 2012
Netherlands15 Posts
Last Edited: 2012-03-30 15:20:43
March 30 2012 15:18 GMT
#26
On March 30 2012 23:36 b0rt_ wrote:Could you do multiple blocks at different supplies that total about 2 mins? Say 28 supply, 44, 60? I expect many lower leagued players will have larger than one 40 sec block per game.

This is a graph with 40 second supply blocks at 28, 46 and 62:

[image loading]

Although the graph at 330 seconds has me scratching behind the ears since we seem to be on equal footing at that point but with more minerals for the supply blocked graph! I don't have time to take a better look at it but I assume the blue graph has more overlords, queens and maybe even an extra hatchery at that point.
PeanutsNJam
Profile Joined April 2011
United States175 Posts
Last Edited: 2012-03-30 16:10:54
March 30 2012 15:58 GMT
#27
I'm not going to lie, I think there's something wrong with the graph. It could be:

larva timing
queen injects timing (if there are queens)
building queen timings (3rd hatch before or after 2nd queen?)
hatchery timings (just 2 or 3 hatches?)

You need to show the difference between the integrals of the minerals mined for both. That's the most important thing. How much more money has blue accumulated than red? It should be a boatload.

It's odd that red has the same # of workers and more minerals at the 330-360 range. And more in the order of 500 minerals, so it's overlords/hatcheries/queens. If blue has 500 minerals (a hatchery, queen, and half an overlord) more than red, the supply difference needs to be more than 10. I think this graph is vastly understating the damages of supply block.
aerique
Profile Joined January 2012
Netherlands15 Posts
Last Edited: 2012-03-30 16:11:15
March 30 2012 16:10 GMT
#28
On March 31 2012 00:58 PeanutsNJam wrote:
I'm not going to lie, I think there's something wrong with the graph.
[...]

Thanks for your comments. It'll be a couple of days before I can spend more time on this again but I agree that graphing the available amount of minerals at a certain time is not useful.
PeanutsNJam
Profile Joined April 2011
United States175 Posts
March 30 2012 16:26 GMT
#29
It's impressive you managed to write a script like this, but to be accurate you have to come up with something that rivals the Starcraft 2 script.

I think it'd be much easier to get a replay of Stephano doing his 3 hatch ZvP opening, get a replay of a bronze/silver player attempting the same thing, and plot the data points. Using excel to make best-fit lines. Up to 8 minutes.
Micket
Profile Joined April 2011
United Kingdom2163 Posts
March 30 2012 16:36 GMT
#30
Would be interesting to see what the graph for Terran would look like. I'm not sure but I have a hunch the effect of a single supply block would be more severe on Terran.
Snoodles
Profile Joined March 2012
401 Posts
March 30 2012 21:06 GMT
#31
On March 27 2012 22:08 Tobberoth wrote:
Man, if you spent as much effort in playing the game as analysing it, you wouldn't be in bronze

That said, good job, it's always nice with some statistical information for future arguments on the forums.


You just described the entire reddit community!
Normal
Please log in or register to reply.
Live Events Refresh
Next event in 5h 11m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech67
BRAT_OK 66
MindelVK 27
Railgan 26
mouzHeroMarine 11
StarCraft: Brood War
Calm 3739
Rain 1967
Mini 339
Leta 306
hero 140
Larva 137
Hyun 133
Mong 112
Dewaltoss 96
Rush 64
[ Show more ]
Light 61
Mind 37
Rock 28
Aegong 19
scan(afreeca) 15
Movie 14
sas.Sziky 13
Shine 7
Dota 2
Gorgc9306
qojqva3075
Dendi1051
Counter-Strike
fl0m1116
allub114
Heroes of the Storm
Liquid`Hasu1
Other Games
FrodaN1350
Beastyqt685
Skadoodle535
ceh9510
byalli176
Hui .118
KnowMe108
ArmadaUGS106
markeloff88
Mew2King39
Trikslyr39
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• poizon28 144
• Adnapsc2 16
• LaughNgamezSOOP
• AfreecaTV YouTube
• sooper7s
• intothetv
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• HerbMon 14
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2889
League of Legends
• Nemesis4551
• imaqtpie1042
Other Games
• Shiphtur285
Upcoming Events
OSC
5h 11m
Replay Cast
5h 11m
The PondCast
16h 11m
OSC
18h 11m
Wardi Open
1d 17h
CranKy Ducklings
2 days
Safe House 2
2 days
Sparkling Tuna Cup
3 days
Safe House 2
3 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
EC S1
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
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 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.