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

Members Online

»
0 Active | 57 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

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: Weapon Model Import not working
TFD|Gumpi
General Member
Since: Aug 28, 2008
Posts: 37
Last: May 16, 2009
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Saturday, May. 2, 2009 07:27 pm
No I doesn't have a new name I've only changed the model.
Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Saturday, May. 2, 2009 07:48 pm
You have an unwanted space in the weap file, just after WEAPONFILE

Code:

WEAPONFILE \wea
Share |
TFD|Gumpi
General Member
Since: Aug 28, 2008
Posts: 37
Last: May 16, 2009
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Saturday, May. 2, 2009 08:41 pm
Ok thank [thumbs_up] you that fixed the error, but now i do still get the red FX in my face. Does anybody know how I can get rid of this fx, I think it has something to do with the precaching of the model, but I don't know exactly. I would be really happy if someone could help me.
Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoD4 Scripting
Posted: Saturday, May. 2, 2009 09:59 pm
COD4 should include the xmodel in mod.ff if you've used the weapon line in mod.csv (loads all the models in the weapon too), but try adding:

xmodel,db_laser_cannon

then because it's a standard existing wepfile, it should be precached automatically along with all the others.
Share |
TFD|Gumpi
General Member
Since: Aug 28, 2008
Posts: 37
Last: May 16, 2009
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Saturday, May. 2, 2009 10:19 pm
I've tried that but it is not working the modbuilder gives me an error: " Couldn't find db_laser_cannon in your mod directory"
Where do I have to put the xmodel to fix this.
Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoD4 Scripting
Posted: Saturday, May. 2, 2009 11:15 pm
urgh modbuilder, no-one should have to deal with that buggy rubbish

anyway, you don't need to move any xmodel stuff, but you'd be better off using a batch file to compile your mod.ff. Here's a template to go in your mod folder as makemod.bat:

Code:

del mod.ff

xcopy animtrees ..\..\raw\animtrees /SY
xcopy weapons ..\..\raw\weapons /SY
xcopy xmodel ..\..\raw\xmodel /SY
xcopy mp ..\..\raw\mp /SY
xcopy ui ..\..\raw\ui /SY
xcopy ui_mp ..\..\raw\ui_mp /SY
xcopy soundaliases ..\..\raw\soundaliases /SY
xcopy sound ..\..\raw\sound /SY
xcopy maps ..\..\raw\maps /SY
xcopy character ..\..\raw\character /SY
xcopy vision ..\..\raw\vision /SY
copy /Y mod.csv ..\..\zone_source
cd ..\..\bin
linker_pc.exe -language english -compress -cleanup mod
cd ..\mods\modfoldername
copy ..\..\zone\english\mod.ff
pause


change modfoldername to your folder, then all you have to do is run it to compile. This'll save you from a lot of problems with modbuilder later and might fix the model problem.

edited on May. 2, 2009 07:16 pm by NovemberDobby
Share |
TFD|Gumpi
General Member
Since: Aug 28, 2008
Posts: 37
Last: May 16, 2009
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Sunday, May. 3, 2009 09:44 am
Yeah it is working now[thumbs_up]. Thank you, you've really helped me[biggrin]. I would never have managed it without your help. [jumping].
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

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

»