• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 20:03
CEST 02:03
KST 09:03
  • 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
Team TLMC #5 - Finalists & Open Tournaments0[ASL20] Ro16 Preview Pt2: Turbulence9Classic Games #3: Rogue vs Serral at BlizzCon9[ASL20] Ro16 Preview Pt1: Ascent10Maestros of the Game: Week 1/Play-in Preview12
Community News
Weekly Cups (Sept 8-14): herO & MaxPax split cups4WardiTV TL Team Map Contest #5 Tournaments1SC4ALL $6,000 Open LAN in Philadelphia8Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues29LiuLi Cup - September 2025 Tournaments3
StarCraft 2
General
#1: Maru - Greatest Players of All Time Weekly Cups (Sept 8-14): herO & MaxPax split cups Team Liquid Map Contest #21 - Presented by Monster Energy SpeCial on The Tasteless Podcast Team TLMC #5 - Finalists & Open Tournaments
Tourneys
Maestros of The Game—$20k event w/ live finals in Paris SC4ALL $6,000 Open LAN in Philadelphia Sparkling Tuna Cup - Weekly Open Tournament WardiTV TL Team Map Contest #5 Tournaments RSL: Revival, a new crowdfunded tournament series
Strategy
Custom Maps
External Content
Mutation # 491 Night Drive Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around
Brood War
General
[ASL20] Ro16 Preview Pt2: Turbulence ASL20 General Discussion Diplomacy, Cosmonarchy Edition BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion
Tourneys
[ASL20] Ro16 Group D [ASL20] Ro16 Group C [Megathread] Daily Proleagues SC4ALL $1,500 Open Bracket LAN
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread General RTS Discussion Thread Nintendo Switch Thread Borderlands 3
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
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
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread The Big Programming Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
The Personality of a Spender…
TrAiDoS
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1149 users

Map Analyser Tool - Page 2

Forum Index > SC2 Maps & Custom Games
Post a Reply
Prev 1 2 3 4 5 6 7 Next All
And G
Profile Joined May 2012
Germany491 Posts
July 28 2013 22:52 GMT
#21
Attempting to analyze some maps of mine with this tool, nothing happens when I drop the files into the map analyzer window, and a few seconds later the program crashes. The maps are standard melee maps, nothing unusual. Any idea what might cause this?
not a community mapmaker
-NegativeZero-
Profile Joined August 2011
United States2141 Posts
July 28 2013 23:00 GMT
#22
On July 29 2013 07:52 And G wrote:
Attempting to analyze some maps of mine with this tool, nothing happens when I drop the files into the map analyzer window, and a few seconds later the program crashes. The maps are standard melee maps, nothing unusual. Any idea what might cause this?

I've noticed this happens when I try to load very old WoL maps - the map file format has probably changed a little bit since then. Other than that I haven't had any problems.
vibeo gane,
And G
Profile Joined May 2012
Germany491 Posts
July 28 2013 23:28 GMT
#23
Ah yes, those are WoL maps. There's no working WoL map analyzer though, right? So what do I do?
not a community mapmaker
-NegativeZero-
Profile Joined August 2011
United States2141 Posts
July 28 2013 23:34 GMT
#24
update your maps?
vibeo gane,
And G
Profile Joined May 2012
Germany491 Posts
July 29 2013 16:11 GMT
#25
Well I can't do that without HotS since I can't select HotS dependencies. Or am I missing something here?
not a community mapmaker
meatpudding
Profile Joined March 2011
Australia520 Posts
July 30 2013 01:01 GMT
#26
Looks like you are stuck for now. Trying to patch stuff up for another release and maybe load both WoL and HotS maps.
Be excellent to each other.
meatpudding
Profile Joined March 2011
Australia520 Posts
August 05 2013 06:16 GMT
#27
Just made a new version. sc2mapanalyser_a5.zip

This version might be less stable that the previous one.

I've changed the entire rendering system from what it was before. Before I was using DirectX libraries but now I am back to using OpenGL with Freetype, libng and zlib. What that means is that making a port to any operating system should be easy now. A consequence of that is that major parts have been rewritten and maybe new bugs will start showing up.

One feature that I am excited to add is the "Siege Map." This layer will highlight all squares that can be hit from 13 range over unpathable terrain. This should finally answer the question of whether my minerals can be sieged from the third. Another use for this is for generating blink maps at 8 range, which shows where blink stalkers are likely to be a threat.

I found these results really interesting so let me know what you think.

+ Show Spoiler [Siege & Blink Maps] +

Akilon

+ Show Spoiler [blink] +
[image loading]

+ Show Spoiler [siege] +
[image loading]


Bel'Shir

+ Show Spoiler [blink] +
[image loading]

+ Show Spoiler [siege] +
[image loading]


DW

+ Show Spoiler [blink] +
[image loading]

+ Show Spoiler [siege] +
[image loading]


Korhal

+ Show Spoiler [blink] +
[image loading]

+ Show Spoiler [siege] +
[image loading]


Neo Planet S

+ Show Spoiler [blink] +
[image loading]

+ Show Spoiler [siege] +
[image loading]


Newkirk

+ Show Spoiler [blink] +
[image loading]

+ Show Spoiler [siege] +
[image loading]


Red City

+ Show Spoiler [blink] +
[image loading]

+ Show Spoiler [siege] +
[image loading]


Star Station

+ Show Spoiler [blink] +
[image loading]

+ Show Spoiler [siege] +
[image loading]


Whirlwind

+ Show Spoiler [blink] +
[image loading]

+ Show Spoiler [siege] +
[image loading]




Some different attempts at getting blink map right: http://imgur.com/a/Mkbu2
Be excellent to each other.
eTcetRa
Profile Joined November 2010
Australia822 Posts
August 05 2013 06:26 GMT
#28
Really cool work. Haven't had a chance to use it myself yet but I will have to soon enough!
Retired Mapmaker™
And G
Profile Joined May 2012
Germany491 Posts
August 06 2013 02:52 GMT
#29
Any chance you might add WoL compatibility? Also, since you already have siege and base layers, how about adding an overcharge layer for nexus range?
not a community mapmaker
meatpudding
Profile Joined March 2011
Australia520 Posts
August 06 2013 03:11 GMT
#30
On August 05 2013 15:26 eTcetRa wrote:
Really cool work. Haven't had a chance to use it myself yet but I will have to soon enough!


Cool, looking forward to it.

On August 06 2013 11:52 And G wrote:
Any chance you might add WoL compatibility? Also, since you already have siege and base layers, how about adding an overcharge layer for nexus range?


Yes there is a chance I will do both of those things. Liberty Mod maps are working for me at the moment, maybe the recent editor patch did something? Anyway if you could send the map that breaks I can take a look it should be an easy fix.

With the nexus range, the problem I am having is that I can't find the perfect base location for every mineral layout. Once I figure that algorithm out then i can add in analysis for mineral patches and geysers, as well as Overcharge range. (The "base location" at the moment is the average of the resource positions, which is close but not quite the actual base location)
Be excellent to each other.
And G
Profile Joined May 2012
Germany491 Posts
August 06 2013 04:18 GMT
#31
Actually, I just figured out what the problem with my WoL maps is: the analyser crashes whenever the map has a custom preview image set. However, now that I can load my maps I noticed that the diagonal debris isn't recognized as a destructible blocker. Normal debris/rocks and diagonal rocks work fine, it's just the diagonal debris.

I've been able to replicate both issues on different maps. If you can't, I'll send you a map with both issues.

For the base algorithm, couldn't you just take all valid nexus locations with a distance <8 to the calculated average of the resource positions, then for each of those calculate the total distance to all mineral patches / geyers, and return the nexus location with the minimum total distance? This might lead to issues on weird maps like Koprulu, but for standard mineral layouts it should work perfectly.
not a community mapmaker
meatpudding
Profile Joined March 2011
Australia520 Posts
August 06 2013 04:47 GMT
#32
Cool glad you sorted it out. Soon I will add error reporting which will help with that kind of thing.

With the debris, I am aware there are lots of missing things. Some debris was always missing and all new HotS elements aren't added. Check footprints.txt because that is where it is all defined. You can try to add it in yourself. The error reporting will be able to show the names of missing items at least. I'm not sure how DimFish gathered the original footprints, seems like it was a mainly manual process. Unfortunately there are some missing items.

This the code I was using to calc the nexus. If you check Semmo's thread you can see that it's pretty lucky if it works at all.
+ Show Spoiler +


// find best loc
float minD = 0.f;
for (list<point>::iterator i = locs.begin(); i != locs.end(); ++i)
{
float D = 0.f;
const list<Resource*>& baseResources = base->resources;
for (list<Resource*>::const_iterator j = baseResources.begin(); j != baseResources.end(); ++j)
{
//if ((*j)->type == MINERALS)
{
int dx = (*j)->loc.mtx - (*i).mtx - 2;
int dy = (*j)->loc.mty - (*i).mty - 2;
float d = sqrt((float)(dx * dx + dy * dy));
D += d;
}
}
if (minD == 0.f || D < minD)
{
minD = D;
base->loc_custom = *i;
}
}
Be excellent to each other.
And G
Profile Joined May 2012
Germany491 Posts
Last Edited: 2013-08-06 07:04:47
August 06 2013 06:39 GMT
#33
Cool, I didn't realise the footprints were externalised. Your code looks like the algorithm I suggested, however judging from the map positions it seems there's no validation whether a base can actually exist at that location. Without seeing the rest of the code I can't say what would be the best way to do this, but maybe you can place a base footprint at that location and check whether it overlaps with any nobuildmain footprints? Otherwise, since base footprints are squares and resource footprints are essentially two overlapping rectangles, you could do something like this:

+ Show Spoiler +
// find best loc
float minD = 0.f;
for (list<point>::iterator i = locs.begin(); i != locs.end(); ++i)
{
float D = 0.f;
const list<Resource*>& baseResources = base->resources;
for (list<Resource*>::const_iterator j = baseResources.begin(); j != baseResources.end(); ++j)
{
if((*j)->type == MINERALS) float dx = abs((*j)->loc.mtx - 0.5 - (*i).mtx);
else float dx = abs((*j)->loc.mtx - (*i).mtx);
float dy = abs((*j)->loc.mty - (*i).mty);

// check for footprint overlap
if(((*j)->type == MINERALS && (dx >= 6.5 || dy >= 6.0 || (dx >= 5.5 && dy >= 5.0))) || ((*j)->type == GAS && (dx >= 7.0 || dy >= 7.0 || (dx >= 6.0 && dy >= 6.0))))
{
D += sqrt(dx * dx + dy * dy) - 3.0; // add distance minus base and minerals sizes
if((*j)->type == GAS) D -= 1.0; // subtract difference of gas/minerals sizes
}
else
{
D += 1000.0; // ugly but will work
}
}
if (minD == 0.f || D < minD)
{
minD = D;
base->loc_custom = *i;
}
}


I changed dx to be calculated from half a grid field to the left for minerals as that seems to be the centre of the footprint. Also I removed the -2 in the x/y distance calculation which I assume was supposed to account for the size of bases, but a) the actual in-game collision box for bases is a circle and not a rectangle, and b) since you didn't calculate the modulus it effectively moved your results 2 grid fields to the bottom and right, so it didn't work anyway. There's also no point in subtracting a fixed value from distance results if all you're going to do is finding the minimum of the sums of those distances, but since you may want to expand the code in the future I subtracted the base/minerals/gas sizes where it makes the most sense. The code now assumes minerals have a circular 1x1 collision box that's in the middle of the 2x1 footprint, but I think that's a reasonable approximation.

You should probably double-check the footprints values, but if coordinates are implemented the way I think they are they should be correct. Obviously I can't compile, so it may or may not work as intended. :-)
not a community mapmaker
meatpudding
Profile Joined March 2011
Australia520 Posts
August 06 2013 13:15 GMT
#34
Well there it is just to see what it looks like.

+ Show Spoiler +
[image loading]

[image loading]
Be excellent to each other.
And G
Profile Joined May 2012
Germany491 Posts
August 06 2013 14:04 GMT
#35
Well it sure looks like the base locations are correct now.
not a community mapmaker
Sinistro
Profile Joined February 2012
Brazil684 Posts
Last Edited: 2013-08-12 14:46:53
August 12 2013 14:44 GMT
#36
Nice feature, really nice feature indeed. Keep it up with the work. Since you said that it should be easy to port I will try to compile it in my linux station and see what happens.

edit: just to ask, the Akilon map that you're using, isn't the Akilon wastes one right? it doesn't looks like the Ladder Akilon Wastes.
The_Templar
Profile Blog Joined January 2011
your Country52797 Posts
August 12 2013 14:54 GMT
#37
On August 12 2013 23:44 Sinistro wrote:
Nice feature, really nice feature indeed. Keep it up with the work. Since you said that it should be easy to port I will try to compile it in my linux station and see what happens.

edit: just to ask, the Akilon map that you're using, isn't the Akilon wastes one right? it doesn't looks like the Ladder Akilon Wastes.

Looks like star station
Moderatorshe/her
TL+ Member
meatpudding
Profile Joined March 2011
Australia520 Posts
August 12 2013 15:31 GMT
#38
Yep

Fixed the images in the OP and added the correct link for version6. Added the photon overcharge images too.
Be excellent to each other.
And G
Profile Joined May 2012
Germany491 Posts
August 12 2013 15:55 GMT
#39
For the next version, could you change the colours used to display height? It's hard to see the difference between mid and low ground with openness activated.

Speaking of openness, how is average openness calculated? It looks like it's just the average distance to the nearest non-pathable square for every pathable square on the map, is that correct?
not a community mapmaker
ShadesofGraylin
Profile Joined April 2012
United States32 Posts
August 12 2013 17:15 GMT
#40
I'm glad this tool got revived.

I found the source code for Dimfish's old version here on github. Is the source for your updated software available somewhere? I maintain the sc2reader library and am interested in exposing an API for map information. It seems that your software would be a good reference for map file formats and interpretation.

Thanks.
Maintainer: sc2reader, http://github.com/GraylinKim/sc2reader
Prev 1 2 3 4 5 6 7 Next All
Please log in or register to reply.
Live Events Refresh
PiGosaur Monday
00:00
#49
davetesta53
Liquipedia
OSC
23:00
OSC Elite Rising Star #16
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 143
trigger 18
StarCraft: Brood War
Artosis 743
Backho 133
NaDa 15
Dota 2
monkeys_forever378
Counter-Strike
fl0m796
kRYSTAL_48
Super Smash Bros
C9.Mang0254
Heroes of the Storm
NeuroSwarm135
Other Games
summit1g8266
Grubby3674
shahzam925
Day[9].tv602
ToD224
Sick178
Maynarde127
XaKoH 62
Trikslyr59
ViBE47
Organizations
Other Games
gamesdonequick674
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota22314
Other Games
• Scarra1190
• imaqtpie839
• Day9tv602
Upcoming Events
LiuLi Cup
10h 57m
OSC
18h 57m
RSL Revival
1d 9h
Maru vs Reynor
Cure vs TriGGeR
The PondCast
1d 12h
RSL Revival
2 days
Zoun vs Classic
Korean StarCraft League
3 days
BSL Open LAN 2025 - War…
3 days
RSL Revival
3 days
BSL Open LAN 2025 - War…
4 days
RSL Revival
4 days
[ Show More ]
Online Event
4 days
Wardi Open
5 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Proleague 2025-09-10
Chzzk MurlocKing SC1 vs SC2 Cup #2
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
RSL Revival: Season 2
Maestros of the Game
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1

Upcoming

2025 Chongqing Offline CUP
BSL World Championship of Poland 2025
IPSL Winter 2025-26
BSL Season 21
SC4ALL: Brood War
BSL 21 Team A
Stellar Fest
SC4ALL: StarCraft II
EC S1
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 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.