Buy from YesAsia.com through the picture or the search box below and I will get a credit of a percentage of the price of what you bought at no extra charge to you. :) They have great prices and free shipping is available for orders of US$25 or more (or orders of US$39 or more, depending on the destination country). If the search box is not working, click the image to the left of it and search from the site.
In Associate with YesAsia.com

Main
Current News
Archived News
Search News
Forums
Discussion Forum


Star Alliance Forums
Old Forum
Programs
Install Programs
Downloads
Top 5 Downloads
  WinMPQ
    48696 downloads
  ShadowFlare Software Setup wizard
    12996 downloads
  Scm Toolkit
    10197 downloads
  Battle.net Gateway Editor
    8524 downloads
  SFmpqapi
    7845 downloads
View all counts
More Downloads...
Troubleshooting
Other Sections
Format Specs.
Misc. Information
Non-SF Stuff
The Star Alliance
Links
Feedback

This page has been accessed 1158 times.

Site hosted by:

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


.bin files (Starcraft AI scripts)

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

File Header (4 bytes)
Data TypeValueDescription
Pointer to AI script tablelongThis is a pointer to a table with names, offsets, etc. for the AI scripts.

AI script table entry (aiscript.bin)
Data TypeValueDescription
AI script IDtext (4 bytes)This is a 4 byte code that Starcraft and Staredit use for identifying AI scripts.
AI script offsetlongThis is an offset to the actual AI script. I think if this is set to 0, Starcraft looks for the script in bwscript.bin
AI script labellongThis is the number of a string in rez\stat_txt.tbl
AI script flagslongThese are some flags for the AI script. If bit 0 is set, the AI script requires a location to be used. If bit 1 is set, the AI script will not show up in Staredit. If bit 2 is set, the AI script is considered a Brood War only script.

AI script table entry (bwscript.bin)
Data TypeValueDescription
AI script IDtext (4 bytes)This is a 4 byte code that Starcraft and Staredit use for identifying AI scripts.
AI script offsetlongThis is an offset to the actual AI script.

The AI script table keeps going until an AI script with a null ID is reached.

I currently do not have any information to post about the AI scripts themselves.

Return to Format Specs. page