ShadowFlare's Realm
http://sfsrealm.hopto.org/cgi-bin/yabb2/YaBB.pl
ShadowFlare's Realm Forums >> Program Development >> chk file format
http://sfsrealm.hopto.org/cgi-bin/yabb2/YaBB.pl?num=1126533425

Message started by Taiche on Sep 12th, 2005, 3:57pm

Title: chk file format
Post by Taiche on Sep 12th, 2005, 3:57pm

Hello everyone,

I am currently working on a PHP extension (NOT a PHP script) that extracts information from StarCraft replays. Our extension is working and has a lot of features and is in use on some major websites (like http://www.pgtour.net for instance). For more info, see http://repasm.free.fr That's for the background :)

We want to be able to generate a minimap (in BMP or JPG format, doesn't matter) from the map contained in a replay and found the CHK file format documentation on Campaign Creations web site ( http://www.campaigncreations.org/starcraft/stardraft/chkformat.shtml ) which helped us a lot. However, the author of this documentation could not add the format of what he calls "border tiles" and we can't figure it out either :-[ Since there are tons of programs able to modify or display maps (like GUEdit or even SCM2JPG), we are in search of someone who could explain it to us :)
Currently, we can get most of the tiles ; here is the results we have achieved so far : http://www.lgml.net/sc/current.bmp (minimap of the Lost Temple map) As you can see, there are some black dots on the image and these dots are the "border tiles" we don't understand. We have tried to interpolate in order to by-pass these data but the problem is that it can get really messy on some map that use them intensively (like Isles of Siren) :-/

Has anyone any documentation/idea/suggestion about it ?

Title: Re: chk file format
Post by wulfskin on Sep 12th, 2005, 10:39pm

Hi,
it's not that simple but still possible. Look here:
http://shadowflare.samods.org/cgi-bin/yabb/YaBB.cgi?board=dev;action=display;num=1099830909.

If you got more questions, just ask. I also can give you the important parts out of my program replay explorer which also  can extract mini map pictures.

Regards,
Hape

Title: Re: chk file format
Post by Taiche on Sep 12th, 2005, 10:49pm

Hi wulfskin,

Thanks for your help ! However, I see it is about Warcraft III maps and I am not sure this will work for StarCraft files. Could you please enlighten me on the subject ? Do you know if this works for StarCraft replays too or if there are modifications to make ?

Thanks for your reply anyway :)

Title: Re: chk file format
Post by wulfskin on Sep 13th, 2005, 3:45pm

Hey,
I forgot that you talked about starcraft replays. But I guess that the format of starcraft maps is similar as warcraft maps.
Try to extract them like mpq files and then look at the files.
I'm currently not at home so I can't do this on my own. If I'm at home, I will post again.

Regards,
Hape

Title: Re: chk file format
Post by Taiche on Sep 13th, 2005, 5:27pm

Well, I viewed the SCM as a MPQ with MPQView or WinMPQ and it contains only the scenario.chk file and from what I've seen in the CHK specs sheet, it does not contain any JPG data... :-/
That's why I was asking documentation about the CHK format ;) Thanks for your suggestion anyway.

Title: Re: chk file format
Post by wulfskin on Sep 13th, 2005, 9:01pm

Sorry, I didn't know that. :-/

Anyway good luck,
Hape

Title: Re: chk file format
Post by Julas.wtfwrongpass on Sep 16th, 2005, 6:29pm

BTW Does your project work on Linux servers if it's a dll?

Title: Re: chk file format
Post by Taiche on Sep 16th, 2005, 7:45pm

Yep. It's in use at PGTour which runs on a Unix-like OS.

Title: Re: chk file format
Post by darktemp7 on Aug 12th, 2006, 9:47pm

I'm not entirely sure, but here is some info that might help:
For the "Border tiles" thing, the explanation for what the value of each tile is that Quantum made might be right but there is a MUCH easier way of knowing wats wat.  If you have Starforge or scmdraft 2 (sf is better for this), just find the tile you want.  Get this number: row*16 + column (it'll show which column/row you're in if ur using starforge).  Then turn that number into hex.  That's what value it is in the CHK file.
Also, if you're trying to figure out what each tile's minimap color corresponds to, try contacting BannedScag (the creator of Starcraft Picture Mapper).  I'm not sure how, but i'm sure there's a way.
Hope that helps.
-darktemp7.CoM

Title: Re: chk file format
Post by Taiche on Aug 15th, 2006, 9:00pm

Thanks for replying :D
Anyway, we've found out how to do it ; both our softwares use the "minimap generation" feature. See them at http://repasm.free.fr and http://repasm.free.fr/rx/
Thanks anyway !

ShadowFlare's Realm » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.