Jump to content
Sign in to follow this  
vitamin

Problem with replacing g36a.pbo

Recommended Posts

I wanted to replace this file with a new one, so I took Famas rifle from Kabal's FAMAS pack and made pbo file using PboX tool. I also changed texture paths and config file. But I cannot load the game now - it gives me error message on start-up:

g36a\config.cpp/CfgWeapons/G36aBase.model: Member already defined.

I have no idea what might be wrong with this new pbo file? Here it is: http://www.multiupload.nl/P6L60EJVOH

I would appreciate it very much, if someone could take a look at it, and tell me where I made a mistake?

Share this post


Link to post
Share on other sites

You define the model attribute twice in class G36aBase

model="\G36a\Famas.p3d";

picture="\G36a\pictures\w_Famas_scope.paa";

reloadMagazineSound[]={"\G36a\sound\reload_famas.wav",1,1};

drySound[]={"\G36a\sound\dry_famas.wav",1,1};

model="\G36a\Famas_scope.p3d";

modelOptics="\G36a\optik\optika_famasscope.p3d";

Share this post


Link to post
Share on other sites

I have no idea how I could possibly overlook that:o Thank you rageQuit for pointing that out. BTW, do I need to define 'cfgModels' sections for this addon?

@Zulu - one of the things I like about OFP is that you can customize it the way you want. I want to change G36A so that's what I'm doing:)

Share this post


Link to post
Share on other sites

Yes you need to define a cfgmodels (because of the "zasleh" section which is the muzzle flash).

Share this post


Link to post
Share on other sites

Thank you very much ProfTournesol for your quick reply.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×