• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:41
CEST 13:41
KST 20:41
  • 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
Code S RO12 Preview: GuMiho, Bunny, SHIN, ByuN3The Memories We Share - Facing the Final(?) GSL21Code S RO12 Preview: Cure, Zoun, Solar, Creator4[ASL19] Finals Preview: Daunting Task30[ASL19] Ro4 Recap : The Peak15
Community News
Weekly Cups (May 19-25): Hindsight is 20/20?0DreamHack Dallas 2025 - Official Replay Pack8[BSL20] RO20 Group Stage2EWC 2025 Regional Qualifiers (May 28-June 1)17Weekly Cups (May 12-18): Clem sweeps WardiTV May3
StarCraft 2
General
The Memories We Share - Facing the Final(?) GSL How does the number of casters affect your enjoyment of esports? Code S RO12 Preview: GuMiho, Bunny, SHIN, ByuN Can anyone explain to me why u cant veto a matchup Karma, Domino Effect, and how it relates to SC2.
Tourneys
Last Chance Qualifiers for OlimoLeague 2024 Winter [GSL 2025] Code S:Season 2 - RO12 - Group B DreamHack Dallas 2025 EWC 2025 Regional Qualifiers (May 28-June 1) [GSL 2025] Code S:Season 2 - RO12 - Group A
Strategy
Simple Questions Simple Answers [G] PvT Cheese: 13 Gate Proxy Robo
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 475 Hard Target Mutation # 474 Futile Resistance Mutation # 473 Cold is the Void Mutation # 472 Dead Heat
Brood War
General
BW General Discussion BGH auto balance -> http://bghmmr.eu/ Will foreigners ever be able to challenge Koreans? Battle.net is not working Practice Partners (Official)
Tourneys
[ASL19] Grand Finals [BSL20] RO20 Group D - Sunday 20:00 CET [BSL20] RO20 Group B - Saturday 20:00 CET Small VOD Thread 2.0
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
Path of Exile Nintendo Switch Thread Monster Hunter Wilds Beyond All Reason Battle Aces/David Kim RTS Megathread
Dota 2
lawless labs myosarm sarm yk-11 Official 'what is Dota anymore' discussion
League of Legends
LiquidLegends to reintegrate into TL.net
Heroes of the Storm
Simple Questions, Simple Answers
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia TL Mafia Community Thread TL Mafia Plays: Diplomacy TL Mafia: Generative Agents Showdown Survivor II: The Amazon
Community
General
Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine US Politics Mega-thread All you football fans (soccer)! European Politico-economics QA Mega-thread
Fan Clubs
Serral Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion!
Sports
2024 - 2025 Football Thread NHL Playoffs 2024 Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Cleaning My Mechanical Keyboard How to clean a TTe Thermaltake keyboard?
TL Community
The Automated Ban List TL.net Ten Commandments
Blogs
Need Your Help/Advice
Glider
Trip to the Zoo
micronesia
Yes Sir! How Commanding Impr…
TrAiDoS
Poker
Nebuchad
Info SLEgma_12
SLEgma_12
SECOND COMMING
XenOsky
WombaT’s Old BW Terran Theme …
WombaT
Customize Sidebar...

Website Feedback

Closed Threads



Active: 14648 users

[Tool] SC2 Map Analyzer - Page 11

Forum Index > SC2 Maps & Custom Games
Post a Reply
Prev 1 9 10 11 12 13 16 Next All
NullCurrent
Profile Joined November 2010
Sweden245 Posts
September 21 2011 16:50 GMT
#201
From my tests it seems like the analyzer is broken with map files modified by the editor post patch 1.4.

It reads the wrong map-size and therefore refuses to analyze the map.

My conclusion after some quick look at the format of the MapInfo file is that the version number has been increased from 0x18 to 0x19 which causes some kind of problem.

As dimfish has sent me the code for the analyzer about half a year ago, I took a look at it and found what I guess is the cause of the problem: a condition checking fileVersion == 24.
If fileVersion is 24 (0x19), 8 bytes should be skipped before reading map size. Those 8 bytes were introduced between version 23 and 24, and still remain in version 25. Which means that when the MapInfo says that the version is 25, the analyzer will not skip those 8 bytes and read the wrong map size, resulting in the failure.

I have tried to compile the analyzer from that source, and I've succeeded. But when I run the analyzer I don't get any output at all, and it does not crash. I guess it has something to do with me compiling windows software on OS X, but still, it compiled and ran without a crash :/
Unfortunately I don't have the time to try and get a windows environment to work, and compile it there.

I've found a workaround though:

Workaround (hacky):

We're going to change the version byte manually:

Stuff which is needed:
  • Program which can edit files in hexadecimal
    OS X: HexFiend
  • Program to unpack and pack MPQ files
    OS X: MPQExtractor and DropMPQ

1. Unpack the map file to a folder
2. Open MapInfo with the hex-editor
3. The first bytes are 49 70 61 4D, after that is a 19 if it is made using patch 1.4
4. Replace the 19 with 18 (ie. change 25 -> 24)
(HexFiend: Select the 19 by dragging over it, then look at the bottom where it says 25, double-click on it and write 24)
5. Save
6. Make sure to remove (attributes) and (listfile) files from the folder if they are present
7. Compress the folder to a MPQ archive
8. Rename to .SC2Map
9. Run the analyzer
10. ...
11. Profit!

If anyone can find a good program for windows for editing hex-files and (un)packing MPQ files, let me know and I'll update it.

The Planetary Workshop - TPW - Mapmaking Team
synd
Profile Joined July 2011
Bulgaria586 Posts
September 21 2011 18:36 GMT
#202
And now we wait to be fixed :p
funcmode
Profile Joined June 2010
Australia720 Posts
September 21 2011 19:11 GMT
#203
On September 22 2011 03:36 synd wrote:
And now we wait to be fixed :p

Except dimfish (the creator) hasn't been around for a couple of months. Someone else might need to take over this project (or at least get it working properly).

I vote NullCurrent. <3
@funcmode - TPW Mapmaking Team - theplanetaryworkshop.com
NullCurrent
Profile Joined November 2010
Sweden245 Posts
September 21 2011 19:32 GMT
#204
On September 22 2011 04:11 funcmode wrote:
Show nested quote +
On September 22 2011 03:36 synd wrote:
And now we wait to be fixed :p

Except dimfish (the creator) hasn't been around for a couple of months. Someone else might need to take over this project (or at least get it working properly).

I vote NullCurrent. <3


I've already tried :


I have tried to compile the analyzer from that source, and I've succeeded. But when I run the analyzer I don't get any output at all, and it does not crash. I guess it has something to do with me compiling windows software on OS X, but still, it compiled and ran without a crash :/
Unfortunately I don't have the time to try and get a windows environment to work, and compile it there.


So I need to set up a windows environment with all the libs and so on, and that will take some time as the only windows I have is one for gaming. OS X is my OS for both StarCraft and development.
The Planetary Workshop - TPW - Mapmaking Team
funcmode
Profile Joined June 2010
Australia720 Posts
September 21 2011 19:57 GMT
#205
Well in the meantime, here's links for a free mpq and hex editor for windows;

mpq
hex
@funcmode - TPW Mapmaking Team - theplanetaryworkshop.com
EatThePath
Profile Blog Joined September 2009
United States3943 Posts
September 21 2011 20:42 GMT
#206
Uggh I'm so tempted to try and work on it, but I don't want to promise anything. Sad news it's borked due to version number. =(
Comprehensive strategic intention: DNE
a176
Profile Blog Joined August 2009
Canada6688 Posts
September 22 2011 00:55 GMT
#207
aauuuuuuuuugggggggggggggggghhhhhhhhhhhhhh broken map analyzer!

I have tried to compile the analyzer from that source, and I've succeeded. But when I run the analyzer I don't get any output at all, and it does not crash. I guess it has something to do with me compiling windows software on OS X, but still, it compiled and ran without a crash :/
Unfortunately I don't have the time to try and get a windows environment to work, and compile it there.


what is needed to compile this thing?
starleague forever
meatpudding
Profile Joined March 2011
Australia520 Posts
Last Edited: 2011-09-22 05:24:18
September 22 2011 04:23 GMT
#208
sc2mapanalyzer-src-build.zip (1.8 MB)

Compiled on Windows.
Latest svn source of map analyser, which may or may not be out of date.
Provide your own to-analyse.txt and output.txt. Everything else should be there.
Changed the offending line in read.cpp to if( fileVersion >= 24 ).
Can someone please confirm if it works for them? I only gave it a quick test.
Be excellent to each other.
funcmode
Profile Joined June 2010
Australia720 Posts
September 22 2011 04:46 GMT
#209
I get this error;

[image loading]
@funcmode - TPW Mapmaking Team - theplanetaryworkshop.com
EatThePath
Profile Blog Joined September 2009
United States3943 Posts
September 22 2011 05:12 GMT
#210
Same for me
Comprehensive strategic intention: DNE
meatpudding
Profile Joined March 2011
Australia520 Posts
September 22 2011 05:24 GMT
#211
sc2mapanalyzer-src-build.zip

Ok, I've updated the file to include that dll. You shouldn't need it if the exe was statically linked to the GCC library, but I don't know the correct makefile flag that does that. If none of that makes sense to you, then you understand my predicament :/
Be excellent to each other.
Namrufus
Profile Blog Joined August 2011
United States396 Posts
September 22 2011 05:52 GMT
#212
Thanks for doing this meatpudding! I just tried this, and it seems to be working, however it seems like the version you modified was a development version, I had to add some new variables to colors.txt before it would work and the output looks very strange and glitchy:
+ Show Spoiler +

influence
[image loading]
shortest paths
[image loading]
summary
[image loading]
It looks like the original creator was working on some new features
in base expansion detection?
multiple viable third detection?
new openness algorithm?


I think the most recent stable version might be 1.4.6 (this is what I have been using)
This is it... the alpaca lips.
meatpudding
Profile Joined March 2011
Australia520 Posts
September 22 2011 05:57 GMT
#213
Cool. That's good news so far. The colors.txt I uploaded contains 2 new debug variables that I had to add before it would work, too. I'll take a look for the latest stable version and do an update soon.
Be excellent to each other.
meatpudding
Profile Joined March 2011
Australia520 Posts
September 22 2011 06:29 GMT
#214
Updated using SVN revision 43, date 5 March 2011. According to the notes this is for exe version 1.4.7, algo v1.3.

Apparently the only changes since the previous release are some bugfixes. There were some major changes after this that may have been unfinished (the most recent revision is #45. #44 was listed as "working towards another major release")

sc2mapanalyzer-src-build.zip
Be excellent to each other.
NullCurrent
Profile Joined November 2010
Sweden245 Posts
September 22 2011 10:08 GMT
#215
Seems like 1.4.6-unofficial is the version which produced the best and most output. Sadly I cannot find the source for that one.
Anyone know where to find it (no, it is not on SVN)?

1.4.4 was the version in SVN before 1.4.6-unofficial, and that one is missing output, same goes for 1.4.7 which is the next version and that one also seems to be unfinished.

Also, I've managed to compile a native sc2mapanalyzer for Mac, but sadly it is only the "unfinished" version: http://www.theplanetaryworkshop.com/sc2mapanalyzer-build-1.4.7-mac.zip
(it produces some tmp files and I haven't changed it completely for Mac, so filenames are a bit messed up and so on, compiled for x86_64)
The Planetary Workshop - TPW - Mapmaking Team
EatThePath
Profile Blog Joined September 2009
United States3943 Posts
September 22 2011 16:17 GMT
#216
One thousand cookies to you guys for working on this. That's 3 cookies a day for a year! o.O

I've tried playing around with colors.txt but the output images all seem not to include the tint that indicates change of level (up and down ramps). I guess it's not implemented the same/at all in revision 43?
Comprehensive strategic intention: DNE
NullCurrent
Profile Joined November 2010
Sweden245 Posts
September 22 2011 17:04 GMT
#217
On September 23 2011 01:17 EatThePath wrote:
One thousand cookies to you guys for working on this. That's 3 cookies a day for a year! o.O

I've tried playing around with colors.txt but the output images all seem not to include the tint that indicates change of level (up and down ramps). I guess it's not implemented the same/at all in revision 43?


That is the reason I want to get the source to 1.4.6-unofficial :/
The Planetary Workshop - TPW - Mapmaking Team
Randomaccount#77123
Profile Blog Joined May 2010
United States5003 Posts
Last Edited: 2011-09-22 20:22:59
September 22 2011 20:15 GMT
#218
--- Nuked ---
meatpudding
Profile Joined March 2011
Australia520 Posts
September 23 2011 03:54 GMT
#219
I made some quick hacks to the exe. After this I'm going to refrain from changing anything til dimfish comes back. The last thing we need is more branching versions of the analyser.

sc2mapanalyzer.exe

Changes:

Now supports iGrok's colour scheme.
+ Show Spoiler +

Add this to colors.txt
+ Show Spoiler +

##############################
#
# iGrok's openness scheme
#
##############################
opennessLow1 = 0.71, 0.98, 0.54
opennessLow2 = 0.61, 0.68, 0.99
opennessMid1 = 0.61, 0.88, 0.44
opennessMid2 = 0.51, 0.58, 0.97
opennessHigh1 = 0.51, 0.78, 0.34
opennessHigh2 = 0.41, 0.48, 0.87

Add this to constants.txt

+ Show Spoiler +

#####################################
#
# for iGrok's openness scheme
#
#####################################
int numOpennessGradientColors = 2


Added some info to the bases image, including map size and resource density.

Previous versions supporting patch 1.4:
+ Show Spoiler +
http://bayfiles.com/file/13Y7/KDSRco/sc2mapanalyzer-src-build.zip - latest
http://bayfiles.com/file/13YJ/LPBAIe/sc2mapanalyzer-src-build.zip - stable

Be excellent to each other.
NullCurrent
Profile Joined November 2010
Sweden245 Posts
September 23 2011 15:48 GMT
#220
On September 23 2011 05:15 Barrin wrote:
By the way... I actually talked to dimfish once about the possibility of someone taking over this project for him some day. He told me that he would like to continue this project himself and that he expected to be here to continue updating it. That was at least a few months before he disappeared, so maybe his opinion changed. But maybe it hasn't and he'll be backs soonish.


I could probably give it a go, I haven't programmed C++ in a serious project before, but it should not be that hard to pick up.
Would be good if we could get it up on github or something and get a group of us collaborating on it.

On September 23 2011 05:15 Barrin wrote:
dimfish is my friend and I would not want to cross him, so I would ask that we respect his intellectual property rights (he has some right?). Obviously fixing it for the newest patch for him is great, he won't mind that.


It is licensed as GPL v3 according to sc2mapster.com, and the current SVN repository is also there (but it is missing version 1.4.6-unofficial, which was released by dimfish but never added to the SVN ). So according to the license it is ok, but I'd like to get an ok from dimfish first before continuing the development as he both has the code to 1.4.6 and knows the direction he wants the project to take.

On September 23 2011 05:15 Barrin wrote:
I would REALLY love these things on the summary image:
% of map space that is pathable
width of map * height of map / number of resources on map
I would love you forever.


Well, the first thing I'd want to do (if I will work on the analyzer) is to make the code itself compile on both Windows, Mac and Linux (the needed libraries work for all three of them, but needed some coercion to compile with Mac Ports) without changes, as currently it botches the file-naming and file opening on BSD-style OS:es (in addition to some other annoyances, like not being able to remove temporary files by itself).

I would probably also swap out the Dijkstra's algorithm with A* for determining shortest paths, as A* is generally faster and has a good heuristics function for square grids. In addition I want to add a path smoothing algorithm as the current pathfinding algorithm only supports cardinal directions, diagonals and lines directly between them (which means that the distances it finds usually are a slight bit longer than they actually are in game).

The changes you want seem to be easy to implement, but as the current code we have still is in an incomplete state, I think it would be better to first improve it until the result is as good as 1.4.6 or better.
(I will continue to use 1.4.6 for my analyzer pictures, but 1.4.7 to just get the images when I make maps)
The Planetary Workshop - TPW - Mapmaking Team
Prev 1 9 10 11 12 13 16 Next All
Please log in or register to reply.
Live Events Refresh
Road to EWC
10:00
Asia Closed Qualifiers
RotterdaM881
3DClanTV 69
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 881
StarCraft: Brood War
Britney 20419
Calm 10056
Rain 7424
Bisu 4821
Shuttle 1919
GuemChi 429
Mini 309
EffOrt 200
Stork 194
ZerO 97
[ Show more ]
Killer 88
ToSsGirL 79
Rush 57
Aegong 55
Mind 46
NaDa 31
sSak 26
GoRush 24
Icarus 19
IntoTheRainbow 15
SilentControl 14
Noble 12
Barracks 12
Hm[arnc] 12
Shinee 10
ajuk12(nOOB) 10
Movie 6
Dota 2
Dendi3667
XcaliburYe716
PGG 310
Fuzer 205
Counter-Strike
allub227
Heroes of the Storm
Khaldor188
Other Games
singsing1131
B2W.Neo777
XBOCT600
Happy476
DeMusliM344
crisheroes246
XaKoH 225
Mew2King127
KnowMe121
ArmadaUGS62
QueenE41
ZerO(Twitch)8
Organizations
StarCraft 2
CranKy Ducklings152
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• StrangeGG 69
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Rasowy 12
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV723
• lizZardDota2333
League of Legends
• Stunt888
Upcoming Events
Road to EWC
10h 19m
Road to EWC
21h 19m
Road to EWC
1d 4h
BSL Season 20
1d 6h
Sziky vs Razz
Sziky vs StRyKeR
Sziky vs DragOn
Sziky vs Tech
Razz vs StRyKeR
Razz vs DragOn
Razz vs Tech
DragOn vs Tech
Online Event
1d 16h
Clem vs ShoWTimE
herO vs MaxPax
Road to EWC
1d 21h
BSL Season 20
2 days
Bonyth vs Doodle
Bonyth vs izu
Bonyth vs MadiNho
Bonyth vs TerrOr
MadiNho vs TerrOr
Doodle vs izu
Doodle vs MadiNho
Doodle vs TerrOr
Replay Cast
2 days
Replay Cast
3 days
Replay Cast
3 days
[ Show More ]
The PondCast
5 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-05-28
DreamHack Dallas 2025
Calamity Stars S2

Ongoing

JPL Season 2
BSL Season 20
KCM Race Survival 2025 Season 2
NPSL S3
Rose Open S1
CSL Season 17: Qualifier 1
2025 GSL S2
Heroes 10 EU
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

CSL Season 17: Qualifier 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
CSLPRO Last Chance 2025
CSLAN 2025
K-Championship
SEL Season 2 Championship
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
Bellum Gens Elite Stara Zagora 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin 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.