Welcome, Guest. Please Login
Back to main page
  News:
Welcome to the ShadowFlare's Realm Forums.  New registrations are by request only.  To be considered for a new forum account, send an e-mail with the user name and display name you want and the reason you want to register.
  Home SFRealm HelpSearchLogin  
 
Pages: 1
Send Topic Print
chk file format (Read 3759 times)
Taiche
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 5

chk file format
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 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
Germany
Gender: male
Re: chk file format
Reply #1 - 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....

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
 
 
82940309   IP Logged
Taiche
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 5

Re: chk file format
Reply #2 - 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 Smiley
Back to top
 
 
  IP Logged
wulfskin
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 30
Germany
Gender: male
Re: chk file format
Reply #3 - 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
Back to top
 
 
82940309   IP Logged
Taiche
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 5

Re: chk file format
Reply #4 - 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... 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
Germany
Gender: male
Re: chk file format
Reply #5 - Sep 13th, 2005, 9:01pm
 
Sorry, I didn't know that. Undecided

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



Posts: 84

Re: chk file format
Reply #6 - Sep 16th, 2005, 6:29pm
 
BTW Does your project work on Linux servers if it's a dll?
Back to top
 
 
WWW 64994211   IP Logged
Taiche
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 5

Re: chk file format
Reply #7 - Sep 16th, 2005, 7:45pm
 
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

Re: chk file format
Reply #8 - 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
Back to top
 
 
  IP Logged
Taiche
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 5

Re: chk file format
Reply #9 - Aug 15th, 2006, 9:00pm
 
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
Pages: 1
Send Topic Print