• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 19:13
CET 01:13
KST 09: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
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
ComeBackTV's documentary on Byun's Career !8Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win4Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15
StarCraft 2
General
When will we find out if there are more tournament ComeBackTV's documentary on Byun's Career ! Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win RSL Revival - 2025 Season Finals Preview Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship RSL Offline Finals Info - Dec 13 and 14! Master Swan Open (Global Bronze-Master 2) Winter Warp Gate Amateur Showdown #1:
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
How Rain Became ProGamer in Just 3 Months BGH Auto Balance -> http://bghmmr.eu/ FlaSh on: Biggest Problem With SnOw's Playstyle screp: Command line app to parse SC rep files [BSL21] RO8 Bracket & Prediction Contest
Tourneys
Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL21] WB SEMIFINALS - Saturday 21:00 CET [BSL21] RO8 - Day 2 - Sunday 21:00 CET
Strategy
Game Theory for Starcraft Current Meta Simple Questions, Simple Answers Fighting Spirit mining rates
Other Games
General Games
Mechabellum Stormgate/Frost Giant Megathread Nintendo Switch Thread PC Games Sales Thread Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI YouTube Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
The (Hidden) Drug Problem in…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1444 users

Why AI doesnt ForceField? - Page 5

Forum Index > StarCraft 2 HotS
Post a Reply
Prev 1 2 3 4 5 6 Next All
Siretu
Profile Blog Joined April 2010
151 Posts
June 13 2011 19:48 GMT
#81
On June 14 2011 03:13 DocNemesis wrote:
It would take sheer ingenuity to make a sentry AI use forcefields.


Making a sentry AI that uses force fields is trivial.

Making an AI that uses force fields that might be useful in some situations is harder(but still quite easy).

Making an AI that uses force fields properly most of the time(like a normal player) is not impossible but itsn't that easy either.

Making an AI that does perfect force fields in all situations(Automaton 2000 style) is going to be very hard.
StormsInJuly
Profile Joined January 2009
Sweden165 Posts
June 13 2011 23:26 GMT
#82
I'm not even sure blizzard realized the potential for forcefield back when they were developing the game
AnxiousHippo
Profile Blog Joined January 2011
Australia1451 Posts
June 14 2011 08:13 GMT
#83
Forcefields can be used both offensively and defensively. There are probably just too many possibilities for forcefields and the AI wouldn't be able to utilize to their full potential. They would also have to realize all the kinds of things they can do (like blocking a ramp to stop reinforcements from the natural while you take out the main) which will take a very long time considering SC2 is still, in a way, fairly new.
An apple a day keeps the Protoss away | TLHF
ETisME
Profile Blog Joined April 2011
12621 Posts
June 14 2011 11:09 GMT
#84
On May 29 2011 21:44 leviathan20 wrote:
Show nested quote +
On May 29 2011 20:32 Siretu wrote:
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.

*Forcefield*
"I will be back"

comes back with millions of terminators lol
其疾如风,其徐如林,侵掠如火,不动如山,难知如阴,动如雷震。
ComaDose
Profile Blog Joined December 2009
Canada10357 Posts
June 14 2011 12:53 GMT
#85
On June 14 2011 08:26 StormsInJuly wrote:
I'm not even sure blizzard realized the potential for forcefield back when they were developing the game

Im possitive they did. They did have people like david kim playing it afterall.
I keep checking this thread for more developments of people actually doing it aha.
BW pros training sc2 is like kiss making a dub step album.
Roflhaxx
Profile Joined April 2010
Korea (South)1244 Posts
June 14 2011 15:43 GMT
#86
Can't you just make some triggers on ramp that makes the ai force field when ur army is halfway cross/starting to cross?
A game where the first thing you do is scout with a “worker”. Does that make any sense? Who scouts with a “worker”? That’s like sending out the janitor to perform recon, what general would do that? Retarded game.
Leeto
Profile Joined August 2007
United States1320 Posts
June 14 2011 16:30 GMT
#87
Forcefielding a ramp is the easy part. Using forcefield to control space during a battle, to cut off retreats or to split an army or to create a better concave, is incredibly hard to code.
Duban
Profile Joined July 2009
United States548 Posts
Last Edited: 2011-06-14 18:21:29
June 14 2011 18:11 GMT
#88
I think I have an idea that at worse is much better than NP hard. I think it's N^2*O where N is the number of enemy units and O is the number of force fields.

For each enemy unit determine what enemy units around it would get pushed and where. Draw a straight line away from the center of the force field to determine where that unit "in theory" would be moved to and keep track of "how far" that unit would be pushed relative to the sentry, closer or farther away. From that grouping use the Variance to determine which force field "splits" the most units, and add some way of "preferring" units closer to the sentry so you don't try to ff the middle of the ball and die in the process.

Not very efficient, but it beats NP hard.
An ignorant person makes a mistake. A stupid person makes it again.
BisuDagger
Profile Blog Joined October 2009
Bisutopia19299 Posts
June 14 2011 18:46 GMT
#89
This is like a situation that came up in a video game I finished working on recently called Fender Bender. The issue here was that the AI vehicles could collect and use shields. The problem was they could be programmed to be used at perfect times in the game without weapon switching delay. They also could collect the shields when available at the best times. One of the ways we dealt with this was by only allowing the hardest difficulty of AI to use the shields. We also gave the shield equal priority to all other pickups.

How this applies to Starcraft: In insane mode force field could def. be used. When battle has been detected by the ai. It can determine the largest sphere created by connecting unit positions together. This bounding sphere can then be split in half. At the center point the force field could be casted allowing for "perfect" army splits.

To take this a step further. The AI is able to understand enemy army size. If the enemy is stronger then the computer, the AI can detect how far the battle commencing is from a nexus and if a ramp is near by. If its with in a certain range then it can cast force field on the ramp blocking the enemy.

Finally: Guardian shield is nice so the AI can just decide that if a guardian shield is active then the other sentries can cast force field.

This code would not be difficult to write in, it's probably that the amount of work load already thrown at the programmers was too much to try and include everything.
ModeratorFormer Afreeca Starleague Caster: http://afreeca.tv/ASL2ENG2
Aarda9
Profile Joined January 2011
United States27 Posts
Last Edited: 2011-06-14 20:02:03
June 14 2011 20:01 GMT
#90
I get FF'd all the time by the hard AI D: Thank you Yabot -_______-
Zerglot with Stim
Siretu
Profile Blog Joined April 2010
151 Posts
June 14 2011 21:32 GMT
#91
Update on the challenge:

Since I am working full time, I don't have so much time to work on the AI.

I've fixed a bug that made it FF too early when attacking from the right. It now automatically detects what kind of FF it should use(Currently limited to either split or defensive surround against enemy melee units)

It's fun to see 20 sentries own 1000 speedlings without any losses. They could probably beat 2000.

I remade the splitting code so I can easily adjust the amount of force fields used. I haven't added the automatic adjustment of the amount of force fields. Not because it's hard, just because I've been prioritizing other stuff.

Adding ramp force fielding requires pathing algorithms that I know EagleAI has but that I don't have. I will try remaking the part I need.
Sevenofnines
Profile Joined May 2010
United States167 Posts
June 14 2011 23:16 GMT
#92
Rudimentary forcefielding would not be particularly hard to program. Obvious things like ramps or splitting an army in half or blocking melee units is easy.

Things begin to get more difficult outside of those trivial situations. For instance:

-Suppose you only have enough energy for say 5 forcefields while your army engages in a wide open area. Would the AI know where to optimally place those forcefields? This problem involves things like existing Terrain, the position/range/speed/damage/composition/etc. of not only the Protoss units but the enemy units as well. I'm sure you could program the AI to figure this out given time, but it becomes much more difficult.

-Suppose its a PvP and the enemy has a slightly larger Colossus count. Would the AI know that FF might end up being detrimental because it would help the enemy colossi? Would it be able to account for massive units possibly breaking FF. How would each of those things affect the rest of the army? Also, would the AI be able to calculate that if it placed FF in a certain way, how the enemy army might reposition and possibly take advantage of the AI's own FF's (i.e repositioning Colossi in a line parallel to the FF's).

All of those things would need to be taken into consideration. Otherwise the AI would be easily exploitable. Making an AI to FF trivial situations is pretty easy. Making one that places optimal FF, can take advantage of them correctly, prevent the enemy from taking advantage of them, and works on all maps and engagement situations would be extremely difficult.

chAse_
Profile Joined April 2011
Germany84 Posts
June 15 2011 02:06 GMT
#93
On June 15 2011 08:16 Sevenofnines wrote:
Rudimentary forcefielding would not be particularly hard to program. Obvious things like ramps or splitting an army in half or blocking melee units is easy.

Things begin to get more difficult outside of those trivial situations. For instance:

-Suppose you only have enough energy for say 5 forcefields while your army engages in a wide open area. Would the AI know where to optimally place those forcefields? This problem involves things like existing Terrain, the position/range/speed/damage/composition/etc. of not only the Protoss units but the enemy units as well. I'm sure you could program the AI to figure this out given time, but it becomes much more difficult.

-Suppose its a PvP and the enemy has a slightly larger Colossus count. Would the AI know that FF might end up being detrimental because it would help the enemy colossi? Would it be able to account for massive units possibly breaking FF. How would each of those things affect the rest of the army? Also, would the AI be able to calculate that if it placed FF in a certain way, how the enemy army might reposition and possibly take advantage of the AI's own FF's (i.e repositioning Colossi in a line parallel to the FF's).

All of those things would need to be taken into consideration. Otherwise the AI would be easily exploitable. Making an AI to FF trivial situations is pretty easy. Making one that places optimal FF, can take advantage of them correctly, prevent the enemy from taking advantage of them, and works on all maps and engagement situations would be extremely difficult.



exactly what you said, sir.

a 'stupid' FF-AI is pretty easy to code, an intelligent one is not.
Siretu
Profile Blog Joined April 2010
151 Posts
June 15 2011 06:27 GMT
#94
On June 15 2011 08:16 Sevenofnines wrote:
Rudimentary forcefielding would not be particularly hard to program. Obvious things like ramps or splitting an army in half or blocking melee units is easy.

Things begin to get more difficult outside of those trivial situations. For instance:

-Suppose you only have enough energy for say 5 forcefields while your army engages in a wide open area. Would the AI know where to optimally place those forcefields? This problem involves things like existing Terrain, the position/range/speed/damage/composition/etc. of not only the Protoss units but the enemy units as well. I'm sure you could program the AI to figure this out given time, but it becomes much more difficult.

-Suppose its a PvP and the enemy has a slightly larger Colossus count. Would the AI know that FF might end up being detrimental because it would help the enemy colossi? Would it be able to account for massive units possibly breaking FF. How would each of those things affect the rest of the army? Also, would the AI be able to calculate that if it placed FF in a certain way, how the enemy army might reposition and possibly take advantage of the AI's own FF's (i.e repositioning Colossi in a line parallel to the FF's).

All of those things would need to be taken into consideration. Otherwise the AI would be easily exploitable. Making an AI to FF trivial situations is pretty easy. Making one that places optimal FF, can take advantage of them correctly, prevent the enemy from taking advantage of them, and works on all maps and engagement situations would be extremely difficult.


I agree With your first paragraph. Stupid FF ai is easy to make. I just think making smart FF ai is easier to make than you say.

First of all I see it like this: There are three levels. Stupid ai, player-like ai(FFs are not always optimally placed and sometimes it can be abused, just as a normal player), smart ai.

Creating a smart ai that always places optimal FF in all situations is extremely hard. Creating a player-like ai with a high sucess-rate is not.

Now for your difficult situations. My ai analyzes the two armies(not extensively, just a little), it will check terrain soon. Not perfectly ofc but I will improve it over time.

Checking coloossi count is very easy, so is checking for massive units.

Your last argument about repositioning and taking advantage seems very vague. It seems like something players dont think about and that they might be abused in the same Way.

I hope my entire post is readable. writing it on a small smartphone is hard work.
Siretu
Profile Blog Joined April 2010
151 Posts
Last Edited: 2011-06-18 21:17:45
June 18 2011 17:27 GMT
#95
I haven't had time working on this lately due to work and other projects but I thought I should upload what I made so far. There is no difference between the attacks(except the units). The AI automatically detects which kind of force fields it should use(split or surround)



I know the surround part is kind of boring. Interesting fact, 24 sentries should be able to beat an infinite amount of lings using this since 6 sentries is enough to force field a ramp indefinitely. This means 24 sentries can keep 4 force fields up indefinitely which is what is needed to help them survive.
TedJustice
Profile Blog Joined June 2010
Canada1324 Posts
Last Edited: 2011-06-18 18:31:13
June 18 2011 18:23 GMT
#96
Yeah, it shouldn't be too hard to just program an AI to throw forcefields at random in big battles.

But from what I've read, that's already been done. I guess it's the actual good forcefields that get complicated.

EDIT: That surround video was pretty cool though.
Severedevil
Profile Blog Joined April 2009
United States4839 Posts
June 18 2011 18:59 GMT
#97
Positional and terrain-dependent play is very complicated. I'm pretty sure we've never had an RTS AI that could rival a good human at those.
My strategy is to fork people.
ptanhkhoa
Profile Joined June 2010
Vietnam87 Posts
June 20 2011 09:20 GMT
#98
Try Green Tea AI ^^
dimfish
Profile Blog Joined February 2010
United States663 Posts
June 21 2011 15:10 GMT
#99
On June 19 2011 02:27 Siretu wrote:
I haven't had time working on this lately due to work and other projects but I thought I should upload what I made so far. There is no difference between the attacks(except the units). The AI automatically detects which kind of force fields it should use(split or surround)

http://www.youtube.com/watch?v=SBLNe0Gs19g&feature=player_embedded

I know the surround part is kind of boring. Interesting fact, 24 sentries should be able to beat an infinite amount of lings using this since 6 sentries is enough to force field a ramp indefinitely. This means 24 sentries can keep 4 force fields up indefinitely which is what is needed to help them survive.


Cool, cool! Now you gotta get those isolated cases into a multiplayer AI and see how well you can get it to decide when to FF
Siretu
Profile Blog Joined April 2010
151 Posts
June 21 2011 15:57 GMT
#100
I will but I have two things left to fix first. 1. terrain check. 2. make sure they dont Force field if all the sentries together cant make all the Force fields needed. right now 1 sentry will try to shield itself with Force fields even if it only has enough energy for one.

after that is added, i will add it to the standard ai and see what happens.
Prev 1 2 3 4 5 6 Next All
Please log in or register to reply.
Live Events Refresh
The PiG Daily
21:00
Best Games of Starcraft
SHIN vs ByuN
Reynor vs Classic
TBD vs herO
Maru vs SHIN
TBD vs Classic
PiGStarcraft684
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft684
SpeCial 67
StarCraft: Brood War
Shuttle 122
NaDa 18
Mong 16
Dota 2
PGG 98
LuMiX1
Counter-Strike
summit1g2564
Foxcn175
Other Games
Grubby5445
FrodaN1086
C9.Mang0161
taco 161
JimRising 159
ViBE52
Trikslyr47
Liquid`Ken45
PPMD32
Organizations
Other Games
gamesdonequick440
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Hupsaiya 77
• RyuSc2 63
• davetesta61
• musti20045 37
• Migwel
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota22380
League of Legends
• Doublelift4567
Other Games
• imaqtpie1610
• Scarra691
Upcoming Events
CranKy Ducklings
9h 48m
WardiTV 2025
10h 48m
Spirit vs Cure
Reynor vs MaxPax
SHIN vs TBD
Solar vs herO
Classic vs TBD
SC Evo League
12h 18m
Ladder Legends
18h 48m
BSL 21
19h 48m
Sziky vs Dewalt
eOnzErG vs Cross
Sparkling Tuna Cup
1d 9h
Ladder Legends
1d 16h
BSL 21
1d 19h
StRyKeR vs TBD
Bonyth vs TBD
Replay Cast
2 days
Wardi Open
2 days
[ Show More ]
Monday Night Weeklies
2 days
WardiTV Invitational
4 days
Replay Cast
5 days
WardiTV Invitational
5 days
ByuN vs Solar
Clem vs Classic
Cure vs herO
Reynor vs MaxPax
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 1
WardiTV 2025
META Madness #9
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL Season 19: Qualifier 2
CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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.