This tutorial is about creating zip files for your map's custom content (like textures, statics, etc).
For this tutorial you will need the following:
- A working map
- Winrar/7zip or a simular programm to create zip files
- Custom content
Step 1: Creating the zip files
'Go to your map's folder and create zip file there. to get the correct name you need to know which sort of content you want to add.
common_client.zip
This is use for custom loading music, custom detail terrain textures or custom sky textures. For detailed folder structur inside the zip file see the common_client.zip in your vBF2 installement (Battlefield2/mods/bf2).
objects_client.zip
This is for all sorts of custom objects like statics, weapons, vehicles, textures, etc. For detailed folder structur inside the zip file see the objects_client.zip in your vBF2 installement (Battlefield2/mods/bf2). You need to put here the different BF2 meshes .bundledmesh, .staticmesh, .skinnedmesh ,textures in .dds and sounds in .ogg or .wav.
For a basic static the structur inside the zip could be like this:
staticobjects/pr/russia/houses/ru_house_01/meshes/ru_house_01.staticmesh
For a custom texture it could look like this:
staticobjects/common/textures/common_ch_billb_c_CuStOmSuFFiX.dds
NOTE: It is not possible to load custom woodland textures on top of existing woodland textures!
objects_server.zip
This is for all sorts of custom objects like statics, weapons, vehicles, textures, etc. For detailed folder structur inside the zip file see the objects_server.zip in your vBF2 installement (Battlefield2/mods/bf2). You need to put here the BF2 .collisionmesh, .con, .tweak.
For a basic static the structur inside the zip could be like this:
staticobjects/pr/russia/houses/ru_house_01/meshes/ru_house_01.collisionmesh
staticobjects/pr/russia/houses/ru_house_01/ru_house_01.con
staticobjects/pr/russia/houses/ru_house_01/ru_house_01.tweak
Step 2: Creating the Client/ServerArchives.con
Simply download the attached Archives.zip. Inside it you will find 2 files (ClientArchives.con and ServerArchives.con).
Depending on the type of custom content (see above) you need just the ClientArchives.con (when only adding content clientside (common_client.zip and/or objects_client.zip)) or also the ServerArchives.con (when adding content serverside/complett new objects, because the than need collisionmeshes and tweaks and cons).
When you know what content you want to add, you can open the needed Client/ServerArchives.con and remove the unneeded lines and insert your map's name in place of YoUr_lEvEl.
Step 3: Adding Client/ServerArchives.con to your map
Now you got some zip's in your map folder along the default client.zip and server.zip which contain the map files.
to get your map to load the custom content zip's, all you need to do is put the needed Client/ServerArchives.con in the server.zip of your map.
done.