|
Modding Tutorials Information and tutorials related to modding BF2. |
|
Thread Tools | Display Modes |
2011-08-22, 16:42 | #1 |
Retired PR Developer
Join Date: Apr 2008
Posts: 2,980
Germany
Location: Cassel-fornia
|
Creating zip Files For Custom Content
Creating zip files for custom content
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:
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. |
Last edited by J.F.Leusch69; 2011-08-22 at 17:27..
|
2011-08-28, 02:08 | #2 |
Join Date: Aug 2011
Posts: 354
Canada
Location: Ontario
|
Re: [Tutorial] Creating zip files for custom content
I do believe many thanks are in order, so many thanks
|
2011-10-15, 15:27 | #3 |
Join Date: Nov 2009
Posts: 1,083
Netherlands
Location: Amsterdam
|
Re: [Tutorial] Creating zip files for custom content
Is anything in the above specific to pr? because I wanted to use customkits for bf2 vanilla's road to jalalabad and it didn't work
|
2011-10-15, 17:24 | #4 |
Retired PR Developer
|
Re: [Tutorial] Creating zip files for custom content
|
|
|
2011-10-15, 18:34 | #5 | |
Join Date: Nov 2009
Posts: 1,083
Netherlands
Location: Amsterdam
|
Re: [Tutorial] Creating zip files for custom content
Quote:
still struggling with this, having tried both methods by now, it seems the map rather loads vbf2 kits than my custom ones I'm editing vbf2 mec kits to better fit a fictional siege of Deraa scenario, my edited Road to Jalalabad map is located in the xpack levels folder (so I have acces to the SF insurgents), which may perhaps be the reason for my problems. as you can see, I'm practising my bf2 modding skills with vanilla, pr is still quite a bridge too far for me | |
2011-11-05, 17:22 | #6 |
Retired PR Developer
Join Date: Apr 2008
Posts: 2,980
Germany
Location: Cassel-fornia
|
Re: [Tutorial] Creating zip files for custom content
it might be better to first test your custom skins in a vBF2 level to minimize the chance of a fault somewhere else causing a problem.
also are you sure you really packed the skins in the right format (.zip and not .rar) and the right location (for example Objects_client.zip\Kits\Mec\textures )? you also should check if your customsuffix is right (for example mec_kits_c_SiegeOfDeraa.dds for the texture file and "SiegeOfDeraa" for the map's init.con file [bf2 is here not case sensitivity]). |
2013-02-06, 01:03 | #7 |
Retired PR Developer
|
Re: [Tutorial] Creating zip files for custom content
For PR_edit, do new things/objects ect need to be packed into the zips or can they stay in just the folders? I thought you only had to pack for the final when you bring it back to the main PR
|
|
|
2013-02-10, 02:48 | #10 |
Retired PR Developer
|
Re: [Tutorial] Creating zip files for custom content
Double post sorry :O
Another question, for custom .cons do I throw those in the .zips as well? Im trying to add a material to my map wondering how I would do that |
|
|
Tags |
content, creating, custom, files, tutorial, zip |
|
|