Main
Current News
Archived News
Search News
Forums
Discussion Forum


Old Forum
Programs
Install Programs
Downloads
Top 5 Downloads
  WinMPQ
    59072 downloads
  ShadowFlare Software Setup wizard
    25060 downloads
  SFmpqapi
    14283 downloads
  Scm Toolkit
    14280 downloads
  Battle.net Gateway Editor
    14158 downloads
View all counts
More Downloads...
Troubleshooting
Other Sections
Source Code
Format Specs.
Misc. Information
Non-SF Stuff
Links
Feedback

This page has been accessed 4136 times.

Small banner for links to this site:
Link to my page with this image.


.tbl files (Starcraft/Warcraft II BNE text strings)

Descriptions of the data types used here:
bytean unsigned byte value
shortan unsigned 2 byte value
longan unsigned 4 byte value
texta text string of single byte characters

Data TypeValueDescription
String countshortThis defines the number of text strings in the file.
Offset to stringshortThis is the offset to the actual text data. There are as many offsets as there are strings.
String datatextThis is the string data that the offsets point to.

There are a few ways to find the end of a string. Here are three of them:

(1) Check the offset of the next string to find how much longer it is than the current one. This is probably the quickest way to do it and usually finds the correct length of the string, but it will not work with certain .tbl files.

(2) Check the offsets of every string. This method is the slowest one, but will always find the correct length.

(3) Look for a null character to signal the end of the string. I think this is the way Blizzard games do it, but it probably would not be the best way to do it for a .tbl file editor.

Return to Format Specs. page