• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 14:15
CEST 20:15
KST 03:15
  • 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
Code S RO12 Preview: Maru, Trigger, Rogue, NightMare12Code S RO12 Preview: Cure, sOs, Reynor, Solar15[ASL19] Ro8 Preview: Unyielding3Official Ladder Map Pool Update (April 28, 2025)17[ASL19] Ro8 Preview: Rejuvenation8
Community News
Code S Season 1 - RO12 Group A Results (2025)4$1,250 WardiTV May [May 6th-May 18th]4Clem wins PiG Sty Festival #66Weekly Cups (April 28-May 4): ByuN & Astrea break through1Nexon wins bid to develop StarCraft IP content, distribute Overwatch mobile game29
StarCraft 2
General
Code S Season 1 - RO12 Group A Results (2025) How does the number of casters affect your enjoyment of esports? Code S RO12 Preview: Maru, Trigger, Rogue, NightMare Nexon wins bid to develop StarCraft IP content, distribute Overwatch mobile game Code S RO12 Preview: Cure, sOs, Reynor, Solar
Tourneys
[GSL 2025] Code S:Season 1 - RO12 - Group A INu's Battles#12 < ByuN vs herO > [GSL 2025] Code S:Season 1 - RO12 - Group B GSL 2025 details announced - 2 seasons pre-EWC 2025 GSL Season 2 (Qualifiers)
Strategy
[G] PvT Cheese: 13 Gate Proxy Robo Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 472 Dead Heat Mutation # 471 Delivery Guaranteed Mutation # 470 Certain Demise Mutation # 469 Frostbite
Brood War
General
OGN to release AI-upscaled StarLeague from Feb 24 Battlenet Game Lobby Simulator [G] GenAI subtitles for Korean BW content BGH auto balance -> http://bghmmr.eu/ StarCraft & BroodWar Campaign Speedrun Quest
Tourneys
[ASL19] Ro8 Day 4 [CSLPRO] $1000 Spring is Here! Small VOD Thread 2.0 [Megathread] Daily Proleagues
Strategy
[G] How to get started on ladder as a new Z player Creating a full chart of Zerg builds [G] Mineral Boosting
Other Games
General Games
What do you want from future RTS games? Nintendo Switch Thread Stormgate/Frost Giant Megathread Grand Theft Auto VI Battle Aces/David Kim RTS Megathread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
LiquidLegends to reintegrate into TL.net
Heroes of the Storm
Simple Questions, Simple Answers
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia TL Mafia Community Thread TL Mafia Plays: Diplomacy TL Mafia: Generative Agents Showdown Survivor II: The Amazon
Community
General
Elon Musk's lies, propaganda, etc. US Politics Mega-thread Ask and answer stupid questions here! UK Politics Mega-thread Things Aren’t Peaceful in Palestine
Fan Clubs
Serral Fan Club
Media & Entertainment
Movie Discussion! Anime Discussion Thread [Books] Wool by Hugh Howey Surprisingly good films/Hidden Gems
Sports
2024 - 2025 Football Thread NHL Playoffs 2024 NBA General Discussion Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Cleaning My Mechanical Keyboard How to clean a TTe Thermaltake keyboard?
TL Community
BLinD-RawR 50K Post Watch Party The Automated Ban List TL.net Ten Commandments
Blogs
Info SLEgma_12
SLEgma_12
SECOND COMMING
XenOsky
What High-Performing Teams (…
TrAiDoS
WombaT’s Old BW Terran Theme …
WombaT
Heero Yuy & the Tax…
KrillinFromwales
BW PvZ Balance hypothetic…
Vasoline73
Test Entry for subject
xumakis
Customize Sidebar...

Website Feedback

Closed Threads



Active: 12402 users

Defusion by terrain – interesting Mine behaviour

Forum Index > Brood War Strategy
Post a Reply
1 2 Next All
Freakling
Profile Joined October 2012
Germany1526 Posts
Last Edited: 2021-02-27 11:15:58
February 21 2021 17:00 GMT
#1
This clip was brought up on the NHFFA discord, together with the question: "Why was there no damage here?"


The answer, it turns out, is rather interesting, courtesy of tscmoo:

tscmoo on SSCAIT discord wrote:
spider mines explode through the "castspell" iscript opcode, this leads to this check https://github.com/OpenBW/openbw/blob/master/bwgame.h#L14942 and then this spider mine specific check https://github.com/OpenBW/openbw/blob/master/bwgame.h#L14610 which, because of this line https://github.com/OpenBW/openbw/blob/master/bwgame.h#L5656, checks if the spider mine itself is on walkable terrain. if the spider mine is not on walkable terrain, then it does not deal any damage

bw pathfinding being what it is, put the spider mine on unwalkable terrain the moment it got in range
also slightly worth noting that this walkability test is buildtile/megatile resolution, so effectively it checks if more than 12 minitiles within that are are walkable
in that regard, the bw pathfinding might not be doing anything wrong here, it's just a resolution issue with the walkability test.


To add some more background to that:
  • Each terrain tile is made up of 4×4 minitiles, which are either walkable or unwalkable.
  • At game-start the game classifies each tile with at least 4 unwalkable minitiles as unwalkable, all other tiles as walkable.
  • Whether a ground unit can occupy a location depends solely on the minitile walkability property.
  • The tile the mine from the clip detonates on has 8/16 unwalkable minitiles and is thus classified as an unwalkable tile, which makes the Mine dud out.


Conclusion: Near unwalkable terrain, such as cliff edges, in particularlyin tight chokes, or doodads, there is a certain chance that Mine damage will be completely mitigated.

EDIT: Here's the whole situation recreated in ScmDraft with overlays showing the relevant walkabily properties:
+ Show Spoiler [Show animation] +
[image loading]


EDIT2: Thanks to StaticNine for another video demonstrating the effect. Note that the video title does not explain the conditions and cause of the effect correctly:
+ Show Spoiler [show video] +
kogeT
Profile Joined September 2013
Poland2031 Posts
February 21 2021 17:36 GMT
#2
Just another argument for PvT imba. :D
https://www.twitch.tv/kogetbw
Highgamer
Profile Joined October 2015
1399 Posts
February 21 2021 19:56 GMT
#3
And they complain about goon AI...
EMPaThy789
Profile Joined July 2009
New Zealand878 Posts
February 22 2021 02:54 GMT
#4
Time to lose all my dragoons trying to abuse this in a game.
FlaShFTW
Profile Blog Joined February 2010
United States10095 Posts
February 22 2021 03:22 GMT
#5
I love how this one clip is getting so much traction. My goon is a hero now, and his tale will be echoed throughout Auir.
Writer#1 KT and FlaSh Fanboy || Woo Jung Ho Never Forget || Teamliquid Political Decision Desk
TL+ Member
ggsimida
Profile Joined August 2015
1141 Posts
Last Edited: 2021-02-22 06:01:36
February 22 2021 06:01 GMT
#6
what an intriguing 20+ yr old game

thx for sharing
Freakling
Profile Joined October 2012
Germany1526 Posts
February 22 2021 10:13 GMT
#7
On February 22 2021 12:22 FlaShFTW wrote:
I love how this one clip is getting so much traction. My goon is a hero now, and his tale will be echoed throughout Auir.

Wait till Bisu finds out – and perfects his cliff-hugging technique
MeSaber
Profile Joined December 2009
Sweden1235 Posts
February 22 2021 13:35 GMT
#8
Cool and all, my question then is how do i know where the unwalkable terrain is? Is it randomized on game start or in map editor?

No way of knowing?
-.-
Freakling
Profile Joined October 2012
Germany1526 Posts
February 22 2021 14:26 GMT
#9
If you want to know for sure, the easiest way it to open the map in ScmDraft:
[image loading]
Highgamer
Profile Joined October 2015
1399 Posts
February 22 2021 14:58 GMT
#10
Jeez, no wonder stuff gets stuck on ramps sometimes...
Freakling
Profile Joined October 2012
Germany1526 Posts
February 22 2021 15:04 GMT
#11
The red is unwalkable tiles. As I explained where stuff can go is determined on the minitile level, which is the grey overlay.
As far as this topic is concerned: Grey prohibits movement, red makes Mines dud.
Highgamer
Profile Joined October 2015
1399 Posts
Last Edited: 2021-02-22 19:12:19
February 22 2021 19:10 GMT
#12
Just one quick question: What exactly do you mean by "grey prohibits movement"?

From your explanation above - 'ground units can occupy walkable mini-tiles' - I had the impression that units can walk/move on walkable mini-tiles, despite the whole tile being classified as unwalkable. Maybe only by patch-finding accident, but isn't that what the mine in the video did, no?

Or did you mean: "Normally units won't step on walkable mini-tiles if the whole tile is unwalkable"?
Are units being pushed off of a walkable mini-tile (in an unwalkable whole-tile) should they accidentally move onto it?

Thx in advance.
Freakling
Profile Joined October 2012
Germany1526 Posts
Last Edited: 2021-02-22 20:28:46
February 22 2021 20:25 GMT
#13
Units can occupy any walkable space they can fit in. But if the tile is flagged unwalkable any mine explosions on it will be duds. The mine can move onto the tile because it is partly walkable (has walkable minitiles), but doesn't deal damage because the whole tile is flagged as unwalkable.

Or, to be very technical about it:
  • A ground unit's collision box may not overlap with any unwalkable minitiles
  • If a ground unit overlaps with unwalkable terrain it will be force-moved to the "nearest" (according to the game's idea of nearest…) walkable area (this just as a side note, it is not relevant for the effect discussed in this thread).
  • The centre of the collision box (rounded up coordinates) is the actual unit position, which is what is checked to determine the terrain flag checks for the unit.


Maybe it's not quite clear what I mean with grey, because the grey overlay actually looks dark red under the red overlay… Can you see that there are two overlays visible on that image, the darker one with 4× the resolution of the other? Maybe I should make a gif…
Highgamer
Profile Joined October 2015
1399 Posts
Last Edited: 2021-02-23 09:57:55
February 23 2021 09:52 GMT
#14
Thx Freakling, it's all cleared up now that you mentioned that the grey overlay is where it's deep red.

I think you're fine if you maybe just use the terms "deep red/light red" instead of "grey/red" in your above post.

Other than that, precise in-depth BW-knowledge as always.
Freakling
Profile Joined October 2012
Germany1526 Posts
February 23 2021 10:10 GMT
#15
I added an animation to the OP that shows the terrain analysis step by step.
MeSaber
Profile Joined December 2009
Sweden1235 Posts
February 23 2021 18:40 GMT
#16
Nice!
-.-
Dangermousecatdog
Profile Joined December 2010
United Kingdom7084 Posts
Last Edited: 2021-02-23 20:30:27
February 23 2021 20:13 GMT
#17
So there are mini-tiles that are either walkable or unwalkable, but a tile as a whole is either flagged as walkable or unwalkable? Are there any other circumstance where a whole tile being flagged walkable or unwalkable matters? Other than building placment presumably. Scarab duds too due to this perhaps?

I guess with this info the best way to make a spider mine dud is make it hit a unit on the sides of a ramp or throw your unit to a corner and hope for the best.
Freakling
Profile Joined October 2012
Germany1526 Posts
Last Edited: 2021-02-25 20:13:14
February 24 2021 10:15 GMT
#18
On February 24 2021 05:13 Dangermousecatdog wrote:
So there are mini-tiles that are either walkable or unwalkable, but a tile as a whole is either flagged as walkable or unwalkable? Are there any other circumstance where a whole tile being flagged walkable or unwalkable matters? Other than building placment presumably.
Pathfinding regions are generated and connected based on the walkability and terrain level tile flags (both generated from the respective minitile flags at game-start), so indirectly they have a huge bearing on long-range pathfinding and a plethora of associated behaviours.

Buildability is only determined by the buildability flag, a game-generated "partially walkable" flag (which is set as soon as one minitile of a tile in unwlkable) and a creep flag for Zerg (there are some special cases regarding partially unwalkable, but buildable tiles).
Creep spread is only determined by the buildability flag though (and has some unintended buggy interaction with a deprecated "flipped doodad sprite" flag).

Scarab duds too due to this perhaps?
Read the quote from the OP, follow the references! The relevant flag check is specifically hardcoded for Mines only.
Scarabs dud due to timeout, when they cannot reach their target due to other units blocking the way, or when the Reaver owner aborts the attack (gives the Reaver a stop order).

I guess with this info the best way to make a spider mine dud is make it hit a unit on the sides of a ramp or throw your unit to a corner and hope for the best.
Something like this. In practice it is situationally useful to know and somewhat luck based, I guess.
Freakling
Profile Joined October 2012
Germany1526 Posts
Last Edited: 2021-02-25 20:10:40
February 24 2021 10:20 GMT
#19
double post, delete please
Dangermousecatdog
Profile Joined December 2010
United Kingdom7084 Posts
Last Edited: 2021-02-25 20:51:16
February 25 2021 20:50 GMT
#20
Thanks Freakling, for the informative answers.
1 2 Next All
Please log in or register to reply.
Live Events Refresh
Replay Cast
18:00
Kung Fu Cup SC: EVO 10
SteadfastSC42
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
LamboSC2 549
mouzHeroMarine 510
Hui .154
MindelVK 54
IndyStarCraft 53
SteadfastSC 42
StarCraft: Brood War
Calm 4509
Stork 802
Shuttle 742
Mini 677
Nal_rA 413
Soulkey 298
actioN 291
BeSt 205
Dewaltoss 162
BRAT_OK 101
[ Show more ]
Barracks 74
sSak 62
Shinee 41
Movie 36
Backho 33
Terrorterran 25
Sexy 24
yabsab 18
soO 11
Dota 2
Gorgc9444
qojqva2284
Counter-Strike
flusha266
FunKaTv 90
Super Smash Bros
C9.Mang084
Heroes of the Storm
Khaldor280
Other Games
tarik_tv20850
FrodaN2767
B2W.Neo1450
Beastyqt668
XBOCT490
crisheroes184
ArmadaUGS169
KnowMe103
Trikslyr76
QueenE20
EmSc Tv 7
Organizations
Other Games
gamesdonequick1656
StarCraft 2
ESL.tv114
Other Games
BasetradeTV21
EmSc Tv 7
StarCraft 2
EmSc2Tv 7
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• davetesta31
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Michael_bg 8
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis7237
• TFBlade931
Other Games
• Shiphtur300
• WagamamaTV200
Upcoming Events
Online Event
9h 45m
ShoWTimE vs MaxPax
SHIN vs herO
Clem vs Cure
SHIN vs Clem
ShoWTimE vs SHIN
SOOP
14h 45m
DongRaeGu vs sOs
CranKy Ducklings
15h 45m
WardiTV Invitational
16h 45m
AllThingsProtoss
16h 45m
SC Evo League
17h 45m
WardiTV Invitational
19h 45m
Chat StarLeague
21h 45m
PassionCraft
22h 45m
Circuito Brasileiro de…
23h 45m
[ Show More ]
Online Event
1d 9h
MaxPax vs herO
SHIN vs Cure
Clem vs MaxPax
ShoWTimE vs herO
ShoWTimE vs Clem
Sparkling Tuna Cup
1d 15h
WardiTV Invitational
1d 16h
AllThingsProtoss
1d 16h
uThermal 2v2 Circuit
1d 19h
Chat StarLeague
1d 21h
Circuito Brasileiro de…
1d 23h
Afreeca Starleague
2 days
BeSt vs Light
Wardi Open
2 days
PiGosaur Monday
3 days
Afreeca Starleague
3 days
Snow vs Soulkey
WardiTV Invitational
3 days
Replay Cast
4 days
GSL Code S
4 days
ByuN vs Rogue
herO vs Cure
Replay Cast
5 days
GSL Code S
5 days
Classic vs Reynor
GuMiho vs Maru
The PondCast
5 days
RSL Revival
6 days
GSL Code S
6 days
Liquipedia Results

Completed

FGSL Season 1
PiG Sty Festival 6.0
Calamity Stars S2

Ongoing

BSL Nation Wars Season 2
StarCastTV Star League 4
JPL Season 2
ASL Season 19
YSL S1
BSL 2v2 Season 3
BSL Season 20
China & Korea Top Challenge
KCM Race Survival 2025 Season 2
2025 GSL S1
Heroes 10 EU
Asian Champions League '25
ECL Season 49: Europe
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025
PGL Bucharest 2025
BLAST Open Spring 2025
ESL Pro League S21

Upcoming

CSLPRO Spring 2025
NPSL S3
CSLPRO Last Chance 2025
CSLAN 2025
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
Bellum Gens Elite Stara Zagora 2025
2025 GSL S2
DreamHack Dallas 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 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.