Generating IBT Files
From FleshWorks
Intro
.IBT files are compiled level files that contain level geometry and most of the associated assets for that level (textures etc.) - the main reason for using these files is to speed up the loading process (see BlockLoadingSystem).
To generate an IBT file of your map
- You must have a .gmp of your map, which you can create by selecting File -> Export Map for Game in the editor.
- Add the following line to user.ini (under BlockLoading):WriteResourceBlockFiles=True. Also make sure the line LoadFromResourceBlockFiles is commented out (a ; in front of it)
- Launch your map, either using the shortcut method, or through the main menu if it is set up (see Basic Mission Tutorial). Either way works. The map will take slightly longer to load than usual.
- Your IBT files will be created in the Save Game path as defined in the Windows registry. So if your saved games are kept in the T3 directory, they will be created there, or if your saved games are in the default My Documents folder, they will be created there.
You will notice that as well as your mission's IBT, three other files have been created - Kernel_GFXALL.ibt, Kernel_PHYALL.ibt, and Kernel_TSDALL.ibt. If your mission uses custom textures, you need to include Kernel_GFXALL in your mission zip. If you have used gamesys archetypes with custom scripts on them, you will need to include Kernel_TSDALL (inventory keys, for example).
If you generated your IBTs by launching the game through the main menu, three more files will have been created, beginning with MainMenu_. You don't need these.
Remember to edit user.ini afterwards and turn off WriteResourceBlockFiles=True by putting a ; in front of it.
The IBT files can be played by turning BlockLoading on with the line LoadFromResourceBlockFiles=True.
Important note: When WriteResourceBlockFiles is set to True, AI weapon loadouts will not get loaded! This means that, for example, guards will not have weapons, which means they will run away when theatened! So if your guards are running away from Garrett instead of attacking him, the first thing to check is to see if you have WriteResourceBlockFiles=True in your user.ini file.
Packaging with IBT files
You still need to include your mission GMP, or else the IBT will not work.
IBT files do not include:
- Gamesys. System\T3Gamesys.t3u
- Books. Content\T3\Books\English\*.sch. This includes files in the String_Tags folder.
- Mission objectives. Content\T3\Books\EMObjectives.dat
- Conversations. Content\T3\Conversations\*.con
- Global variables. Content\T3\Flags\*.txt
- Custom matlibs. Content\T3\MatLib\*.mlb
- Sounds. Content\T3\Sounds. Both the schemas and the sound files must be included.
