PDA

View Full Version : [Tutorial] How to make models in Call of Duty 2



Loveboy
14th September 2013, 18:39
Hello Guys!

Here is a new Thread about Modelling.

I want to show you how you can make your own models in Call of Duty 2!

For that tutorial, you will need some specially programs.

1. CoD2 Mod Tools
Download link: http://www.gamefront.com/files/5010188

Install it, and you will get in your Call of Duty 2 path a new Folder "bin"

Do not install it, if you have already installed it.


2. Blender

Blender is a Modelling Program
Download: http://www.chip.de/downloads/Blender-32-Bit_12993220.html

If you can't Download Blender, then please find on google a Download which works.

Download it and install it ( Do not Install it if you have Blender already )


3. CoD Tools for Blender
You will need the CoD Tools for exporting CoD Models.
Download link: http://code.google.com/p/blender-cod/downloads/detail?name=Blender-CoD_Addon_v0.2.3_alpha2.zip

Set the ZIP-File in your Desktop.


4. WinRAR
Download: http://www.chip.de/downloads/WinRAR-64-Bit_37666786.html
If you can't download it form here, please find in google for an other Download link.
Install it, if you haven't got WinRAR and if you have it already, then don't install it again.


Now we can start!

As first you must have a Model.
You can find Models in some websites.
Example: http://tf3dm.com/

As example we will do this chair in CoD2
http://tf3dm.com/3d-model/chair-85457.html

Download it, you will get a .7z file, you have to put the .7z file in your Desktop.

If you open the lt6v8f2yxa-chair.7z file ( With WinRAR ), then you will see this files in it:
chair.mtl
chair.obj
chair_d.dds
chair_n.dds

Put the .mtl and .obj on your Desktop and the two .dds on your Call of Duty 2 Path.

As next you have to open Blender.

If you open Blender, it will looks so

436


If you see, there is a Block, with camera, we don't need it, so we delete it.

How you delete something:

1. Press A to select all ( A second time will unselect all )
2. Press X to Delete
3. Click on delete

Now you have nothing in your Blender

437

Now you have to install in Blender the CoD Tools.

1. Click on File -> User Preferences

Now it will open something.

At the top there stay "Add-Ons"

438

Click on it, then you are in Add-Ons.

As next, click down on "Install Add-On..."

439

Now you have to locate in your desktop, where the zip file is saved.

440

Now click on the .zip file.

Now click left on the > to show the details

Then click on the right the [] Button, to make a mark.

Then press on "Save As Default" to have it everytime.

441


As next we open our model on Blender.

Click on File -> Import -> Wavefront (.obj)

and locate it on your Desktop path to open the chair.obj and open it.

442

Now you can see your model ( it's now too small )

443

You see, its orange (selected all) , now we want only select the chair. Do a right click on the chair to have it as yellow.

we want to make it bigger, so we click left on the Object button

444

Now, you see there Scale: X,Y,Z is 1.000 (this is the normal size, but not for call of duty)

445

Now we write on X,Y,Z 20.

Now its 20 times more bigger. That should be normal for Call of Duty

446


As next we export the model to .XMODEL_EXPORT

Now, as we installed the CoD Tools for Blender, now we have .XMODEL_EXPORT and .XANIM_EXPORT

Now click on File -> Export -> COD Xmodel (.XMODEL_EXPORT)

Locate it to your Desktop and give it a name (look at the top, rename the untiltled.XMODEL_EXPORT to chair.XMODEL_EXPORT

Now click on Export XMODEL_EXPORT (right, at the top)

Now if you close Blender and look at your Desktop, you have get a file names "chair.XMODEL_EXPORT"

Now you have to open the chair.XMODEL_EXPORT file ( Editor or Wordpad ) and go down.

There, at the end will stay MATERIAL 0 "$default" "Lambert" "untitled"

447

rechange the $default to chair_material

448

The chair_material is the texture of the model.

You can close now chair.XMODEL_EXPORT and now do the chair.XMODEL_EXPORT in the path "C:\Program Files (x86)\Activision\Call of Duty 2\model_export\base_character"

Now open the assetmanager.exe (Call of Duty 2/bin) as admin.

449

Now go down in the list, and click on xmodel, give the name chair and then press on New entry, then on OK

450

type should be rigid
highLodDist should be 100000000
and filename: Click on [...], then locate it to you call of duty 2 path, then on model_export, then on base character, then click on chair.XMODEL_EXPORT

451

Then save it
How to save?
1. File -> Save as...
2. Filename: chair.gdt
3. Save

Then press at the top, PC Convert -> Current Asset only

Now you get a error: Can't find material [chair_material] ...

452

Now close the Black thing ( NOT ASSET MANAGER!!! )

Now go to the list back (Asset Manger) and click on material, name should be chair_material , then on New Entry, then on OK

Now should be surfaceType plaster, usage should be case.

Down ( Color map ), click there on [...] and locate it to your Call of Duty 2 path.

Click on chair_d.dds to open it.

453

Now click on File -> Save As... then locate to your Call of Duty 2 Path.

1. Filename: chair_material.gdt
2. Save

Now PC Convert -> Current Asset Only...

Now it will open again a black thing... It says no error.

454

Now we go back to the list, to xmodel, and click on chair.

Now we do again PC Convert -> Current Asset Only

and a black thing will open... ALL WORKS!!!

455

Now, open (as admin) your CoD2Radiant.exe (Call of Duty 2/bin) and you can put your model in your map.

right click -> misc -> model ... choose chair ... and there is it...

456


If there are still some errors or I have bad explained on a point, please reply and i will fix it!

Have fun to make Models :)

Tally
14th September 2013, 18:53
Good tutorial. A lot of work, I can see. So, well done.

YuriJurek
14th September 2013, 21:30
Nice work, seems you have put a lot of effort in it, great job !

Loveboy
15th September 2013, 08:53
Here you can download the chair (Model in Call of Duty 2) http://speedy.sh/Pjt8v/chair.iwd

YuriJurek
15th September 2013, 23:13
I come across some models that use more than 1 texture for example http://tf3dm.com/3d-model/sword-13298.html, how do I configure the .XMODEL_EXPORT file? and then what do I do in Assest Menager to make it work?

Tally
16th September 2013, 00:10
I come across some models that use more than 1 texture for example http://tf3dm.com/3d-model/sword-13298.html, how do I configure the .XMODEL_EXPORT file? and then what do I do in Assest Menager to make it work?


//////////////////////////////////////////////////////////////////////////////////////////
// Beginning MATERIALS
//////////////////////////////////////////////////////////////////////////////////////////

NUMMATERIALS 2

MATERIAL 0 "mtl_ac130" "" "..\images\xpec_ac130_col.dds"
COLOR 0 0 0 0
TRANSPARENCY 0 0 0 0
AMBIENTCOLOR 0 0 0 0
INCANDESCENCE 0 0 0 0
COEFFS 0 0
GLOW 0 0
REFRACTIVE 0 0
SPECULARCOLOR 0 0 0 0
REFLECTIVECOLOR 0 0 0 0
REFLECTIVE 0 0
BLINN 0 0
PHONG 0

MATERIAL 1 "mtl_ac130_p" "" "..\images\xpec_ac130_p_col.dds"
COLOR 0 0 0 0
TRANSPARENCY 0 0 0 0
AMBIENTCOLOR 0 0 0 0
INCANDESCENCE 0 0 0 0
COEFFS 0 0
GLOW 0 0
REFRACTIVE 0 0
SPECULARCOLOR 0 0 0 0
REFLECTIVECOLOR 0 0 0 0
REFLECTIVE 0 0
BLINN 0 0
PHONG 0


//////////////////////////////////////////////////////////////////////////////////////////
// End MATERIALS
//////////////////////////////////////////////////////////////////////////////////////////

YuriJurek
16th September 2013, 16:42
This doesn't really say anything to me, it would be nice if you could explain it a bit further so in the future I'll know what I am doing.

And what about the second part, how do I configure Assest Menager? So that every texture works as it should.

Ni3ls
16th September 2013, 18:05
just convert all the textures and load the right material name as you do it normally

Loveboy
16th September 2013, 20:11
You have to know, that if you want to export models which are many detailed (many MB) can't export to Call of Duty 2, IF THE MODEL HASN'T GOT MANY MATERIALS. 1 MATERIAL IS ALLOWED TO HAVE A LIMIT (I THINK 5450 VERTICES...)

serthy
16th September 2013, 20:48
You can seperate your model in Blender into several objects to avoid this error.

Loveboy
17th September 2013, 14:42
Yes, but you can disconnect a model to 2 halves (as example you have a table, it have 10000 vetices (unlikely), you can make it to halves, and 1 half got an other material name (i think i will make a tutorial about that to avoid this error)).

serthy
17th September 2013, 15:34
Yes, but you can disconnect a model to 2 halves (as example you have a table, it have 10000 vetices (unlikely), you can make it to halves, and 1 half got an other material name (i think i will make a tutorial about that to avoid this error)).

In Blender you are able to seperate your model by material.
Also if you split your model you are also able to assign the same material to both parts.

Loveboy
17th September 2013, 16:31
I tried it, but I failed, it would be nice if you can show us how you made it, and the error is not to see :)

serthy
17th September 2013, 20:48
cant upload my video right now
but shortcuts are:
[a] - select/deselect all
[ctrl+j] combine all objects to one
[ctrl+p] seperate -> by material

you can always hit [Space] and type in what you want (separate/join etc), this will show you all possible commands

pollo
16th November 2013, 13:08
I decided to use Blender instead Maya xd

But I got an error. I downloaded the last blender version, and when I was trying to export the model, I got an error saying that I couldn't do it.

I solved this by downloading these cod2 tools (for newer blender versions):

Click Here (https://code.google.com/p/blender-cod/downloads/detail?name=Blender-CoD_Addon_v0.3.5_alpha3.zip&can=2&q=)

Maybe this doesnt happen to you guys, but this would be a good solution for those people who got the same error.

P.S. Thank you loveboy for your great tut :)

Loveboy
16th November 2013, 22:26
Hello pollo :)
I have sometimes errors too, but for this error I already looked up for it.
Reason why it doesn't work: New Blender versions or beta versions are bugged
How to fix it: Uninstall your Blender, then install the Blender version 2.59 [DOWNLOAD: http://www.oldapps.com/de/blender.ph...=6195?download] and add again the CoD Import/Export tool :)
The Blender version 2.59 is a older version and it works fine with the CoD tool.
If you have got still errors, then write here the error :)

pollo
18th November 2013, 15:33
Well after I downloaded the new codfiles I posted I had no errors but thank you for the link I'll download it anyway :)

ORDI
27th April 2014, 00:49
it do not work for me: i get error
image here: https://www.dropbox.com/s/5urtz3qeusn78ea/Capture%20d%27%C3%A9cran%202014-04-27%2001.45.44.png

Loveboy
27th April 2014, 12:07
Hmm I can't say you what you did wrong, the link doesn't work.
Just upload here your picture or write here the error.

ORDI
27th April 2014, 17:02
695

it work now ^^

Loveboy
27th April 2014, 17:08
I said in this tutorial:


You see, its orange (selected all) , now we want only select the chair. Do a right click on the chair to have it as yellow.

If you Export it while all is selected, then you will get this error ^^
Do a right-click on the chair , then if the Background is yellow, then try to Export it again.