I don't know about you, but the first time I tried to create a pack file with BOB, it ended up being 600mb! So after a bit of research and testing with the rules.bob file, I've come to a decent understanding of how to use them to create your basic mod, and I thought I ought to share it with the rest of you.
OK, so basic format:
Code:
[Pack]
<Files> = -*.pack
PackFile = <retail>/data/mod.pack
PackType = mod
This is the rules.bob that comes with the Assembly Kit, it tells BOB to put everything but *.pack files in working_data into mod.pack, including all the ESF, animations, etc that exist in working_data already. So the first question, is how to point it to a specific folder, say the 'db\' folder that will contain all the binary files converted from the XML raw_data. The following entry should be placed in the 'working_data\rules.bob' file.
Code:
[Pack]
<Files> = db/*/*, text/db/*.loc
PackFile = <retail>/data/JMod.pack
PackType = mod
This entry will take all files located in the 'db' folder, plus 1 directory down (e.g. db\unit\units.binaryfile), as well as all localization files from 'text\db' and pack them into JMod.pack; and I do mean ALL of them, if you have a foo.txt in your 'working_data\db\units\' folder, it too will go into the pack file, useful for adding in tables with a custom name to a pack file directory, but still, be careful.
Note, rules.bob can have multiple of these entries in the file, example:
Code:
[Pack]
<Files> = -*.pack
PackFile = <retail>/data/mod.pack
PackType = mod
[Pack]
<Files> = db/*/*
PackFile = <retail>/data/JMod.pack
PackType = mod
[Pack]
<Files> = text/db/*.loc
PackFile = <retail>/data/JMod_local_en.pack
PackType = mod
Pasting the above into a rules.bob file will tell BOB to add all files in the 'db' folder to JMod.pack, and all .loc files to JMod_local_en.pack. Now that you can setup your rules.bob file, you can simply tick the mod pack you wish to build in the 3rd pane of Bob, 'Retail' and will go build build that pack file. Next up, poking at BasePath to see if we can setup our own folder directories within working_data.
Finally, I link to the Official BOB File documentation.