Page 1 of 1
Having trouble importing xmodels =[
Posted: May 14th, 2011, 6:48 am
by Migroo
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
Re: Having trouble importing xmodels =[
Posted: May 14th, 2011, 5:22 pm
by Drofder2004
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?
Re: Having trouble importing xmodels =[
Posted: May 15th, 2011, 2:01 am
by Migroo
[root_directory]\map_source\prefabs\mp_strike\planter_cube.map
Is that what you're after?
Re: Having trouble importing xmodels =[
Posted: May 15th, 2011, 2:05 am
by Drofder2004
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.
Re: Having trouble importing xmodels =[
Posted: May 15th, 2011, 2:23 am
by Migroo
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.
Re: Having trouble importing xmodels =[
Posted: May 16th, 2011, 10:02 am
by Drofder2004
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".
Re: Having trouble importing xmodels =[
Posted: May 16th, 2011, 4:16 pm
by Migroo
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.
Re: Having trouble importing xmodels =[
Posted: May 16th, 2011, 4:47 pm
by Drofder2004
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).