• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 17:40
CET 23:40
KST 07:40
  • 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
RSL Season 3: RO16 results & RO8 bracket9Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge1[TLMC] Fall/Winter 2025 Ladder Map Rotation14Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA12
StarCraft 2
General
RSL Season 3: RO16 results & RO8 bracket SC: Evo Complete - Ranked Ladder OPEN ALPHA RSL Season 3 - Playoffs Preview Mech is the composition that needs teleportation t GM / Master map hacker and general hacking and cheating thread
Tourneys
StarCraft Evolution League (SC Evo Biweekly) RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship Constellation Cup - Main Event - Stellar Fest 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened
Brood War
General
Data analysis on 70 million replays FlaSh on: Biggest Problem With SnOw's Playstyle soO on: FanTaSy's Potential Return to StarCraft [ASL20] Ask the mapmakers — Drop your questions BGH Auto Balance -> http://bghmmr.eu/
Tourneys
Small VOD Thread 2.0 [BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET [BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET [BSL21] RO16 Tie Breaker - Group A - Sat 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Path of Exile [Game] Osu! Should offensive tower rushing be viable in RTS games? Clair Obscur - Expedition 33 Nintendo Switch Thread
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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread Korean Music Discussion
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2222 users

SC2 unit data in JSON

Forum Index > SC2 General
Post a Reply
mittleider
Profile Joined December 2013
6 Posts
April 17 2014 18:32 GMT
#1
Hello all,

I'm interested in making a tool for the SC2 community which can help analyze the trade off of specific orders and provide a relatively accurate upper bound on the speed of a build.

Programming this in SC2 map editor means that all the unit data is easily accessible, but I don't think that using SC2s map editor is the right option. I think a tool like this can be built fairly quickly in any scripting language.

One difficulty of creating the tool is that there are tons of different units and buildings all with different attributes. Manually inputting the data is a pain. Does anyone know if this data exists in JSON or XML (or any easily readable format)?
BisuDagger
Profile Blog Joined October 2009
Bisutopia19299 Posts
April 17 2014 18:37 GMT
#2
Sorry I can't answer your question, but I'm curious to see the feedback from other coders. I've been working with JSON for a couple months now.
ModeratorFormer Afreeca Starleague Caster: http://afreeca.tv/ASL2ENG2
mittleider
Profile Joined December 2013
6 Posts
April 17 2014 18:39 GMT
#3
Bisu what do you mean? You are working on a similar tool? What data are you encoding in JSON?
Artisian
Profile Joined October 2010
United States115 Posts
Last Edited: 2014-04-17 19:22:36
April 17 2014 19:11 GMT
#4
Well, there are tons of unit stat spreadsheets that you could save as a tab delimited text file and format from there... let me find some of these...

http://wiki.teamliquid.net/starcraft2/Protoss_Building_Statistics
http://wiki.teamliquid.net/starcraft2/Terran_Unit_Statistics

Transfer these over to excel, or something like it, save in a file whatever language will read nicely, and it shouldn't be too bad from there.

I can't find a good sheet of upgrade statistics, you may have to do those by hand.

Edit: or I suppose you could get a file reader to grab what you need from:

http://wiki.teamliquid.net/starcraft2/Protoss_Upgrades

But that's a much more intensive file reader than I've ever personally built. You could probably use the consistent font formatting to grab each upgrade name, and then blindly reach for where the other stats should be... But it looks like more work than just manually entering the upgrades.
Supply is a conspiracy against me...
BisuDagger
Profile Blog Joined October 2009
Bisutopia19299 Posts
April 17 2014 19:15 GMT
#5
On April 18 2014 03:39 mittleider wrote:
Bisu what do you mean? You are working on a similar tool? What data are you encoding in JSON?

I'm not allowed to discuss my coding projects. You know, national security and all. But it gets the job done for networking among multiple projects.
ModeratorFormer Afreeca Starleague Caster: http://afreeca.tv/ASL2ENG2
mittleider
Profile Joined December 2013
6 Posts
Last Edited: 2014-04-17 19:24:33
April 17 2014 19:22 GMT
#6
Thanks, Artisian. I don't really want to parse HTML to get the data, it's not fully reliable. I think you're right in that it may be equivalently easy to just enter the data manually.

I think you have a good idea though of copy/pasting into excel. Then you can save excel as a CSV format (which is fine by me). But this is still significantly more work than JSON or XML.

Maybe someone knows something about the SC2 map editor? (I don't). I wonder if you can do file IO from there? I might just be able to extract all the data into an output file? :X


And Bisu if you have any interesting SC2 projects that you need a hand on let me know. National security is not an issue here, I don't talk enough or care enough to tell anyone
UberNuB
Profile Joined December 2010
United States365 Posts
April 17 2014 19:23 GMT
#7
Assuming the data is easily accessible in the SC2 editor, why not just make a script within that to dump out the json data you want?
the absence of evidence, is not the evidence of absence.
Artisian
Profile Joined October 2010
United States115 Posts
April 17 2014 19:23 GMT
#8
If I were just a bit more familiar with JSON, I'd have a python script convert from excel to whatever format you like in a minute. Alas, I'm not sure what it should look like...
Supply is a conspiracy against me...
mittleider
Profile Joined December 2013
6 Posts
Last Edited: 2014-04-17 19:28:14
April 17 2014 19:27 GMT
#9
OOH! Artisian I see what you mean now. Ok actually you solved my problem!

CSV is a little bit lame, but converting from CSV to JSON is much easier than manually inputting the data. Thank you
Artisian
Profile Joined October 2010
United States115 Posts
Last Edited: 2014-04-17 19:34:35
April 17 2014 19:33 GMT
#10
Yay, I helped!

Now, on the actual program... are you thinking something like this:

http://sc2calc.org/build_order/

with the option to look at what can be improved and what you're giving up relative to another given ordering? Or were you thinking something closer to this:

http://www.teamliquid.net/forum/starcraft-2/168348-scfusion-wol-and-hots-build-order-optimizer

With a given goal, it shows you the fastest way to get there, and then you have to find what nuance changes need to be made to actually survive long enough?

edit: both the above are pretty out of date if I recall correctly, so any sort of replacement or update would be awesome still.
Supply is a conspiracy against me...
mittleider
Profile Joined December 2013
6 Posts
Last Edited: 2014-04-17 19:55:59
April 17 2014 19:50 GMT
#11
Both of these tools are similar to what I'm thinking.

Maybe SC2 calc is closer. However, it doesn't seem like SC2Calc gives you the state of the game at every time interval (or maybe it CAN, it just doesn't, I'll have to look into it). For example, say I want to go 14 pool... at what game time do I have exactly 200 minerals? And if I execute no more actions, what will the state of the game be by time 10:00? (You would still have 13 workers and xxxxx minerals). I realize that's not a useful build, but the idea is that this would allow you to look at things like "what if I cut this probe here".

SC2Fusion is close to what I was thinking. I did have the idea of computing an "optimal" strategy. And I think the author of this program has a great idea in creating "waypoints" of goals along the build order. But I'll have to look more deeply into how his tool works and the problems that it has. If his works well, it may be best to just abandon my idea and roll with his.

Either way, these two programs are great. I think building on one of them will be much faster, assuming the code is clean.

One possible issue with SC2Fusion is that even though 1M games per second is fast simulation, if the simulation is random then clearly most of the games are just trash. If you want to check the build order for a longer game it will be more difficult. For example, how do i get from state "X" (say you're at 100/120) to state "Y" of 200/200.

Making an optimal SC2 build is clearly an NP complete problem, so having a human decide the course of action is more intuitive in my opinion.
Artisian
Profile Joined October 2010
United States115 Posts
April 17 2014 20:07 GMT
#12
On April 18 2014 04:50 mittleider wrote:
One possible issue with SC2Fusion is that even though 1M games per second is fast simulation, if the simulation is random then clearly most of the games are just trash. If you want to check the build order for a longer game it will be more difficult. For example, how do i get from state "X" (say you're at 100/120) to state "Y" of 200/200.


I really like the idea of giving SC2Fusion a goal, say 'I want 5 stalkers', letting it find it's optimization, and then being able to look at what shuffling the order of it's results or adding a few more/less probes to it would do. That would be insanely useful, since usually the builds you get from Fusion stop being viable after the 7 min mark or so, simply because you can't get it to include the needed defensive units.

It sounds awesome.
Supply is a conspiracy against me...
Please log in or register to reply.
Live Events Refresh
BSL: GosuLeague
21:00
RO16 SWISS - Day 2
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft315
White-Ra 193
SteadfastSC 46
ROOTCatZ 9
SpeCial 3
StarCraft: Brood War
Britney 14525
Calm 2218
ZZZero.O 116
Movie 17
Shine 8
HiyA 7
League of Legends
Trikslyr40
Counter-Strike
fl0m1165
Super Smash Bros
AZ_Axe9
Other Games
Grubby6038
FrodaN2297
DeMusliM298
Liquid`Hasu261
Pyrionflax161
C9.Mang0140
ViBE122
kaitlyn18
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 20 non-featured ]
StarCraft 2
• musti20045 32
• RyuSc2 26
• Adnapsc2 3
• Reevou 1
• Kozan
• sooper7s
• AfreecaTV YouTube
• intothetv
• IndyKCrew
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• HerbMon 27
• FirePhoenix13
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota2676
League of Legends
• Doublelift640
Other Games
• WagamamaTV340
• Shiphtur244
Upcoming Events
RSL Revival
8h 50m
Zoun vs Classic
SHIN vs TriGGeR
herO vs Reynor
Maru vs MaxPax
WardiTV Korean Royale
13h 20m
Replay Cast
1d
RSL Revival
1d 8h
WardiTV Korean Royale
1d 13h
IPSL
1d 18h
Julia vs Artosis
JDConan vs DragOn
BSL 21
1d 21h
TerrOr vs Aeternum
HBO vs Kyrie
RSL Revival
2 days
Wardi Open
2 days
IPSL
2 days
StRyKeR vs OldBoy
Sziky vs Tarson
[ Show More ]
BSL 21
2 days
StRyKeR vs Artosis
OyAji vs KameZerg
Replay Cast
3 days
Monday Night Weeklies
3 days
Replay Cast
4 days
Wardi Open
4 days
Replay Cast
5 days
Wardi Open
5 days
Tenacious Turtle Tussle
6 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2025-11-16
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 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.