Main
Current News
Archived News
Search News
Forums
Discussion Forum


Old Forum
Programs
Install Programs
Downloads
Top 5 Downloads
  WinMPQ
    69178 downloads
  ShadowFlare Software Setup wizard
    28528 downloads
  SFmpqapi
    17546 downloads
  Scm Toolkit
    15993 downloads
  SCMLoader
    15865 downloads
View all counts
More Downloads...
Troubleshooting
Other Sections
Source Code
Format Specs.
Misc. Information
Non-SF Stuff
Links

This page has been accessed 5484 times.

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