jubbie 0 Posted March 31, 2004 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
hardrock 1 Posted March 31, 2004 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) Share this post Link to post Share on other sites
jubbie 0 Posted April 1, 2004 Hm... thanks for the help. Now I have to figure out what I did wrong. Share this post Link to post Share on other sites
andersgrim 0 Posted April 1, 2004 post a copy of your config here so any of us can fix it for you ;) Share this post Link to post Share on other sites
jubbie 0 Posted April 1, 2004 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. Share this post Link to post Share on other sites
jubbie 0 Posted April 1, 2004 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. Share this post Link to post Share on other sites
hardrock 1 Posted April 1, 2004 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) Share this post Link to post Share on other sites
andersgrim 0 Posted April 1, 2004 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
BraTTy 0 Posted April 1, 2004 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
jubbie 0 Posted April 1, 2004 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. Share this post Link to post Share on other sites