Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 85 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Tutorials

»
CoD4 Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
How to make a Call of Duty 4 MOD - IWD files only
Versions: You must be logged in to view history.

In this tutorial I will attempt to explain how to create a IWD files with your custom images and modified weapon files. Our example covers only IWD file creation and the weapon files are just about basic editing of weapons that already exsist in the game.

Call of Duty 4 Mod tools has a variety of options to work with in order to produce custom content for the game.
One of the most important aspect of the content people produce are mods.
There is a Mod Builder tool but I never managed to successfully work with it.
And i'm too lazy to find a guide. Not that there's any proper one out there.
So in this tutorial we will do it an other way that works as well.

Call of Duty 4 Mods have two types of files.

  • IWD files which are simply compressed files like rar or zip.
  • mod.ff files which are encoded game files.

In our tutorial we will only explain how to make iwd files without Mod Builder.

All COD4 mods must be located under cod4-directory/mods folder.

Each mod has its own unique folder which defines its name.

In this tutorial we will make an example of how to make a simple IWD mod wich will only include a custom texture for a map and a cod4 weapon edit.

Let's assume we have our mod called:
test_tutorial_mod

Step 1)
Create a folder with that name (test_tutorial_mod)in the cod4/mods folder.

Step 2)

How to get our assets in the mod.

Custom Images:

Let's assume you want to add a custom texture to the game. Not to replace an exsisting one, but let's say you have a map with a new world texture or something like a new grass texture. You must have the tga or dds file of the texture and convert it with assets manager. There should be an other tutorial elaborating about this part. We will not focus on that however, our goal is to understand mod files.

Once we import the image with assets manager we will get an iwi filein cod4/raw/images folder. These files are cod4 image file format that end with .iwi

Copy our new images from cod4/raw/images folder to the mod folderand create a new images folder under your mod folder.Example: cod4/mods/test_tutorial_mod/imagesNow put our iwi file in the images folder inside your mod folder.

We're done with the image so far.

Edited Weapons:

Weapon files are located in cod4/raw/weapons/now under that folder there are two subfolders for MP weapons and SP weapons. If you want to convert SP weapons to MP or MP weapons to SPyou need to use assets manager for that. Open weaponsettings.gdt or weaponsettings_mp.gdt doublicate and rename the weapon you wish to convert, change the target folder in the top options, and re-convert it.

MP to SP need one more option in the AIvsPlayer and AIvsAI accuracy filed. If they don't have them, and the weapon is used from NPCs in a custom map, then the map will show map breaking error.

Once you convert the weapon let's say an MP weapon to SP, then the new weapon is generated with the name you gave it in cod4/raw/weapons/spcopy that weapon file of yours and paste it in your mod folder.

Now just like the images, you need to make the subfolders in the mod folder.In our case that would be:
cod4/mods/test_tutorial_mod/weapons/sp

And paste your weapon file there.

Hopefully it makes sense so far.

Step 3)

If everything is done correctly you should have your mod folder in
cod4/mods/test_tutorial_mod/
and two subfolders images and weapons with the respective files in each.

Now to convert our mod we first need to get 7z.exe
I can not provide you that file, it should be easy to find it, however it must be copyrighted so I guess we are not allowed to pack it with our mod.

Once you eventually get it, put it in your mod folder.
But remember not to pack it with your mod.
More on that later.

Next, we need to create a .bat file.
Create a text file in your mod foldername it MakeMod and change the extension of the file from .txt to .bat
Open the file with a text editor and paste the following code in it.

del images.iwd
del weapons.iwd
cd ..modstest_tutorial_mod
7za a -r -tzip images.iwd images
7za a -r -tzip weapons.iwd weapons
pause

It's pretty simple i'll explain what each line does.

First two lines delete the previous versions of iwd files to replace them with the new ones.
Of course in the first conversion there are no iwd files.
This is done in case we want to add more things in our iwd when we reconvert it.

The next line that starts with cd defines the path of our mod.
If you use a new bat file change that line by replacing the test_tutorial_mod with the name of the folder of the mod you are using. Or else conflucts may occur and you may delete iwd files from previous mods.

The next two lines that start with 7za are basically packing the iwd files with the files, folders and subfolders you tell them to after the line. Those folders are the folders we have in our mod folder.

First 7za line creates an images.iwd file in your mod folder,then it packs images folder from your mod and all its contents in the images.iwd folder same with weapons in the line below.

Hope fully it's clear.

We can pack both images and weapons folders in one iwd file by doing the following:

7za a -r -tzip MyMod.iwd images
7za a -r -tzip MyMod.iwd weapons

You see the iwd name doesn't really matter.
It's only there to keep ourselves organized.
It's always good to have multiple iwd files for other kinds of files.
In case you have a bug mod and wantto update a small portion of it,
then you only have to update one small iwd file, one huge one.

Anyway, enough explaining,
assuming we have the appropriate code in our .bat file we are ready to pack our mod.
Save the .bat file and then run it.

A console window should pop up and if everything is done right,
it should have no red lines and it will ask you to press any key to continue.

Hopefully you will have both of your iwd files generated in your mod folder.

Once your map or mod is ready, you create a new mod folder in your folder where you will include your mod upload.

But you must only include the IWD files,
you don't have to include the bat file nor the 7z.exe file. (especially that one) There may also be other files like temp and missingasset.csv or hunkusage.dat or console.log

You don't need those. Just the IWD files.

Hopefully all that helps.
Good luck.

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»