• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 10:13
CEST 16:13
KST 23:13
  • 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
BGE Stara Zagora 2025: Info & Preview27Code S RO12 Preview: GuMiho, Bunny, SHIN, ByuN3The Memories We Share - Facing the Final(?) GSL47Code S RO12 Preview: Cure, Zoun, Solar, Creator4[ASL19] Finals Preview: Daunting Task30
Community News
Weekly Cups (June 2-8): herO doubles down1[BSL20] ProLeague: Bracket Stage & Dates9GSL Ro4 and Finals moved to Sunday June 15th13Weekly Cups (May 27-June 1): ByuN goes back-to-back0EWC 2025 Regional Qualifier Results26
StarCraft 2
General
Firefly do had match fixing CN community: Firefly accused of suspicious activities The SCII GOAT: A statistical Evaluation How does the number of casters affect your enjoyment of esports? Serious Question: Mech
Tourneys
$3,500 WardiTV European League 2025 Bellum Gens Elite: Stara Zagora 2025 Sparkling Tuna Cup - Weekly Open Tournament SOOPer7s Showmatches 2025 Master Swan Open (Global Bronze-Master 2)
Strategy
[G] Darkgrid Layout Simple Questions Simple Answers [G] PvT Cheese: 13 Gate Proxy Robo
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 477 Slow and Steady Mutation # 476 Charnel House Mutation # 475 Hard Target Mutation # 474 Futile Resistance
Brood War
General
BGH auto balance -> http://bghmmr.eu/ Mihu vs Korea Players Statistics BW General Discussion Will foreigners ever be able to challenge Koreans? [BSL20] ProLeague: Bracket Stage & Dates
Tourneys
[ASL19] Grand Finals NA Team League 6/8/2025 [Megathread] Daily Proleagues [BSL20] ProLeague Bracket Stage - Day 2
Strategy
I am doing this better than progamers do. [G] How to get started on ladder as a new Z player
Other Games
General Games
Stormgate/Frost Giant Megathread What do you want from future RTS games? Armies of Exigo - YesYes? Nintendo Switch Thread Path of Exile
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 Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Vape Nation Thread European Politico-economics QA Mega-thread
Fan Clubs
Maru Fan Club Serral Fan Club
Media & Entertainment
Korean Music Discussion [Manga] One Piece
Sports
2024 - 2025 Football Thread Formula 1 Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Cognitive styles x game perf…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
I was completely wrong ab…
jameswatts
Need Your Help/Advice
Glider
Trip to the Zoo
micronesia
Poker
Nebuchad
Customize Sidebar...

Website Feedback

Closed Threads



Active: 22575 users

Why AI doesnt ForceField?

Forum Index > StarCraft 2 HotS
Post a Reply
1 2 3 4 5 6 Next All
( bush
Profile Joined April 2011
321 Posts
May 28 2011 20:59 GMT
#1
I was playing some games vs computer Toss and dunno why artificial intelligence do not forcefield.

I know AI can do a lot of amazing things (check the automaton2000 on youtube), but forcefields look so easy and AI dont use. Will be amazing see perfect FFs on insane AI level.


Can someone explain this?
oo
Glueburn
Profile Blog Joined January 2011
United States496 Posts
Last Edited: 2011-05-28 21:23:52
May 28 2011 21:21 GMT
#2
Forcefields look easy?
What!?

I can't imagine trying to code a unit to automatically forcefield around, or infront of a unit, and even if they did program that in, the forcefields probably wouldn't even be good.

The Automation is different in a sense that it moves back units that are getting ready to be hit by an attack, that is fairly simple, it is just something that is done in a split-second.

Can you imagine a behavior that if the force that is attacking the AI's units is bigger then what the AI has, it would automatically forcefield a ramp? hilarity would ensue, but I imagine there is a way to make the AI figure out that the force is moving UP the ramp... gah.. it just sounds so confusing.

But then again, I may be going at it wrong.
Sometimes you have to play a long time to be able to play like yourself. - Miles Davis
Griffith`
Profile Joined September 2010
714 Posts
May 28 2011 21:35 GMT
#3
I've tried making an AI that does forcefields - its EXTREMELY hard - even harder than my mutalisk AI. It requires a lot of cluster algorithms to find centroids - an NP-hard problem.
griffith.583 (NA)
Datum
Profile Joined February 2011
United States371 Posts
Last Edited: 2011-05-28 21:55:20
May 28 2011 21:50 GMT
#4
Do we know if it's NP-incomplete at least? I'm not really thinking about the practicality of this, but as a purely theoretical experiment, would it be possible to set up powerful computer and marvel at perfect forcefields? This is assuming the algorithms do work out.
Jyvblamo
Profile Blog Joined June 2006
Canada13788 Posts
May 28 2011 22:09 GMT
#5
A good forcefield AI would be impressive. It's one of those things that is much more intuitive to human minds and can't be put into a simple algorithm.
Kuzmorgo
Profile Joined May 2009
Hungary1058 Posts
Last Edited: 2011-05-28 23:11:29
May 28 2011 23:11 GMT
#6
On May 29 2011 06:21 CampinSam wrote:
Forcefields look easy?
What!?

I can't imagine trying to code a unit to automatically forcefield around, or infront of a unit, and even if they did program that in, the forcefields probably wouldn't even be good.

The Automation is different in a sense that it moves back units that are getting ready to be hit by an attack, that is fairly simple, it is just something that is done in a split-second.

Can you imagine a behavior that if the force that is attacking the AI's units is bigger then what the AI has, it would automatically forcefield a ramp? hilarity would ensue, but I imagine there is a way to make the AI figure out that the force is moving UP the ramp... gah.. it just sounds so confusing.

But then again, I may be going at it wrong.


Actually ff-ing a ramp shouldn't be so hard. measuring if your army is better is easy (especially since insane has maphack ), and then if he is stronger, ff ramp when opponent is like 2 fields away from it.
The hard thing would be splitting the army. However, i don't think you should work on making it perfect. for example it could work like determining the opponents composition, and for example if opponent has roaches, which have 3 range, then ff 5 distance away from front units, in a semi circle. Or something like that. Of course it won't be epic innovative perfect forcefield, but it could work i think.
"No, whine not! Play, or play not! There is no whine."
-orb-
Profile Blog Joined September 2007
United States5770 Posts
May 28 2011 23:20 GMT
#7
Force fielding is one of the few micro tactics that actually requires some thought. Unlike blinking (which is just pretty obvious and there's only really 1 "correct" way to do it), or splitting marines (which yet again while it's one of the most difficult things to micro, it certainly doesn't take thought, it takes precision), force fielding actually requires the user to decide what they want to do with the force fields (i.e. split the army with a long wall of them, completely block the army by dropping them in front of it, stop the army from retreating by walling behind them so zealots can hit them, etc etc etc).

I would imagine programming an AI to make these decisions and correctly place walls of force fields from edge to edge of chokes would be ridiculously difficult.
'life of lively to live to life of full life thx to shield battery'
how sad that sc2 has no shield battery :(
ClysmiC
Profile Blog Joined December 2010
United States2192 Posts
May 28 2011 23:33 GMT
#8
I think FF'ing a ramp to split an army wouldn't be TOO hard to implement into AI. That being said, I have 0 experience with AI, so I could be totally wrong D:
Iranon
Profile Blog Joined March 2010
United States983 Posts
May 28 2011 23:49 GMT
#9
Programming routines to block a ramp should be fairly simple. Splitting an army seems like it would be easy, but only if you have an unlimited number of them... Figuring out the optimal time and place to drop 4-6 forcefields in response to a moving blob of enemy units, not so much.
dae
Profile Joined June 2010
Canada1600 Posts
May 29 2011 00:00 GMT
#10
It would be interesting if you could program an ai to make perfect forcefield donuts (4 forcefields that can trap like 5-6 roachs in like one spot) - Something like if theres 6+ units there and i have 4 forcefields trap them.
VaultDweller
Profile Joined January 2011
Romania132 Posts
May 29 2011 08:42 GMT
#11
The Greentea AI uses forcefields and sometimes they are decent but mostly seem random.
"War is not about who's right- it's about who's left."
Siretu
Profile Blog Joined April 2010
151 Posts
May 29 2011 09:13 GMT
#12
MTops EagleAI uses very good force fields if I remember correctly. I might be wrong but I know at least that the AI uses them. Search for EagleAI to try it. Make sure to try against a hard difficulty since otherwise it wont have the attention points to use it.
han_han
Profile Joined October 2010
United States205 Posts
May 29 2011 09:49 GMT
#13
Ramp forcefield shouldn't be too hard to incorporate right?
Brewed Tea
Profile Joined October 2010
United States124 Posts
May 29 2011 10:48 GMT
#14
this is how the terminator got started.
if it wasnt for mules terrans would have to 15 hatch every game.
Siretu
Profile Blog Joined April 2010
151 Posts
May 29 2011 11:32 GMT
#15
On May 29 2011 19:48 Brewed Tea wrote:
this is how the terminator got started.


If the terminator had force fields the terminators would win the war easily.
Heraklitus
Profile Joined September 2010
United States553 Posts
May 29 2011 12:26 GMT
#16
On May 29 2011 19:48 Brewed Tea wrote:
this is how the terminator got started.


ROFL
leviathan20
Profile Joined April 2010
United Kingdom193 Posts
May 29 2011 12:44 GMT
#17
On May 29 2011 20:32 Siretu wrote:
Show nested quote +
On May 29 2011 19:48 Brewed Tea wrote:
this is how the terminator got started.


If the terminator had force fields the terminators would win the war easily.


Now I'm just going to imagine John Connor trying to run up a ramp that is being endlessly forcefielded whenever i watch that film.
"We better get that boy a waffle NOW or he gon' DIE!"
BackHo
Profile Blog Joined December 2008
New Zealand400 Posts
May 29 2011 13:47 GMT
#18
In the Kerrigan cut-scene you'd think that one would just shoot themselves rather than drop their guns to let the approaching Zerglings tear you apart.
Taek42
Profile Joined March 2011
United States7 Posts
May 29 2011 13:48 GMT
#19
I have some experience programming Ai. I think everybody can agree that there are specific situations in Which you can throw down an effective force field. Highlighting these situations for the Ai wouldn't be too hard.

Block ramp conditions:

- an enemy force is walking up the ramp
- at least (equasion based on enemy army and AI army) units have crossed the midpoint of the ramp

=> FF at the top of the ramp
=> FF at the bottom of the ramp


Guard against melee units:

- There lots of melee units
- You have more high-range units than they do
- Your units have a large attackable surface area

=> FFs around your units to minimize the surface area
=> Leave a gap in one location to allow your army to move forward after the battle


I don't know if existing AI is capable of looking at the surface area of units. This wouldn't be too hard if it doesn't, because Starcraft uses some form of surface area in determing how melee units can attack a building or a unit ball.


---Splitting Armies---

I considered several things while writing this, but it got really complicated and I never intended to spend a ton of time on this post. Ultimately I do believe that you could do it but it would take me a couple of hours to brainstorm the best ways.

I'll summarize some of the things to highlight though:

- unit ranges
- terrain
- position of your army with respect to enemy army
- position of both with respect to terrain
- clumps of units
- looking at unit clumps as pieces instead of as a whole

When looking at an enemy army, it could focus on all of the units that have less than X range, and see how they are dispersed or 'clumped.' (clumping is easily defined, and I think marine splitting AI already uses clumping). If clump of low range units exists near the edges of the enemy army (this could be determined using X and Y positioning analysis), then FFs could be dropped between these units and the units of the AI to push these units out of range.

It's a lot more comlicated that other types of FF AI but I think that you could turn this into code after a few hours of programming. I don't know how long it usually takes to write Starcraft AI or how long people usually spend programming, but my guess is that it would be worth the time.
Noocta
Profile Joined June 2010
France12578 Posts
May 29 2011 15:17 GMT
#20
On May 29 2011 22:47 BackHo wrote:
In the Kerrigan cut-scene you'd think that one would just shoot themselves rather than drop their guns to let the approaching Zerglings tear you apart.


She was out of bullet dude. :d
" I'm not gonna fight you. I'm gonna kick your ass ! "
1 2 3 4 5 6 Next All
Please log in or register to reply.
Live Events Refresh
Wardi Open
11:00
$400 Mondays 39
WardiTV1370
OGKoka 500
IndyStarCraft 225
CranKy Ducklings174
IntoTheiNu 50
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
OGKoka 517
IndyStarCraft 225
Hui .223
Rex 188
mcanning 91
ProTech88
StarCraft: Brood War
Rain 13188
Sea 4293
EffOrt 1231
Horang2 934
Stork 571
Mini 417
Snow 396
firebathero 381
sSak 86
sorry 74
[ Show more ]
Pusan 69
Hyun 64
Yoon 57
Barracks 55
Movie 47
Aegong 42
Sharp 39
Backho 28
Terrorterran 15
Shine 13
yabsab 10
Bale 7
Rock 3
Dota 2
Gorgc7379
qojqva2396
syndereN288
XcaliburYe268
League of Legends
Dendi2042
Counter-Strike
byalli317
markeloff191
FunKaTv 45
Super Smash Bros
Mew2King107
Other Games
singsing2080
B2W.Neo1673
Fuzer 962
hiko507
crisheroes457
Lowko311
ArmadaUGS166
XaKoH 158
QueenE53
Liquid`VortiX31
KnowMe27
Organizations
StarCraft: Brood War
Kim Chul Min (afreeca) 3
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Adnapsc2 15
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 3604
• WagamamaTV414
League of Legends
• Nemesis7722
• TFBlade775
Upcoming Events
Replay Cast
9h 47m
Replay Cast
19h 47m
WardiTV Invitational
20h 47m
WardiTV Invitational
20h 47m
PiGosaur Monday
1d 9h
GSL Code S
1d 19h
Rogue vs GuMiho
Maru vs Solar
Online Event
2 days
Replay Cast
2 days
GSL Code S
2 days
herO vs Zoun
Classic vs Bunny
The PondCast
2 days
[ Show More ]
Replay Cast
3 days
WardiTV Invitational
3 days
OSC
3 days
Korean StarCraft League
4 days
CranKy Ducklings
4 days
WardiTV Invitational
4 days
Cheesadelphia
5 days
GSL Code S
5 days
Sparkling Tuna Cup
5 days
Replay Cast
6 days
Liquipedia Results

Completed

CSL Season 17: Qualifier 2
BGE Stara Zagora 2025
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
KCM Race Survival 2025 Season 2
NPSL S3
Rose Open S1
CSL 17: 2025 SUMMER
2025 GSL S2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
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

Upcoming

Copa Latinoamericana 4
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
SEL Season 2 Championship
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
Murky Cup #2
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.