Page Index Toggle Pages: 1
Topic Tools
Normal Topic chk file format (Read 4406 times)
Taiche
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Sep 12th, 2005
chk file format
Sep 12th, 2005 at 2:57pm
Post Tools
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 Smiley

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 Embarrassed 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 Smiley
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) Undecided

Has anyone any documentation/idea/suggestion about it ?
  
Back to top
 
IP Logged
 
wulfskin
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 30
Location: Germany
Joined: Jan 4th, 2003
Re: chk file format
Reply #1 - Sep 12th, 2005 at 9:39pm
Post Tools
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....

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
  
Back to top
ICQ  
IP Logged
 
Taiche
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Sep 12th, 2005
Re: chk file format
Reply #2 - Sep 12th, 2005 at 9:49pm
Post Tools
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 Smiley
  
Back to top
 
IP Logged
 
wulfskin
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 30
Location: Germany
Joined: Jan 4th, 2003
Re: chk file format
Reply #3 - Sep 13th, 2005 at 2:45pm
Post Tools
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
  
Back to top
ICQ  
IP Logged
 
Taiche
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Sep 12th, 2005
Re: chk file format
Reply #4 - Sep 13th, 2005 at 4:27pm
Post Tools
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... Undecided
That's why I was asking documentation about the CHK format Wink Thanks for your suggestion anyway.
  
Back to top
 
IP Logged
 
wulfskin
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 30
Location: Germany
Joined: Jan 4th, 2003
Re: chk file format
Reply #5 - Sep 13th, 2005 at 8:01pm
Post Tools
Sorry, I didn't know that. Undecided

Anyway good luck,
Hape
  
Back to top
ICQ  
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: chk file format
Reply #6 - Sep 16th, 2005 at 5:29pm
Post Tools
BTW Does your project work on Linux servers if it's a dll?
  
Back to top
WWWICQ  
IP Logged
 
Taiche
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Sep 12th, 2005
Re: chk file format
Reply #7 - Sep 16th, 2005 at 6:45pm
Post Tools
Yep. It's in use at PGTour which runs on a Unix-like OS.
  
Back to top
 
IP Logged
 
darktemp7
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Aug 12th, 2006
Re: chk file format
Reply #8 - Aug 12th, 2006 at 8:47pm
Post Tools
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
  
Back to top
 
IP Logged
 
Taiche
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Sep 12th, 2005
Re: chk file format
Reply #9 - Aug 15th, 2006 at 8:00pm
Post Tools
Thanks for replying Cheesy
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 !
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools