• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 11:55
CEST 17:55
KST 00:55
  • 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
[ASL19] Finals Recap: Standing Tall4HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Retirement From ASL22Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster14Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
The SCII GOAT: A statistical Evaluation Weekly Cups (June 23-29): Reynor in world title form? StarCraft Mass Recall: SC1 campaigns on SC2 thread How does the number of casters affect your enjoyment of esports? Esports World Cup 2025 - Final Player Roster
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event HomeStory Cup 27 (June 27-29) WardiTV Mondays SOOPer7s Showmatches 2025 $200 Biweekly - StarCraft Evolution League #1
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
Help: rep cant save Flash Announces Retirement From ASL Where did Hovz go? [ASL19] Finals Recap: Standing Tall BW General Discussion
Tourneys
[Megathread] Daily Proleagues [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET The Casual Games of the Week Thread [BSL20] ProLeague LB Final - Saturday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Stop Killing Games - European Citizens Initiative Trading/Investing Thread Russo-Ukrainian War Thread
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread NBA General Discussion Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
Game Sound vs. Music: The Im…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 611 users

Brood War web app to calculate unit interactions - Page 2

Forum Index > BW General
Post a Reply
Prev 1 2 All
Cheesefome
Profile Joined May 2016
311 Posts
May 17 2024 07:58 GMT
#21
On May 15 2024 23:54 facecsgo wrote:
Show nested quote +
On May 15 2024 13:57 Cheesefome wrote:
Wow so cool man!! Love SC community they contribute so much.

Will there ever be an app version instead of a link/browser?


Ironically, I made it a website because I assumed if I released a desktop app that everyone would assume it's malware or something!
I don't really plan to release a desktop app because it'd be a struggle to maintain both, with the website I can push bug fixes really quickly (i.e. like when I found out that I had Eggs and Cocoons regenerating HP, but they do not).
I'm also still intending to add a lot of features over time.
I feel like a Desktop app would just make all of this harder & slower so it's not something I'm interested in doing


fair enough, thanks for the app ill def looking forward to new features!
y2kid
Profile Joined May 2018
92 Posts
May 18 2024 10:08 GMT
#22
Where are you hosting this? Since it is a single feature page, I could offer to host it on cplbw.com and save you from maintainance.
facecsgo
Profile Joined March 2024
12 Posts
May 19 2024 02:43 GMT
#23
On May 18 2024 19:08 y2kid wrote:
Where are you hosting this? Since it is a single feature page, I could offer to host it on cplbw.com and save you from maintainance.


Currently hosting on AWS free time, I believe it's simple enough and it's usage is low enough that it will be in the single-dollars on the current server I'm using. If it's not, I can swap to cheap lightsail tiers and keep it affordable!
I appreciate the offer, but I would like to keep control of it if you know what I mean
LUCKY_NOOB
Profile Blog Joined June 2013
Bulgaria1423 Posts
May 19 2024 21:11 GMT
#24
IDEA: add buildings to it. In particular damage dealing buildings would be of interest but also like how many hits to snipe a pylon can be cool. Prolly had the idea already but a thought.. ^_._^
ko-fi.com/luckynoob
art_of_turtle
Profile Blog Joined September 2012
United States1183 Posts
May 20 2024 16:45 GMT
#25
this explains everything on why Corsairs don't die to Hydras as easily
Flash should fear Sacsri
PVJ
Profile Blog Joined July 2012
Hungary5214 Posts
Last Edited: 2024-05-21 16:02:48
May 21 2024 15:48 GMT
#26
This is great thank you! I especially appreciate the liquipedia page you've created alongside the tool. Can you share something about the code and the stack? And again have to thank you for a third time that you've used no js for the frontend itself it's something I also adhere to in all my work as well. Great work and good engineering cheers!

Edit: Oh I misunderstood, this site is actually written in htmx? Sweet, this is one of the most interesting technologies I've read about in a while great to see used for such a good project I'm happy to have again learned something just by visiting the bw forums.
The heart's eternal vow
postcount69
Profile Joined September 2021
9 Posts
May 21 2024 19:04 GMT
#27
On May 12 2024 17:33 [AS]Rattus wrote:
Arbiter needs 9999 or probably more attacks to kill a 2/3 Carrier.
The more you know


Arbiters only have an attack so that they stop when they're grouped with other units. In the beta version, they didn't have an attack at all. And High Templar had the attack that the Hero Tassadar unit has.
facecsgo
Profile Joined March 2024
12 Posts
May 21 2024 21:04 GMT
#28
On May 22 2024 00:48 PVJ wrote:
This is great thank you! I especially appreciate the liquipedia page you've created alongside the tool. Can you share something about the code and the stack? And again have to thank you for a third time that you've used no js for the frontend itself it's something I also adhere to in all my work as well. Great work and good engineering cheers!

Edit: Oh I misunderstood, this site is actually written in htmx? Sweet, this is one of the most interesting technologies I've read about in a while great to see used for such a good project I'm happy to have again learned something just by visiting the bw forums.


I will be honest, I'm not a web developer at all, I just have some programming experience from running a heavily modded CSGO server for something like 5 years. I have a friend who does front end web dev for a living who told me everything to use, so I just followed his instruction and used some personal projects of his for ideas.

I used:
python
fastAPI
Jinja2 templates
htmx
caddy
podman
AWS server
franklyyes
Profile Joined May 2024
13 Posts
May 24 2024 02:26 GMT
#29
l don't understand why a Vulture needs 3 hits to kill a Drone but 2 for a Probe?
Ethelis
Profile Blog Joined September 2008
United States2396 Posts
Last Edited: 2024-05-24 06:01:42
May 24 2024 06:00 GMT
#30
On May 24 2024 11:26 franklyyes wrote:
l don't understand why a Vulture needs 3 hits to kill a Drone but 2 for a Probe?


Pretty sure Zerg HP regen starts faster than Protoss shield regen
Disabled gamer - Diamond 3 (LoL) D+ Rank scrublord on BW. Bisu doesnt need DTs, He uses probes. just ask Flash.
LUCKY_NOOB
Profile Blog Joined June 2013
Bulgaria1423 Posts
Last Edited: 2024-05-24 13:39:58
May 24 2024 13:37 GMT
#31
On May 24 2024 15:00 Ethelis wrote:
Show nested quote +
On May 24 2024 11:26 franklyyes wrote:
l don't understand why a Vulture needs 3 hits to kill a Drone but 2 for a Probe?


Pretty sure Zerg HP regen starts faster than Protoss shield regen


Yes! Zerg regenerate while taking damage, Protoss needs to be 10 seconds out of combat before regenration starts. Protoss rate of regeneration is faster tho.

"Protoss shields use 7, so 256/7/24=~1.5 seconds per shield point.
Zerg Health use 4, so 256/4/24=~2.67 seconds per health point."

"Due to the way Zerg regeneration works, which occurs at 1 point of damage every 64 frames (or roughly 0.37~ points every second at fastest speed) and triggers almost immediately after a unit sustains damage, most Zerg units have an effective additional hit point or more, unless they are killed almost instantaneously. For example, a Drone will take three hits from a single Vulture attacking it, as between the first and second shot the Drone regenerates to 21 hit points, even though the Drone has 40 hit points and 0 armor, and the Vulture deals 20 damage."

(Wiki)Damage

https://www.starcraftai.com/wiki/Regeneration
ko-fi.com/luckynoob
Peeano
Profile Blog Joined March 2009
Netherlands4983 Posts
May 24 2024 14:06 GMT
#32
Today I learned. Can't wait until the next Zerg Carapace meta.
FBH #1!
facecsgo
Profile Joined March 2024
12 Posts
Last Edited: 2024-05-25 00:41:44
May 25 2024 00:40 GMT
#33
On May 24 2024 22:37 LUCKY_NOOB wrote:
Show nested quote +
On May 24 2024 15:00 Ethelis wrote:
On May 24 2024 11:26 franklyyes wrote:
l don't understand why a Vulture needs 3 hits to kill a Drone but 2 for a Probe?


Pretty sure Zerg HP regen starts faster than Protoss shield regen


Yes! Zerg regenerate while taking damage, Protoss needs to be 10 seconds out of combat before regenration starts. Protoss rate of regeneration is faster tho.

"Protoss shields use 7, so 256/7/24=~1.5 seconds per shield point.
Zerg Health use 4, so 256/4/24=~2.67 seconds per health point."

"Due to the way Zerg regeneration works, which occurs at 1 point of damage every 64 frames (or roughly 0.37~ points every second at fastest speed) and triggers almost immediately after a unit sustains damage, most Zerg units have an effective additional hit point or more, unless they are killed almost instantaneously. For example, a Drone will take three hits from a single Vulture attacking it, as between the first and second shot the Drone regenerates to 21 hit points, even though the Drone has 40 hit points and 0 armor, and the Vulture deals 20 damage."

(Wiki)Damage

https://www.starcraftai.com/wiki/Regeneration


It is not true that protoss needs to be out of combat to start regeneration.
Protoss starts regeneration immediately, like Zerg does, but health rounds up while shields round down.
So 1 frame after damage is dealt, a Zerg unit regenerates 4/256 HP which displays as 1hp. Even if the Vulture hits twice and the unit has 4/256 of 1 point of HP, it displays as 1 and stays alive.

Since Protoss shields round down, the Probe could have 7/256 shields (displays as zero) and zero health. If Protoss does not have at least 1 full point of shield (256/256) the unit still dies.
Protoss shields less than 1 full point of shields (256/256) do not count in the damage calculations at all
franklyyes
Profile Joined May 2024
13 Posts
June 01 2024 19:40 GMT
#34
On May 25 2024 09:40 facecsgo wrote:
It is not true that protoss needs to be out of combat to start regeneration.
Protoss starts regeneration immediately, like Zerg does, but health rounds up while shields round down.
So 1 frame after damage is dealt, a Zerg unit regenerates 4/256 HP which displays as 1hp. Even if the Vulture hits twice and the unit has 4/256 of 1 point of HP, it displays as 1 and stays alive.

Since Protoss shields round down, the Probe could have 7/256 shields (displays as zero) and zero health. If Protoss does not have at least 1 full point of shield (256/256) the unit still dies.
Protoss shields less than 1 full point of shields (256/256) do not count in the damage calculations at all

I still don't get why "health rounds up while shields round down", Zerg & Protoss don't study the same math we study ?

Any other weird/interesting logic than this Drone regeneration and rounding ? and how do you/we know that "So 1 frame after damage is dealt, a Zerg unit regenerates 4/256 HP" ?
facecsgo
Profile Joined March 2024
12 Posts
June 12 2024 16:33 GMT
#35
On June 02 2024 04:40 franklyyes wrote:
Show nested quote +
On May 25 2024 09:40 facecsgo wrote:
It is not true that protoss needs to be out of combat to start regeneration.
Protoss starts regeneration immediately, like Zerg does, but health rounds up while shields round down.
So 1 frame after damage is dealt, a Zerg unit regenerates 4/256 HP which displays as 1hp. Even if the Vulture hits twice and the unit has 4/256 of 1 point of HP, it displays as 1 and stays alive.

Since Protoss shields round down, the Probe could have 7/256 shields (displays as zero) and zero health. If Protoss does not have at least 1 full point of shield (256/256) the unit still dies.
Protoss shields less than 1 full point of shields (256/256) do not count in the damage calculations at all

I still don't get why "health rounds up while shields round down", Zerg & Protoss don't study the same math we study ?

Any other weird/interesting logic than this Drone regeneration and rounding ? and how do you/we know that "So 1 frame after damage is dealt, a Zerg unit regenerates 4/256 HP" ?


The 4/256 rate is known information that can be easily tested by timing regen and knowing that logical frames are every 42ms in Fastest game mode. This equates to 1hp regenerated every 2.688 seconds. Rounding up is also a known game fact.

The partial regen starting after the zerg unit takes damage and rounding up can be tested as follows:
A Dragoon deals 20 explosive damage, hitting a Zergling for 10 damage.
A Dragoon hitting a Zergling with +1 armor deals (20 - 1) = 19 * 0.5 = 9.5 damage.
The Zergling will drop from 35 hp to 25.5 HP (Note that 25.5 = 25 + 128/256) which will display as 26 hp since it rounds up.
The Zergling begins regenerating 4/256 per logical frame, meaning it needs 32 logical frames (128/4) to regenerate 128/256 hp.
On the 33rd logical frame after the hit, the Zergling will be at 26 + 4/256 HP which will round up and display as 27 health.
33 logical frames * 0.042 = 1.386 seconds after the hit, the Zergling will display 27 HP.

I just did this test and recorded at 60fps and reviewed frame-by-frame, the duration between the damage being dealt and the Zergling ticking from 26 to 27 HP was 1.383 seconds.

if the HP display did not round up, the Zergling would not show 26 HP after the 9.5 damage hit, it would show 25.
If the Zergling instantly regenerated +1 HP, the Zergling would regenerate from 26 to 27 immediately after the hit.

AleXoundOS
Profile Joined January 2011
Georgia457 Posts
June 12 2024 19:48 GMT
#36
Thank you!
https://bwapi.github.io - An API for interacting with Starcraft: Broodwar (1.16.1)
LUCKY_NOOB
Profile Blog Joined June 2013
Bulgaria1423 Posts
July 06 2024 16:48 GMT
#37
Would be nice if it actually shows the result instead of me having to calculate it.

Like how many units of X it takes to kill unit Y?

ko-fi.com/luckynoob
rtyrt7
Profile Joined August 2018
46 Posts
April 11 2025 15:16 GMT
#38
Hi! I've noticed the site is down. Is there any way you could make this open source? Thanks!
Prev 1 2 All
Please log in or register to reply.
Live Events Refresh
Next event in 5m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Harstem 461
mouzHeroMarine 436
uThermal 146
goblin 10
StarCraft: Brood War
Rain 4226
Larva 1429
EffOrt 1108
Stork 518
Mini 369
BeSt 219
ZerO 196
hero 164
Rush 156
Light 132
[ Show more ]
Hyun 115
Snow 112
Barracks 79
Mind 69
Zeus 51
Shinee 49
Sharp 48
Movie 41
JYJ41
Aegong 24
Terrorterran 21
Rock 19
ajuk12(nOOB) 18
scan(afreeca) 11
IntoTheRainbow 10
HiyA 9
zelot 9
Shine 4
Hm[arnc] 3
Dota 2
Gorgc9380
qojqva3358
febbydoto10
League of Legends
singsing2483
Counter-Strike
fl0m0
Super Smash Bros
Mew2King131
amsayoshi57
Heroes of the Storm
Khaldor177
Other Games
FrodaN1696
hiko1165
B2W.Neo527
Happy358
Liquid`VortiX311
RotterdaM304
crisheroes190
ArmadaUGS106
Trikslyr53
mouzStarbuck50
QueenE42
ZerO(Twitch)21
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• poizon28 24
• iHatsuTV 18
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV460
League of Legends
• TFBlade922
Upcoming Events
uThermal 2v2 Circuit
5m
uThermal146
OSC
3h 5m
SHIN vs Bunny
Cham vs MaNa
SKillous vs TBD
PAPI vs Jumy
Gerald vs Moja
ArT vs TBD
Replay Cast
8h 5m
The PondCast
18h 5m
RSL Revival
18h 5m
ByuN vs Classic
Clem vs Cham
WardiTV European League
1d
Replay Cast
1d 8h
RSL Revival
1d 18h
herO vs SHIN
Reynor vs Cure
WardiTV European League
2 days
FEL
2 days
[ Show More ]
Korean StarCraft League
2 days
CranKy Ducklings
2 days
RSL Revival
2 days
FEL
3 days
Sparkling Tuna Cup
3 days
RSL Revival
3 days
FEL
3 days
BSL: ProLeague
4 days
Dewalt vs Bonyth
Replay Cast
5 days
Replay Cast
5 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
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
FISSURE Playground #1
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.