Having trouble importing xmodels =[

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
Migroo
CJ Wannabe
CJ Wannabe
Posts: 4
Joined: May 14th, 2011, 6:32 am

Having trouble importing xmodels =[

Post by Migroo » May 14th, 2011, 6:48 am

Hello fellow COD4 mappers.

I am fairly new to COD4 mapping and I have a problem with my xmodels. About 3 months ago when I set up the mod tools everything worked great then a while back when I would import xmodels there would be no preview of the model and now there is no preview and they wont import. I get this error when I try to import it:
Loading model prefabs/mp_strike/planter_cube.map...ERROR: xmodel 'prefabs/mp_strike/planter_cube.map' not found
ERROR: Cannot find xmodel 'prefabs/mp_strike/planter_cube.map'.
faild.
Does anyone know what is causing this? I am hopping to get a map ready by the 27th for a LAN party but this is a bit of a snag.

Thanks in advance.

-Migroo

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Having trouble importing xmodels =[

Post by Drofder2004 » May 14th, 2011, 5:22 pm

At a guess the prefab folder is in one place and but radiant is trying to find it somewhee else...
What is your folder layout structure?
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Migroo
CJ Wannabe
CJ Wannabe
Posts: 4
Joined: May 14th, 2011, 6:32 am

Re: Having trouble importing xmodels =[

Post by Migroo » May 15th, 2011, 2:01 am

[root_directory]\map_source\prefabs\mp_strike\planter_cube.map

Is that what you're after?

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Having trouble importing xmodels =[

Post by Drofder2004 » May 15th, 2011, 2:05 am

Not really, your exact and full tree.

So, where is radiant installed, where are your maps files saved and where are your project settings pointing.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Migroo
CJ Wannabe
CJ Wannabe
Posts: 4
Joined: May 14th, 2011, 6:32 am

Re: Having trouble importing xmodels =[

Post by Migroo » May 15th, 2011, 2:23 am

Here is where my radiant in installed: C:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare\bin

My maps are saved here: C:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare\map_source

Project settings:
basepath (.EXE location) - C:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare
mapspath (.MAP location) - C:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare\map_source
entitypath - .\cod4.def
game dir (aka "fs_game") - [Blank Field]
base game dir ("fs_basegame") [Blank Field]

Is that more what you are after? Sorry I'm new to this.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Having trouble importing xmodels =[

Post by Drofder2004 » May 16th, 2011, 10:02 am

Ok, my bad. The error is not what I thought.

After a quick re-read, the error is caused by the way your are trying to open a model.
Previous games stored model as a model file and collision maps as map files.
CoD4 now simply skips the process.

So, to load a model, you use "Misc<Prefab" not "Misc<Model".
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Migroo
CJ Wannabe
CJ Wannabe
Posts: 4
Joined: May 14th, 2011, 6:32 am

Re: Having trouble importing xmodels =[

Post by Migroo » May 16th, 2011, 4:16 pm

Thanks! That works great. Would you happen to know why there is no preview image? If not thats fine they are importing now which is awesome.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Having trouble importing xmodels =[

Post by Drofder2004 » May 16th, 2011, 4:47 pm

Previews only work with models.

So Misc<Model

Then navigate to "raw/xmodel" and then you shall have previews, but you may not have collision with them (unless you do it manually. (Test for yourself, haven't done any mapping in a long time).
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests