• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 23:34
CEST 05:34
KST 12:34
  • 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] Ro4 Preview: Storied Rivals1Code 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
Community News
Maru & Rogue GSL RO12 interviews: "I think the pressure really got to [trigger]"5Code S Season 1 - Maru & Rogue advance to RO80Code S Season 1 - Cure & Reynor advance to RO84$1,250 WardiTV May [May 6th-May 18th]5Clem wins PiG Sty Festival #67
StarCraft 2
General
I hope balance council is prepping final balance Map Pool Suggestion: Throwback ERA How does the number of casters affect your enjoyment of esports? Maru & Rogue GSL RO12 interviews: "I think the pressure really got to [trigger]" Code S Season 1 - Maru & Rogue advance to RO8
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament [GSL 2025] Code S:Season 1 - RO12 - Group B [GSL 2025] Code S:Season 1 - RO12 - Group A $1,250 WardiTV May [May 6th-May 18th] SOOPer7s Showmatches 2025
Strategy
[G] PvT Cheese: 13 Gate Proxy Robo Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 473 Cold is the Void Mutation # 472 Dead Heat Mutation # 471 Delivery Guaranteed Mutation # 470 Certain Demise
Brood War
General
[ASL19] Ro4 Preview: Storied Rivals Battlenet Game Lobby Simulator Twitch StarCraft Holiday Bash (UMS) Artosis vs Ogre Zerg [The Legend Continues] BGH auto balance -> http://bghmmr.eu/
Tourneys
[ASL19] Semifinal A [ASL19] Ro8 Day 4 [USBL Spring 2025] Groups cast [BSL20] RO32 Group F - Saturday 20:00 CET
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? Stormgate/Frost Giant Megathread Nintendo Switch Thread 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
Canadian Politics Mega-thread US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread UK Politics Mega-thread
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
The Automated Ban List TL.net Ten Commandments
Blogs
Why 5v5 Games Keep Us Hooked…
TrAiDoS
Info SLEgma_12
SLEgma_12
SECOND COMMING
XenOsky
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: 13073 users

The Mechanics of SC2 [Part 1]

Forum Index > SC2 General
Post a Reply
Normal
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
Last Edited: 2010-06-22 13:37:09
June 22 2010 13:29 GMT
#1
The Mechanics of Starcraft 2

Part 1


This will be the beginning of a multipart series on the differences of the mechanics of BroodWar and Starcraft 2. It will outline the pros and cons of each, with specific points and examples that hopefully everyone can understand and relate to. People prefer short and sweet, so I will try to get as close to that as possible, hence dividing this article into many threads over time.

What I intend to achieve is to allow more informed discussions about the mechanics of Starcraft 2. I often see irrational replies in threads that are mis-informed due to different use or lack of understanding. BroodWar fans end up looking like stubborn people who don't like change, and Starcraft 2 fans end up looking like people who want to win without trying.

Many of the points represented in this article will consist of estimations, I did not program BroodWar or Starcraft 2 so it's natural that there will be a lot of guess work on my part. Also please take my opinions with a grain of salt and make up your own opinion. Fact is fact, opinion is opinion, this article will contain elements of both.

Unit Control (Part 1)
Unit Control involves the ability to for players to move units in a way that makes them more effective individually, whether it be dealing damage, avoiding damage, or effective movement.

As Unit Control is such a broad topic, this also will have to be split into a few parts. Part 1 will cover aspects revolving around pathfinding.

Pathfinding
Starcraft 2 uses an AI pathfinding technique called flocking or swarm AI, the effect is coordinated movement the same as what you get with a school of fish or a flock of birds. Most likely Starcraft 2 uses an advanced algorithm that finds the fewest amount of waypoints and allows autonomous steering behaviour for units to smoothly hug their way around obstacles and other units.

From a purely development perspective Blizzard has done an extremely good job with this, it's quite a specialised field and there isn't a lot of information on it, with 200 units and chokes and obstacles everywhere it still works very efficiently and flawlessly. It is a technique which is highly regarded in the game development community, so it's understandable why Blizzard did it. Until I started playing BroodWar I also spent a long time trying to learn how to code this too.

BroodWar works a little differently. On an isometric map where each unit can only go in 8 directions, coupled with much lower processing power, this calls for a much more primitive pathfinding algorithm. The most common pathfinding algorithm in this situation would be a tile-based A* (A-Star) algorithm and just by looking at the units I would say this is a pretty good guess.

[image loading]
Tile-based A* Pathfinding Example


[image loading]
BroodWar Dragoons showcasing the A* algorithm


The map is filled with many nodes layed out like tiles, each unit follows these nodes one by one until they get to the destination, the nodes that units can take become waypoints. So while Starcraft 2 can avoid collision by using steering behaviour to hug their way around the small radius of another unit, BroodWar units are constrained by the fact that they are competing for waypoints. This is the main reason why you get much better surround in Starcraft 2 than in BroodWar., but also the reason why units have to spread out so much to move around.

[image loading]
Slight offsets cause the mutalisks take different waypoints when turning 180 degrees


[image loading]
Emulating BroodWar pathfinding by spamming waypoints towards a destination


The difference is that BroodWar relies almost solely on A* to get the units to move from one point to another, mapping every single node the unit needs to traverse over. In Starcraft 2, it seems that a lot of the pathfinding is left up to the unit individual, and waypoints are kept to a minimum.

Collision avoidance is also much more primitive in BroodWar as well. Units avoid collision by stopping to give-way while another unit moves around it or calculates a new path, this is probably one of the first things you learn about dealing with collision avoidance between units. You often see this in BroodWar with worker scouts, when one stops, and the other goes around, or both the players forcefully try to move them past and all it does is hold both the workers up.

In Starcraft 2, units will avoid obstacles and other units (but also flock together) using steering behaviour. Logically, every unit has sensors which when colliding with another unit, will signal for the unit to turn in an appropriate direction to avoid it. This allows units to weave in and out without calculating a whole new path or losing momentum, in a worst case scenario the units can ignore the collision radius, allowing for more fluid movement and higher movement efficiency overall.

[image loading]
OpenSteer: An open source library for autonomous steering behaviour


[image loading]
BroodWar zerglings are busy deciding who goes first, while SC2 zerglings start turning before they even get there


A lot of BroodWar fans dislike the new pathfinding AI and there's good reason to. One of the most effective tactics in the early game is flanking. If units move in a perfect tight ball, flanking will be useless, period. The reason zerglings dish so much damage to marines when they are spread out is because marines are ranged and zerglings are melee units. If you can effectively reduce the "surface area" of your army, your army will receive much less damage. This also becomes a compounded effect due to the difference in army size and damage growing bigger and bigger after each death.

[image loading]
Flash vs Effort (OSL Finals Game 3). Flash's un-attended marines competing for the same waypoints form a spread-out line, Effort punishes this with a well-timed zergling flank killing all the marines. Had Flash concentrated on his marines, this wouldn't have cost him the game


The other issue is that ideally, the amount of effort focused on unit movement should directly correlate to their effectiveness. Players that don't attend to their units should be able to be punished. However in Starcraft 2, there is a feeling that the AI can move the units better than humans, meaning that you get the opposite effect.

I can also see how bad unit movement can be frustrating for newer players, there is nothing worse for blizzard than to show what looks like an un-polished game. I believe that units should spread out if you carelessly move them about, but they should also not glitch out all the time due to bad pathfinding AI. We do not need to have people "fight the interface" to create good gameplay mechanics, but we still need the side-effects that improve gameplay as a result.

"Auto-surround" due to better pathfinding can be mitigated. Zerglings are faster off and on creep in Starcraft 2 than they were in BroodWar. Reducing the Zergling's on-creep and off-creep speed back to that of a worker and widening the radius means that an effective surround is necessary to take out a scouting worker, thus the skill of worker scouting can once again become a defining feature of good play.

[image loading]
A badly executed surround allows the probe to live on to fight another day


In a later issue, I will talk about Starcraft 2's extremely high rates of fire which also severely affects flanking ability and other mechanics. The next issue however will be about magic boxing and stacking, following that, probably moving shot.
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
flyinfart
Profile Blog Joined February 2009
United States95 Posts
June 22 2010 13:42 GMT
#2
This is a very cool article. Its nice to see the mechanics behind what we have all noticed, but just don't know enough about to put into an intelligible post. I'll be looking forward to your expansions on this, and how they tie together.
rastaban
Profile Blog Joined May 2010
United States2294 Posts
June 22 2010 13:44 GMT
#3
Thanks for writing this up, I am looking forward to part 2.
Tyler: "...damn it, that's StarCraft. Opening doors is what we do. Being the first to find food is the greatest pleasure a player can have!"
kajeus
Profile Joined May 2010
United States679 Posts
Last Edited: 2010-06-22 13:50:11
June 22 2010 13:48 GMT
#4
It's true that autosurround makes the game easier with regard to melee units. On the other hand, I really like the aesthetic effect of swarming over a group of marines with superfast zerglings in SC2 -- it's beautiful and feels cool.

So while I respect your plea, I think this is a mechanic perhaps best left to BW. Your solution of lowering zergling speed seems like a huge sacrifice simply to encourage possible worker surrounds. Your proposal of having zerglings (etc) spread out when you don't tend to them is interesting, but I'm not sure anyone really understands what you mean. How would they "spread out''? When are they "moved carelessly"? How would this encourage interesting gameplay?

In the end, I think we're stuck with autosurround, and I'm not sure that's bad. Manual surrounds are just a different mechanic for a different era.
pro-MoMaN, pro-HuK, pro-Millenium
Bensio
Profile Blog Joined April 2010
United Kingdom621 Posts
June 22 2010 13:48 GMT
#5
Thanks for takin the time to write this, enjoyed it.
Silkk
Profile Joined June 2010
United States41 Posts
June 22 2010 13:52 GMT
#6
Great read. From a more casual perspective I think that the improved AI is great. As the game evolves the better players will learn how to manipulate their units in creative ways.

Im looking forward to the firing rate article. My biggest struggle with sc2 so far has been how quickly the battles end.
Silkk
Profile Joined June 2010
United States41 Posts
June 22 2010 13:54 GMT
#7
On June 22 2010 22:48 kajeus wrote:
It's true that autosurround makes the game easier with regard to melee units. On the other hand, I really like the aesthetic effect of swarming over a group of marines with superfast zerglings in SC2 -- it's beautiful and feels cool.

So while I respect your plea, I think this is a mechanic perhaps best left to BW. Your solution of lowering zergling speed seems like a huge sacrifice simply to encourage possible worker surrounds. Your proposal of having zerglings (etc) spread out when you don't tend to them is interesting, but I'm not sure anyone really understands what you mean. How would they "spread out''? When are they "moved carelessly"? How would this encourage interesting gameplay?

In the end, I think we're stuck with autosurround, and I'm not sure that's bad. Manual surrounds are just a different mechanic for a different era.


Yea the aesthetics are very pleasingl.... I love when a patch of zerglings are running through a slower group of hydralisks... Its especially cool when they switch directions.... The swarm!!!!
Licmyobelisk
Profile Blog Joined August 2008
Philippines3682 Posts
June 22 2010 13:55 GMT
#8
So that's why marines feels that they have tougher skin than SC BW, cause of it's intelligence in path finding than their predecessor. Goodjob at explaining :D
I don't think I've ever wished my opponent good luck prior to a game. When I play, I play to win. I hope every opponent I ever have is cursed with fucking terrible luck. I hope they're stuck playing underneath a stepladder with a black cat in attendance a
Takkara
Profile Blog Joined April 2010
United States2503 Posts
June 22 2010 13:56 GMT
#9
Really good article, an interesting read for sure.

I think I disagree about your line: "A lot of BroodWar fans dislike the new pathfinding AI and there's good reason to. One of the most effective tactics in the early game is flanking. If units move in a perfect tight ball, flanking will be useless, period."

It's shortsighted to say that this is only a negative thing, right? I mean, commentators like Day[9] have been spending the entire Beta lamenting the "one-control group syndrome" that leads to these perfect tight balls. The reason being that AoE abilities like storm, fungal growth, Collossi, etc really eat into groups like this, and units can really be caught out of position.

Lamenting the end of BW flanking is in some ways like the moving shot debate. It's a relic of an old engine, and wasn't likely to be replicated in a new engine. But this new engine has it's only quirks and limitations and it's just a matter of time until they're found. Then when SC3 comes out, we'll lament the end of those things.

At least, that's my hope in all this.
Gee gee gee gee baby baby baby
shawabawa
Profile Joined May 2010
United Kingdom417 Posts
June 22 2010 13:57 GMT
#10
On June 22 2010 22:48 kajeus wrote: Your proposal of having zerglings (etc) spread out when you don't tend to them is interesting, but I'm not sure anyone really understands what you mean. How would they "spread out''? When are they "moved carelessly"? How would this encourage interesting gameplay?

I think his point about spreading out is that if in BW you got a whole bunch of marines and A-clicked the other side of the map, they would spread out into a giant conga line and get owned by flanks, whereas in SC2 they stay in a very tight ball and flanks aren't as effective. He wants it so you have to baby sit your troops more carefully when moving your army.

I prefer how it is in SC2, bad pathfinding is the biggest problem with almost every RTS. I used to love WC3, but since playing SC2 I just can't play it any more because the god damn units just spaz out all the time.
piochelin
Profile Joined January 2010
Spain31 Posts
June 22 2010 13:57 GMT
#11
Soooo it was the AI then... i always thinked my goons were retarded

Really nice post, looking forward for the next
it's all about courage
Subversion
Profile Blog Joined April 2010
South Africa3627 Posts
June 22 2010 13:59 GMT
#12
wow. epic op and great read, thanks for this.
kajeus
Profile Joined May 2010
United States679 Posts
June 22 2010 13:59 GMT
#13
On June 22 2010 22:56 Takkara wrote:
Really good article, an interesting read for sure.

I think I disagree about your line: "A lot of BroodWar fans dislike the new pathfinding AI and there's good reason to. One of the most effective tactics in the early game is flanking. If units move in a perfect tight ball, flanking will be useless, period."

It's shortsighted to say that this is only a negative thing, right? I mean, commentators like Day[9] have been spending the entire Beta lamenting the "one-control group syndrome" that leads to these perfect tight balls. The reason being that AoE abilities like storm, fungal growth, Collossi, etc really eat into groups like this, and units can really be caught out of position.

Lamenting the end of BW flanking is in some ways like the moving shot debate. It's a relic of an old engine, and wasn't likely to be replicated in a new engine. But this new engine has it's only quirks and limitations and it's just a matter of time until they're found. Then when SC3 comes out, we'll lament the end of those things.

At least, that's my hope in all this.

You're absolutely right. "Careless spreading out" would effectively nerf fungal growth, storm, colossi, siege tanks, etc.

It could be lamented as causing the game to require LESS micro!
pro-MoMaN, pro-HuK, pro-Millenium
nihoh
Profile Blog Joined May 2010
Australia978 Posts
June 22 2010 14:02 GMT
#14
On June 22 2010 22:59 kajeus wrote:
Show nested quote +
On June 22 2010 22:56 Takkara wrote:
Really good article, an interesting read for sure.

I think I disagree about your line: "A lot of BroodWar fans dislike the new pathfinding AI and there's good reason to. One of the most effective tactics in the early game is flanking. If units move in a perfect tight ball, flanking will be useless, period."

It's shortsighted to say that this is only a negative thing, right? I mean, commentators like Day[9] have been spending the entire Beta lamenting the "one-control group syndrome" that leads to these perfect tight balls. The reason being that AoE abilities like storm, fungal growth, Collossi, etc really eat into groups like this, and units can really be caught out of position.

Lamenting the end of BW flanking is in some ways like the moving shot debate. It's a relic of an old engine, and wasn't likely to be replicated in a new engine. But this new engine has it's only quirks and limitations and it's just a matter of time until they're found. Then when SC3 comes out, we'll lament the end of those things.

At least, that's my hope in all this.

You're absolutely right. "Careless spreading out" would effectively nerf fungal growth, storm, colossi, siege tanks, etc.

It could be lamented as causing the game to require LESS micro!

U forget that spells like Storm were much more stronger due counter the "spreading out" of units from primitive AI.
Dont look at the finger or you will miss all that heavenly glory.
exnomendei
Profile Joined May 2010
Netherlands122 Posts
June 22 2010 14:11 GMT
#15
Thank you for the excellent post. It's a good short read up that can really benefit your micro if you use this information well. Units behave so differently from BW that micro has to take on different shapes and forms.

Can you give examples of what players can do to improve on the built-in pathing, swarm-effect, etc? I think a major problem with players now is the "one control group" syndrom; people group all their units in one group, and while it makes for effective attacks early on, you really benefit from getting a bigger concave later on in the game. This can be achieved bu just splitting one control group hap-hazardly into two, and moving the groups seperately.

What options do players have to improve their micro, movement-wise?
Trying something wacky, expanding it, adjusting it, perfecting it -> Build order
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
Last Edited: 2010-06-22 14:39:22
June 22 2010 14:23 GMT
#16
Thanks

On June 22 2010 23:11 exnomendei wrote:
Thank you for the excellent post. It's a good short read up that can really benefit your micro if you use this information well. Units behave so differently from BW that micro has to take on different shapes and forms.

Can you give examples of what players can do to improve on the built-in pathing, swarm-effect, etc? I think a major problem with players now is the "one control group" syndrom; people group all their units in one group, and while it makes for effective attacks early on, you really benefit from getting a bigger concave later on in the game. This can be achieved bu just splitting one control group hap-hazardly into two, and moving the groups seperately.

What options do players have to improve their micro, movement-wise?


You could artificially create one on the spot by spamming waypoints till they form a line (as long as you break the magic box, the radius is 6 distance units wide, if your group is bigger than that it will form a line). If you continue to move in the direction of the line they should stay that way, then if you move sideways they should form a concave faster than normal.

Worth a shot if you think that units take too long to form a concave (its a bit risky though), the other thing though is you can just attack -> move -> attack and hold that ball so then all your units are in range already.

Unfortunately SC2 doesn't give you that much control in that regard, but ill hopefully have more tips with magic boxing and stacking as they are available in SC2 (although not as useful).

Its more about explaining though more than anything else
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
Wippen
Profile Joined May 2010
Sweden15 Posts
June 22 2010 14:44 GMT
#17
Really intresting to get some of the mechanics explained. Good job OP.
Saracen
Profile Blog Joined December 2007
United States5139 Posts
June 22 2010 14:47 GMT
#18
Great article.
Peekay.switch
Profile Blog Joined May 2010
Canada285 Posts
June 22 2010 14:47 GMT
#19
One of the best article I've read on TL.

Really well put and I'm really looking forward to Part 2.
I'm currently doing an Engineering Degree in Programming (Think that's what It's called, you'll have to forgive me, I'm French >_>) and Path finding really is an interesting subject, I have learned a whole bunch about it and I'll definitely be digging out OpenSteer.

Once again, very nice article!
mOnion
Profile Blog Joined August 2009
United States5653 Posts
June 22 2010 14:49 GMT
#20
wow this is really freaking impressive
☆★☆ 7486!!! Join the Ban mOnion Anti-Trolling Initiative! - Caller | "on a scale of machine to 10, how bad is that Zerg?" - LZgamer | you are the new tl.net bonjwa monion, congrats - Rekrul | "Cheeseburgers dynamite lilacs" - Chill
TaaiJoeng
Profile Blog Joined June 2010
Hong Kong164 Posts
June 22 2010 14:50 GMT
#21
Great read. Great insight.
...but the parasites say NO!
Krissam
Profile Joined April 2010
Denmark189 Posts
Last Edited: 2010-06-22 14:53:10
June 22 2010 14:51 GMT
#22
Just wanted to add that the congoline thingie happens in sc2 sometimes too, this is usually caused by a very narrow choke, like the one on DO.


Sorry, couldn't provide a screenshot since I can't start reps, but if you look in the top right corner, units able to fit through that choke will congoline very easily when moving from 1 base to the next.


Edit:
oh yea, a+ would read again... looking forward to the next article.
If you can chill, chill!" - TLAF-Liquid´Tyler
Logo
Profile Blog Joined April 2010
United States7542 Posts
June 22 2010 14:52 GMT
#23
Really cool. This might actually explain a lot of the map design in SC2. People complain about not having wide open middles, but really if all the units travel in a ball aren't we better off with stuff in the way that helps to create disadvantages in positioning? It'd be interesting to run some pathing tests and see what kind of terrain can help to draw and extend unit lines out.
Logo
riptide
Profile Blog Joined July 2007
5673 Posts
June 22 2010 14:55 GMT
#24
A well researched, thorough post. Into the spotlight!
AdministratorSKT T1 | Masters of the Universe
Boonbag
Profile Blog Joined March 2008
France3318 Posts
June 22 2010 15:00 GMT
#25
Nice, wish we had more of these >.>
unit
Profile Blog Joined March 2009
United States2621 Posts
June 22 2010 16:07 GMT
#26
On June 22 2010 22:57 piochelin wrote:
Soooo it was the AI then... i always thinked my goons were retarded


no ur goons were retarted....seriously those things were TERRIBLE nothing else in the game was nearly that bad
Therick
Profile Blog Joined April 2010
Norway324 Posts
June 22 2010 16:12 GMT
#27
Interesting read.

I am really looking forward to next part.
Lift. Laugh. Love. <3
zul
Profile Blog Joined February 2010
Germany5427 Posts
June 22 2010 16:18 GMT
#28
abso(f___ing)lutely great thread. cant wait for the next parts. have you ever thought about writing this for liquipedia?
keep it deep! @zulison
Belegorm
Profile Blog Joined April 2010
United States330 Posts
June 22 2010 16:24 GMT
#29
On June 23 2010 01:07 unit wrote:
Show nested quote +
On June 22 2010 22:57 piochelin wrote:
Soooo it was the AI then... i always thinked my goons were retarded


no ur goons were retarted....seriously those things were TERRIBLE nothing else in the game was nearly that bad


They weren't terrible... I mean come on, in the words of knickknack, goons were almost cute, if you squinted a little (points to any toss player who gets this reference
MUM GIVE ME SOME SCISSORS!!!
RaGe
Profile Blog Joined July 2004
Belgium9945 Posts
June 22 2010 16:30 GMT
#30
Very nice article. Looking forward to the continuation of this series.
Moderatorsometimes I get intimidated by the size of my right testicle
clickrush
Profile Blog Joined May 2010
Switzerland3257 Posts
June 22 2010 16:30 GMT
#31
This post has two major qualities: 1. solid research and 2. unbiased and not judging.
oGsMC: Zealot defense, Stalker attack, Sentry forcefieldu forcefieldu, Marauder die die
Takkara
Profile Blog Joined April 2010
United States2503 Posts
June 22 2010 16:35 GMT
#32
On June 23 2010 01:30 clickrush wrote:
This post has two major qualities: 1. solid research and 2. unbiased and not judging.


I think #2 is the most important. There's a different between bias and opinion. The OP has opinions, but is not biased, and clearly identifies opinions as such.
Gee gee gee gee baby baby baby
LunarC
Profile Blog Joined October 2009
United States1186 Posts
June 22 2010 16:38 GMT
#33
Nicely written. It'd be nice if you could also mention unit acceleration/deceleration in the future. The way it works in Starcraft 2 is quite different from how it works in Starcraft 1.
REEBUH!!!
lovewithlea
Profile Joined March 2010
168 Posts
June 22 2010 16:48 GMT
#34
great read. thanks alot!
jbmacnchee
Profile Joined May 2010
United States18 Posts
Last Edited: 2010-06-22 17:45:23
June 22 2010 17:43 GMT
#35
On June 22 2010 22:29 sluggaslamoo wrote:
Players that don't attend to their units should be able to be punished. However in Starcraft 2, there is a feeling that the AI can move the units better than humans, meaning that you get the opposite effect.

I think players do get punished for allowing their units to clump together as dictated by the pathfinding. From a zerg perspective I love it when Terran has their MM ball rolled together. It makes my banelings that much more effective. Splash damage and AOE damage seem much more prevalent in Starcraft 2 than in Brood War and I feel this is Blizzard's way of giving players a method to counter the AI's tendency to clump.

The only reason the AI seems better than humans at this point is because many of the game's tricks are still hidden and unexplored. Thorough research and knowledgable insight like yours help alleviate this problem and bring forward interesting gameplay.

Great article and I look forward to part two.


Edit: Unnecessary commas.
SchOOl_VicTIm
Profile Blog Joined September 2004
Greece2394 Posts
June 22 2010 18:22 GMT
#36
Great post, looking forward to the next ones as well. I agree with your suggestions, let's hope some big guys will bother to listen
OminouS
Profile Joined February 2010
Sweden1343 Posts
June 22 2010 18:26 GMT
#37
I thougth the pathfinding in BW was the reason Zerglings without speed had so much troubles catching up to a worker?

The Zergling and a Probe in a 100yard-dash - the Zergling wins.
On the 6th day JF made Reavers and on the 7th day JF put his opponent to rest
Aesop
Profile Joined October 2007
Hungary11270 Posts
June 22 2010 18:45 GMT
#38
Very well illustrated, thank you.
ModeratorNon veritas sed auctoritas facit legem. | Liquipedia: Don't ask me, I'm retired.
CursOr
Profile Blog Joined January 2009
United States6335 Posts
June 22 2010 18:45 GMT
#39
This really helped me understand the differences. The parts about "competing for waypoints" really made a ton of sense. Nice and technical without getting TOO technical. This is really well done.

Excellent advice about reducing the "surface area" of your Infantry ball vs lings. I guess I kind of knew it intuitively, but I'll be more aware of it now that I've been through it so explicitly stated. Thanks so much!
CJ forever (-_-(-_-(-_-(-_-)-_-)-_-)-_-)
khellian
Profile Joined February 2010
Korea (South)922 Posts
June 22 2010 18:48 GMT
#40
Very informative and well presented. Thank you very much! Looking forward to your other articles.
FlamingTurd
Profile Joined April 2010
United States1059 Posts
June 22 2010 19:14 GMT
#41
dang nice writeup lol
Nerf MMMT!!! Liquid`Ret Hwaiting!!!
omg.deus
Profile Blog Joined October 2009
Korea (South)150 Posts
June 22 2010 20:54 GMT
#42
love the idea of an army spreading if you A-move so you have to be attentive to your units...brilliant
Rinrun
Profile Joined April 2010
Canada3509 Posts
June 22 2010 21:13 GMT
#43
Good stuff. Can't wait for the next installment.
MBC/Liquid/TSM always.
Sylvr
Profile Joined May 2010
United States524 Posts
June 22 2010 21:34 GMT
#44
Nice post. I think this will help a lot as maps become more open and players look for ways to form their units up into something of a moving concave (or instant surround in the case of melee units) rather than have them ball up all the time.
Viktator
Profile Joined May 2010
Denmark23 Posts
June 22 2010 22:10 GMT
#45
Nice. Adding some facts to the BW/SC2 debate. Cheers!
http://xkcd.com/810/ - Mission. Fucking. Accomplished.
Piski
Profile Blog Joined April 2010
Finland3461 Posts
June 22 2010 22:57 GMT
#46
You know what you are talking about, good article.
GenesisX
Profile Blog Joined February 2010
Canada4267 Posts
June 22 2010 22:59 GMT
#47
Nicely written, very impressive!
133 221 333 123 111
check mate
Profile Joined June 2010
Germany39 Posts
June 22 2010 23:08 GMT
#48
Very nice and well explained stuff.
TheYango
Profile Joined September 2008
United States47024 Posts
June 22 2010 23:17 GMT
#49
On June 22 2010 22:48 kajeus wrote:
So while I respect your plea, I think this is a mechanic perhaps best left to BW. Your solution of lowering zergling speed seems like a huge sacrifice simply to encourage possible worker surrounds. Your proposal of having zerglings (etc) spread out when you don't tend to them is interesting, but I'm not sure anyone really understands what you mean. How would they "spread out''? When are they "moved carelessly"? How would this encourage interesting gameplay?

IMO the ultimate goal of an RTS interface should be to do what you tell it to, but to do nothing that you *don't* tell it to. If you want to bring your units together, the interface should let you, but it's *bad* that it does so for you, for two reasons:

1) If the AI is automatically bringing units together/surrounding, it is performing tactical decisions that a player should be required to make. In doing so, a player who is not good enough to make those decisions well may come out ahead in battles he shouldn't because the AI covered an area of tactical decision-making that he should be punished for not thinking about.

2) If the AI is automatically bringing units together, it makes it difficult for a player who *wants* to spread hits units out to do so.

The simple solution is for units to behave by moving in the formation they were in when they started (within reason). This way, a player can choose to bring his units together if he wants, but the AI doesn't do it *for* him. The magic boxes of SC1 behave somewhat like this, but it certainly could be refined.
Moderator
TrueRedemption
Profile Blog Joined September 2009
United States313 Posts
June 22 2010 23:20 GMT
#50
Very good explanation, analysis, and commentary. I enjoyed the whole article thoroughly, and am looking forward to the next.
Writer
Shiladie
Profile Blog Joined January 2009
Canada1631 Posts
June 22 2010 23:26 GMT
#51
Very nice analysis. I think the zergling's loss of efficiency as the game goes on is due to the clumping AI combined with the larger late-game armies, significantly less surface area per damage dealt.
Voronoff
Profile Joined May 2010
United States302 Posts
June 23 2010 00:11 GMT
#52
On June 22 2010 23:02 nihoh wrote:
Show nested quote +
On June 22 2010 22:59 kajeus wrote:
On June 22 2010 22:56 Takkara wrote:
Really good article, an interesting read for sure.

I think I disagree about your line: "A lot of BroodWar fans dislike the new pathfinding AI and there's good reason to. One of the most effective tactics in the early game is flanking. If units move in a perfect tight ball, flanking will be useless, period."

It's shortsighted to say that this is only a negative thing, right? I mean, commentators like Day[9] have been spending the entire Beta lamenting the "one-control group syndrome" that leads to these perfect tight balls. The reason being that AoE abilities like storm, fungal growth, Collossi, etc really eat into groups like this, and units can really be caught out of position.

Lamenting the end of BW flanking is in some ways like the moving shot debate. It's a relic of an old engine, and wasn't likely to be replicated in a new engine. But this new engine has it's only quirks and limitations and it's just a matter of time until they're found. Then when SC3 comes out, we'll lament the end of those things.

At least, that's my hope in all this.

You're absolutely right. "Careless spreading out" would effectively nerf fungal growth, storm, colossi, siege tanks, etc.

It could be lamented as causing the game to require LESS micro!

U forget that spells like Storm were much more stronger due counter the "spreading out" of units from primitive AI.



I'm wondering if this is part of the reason that many people feel siege tanks are too strong (besides the lack of overkill). Is the splash of the tank reduced proportionally to storm? I can find the liquidpedia link for how the splash works in sc2, but not in sc1.
bubblegumbo
Profile Blog Joined July 2008
Taiwan1296 Posts
June 23 2010 02:37 GMT
#53
Very well written article, pathfinding is definitely one of the biggest changes in the game that affects zerg play the most in SC2.
"I honestly think that whoever invented toilet paper is a genius. For man to survive, they need toilet paper!"- Nal_rA
IaniAniaN
Profile Joined September 2007
Canada555 Posts
June 23 2010 02:49 GMT
#54
I think that the more the game is played the less of a factor unit clumps are, in fact it becomes extremely disadvantageous. EMPs, Storms, Collossi, Banelings. They will all cause you a lot of problems if you leave you units conveniently clumped together.
DuncanIdaho
Profile Blog Joined April 2010
United States465 Posts
June 23 2010 02:58 GMT
#55
Nice Post!

But yeah, my one complaint with the current pathing system of sc2(don't get me wrong, it's way more awesome than that of broodwar, they've come a long way) is that banelings don't get priority and just wander around behind the zergling line if the lings get to the enemy first, and then ultralisks have a similar problem. I wish that the melee that deals the most damage would get priority and the grunts would move out of the way, but I guess it's nothing that some efficient micro-management can't cure...
The spice must flow... Grammar lesson: "than" is used for quantity comparisons, "then" is used for chronological statements. The next forum user who says, "I'd do such and such, THAN I'd do such and such else," is gonna make me cry...
StarBrift
Profile Joined January 2008
Sweden1761 Posts
June 23 2010 06:29 GMT
#56
Undoubtably a great post. Interesting to see the technicallities of how certain things work.
pedduck
Profile Blog Joined August 2004
Thailand468 Posts
June 23 2010 06:37 GMT
#57
Thanks. waiting for part 2.
n.DieJokes
Profile Blog Joined November 2008
United States3443 Posts
June 23 2010 06:47 GMT
#58
This is awesome, thank you. If you don't mind me asking, how did you learn all this? Are you a game developer
MyLove + Your Love= Supa Love
Tyraz
Profile Blog Joined September 2008
New Zealand310 Posts
June 23 2010 06:52 GMT
#59
This was an epic read, thanks
100% Pure.
nihoh
Profile Blog Joined May 2010
Australia978 Posts
Last Edited: 2010-06-23 07:22:33
June 23 2010 06:54 GMT
#60
To the OP:

Does Warcraft III have the same pathing as Brood War does?

And can't wait for Part II ^^
Dont look at the finger or you will miss all that heavenly glory.
Worstcase
Profile Joined June 2010
Switzerland45 Posts
June 23 2010 07:23 GMT
#61
Cant' wait for the next Parts, they sound realy interesting. Thanks a lot.
Just the tip of the iceberg...
SC2Phoenix
Profile Blog Joined June 2009
Canada2814 Posts
June 23 2010 07:26 GMT
#62
Very cool article. Ty
Who the fuck has a family of fucking trees? This song is so god damn stupid. Fuck you song, fuck you and your stupid trees. -itmeJP
NaturalHacks
Profile Joined June 2010
New Zealand77 Posts
June 23 2010 07:58 GMT
#63
scbw is still alive and kicking it is able to be played, personally I welcome the new changes, yes it allows newer players to not be excessively noob because controlling units is no longer illogical and requires less time to understand, I can also understand how broodwar players are annoyed at how easy the interface is used in comparison, considering they spent a large amount of time learning backwards gameplay mechanics of an outdated game,alot of professionals of starcraft1 will not transfer directly into starcraft 2 and that would definitely cause some unrest, but nevertheless the amount of new mechanics that require micro and skill are in starcraft 2 even this out, its a new game and has new styles yet to be developed please consider it, broodwar is still alive and kicking if you like those mechanics. I believe there is more thinking required and less clicks to negotiate a difficult ui (allowing for more multitasking [each task requires a few less clicks and attention])
Naturally
SiNiquity
Profile Joined April 2010
United States734 Posts
June 23 2010 08:26 GMT
#64
Well written, though you hurt your case as an unbiased presenter when you say things like "BW players don't like this, and with good reason" and "here's how we can fix this."
'i' before 'e' except after 'c' ~ it's scientifically proven.
FarbrorAbavna
Profile Joined July 2009
Sweden4856 Posts
June 23 2010 08:27 GMT
#65
great article, opened up my eyes to a few things I've always wondered how they worked.
Do you really want chat rooms?
TheGrimace
Profile Blog Joined May 2010
United States929 Posts
June 23 2010 08:52 GMT
#66
I'd agree you did hurt your objective stance towards the center. I did enjoy the read though. I remember being frustrated when I returned to BW due to the path finding and losing a game due to the illogical movements of my units. It was a LAN game with a friend, but it stuck with me. I welcome the new AI, it will bite you if you don't pay attention, but it's a far better situation.

The removal of the 1 control group syndrome and 1a mentality would lessen the punishment you can dish with storm, banelings, fungal growth and tanks. A player being less attentive can still be punished, I don't think the new AI is really a con to the new engine, just a new way to play the game. I'm excited to see what we end up with.
Merikh
Profile Blog Joined June 2010
United States918 Posts
June 23 2010 09:09 GMT
#67
This community continues to impress me with the knowledge that they bring to the table. Very nicely written and thank you for the read.
G4MR | I mod day9, djwheat and GLHF's stream
InPlainSight
Profile Joined January 2009
New Zealand40 Posts
June 23 2010 09:12 GMT
#68
I'm very interested in the way that path finding in sc2 works and I question whether A* is not used at all in Sc2 as it seems like the optimal path finding process for terrain traversal. Undoubtedly there are some very clever algorithms that could include steering that go into unit interactions but due to the grid base nature of building placement as well as some terrain like cliffs I would think that A* would still be in use.
I have actually been attempting to emulate the pathing in sc2 as a side project and have found a close estimate to how units move in sc2 through the use of A* in coordination with a system where units move- regardless of other units- then push each other apart allowing units to move towards there intended destination whilst not blocking each other. When units stop they simply get pushed by units who have a destination and do not pursue a destination of there own, this allows for units to move apparently unhindered through a large group of units and for them to appear to part.
Unfortunately I'm not educated on steering mechanics but your hypothesis to do with unit collisions there seems very strong, interesting post.
pzea469
Profile Blog Joined September 2008
United States1520 Posts
June 23 2010 09:32 GMT
#69
i do think that zerglings should get their speed lowered to that of a worker ON-creep so that my probe had somewhat of a chance to scout. However with speed upgrade it should be as fast as it is now. I like speedy lings, i just don't like un-upgraded lings catching up to my probe so easily early game.
Kill the Deathball
intrigue
Profile Blog Joined November 2005
Washington, D.C9933 Posts
Last Edited: 2010-06-23 09:43:00
June 23 2010 09:42 GMT
#70
i thought this was gonna be another long blob of text saying nothing, but i'm very pleasantly surprised. i would like to read the next articles =]

could you please explain this image a bit please? i'm not quite sure what i'm looking at, but it seems cool - purple line indicates direction of travel, orange circles are collision radii, and blue lines are the recalculated routes? what are the green circles/lines?
[image loading]
Moderatorhttps://soundcloud.com/castlesmusic/sets/oak
figq
Profile Blog Joined May 2010
12519 Posts
Last Edited: 2010-06-23 09:50:07
June 23 2010 09:43 GMT
#71
Most interesting article (series) I've read here since I've joined. Can't wait for the next ones!

I think, as InPlainSight said, that A* still exists, supporting the steering swarm-AI. It's just that now it works on a set of circles / obstacles, as geometric algorithm, instead of a set of grid points, which has been more like a pure graph algorithm. In other words, the movement is not restricted by the grid, which Blizzard would have implemented in the past, if they could, but they couldn't, back then - the computation power wouldn't allow. That's why SC2 also needs significant CPU power, not just for the graphics, and it gets much worse if you have larger armies.

Curious to test how the splitting around obstacles works - does it use probabilistic A*. What I mean is: send your army forward, and it has to go left and right around some obstacle; 40% split one way, 60% split the other way etc. I doubt this is done by pure individual swarm-AI, without analysis of the whole army composition. Maybe that's the main difference - they analyze the whole army for a given moving order separately, so if you reselect and reissue the same order, the behavior changes. I'm not sure, but is this the same in BW? - i think not, i think the unit there was choosing its own path and all units fighting for the same spot, regardless of army composition.

EDIT: if you want to get a sense of a swarm AI with similar pathfinding, steering and moving, here's an example from the RoboCup simulation league:

If you stand next to my head, you can hear the ocean. - Day[9]
Clearout
Profile Blog Joined April 2010
Norway1060 Posts
June 23 2010 09:49 GMT
#72
This was a really coold writeup, thanks! Looking forward to seeing more of these
really?
opiuman
Profile Blog Joined March 2009
United States187 Posts
June 23 2010 10:10 GMT
#73
Great article, autonomous steering is part of my research and you summed it well from the basics of A* to the much more complex steering mechanisms used and how they influence everything. Nothing new to me but a good read for everyone else.
So say we all.
stalife
Profile Blog Joined June 2006
Canada1222 Posts
June 23 2010 10:15 GMT
#74
am i really looking forward to reading more of your articles. Fantastic read. I feel like I'm learning a lot more about the game :D
www.memoryexpress.com
sinn
Profile Joined May 2010
United States132 Posts
June 23 2010 10:19 GMT
#75
On June 22 2010 22:29 sluggaslamoo wrote:

[image loading]
Tile-based A* Pathfinding Example




Okay I'm a computer science major and I fully understand the A* search algorithm. I read your article and i did enjoy seeing the concept in use before my eyes. You'll have to forgive me, however, because I noticed one little thing that bothered me because I didn't understand it - why is the tile directly to the left of the red tile pointing to the lower right? Shouldn't it be pointing down? What kind of heuristic is being used here, lol
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
Last Edited: 2010-06-23 10:36:00
June 23 2010 10:24 GMT
#76
So many questions!!! :O I don't think I can answer them all sorry

On June 23 2010 18:12 InPlainSight wrote:
I'm very interested in the way that path finding in sc2 works and I question whether A* is not used at all in Sc2 as it seems like the optimal path finding process for terrain traversal. Undoubtedly there are some very clever algorithms that could include steering that go into unit interactions but due to the grid base nature of building placement as well as some terrain like cliffs I would think that A* would still be in use.
I have actually been attempting to emulate the pathing in sc2 as a side project and have found a close estimate to how units move in sc2 through the use of A* in coordination with a system where units move- regardless of other units- then push each other apart allowing units to move towards there intended destination whilst not blocking each other. When units stop they simply get pushed by units who have a destination and do not pursue a destination of there own, this allows for units to move apparently unhindered through a large group of units and for them to appear to part.
Unfortunately I'm not educated on steering mechanics but your hypothesis to do with unit collisions there seems very strong, interesting post.


I never said A* wasn't used at all but I doubted that Tile-Based (or grid based) A* is used in SC2. Instead I would say that all the nodes only exist on the edges of obstacles. A different heuristic is used to traditional A* as well, try moving a unit around an edge the same way as I did with the dragoons and the unit will only tip the corner rather than hugging the wall first in SC2.

Steering behaviour relies on 3 basic principles, separation, alignment and cohesion. It is a pro-active solution that gets units to move in a single cohesive group rather than the reactive solution of pushing units apart.

On June 23 2010 18:42 intrigue wrote:
i thought this was gonna be another long blob of text saying nothing, but i'm very pleasantly surprised. i would like to read the next articles =]

could you please explain this image a bit please? i'm not quite sure what i'm looking at, but it seems cool - purple line indicates direction of travel, orange circles are collision radii, and blue lines are the recalculated routes? what are the green circles/lines?
Show nested quote +
[image loading]


It is an automated capture the flag game, between AI units. The blue unit in the center is the attacker, the red units are defenders.

The green lines are actually part of a rectangle which stretches between the attacker and the flag. However the bottom of the rectangle sits 90 degrees to the direction of the attacker. There are other green lines which indicate a "corridor" between defenders, where the attacker can continue to go through.

The blue line indicates the direction in which the attacker is going to travel, it only goes left or right, the angle is not important.

The green circle seems to get closer to the defender as they get closer to the attacker, but I have no idea what it represents.

This might help explain
Capture the Flag: a single (bluish) attacker attempts to reach a central goal while four (reddish) defenders try to intercept ("tag") the attacker before it gets to the goal. The playing field is optionally littered with obstacles. This benchmark was proposed by Marcin Chady of the Working Group on Steering of the IGDA's AI Interface Standards Committee. The obstacles are spheres, depicted by their equator. Press F1 to add an obstacle (up to 100 of them), F2 to remove one. The "game" ends when the attacker reaches the goal or a defender tags the attacker. The demo automatically restarts a few seconds later. The attacker combines three basic steering behaviors: goal seeking, evasion and obstacle avoidance. The defenders combine pursuit and obstacle avoidance. A key to "non-stupid" behavior by the attacker was to notice when there is a defender-free "corridor" between it and the goal. When found, this corridor is depicted by a green outline. In this case the attacker uses pure seek and stops evading nearby defenders. The pursuit behavior of the defenders needed to specialized so that they "knew" not to predict the motion of the attacker past its goal. The defenders do not otherwise think about global strategy, for example they don't try to place themselves between the attacker and the goal. Currently defenders ignore each other, they probably should separate or avoid collisions with each other, ideally they would coordinate their pursuit. The attacker is easily confused when several defenders converge from different directions. Obstacles are always avoided by going toward the nearer edge, as discussed in the Steering Working Group's forum, this is frequently the "wrong" direction when considering the agent's other goals. I want to revisit this later.


On June 23 2010 19:19 sinn wrote:
Show nested quote +
On June 22 2010 22:29 sluggaslamoo wrote:

[image loading]
Tile-based A* Pathfinding Example




Okay I'm a computer science major and I fully understand the A* search algorithm. I read your article and i did enjoy seeing the concept in use before my eyes. You'll have to forgive me, however, because I noticed one little thing that bothered me because I didn't understand it - why is the tile directly to the left of the red tile pointing to the lower right? Shouldn't it be pointing down? What kind of heuristic is being used here, lol


The arrows just points to the best tile in the open-list (from that tile) you can use in order to go back to the start. Pretty useless, and I would just ignore it.

The heuristic is the manhattan distance to the red square.
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
lololol
Profile Joined February 2006
5198 Posts
Last Edited: 2010-06-23 10:40:28
June 23 2010 10:29 GMT
#77
nevermind.
I'll call Nada.
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
Last Edited: 2010-06-23 11:00:29
June 23 2010 10:41 GMT
#78
On June 23 2010 15:47 n.DieJokes wrote:
This is awesome, thank you. If you don't mind me asking, how did you learn all this? Are you a game developer


Not really, I've just been programming indy games for 10 years since I was 9 years old I want to become a game-designer or developer in the future though.

Currently doing a Bachelor of IT which has nothing to do with games, and more to do with IT business than programming A high stable income is the most important thing for my future. I can always do fun stuff in my spare time.


On June 23 2010 18:43 figq wrote:
Curious to test how the splitting around obstacles works - does it use probabilistic A*. What I mean is: send your army forward, and it has to go left and right around some obstacle; 40% split one way, 60% split the other way etc. I doubt this is done by pure individual swarm-AI, without analysis of the whole army composition. Maybe that's the main difference - they analyze the whole army for a given moving order separately, so if you reselect and reissue the same order, the behavior changes. I'm not sure, but is this the same in BW? - i think not, i think the unit there was choosing its own path and all units fighting for the same spot, regardless of army composition.


While I don't think so either, pure steering behaviour can easily handle that problem on its own. I don't think its as complicated as you make it out to be .
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
stet_tcl
Profile Blog Joined May 2008
Greece319 Posts
June 23 2010 10:57 GMT
#79
This is extremely interesting, thanks writing this!
Looking forward for the next parts
Swede
Profile Joined June 2010
New Zealand853 Posts
June 23 2010 12:02 GMT
#80
Great post

I think that the AI in SC2 is exactly what it should be, for the most part (and no I don't want to win without trying). The AI should do exactly what you tell it to in the simplest way possible. It doesn't make sense for a ball of units moving at the same speed to spread out over a distance. That means that the outlying units will travel a significantly longer path than the ones closer to the center, and it means that when they near their destination (assuming they don't get interrupted by enemy units) they would have to converge again or remain split up. If they remain split up then they haven't achieved what you told them to do as effectively as possible (ie, they are not as close to the original destination as you planned).

The only argument that I can think of for why they SHOULD split instead of remaining in a ball is that that is how it happened in BW (unless someone can argue otherwise?). It doesn't seem sensible to make units less logical and realistic for the purpose of making the game "harder"... Which it doesn't anyway. The new system makes manual splitting much more important to avoid splash damage type attacks (among other things).

And on auto-surround... I don't think it's a big deal. It's exactly what I said above - each unit is calculating the simplest and most efficient path to perform the action you ordered (ie attack). If there is 1 Zergling already attacking a Marine, the next Zergling shouldn't attempt to attack that Marine from the same position, it should move to the next closest position and attack from there. I think auto-surround was terribly mislabeled. It's not like Zerglings split into a perfect concave preemptively. Really it's just the units NOT being incredibly retarded. Besides that, the efficiency of a surround can still be improved immensely by microing, and so I don't believe that the amount of skill has been reduced at all.

Roggay
Profile Joined April 2010
Switzerland6320 Posts
June 23 2010 12:16 GMT
#81
Really interresting, keep it up.
TerranUp16
Profile Joined March 2010
United States88 Posts
June 23 2010 12:37 GMT
#82
Very nice and useful neutral analysis with (imo) nicely-separated opinion at the end.
Orders, Sir! Ready to roll out!
NaturalHacks
Profile Joined June 2010
New Zealand77 Posts
June 23 2010 14:06 GMT
#83
Swede you hit the nail right on the head, are you by any chance the guy I used to play CSS with on scoutsknivez servers?
Naturally
JonChamp
Profile Joined May 2010
Denmark31 Posts
June 23 2010 15:19 GMT
#84
I highly doubt they are using A*... Most likely another algorithm with a better admissible heuristics.

//Jon - student of AI.
rS.Sinatra
Profile Joined May 2010
Canada785 Posts
June 23 2010 15:48 GMT
#85
On June 22 2010 22:29 sluggaslamoo wrote:

I can also see how bad unit movement can be frustrating for newer players, there is nothing worse for blizzard than to show what looks like an un-polished game. I believe that units should spread out if you carelessly move them about, but they should also not glitch out all the time due to bad pathfinding AI. We do not need to have people "fight the interface" to create good gameplay mechanics, but we still need the side-effects that improve gameplay as a result.




I really like this paragraph, especially the last sentence of it. Fighting the interface is not a sign of skill, its a sign of technology being incapable of recognizing what you want to do with your "stuff". However, there should always be methods in which you can execute in-game in order to maximize efficiency.

Great read.
www.rsgaming.com
garbanzo
Profile Joined October 2009
United States4046 Posts
June 23 2010 17:50 GMT
#86
Awesome post. I really look forward to the next parts.

On June 23 2010 21:02 Swede wrote:
+ Show Spoiler +
Great post

I think that the AI in SC2 is exactly what it should be, for the most part (and no I don't want to win without trying). The AI should do exactly what you tell it to in the simplest way possible. It doesn't make sense for a ball of units moving at the same speed to spread out over a distance. That means that the outlying units will travel a significantly longer path than the ones closer to the center, and it means that when they near their destination (assuming they don't get interrupted by enemy units) they would have to converge again or remain split up. If they remain split up then they haven't achieved what you told them to do as effectively as possible (ie, they are not as close to the original destination as you planned).

The only argument that I can think of for why they SHOULD split instead of remaining in a ball is that that is how it happened in BW (unless someone can argue otherwise?). It doesn't seem sensible to make units less logical and realistic for the purpose of making the game "harder"... Which it doesn't anyway. The new system makes manual splitting much more important to avoid splash damage type attacks (among other things).

And on auto-surround... I don't think it's a big deal. It's exactly what I said above - each unit is calculating the simplest and most efficient path to perform the action you ordered (ie attack). If there is 1 Zergling already attacking a Marine, the next Zergling shouldn't attempt to attack that Marine from the same position, it should move to the next closest position and attack from there. I think auto-surround was terribly mislabeled. It's not like Zerglings split into a perfect concave preemptively. Really it's just the units NOT being incredibly retarded. Besides that, the efficiency of a surround can still be improved immensely by microing, and so I don't believe that the amount of skill has been reduced at all.


I agree with this. From the description of the pathfinding, it seems like auto-surround is a logical step to the AI.
Even during difficult times, when I sat down to play the game, there were times where it felt like god has descended down and played [for me].
Swede
Profile Joined June 2010
New Zealand853 Posts
June 23 2010 23:58 GMT
#87
On June 23 2010 23:06 NaturalHacks wrote:
Swede you hit the nail right on the head, are you by any chance the guy I used to play CSS with on scoutsknivez servers?


Woah! Yep that's me! Holy shit that's awesome lol. How's it going
StarcraftAnonymous
Profile Joined June 2010
United States8 Posts
June 24 2010 00:07 GMT
#88
This is (Z)Nice

I was looking for part 2.
I remember playing starcraft 1v1's for hours and feeling so exausted. I see now its becuase my units were running on outdated engines.
I am calling you to offer a free, no obligation comparison quote.
PrinceXizor
Profile Blog Joined April 2010
United States17713 Posts
June 24 2010 00:25 GMT
#89
I think alot of Brood war fanatics (in a good way) are upset with seemingly a "dumbed down" system in SC2, yeah it's easier to accomplish things you could do in BW. But we have barely reached the beginning of advanced unit controls. For instance, what tricks and uses of the current system result in even more intelligent unit movement than before. We don't know. The basics are on par with the mid-upper level of unit control in BW, who knows what the upper level control will bring.
SichuanPanda
Profile Blog Joined March 2010
Canada1542 Posts
June 24 2010 00:38 GMT
#90
The biggest problem I have with the SC2 AI is that A-moving even small groups of units (under 20 units) causes them to bunch up into an ultra-tight ball. This causes the army to take MASSIVE amounts of splash damage, but at the same time take minimal damage from single-target attacks. Thus making for an environment where the 'right units' will cause a decimation for one side or the other, as it seems that one must control 8 units at a time to get them to not clump up so much. This could very well be the 'fighting the system' that happened in BW in SC2 form - BW: Units spread out a lot and get stuck on each other and just about everything, SC2: Units get stuck on nothing and clump into gigantic balls. Clearly both systems require the player to change their control methods to avoid the issues of each.
i-bonjwa
Antisocialmunky
Profile Blog Joined March 2010
United States5912 Posts
June 24 2010 04:04 GMT
#91
One small nitpick that's probably already been said but I've read in some old tutorials when I was learning A* back in '04 that SC used the the variant of A* that uses dynamically sized 'waypoints' (IE, if you have a map with a chose that is 3 tiles wide, you use a 3x3 way point rather than a 1 by 1 to reduce way point count). So its not always quite the simple 8 directional movement if those articles were correct.
[゚n゚] SSSSssssssSSsss ¯\_(ツ)_/¯
Marine/Raven Guide:http://www.teamliquid.net/forum/viewmessage.php?topic_id=163605
InPlainSight
Profile Joined January 2009
New Zealand40 Posts
June 24 2010 05:31 GMT
#92
Units in sc1 also animate in 16 directions, supporting this.
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
Last Edited: 2010-06-24 06:45:37
June 24 2010 06:44 GMT
#93
On June 24 2010 13:04 Antisocialmunky wrote:
One small nitpick that's probably already been said but I've read in some old tutorials when I was learning A* back in '04 that SC used the the variant of A* that uses dynamically sized 'waypoints' (IE, if you have a map with a chose that is 3 tiles wide, you use a 3x3 way point rather than a 1 by 1 to reduce way point count). So its not always quite the simple 8 directional movement if those articles were correct.


On June 24 2010 14:31 InPlainSight wrote:
Units in sc1 also animate in 16 directions, supporting this.


Yeah I think I remember working on BW sprites a long time ago having 12 or 16 rotations, I never said they couldn't.

As I said...
On an isometric map where each unit can only go in 8 directions


It is the gridded isometric map which inherently supports 8 directions from a single cell, if the unit moves in-between those rotations it would have to skip a waypoint, the algorithm may allow it to do that, but units appear to not move in that way if possible. As shown by the dragoon pic.

The units move cell by cell and will zig-zag if they find an angle which they can't support in one movement, cell by cell movement on a fixed cell size grid will make units do this. Whether the unit can rotate in 4, 8, 12, 16, 32 directions doesn't matter, the units will still be competing for waypoints, meaning the amount that the units can rotate won't help them navigate around each other, which is the problem.

I don't see how waypoint sizing helps, waypoints usually don't have a size, and units will end up in the same position regardless of size. 3x3 ramps can fit around 6 zerglings, so I don't see how that works either. What I think you mean by dynamically sized waypoints, is that because a dragoon is a 2x2, it will move in steps of 2x2 rather than 1x1.

Keep in mind, this article isn't a tutorial on pathfinding, it discusses the types of pathfinding that causes different behaviour in BW and SC2, as it helps people understand why things like auto-surround occurs.

I'm all for debating about A* but that doesn't really belong in this thread, if you can prove that the units in BW actually behave in the way your theory suggests then by all means go ahead.
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
TheAntZ
Profile Blog Joined January 2009
Israel6248 Posts
June 24 2010 13:58 GMT
#94
On June 22 2010 23:47 Peekay.switch wrote:
One of the best article I've read on TL.

not dissing the OP, article is awesome, but even without your name being in name.identifier format it'd be plain to see you haven't read anything from before sc2 came out.
43084 | Honeybadger: "So july, you're in the GSL finals. How do you feel?!" ~ July: "HUNGRY."
Heyoka
Profile Blog Joined March 2008
Katowice25012 Posts
June 26 2010 19:37 GMT
#95
wow this is super cool. Awesome work!
@RealHeyoka | ESL / DreamHack StarCraft Lead
Barnabas
Profile Joined April 2010
United States74 Posts
June 26 2010 23:14 GMT
#96
Great read, lots of helpful info on understanding pathing. Thank you for the work.
I'm Barnabas. You haven't heard of me. Gosu Camp Attendee.
FreezingAssassin
Profile Blog Joined March 2010
United States455 Posts
June 27 2010 02:35 GMT
#97
very very nice. Havent played SC2 yet but this gives me a nice understanding :D
"I love when stupid stuff happens, it makes me look smart" - IdrA
Rus_Brain
Profile Blog Joined June 2006
Russian Federation1893 Posts
July 07 2010 06:59 GMT
#98
Dear sluggaslamoo,

I have translated @ reps.ru

Hope you don't mind.
patyrykin.net
Bio-Leera
Profile Joined May 2010
United States65 Posts
July 07 2010 07:10 GMT
#99
I would love to see part 2 to this post whenever possible.
Lennon
Profile Joined February 2010
United Kingdom2275 Posts
July 07 2010 07:20 GMT
#100
Good article.
Thanks for this.

Nice to see how the mechanics have improved
sith
Profile Blog Joined July 2005
United States2474 Posts
July 07 2010 07:24 GMT
#101
On June 24 2010 22:58 TheAntZ wrote:
Show nested quote +
On June 22 2010 23:47 Peekay.switch wrote:
One of the best article I've read on TL.

not dissing the OP, article is awesome, but even without your name being in name.identifier format it'd be plain to see you haven't read anything from before sc2 came out.


I mean it's not like you've been here from the stone age either. January of 09? You should hardly be talking down on people. And why mention it at all? The guy complimented the OP on a fantastic piece, who cares what his sample size is for "one of the best articles he's read". Stuff like this is where the whole "elitist" mentality comes from.

But really OP, fantastic work. I look forward to reading more.
FiWiFaKi
Profile Blog Joined February 2009
Canada9858 Posts
July 07 2010 07:40 GMT
#102
I have a year in my eye of how hood this was. Without a doubt the best thread that mentioned SC2 to date. I liked the fact I didn't even know a lot of that stuff, and I really like the logic you put behind your conclusions, and your article is very nicely laid out. Amazing read and I hope to see more.
In life, the journey is more satisfying than the destination. || .::Entrepreneurship::. Living a few years of your life like most people won't, so that you can spend the rest of your life like most people can't || Mechanical Engineering & Economics Major
newbkills
Profile Joined June 2010
United States25 Posts
July 07 2010 07:49 GMT
#103
Great article!

The new AI makes the game much more user friendly and allows more new players to enjoy the game. That's not to say that good players won't still dominate. The new AI will allow beginners to implement strategies and moves that they watch the pros pull off without having a ridiculously high APM only achievable by dedicating all your time to StarCraft.

The balling effect is not always a good thing. How your units are positioned in the ball can make a huge difference.

For example, if you have 12 lots + 6 stalkers vs 12 marines and 12 marauders. With the AI ball, your stalkers are in the front due to their faster walking speed. If you engage with that ball your stalkers will block the path of the lots causing them to run around the front line of stalkers.

So, you can still be punished for not paying attention to your moving army.
Dakk
Profile Blog Joined June 2010
Sweden572 Posts
July 07 2010 08:06 GMT
#104
Nice, i enjoyed reading this.
I will not fear, Fear is the mindkiller. Fear is the little death.
Peekay.switch
Profile Blog Joined May 2010
Canada285 Posts
Last Edited: 2010-07-07 13:16:47
July 07 2010 13:16 GMT
#105
On June 24 2010 22:58 TheAntZ wrote:
Show nested quote +
On June 22 2010 23:47 Peekay.switch wrote:
One of the best article I've read on TL.

not dissing the OP, article is awesome, but even without your name being in name.identifier format it'd be plain to see you haven't read anything from before sc2 came out.


Always used that format for my names before SC2, I Don't see how "flaming" me for no apparent reason is necessary. Have you brought anything to this topic? I'm kind of new, but have been lurking these forums for a while and as far as I know, there is nothing stopping me from reading older articles.

As I mentioned, the reason why I thought it was one of the best article I've read on TL is because it is linked to my study field. The author managed to explain in depth a rather complex algorithm, but you would know that if you read more than 2 lines of my post.

And besides, isn't that how Opinion works? I can think something and you can differ on it? I've read a bunch of FE, thought they were ok, this article however, I really liked, which is one of the reason I posted, because I Am really looking forward to part 2.

If you've got something else to bring up, feel free to do it in PM.

Once again, really looking forward to Part 2, hopefully it'll be soon!
GuruRAM
Profile Joined July 2010
Russian Federation2 Posts
July 07 2010 13:22 GMT
#106
Very interesting article, thank you.
shammythefox
Profile Joined May 2010
United Kingdom286 Posts
July 07 2010 13:40 GMT
#107
Interesting read, its important for people not to confuse nostalgia with decent ideas. Just because this isn't how BW worked doesn't instantly make it bad, and as other people have already pointed out, sc2 with things like fungal growth, collosi is really tailored to work around the mechanic explained here
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
July 09 2010 00:36 GMT
#108
On July 07 2010 15:59 Rus_Brain wrote:
Dear sluggaslamoo,

I have translated @ reps.ru

Hope you don't mind.


Hey that's cool as! Good job!

donmai donmai
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
bostic
Profile Joined May 2010
Australia41 Posts
July 09 2010 22:31 GMT
#109
great article mate. keep it up
FroZeNN
Profile Blog Joined March 2010
United States165 Posts
July 09 2010 22:48 GMT
#110
man this really explained a lot of things that i was curious about... Great article man, can't wait until the next parts of this article
"More GG More Skill" - WhiteRa
Fen1kz
Profile Joined July 2010
Russian Federation216 Posts
December 18 2012 07:39 GMT
#111
sorry for necro, but, please, reupload pictures =(
CYFAWS
Profile Joined October 2012
Sweden275 Posts
Last Edited: 2012-12-18 08:48:10
December 18 2012 08:47 GMT
#112
looking forward to the continuation of this

but dude, the suggestion to hammer ling speed... that would make them appallingly useless and force an avalanche of other changes, far too much

edit: lol necrothread, didn't realize. sorry
Normal
Please log in or register to reply.
Live Events Refresh
Next event in 6h 27m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
NeuroSwarm 244
RuFF_SC2 231
Nina 196
StarCraft: Brood War
Britney 27578
Noble 80
Icarus 16
IntoTheRainbow 9
Dota 2
monkeys_forever644
League of Legends
JimRising 974
Counter-Strike
Fnx 60
Heroes of the Storm
Khaldor219
Other Games
summit1g10775
shahzam631
C9.Mang0410
ViBE257
Maynarde207
Organizations
StarCraft 2
ESL.tv131
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH209
• Hupsaiya 73
• practicex 45
• OhrlRock 1
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• RayReign 31
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo906
Upcoming Events
Afreeca Starleague
6h 27m
BeSt vs Light
Wardi Open
7h 27m
Replay Cast
20h 27m
Replay Cast
1d 6h
Afreeca Starleague
1d 6h
Snow vs Soulkey
WardiTV Invitational
1d 7h
PiGosaur Monday
1d 20h
GSL Code S
2 days
ByuN vs Rogue
herO vs Cure
Replay Cast
2 days
GSL Code S
3 days
Classic vs Reynor
GuMiho vs Maru
[ Show More ]
The PondCast
3 days
RSL Revival
3 days
GSL Code S
4 days
Korean StarCraft League
4 days
RSL Revival
5 days
SOOP
5 days
Online Event
6 days
Clem vs ShoWTimE
herO vs MaxPax
Sparkling Tuna Cup
6 days
WardiTV Invitational
6 days
RSL Revival
6 days
Liquipedia Results

Completed

BSL Nation Wars Season 2
PiG Sty Festival 6.0
Calamity Stars S2

Ongoing

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
PGL Astana 2025
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

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