PDA

View Full Version : WC3 Extensions


devINVISIBLE
05-18-2007, 12:02 PM
This thread will act as a repository for information regarding to the various wc3 extensions. Please assist us with listing ANY wc3 extension you come across, as well as any information you know about it. I am particularly interested in all the custom map file type extensions. Once enough information is provided about a particular extension, i'll break it off into it's own thread and reference it.

Edit: I'll start listing some extensions ( even if they are common, not TRULY wc3 related, etc ):

.mpq, .j, .wtg, .w3m, .w3x, .w3e, .w3i, .wct, .wts, .mmp, .wpm, .w3u, .w3c, .doo, .w3r, .blp, .shd, .imp, .w3s

devINVISIBLE
05-18-2007, 12:03 PM
A .wts file contains a string map. The strings can be read from any plain text editor. The format is fairly simple.

The first three bytes are the file header.

struct {
WORD Unknown
BYTE Unknown2
};


Following the header is each string resource. The format is:

"SOME RESOURCE NAME" 0x0D 0x0A "{" 0x0D 0x0A "STRING TEXT" 0x0D 0x0A "}" 0x0D 0x0A 0x0D 0x0A

0x0D == Carriage Return ( "\r" )
0x0A == Line Feed / New Line ( "\n" )


There can be as many strings in a row as desired.

xantan
05-18-2007, 12:18 PM
This isn't a bad idea at all. Thanks.

I'll add more info via edit tomorrow.

devINVISIBLE
05-18-2007, 12:34 PM
This isn't a bad idea at all. Thanks.

I'll add more info via edit tomorrow.

:) Thanks. You are one of the experts I was hoping might be able to help out. If you need to get a hold of me at all, you know how.