Jump to content
Sign in to follow this  
jubbie

Member already defined

Recommended Posts

I'm getting an error that says something like

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"Rebel\config.cpp/cfgwep/gun.optics" Member Already Defined

What does that mean?

Share this post


Link to post
Share on other sites

That means that in your "Rebel" addon in the config.cpp there is an entry called cfgwep, and that in there the class "optics" is defined twice (I think so) wink_o.gif

Share this post


Link to post
Share on other sites

Hm... thanks for the help. Now I have to figure out what I did wrong. crazy_o.gif

Share this post


Link to post
Share on other sites

Actually, I went over it again and found that I did indeed have two places where optics was defined. I must have missed that when I checked it over last night. crazy_o.gif

Share this post


Link to post
Share on other sites

So I solved one problem, and now find myself with another.

When I launch the unit in the editor and hit "preview" I get this error message:

Quote[/b] ]cannot open object data3d\g_proxy.p3d

Whats that mean? How do I fix it?

Edit: and yes, I have the appropriate p3d in the addon folder where the config calls for it. sad_o.gif

Share this post


Link to post
Share on other sites

in the config.cpp where you typed model="g_proxy.p3d" you have to insert the name of your PBO

Say your addon is MYADDON.pbo, then the path has to be "\MYADDON\g_proxy.p3d" (assumed this p3d is in the folder)

wink_o.gif

Share this post


Link to post
Share on other sites

Apparently you are calling the model from the Dta\Data3d folder where the normal OFP models are located.

If I am right, you have typed something like:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">model="g_proxy.p3d";

BUT you must remember to add the full path to your addon. If your addon is called Addon1.pbo, it should look like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">model="\Addon1\g_proxy.p3d";

Share this post


Link to post
Share on other sites

If you didn't define your proxy in a cfgnonaivehicles.

Will also give the error you are getting (it can't find it)

Share this post


Link to post
Share on other sites

Yeah, it was the cfgnoaivehicles that was causing the problem. Now, everything works well except the model is not showing up where it's supposed to (on the face of the soldier model) in WeaponSlotBinocular. It does show up, though, in WeaponSlotSecondary, but in the wrong place. Weird stuff. crazy_o.gif

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  

×