• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 09:26
CET 15:26
KST 23:26
  • 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 Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3
StarCraft 2
General
Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump Chinese SC2 server to reopen; live all-star event in Hangzhou Maestros of the Game: Live Finals Preview (RO4) BGE Stara Zagora 2026 announced Weekly Cups (Nov 24-30): MaxPax, Clem, herO win
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament Tenacious Turtle Tussle StarCraft2.fi 15th Anniversary Cup RSL Offline Finals Info - Dec 13 and 14! StarCraft Evolution League (SC Evo Biweekly)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Let's talk about Metropolis [BSL21] RO8 Bracket & Prediction Contest Foreign Brood War BW General Discussion
Tourneys
[ASL20] Grand Finals Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL21] RO16 Group D - Sunday 21:00 CET
Strategy
Fighting Spirit mining rates Current Meta Game Theory for Starcraft How to stay on top of macro?
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread EVE Corporation Path of Exile ZeroSpace Megathread
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
Russo-Ukrainian War Thread US Politics Mega-thread YouTube Thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine
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
How Sleep Deprivation Affect…
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: 1555 users

Presenting the BW IRC Bot

Blogs > imp42
Post a Reply
imp42
Profile Blog Joined November 2010
398 Posts
Last Edited: 2016-12-14 21:56:16
December 11 2016 03:52 GMT
#1
The BW IRC Bot

Summary:
+ Show Spoiler +
A handy tool to quickly check/verify different values and stats of all kinds of Brood War units, weapons, and upgrades. It is available on IRC #BWAPI.


A few months ago, I developed a small script, mostly in Prolog, to facilitate looking up different stats I needed for bot development.

Here is a quick presentation of it:

Description

The BW IRC Bot lists the most important stats for all units used in competitive play of Brood War. It uses the original Brood War 1.16.1 as source (via BWAPI).

Listed information:

- Build order necessary to obtain a given unit
- Technology requirements for a given unit
- Type(s) of a given unit (organic, robotic, detector, burrowable, mechanical,spellcaster, etc.)
- Unit of a given type
- Mineral/Gas cost, build time, supply cost of units and upgrades
- Top speed, hit points, armor, energy, sight range, air weapon, ground weapon
- Basic damage, bonus damage, cooldown, damage factor, damage type, explosion type, minimum range, maximum range of weapons

Commands

!buildorder <unit>: retrieves the complete build order required to train given unit

!techreq <unit>: retrieves the direct technology requirement for given unit

!type <unit>: retrieves all types of given unit

!type <type>: retrieves all units with given type

!stats <unit>: retrieves mineral/gas cost, build time, and supply cost of given unit

!stats <upgrade>: retrieves mineral/gas cost, research time for all levels of the upgrade

!details <unit>: retrieves top speed, hit points, armor, energy, sight range, air weapon, ground weapon for a given unit

!details <weapon>: retrieves basic damage, bonus damage, cooldown, damage factor, damage type, explosion type, minimum range, maximum range for a given weapon

!help: shows all valid commands

!help <command>: shows how a specific command is used

Notes:
Naming convention for units, upgrades, weapons, types is the BWAPI name without the race prefix. This usually means the Brood War name with underscores instead of spaces.

Examples of valid names are:

supply_depot
vulture_spider_mine
ultralisk_cavern
ion_thrusters
infantry_armor
c_10_canister_rifle
mind_control
cloakable
siege_tank_tank_mode
siege_tank_siege_mode
(an exception, because the siege tank is modelled as two different units internally)

Usage Examples

!details command_center
[TopSpeed,Hitpoints,Armor,Energy,SightRange,SeekRange,AirWeapon,GroundWeapon]: [1.0,1500,1,0,320,0,none,none]

!stats marine
stats for marine are [minerals,gas,buildtime,(supply|level)] = [50,0,360,1]

!buildorder mutalisk
BO = [larva,drone,hatchery,spawning_pool,lair,spire,mutalisk]

!techreq ghost
techreq for ghost are [barracks,covert_ops,academy]

!type robotic
type of robotic is probe,shuttle,reaver,observer

!type reaver
type of reaver is robotic,mechanical

!stats ship_plating
stats for ship_plating are [minerals,gas,buildtime,(supply|level)] = [150,150,4000,1],[225,225,4480,2],[300,300,4960,3]

!details gauss_rifle
[Damage,Bonus,Cooldown,DmgFactor,DmgType,ExplosionType,minRange,maxRange,Air?,Ground?]: [6,1,15,1,normal,normal,0,128,true,true]

Conclusion
The bot usually hangs out as IMP_Bot in the #BWAPI IRC channel on irc.freenode.net. Drop by and say hi
PS: Artosis: next time you’re casting and you forget how much energy a queen has, just type “!details queen”

Credits
Thanks to everyone involved in developing BWAPI. The values used are extracted from the very source (the game itself) via BWAPI



*****
50 pts Copper League
nbaker
Profile Joined July 2009
United States1341 Posts
December 11 2016 08:42 GMT
#2
Whoah, cool thanks!
DarkNetHunter
Profile Joined October 2012
1224 Posts
December 14 2016 15:10 GMT
#3
Very cool, will bookmark it for usage sometime :D
Learn from the mistakes of others. You can't live long enough to make them all yourself.
Biolunar
Profile Joined February 2012
Germany224 Posts
December 14 2016 16:04 GMT
#4
On which server?
What is best? To crush the Zerg, see them driven before you, and hear the lamentations of the Protoss.
imp42
Profile Blog Joined November 2010
398 Posts
December 14 2016 21:55 GMT
#5
On December 15 2016 01:04 Biolunar wrote:
On which server?


this is on irc.freenode.net. I updated the blog post as well.
50 pts Copper League
Please log in or register to reply.
Live Events Refresh
WardiTV 2025
12:00
Group Stage 1 - Group D
WardiTV941
ComeBackTV 435
TaKeTV 256
IndyStarCraft 181
Rex146
LamboSC2140
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko396
IndyStarCraft 181
Rex 146
LamboSC2 140
ProTech125
StarCraft: Brood War
Britney 38439
Bisu 2809
Larva 1041
Mini 814
Light 672
Hyuk 621
Snow 420
firebathero 350
hero 302
Last 226
[ Show more ]
ggaemo 193
Rush 178
Hyun 144
zelot 140
Mind 117
Movie 57
Killer 57
910 53
Sea.KH 52
Shine 36
Oya187 35
sorry 29
soO 29
Terrorterran 12
HiyA 10
ajuk12(nOOB) 5
Dota 2
Gorgc5140
singsing3616
qojqva2388
Dendi709
XcaliburYe167
Counter-Strike
x6flipin500
byalli431
allub288
oskar89
edward76
Other Games
B2W.Neo1785
hiko507
crisheroes394
DeMusliM305
Hui .236
RotterdaM68
QueenE60
Organizations
Other Games
BasetradeTV46
StarCraft: Brood War
lovetv 8
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• HappyZerGling 145
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• FirePhoenix8
• Michael_bg 1
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV353
League of Legends
• Jankos1678
• Nemesis1537
Upcoming Events
StarCraft2.fi
2h 34m
WardiTV 2025
21h 34m
RSL Revival
1d 14h
StarCraft2.fi
1d 19h
IPSL
2 days
Sziky vs JDConan
RSL Revival
2 days
Classic vs TBD
herO vs Zoun
WardiTV 2025
2 days
IPSL
3 days
Tarson vs DragOn
Wardi Open
3 days
Monday Night Weeklies
4 days
[ Show More ]
Replay Cast
4 days
Sparkling Tuna Cup
4 days
The PondCast
6 days
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Revival: Season 3
Kuram Kup

Ongoing

IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
WardiTV 2025
META Madness #9
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

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
RSL Offline Finals
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 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.