OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Baphomet on 20 Jun 2003, 16:00:03

Title: Custom addon prob: Mission says addon missing, yet it's there.
Post by: Baphomet on 20 Jun 2003, 16:00:03
Are there any common criteria as to why an addon even though in your addons folder would show up as being not there when you run a mission that's supposed to use it?

I will note that I manually added the name of the pbo files to the addons section of a particular mission.sqm and when I fired it up in the editor it says "addons missing"
Title: Re:Custom addon prob: Mission says addon missing, yet it's there.
Post by: Trenchfeet on 21 Jun 2003, 12:22:41
What addon is it? or is it lots of addons
Title: Re:Custom addon prob: Mission says addon missing, yet it's there.
Post by: Baphomet on 21 Jun 2003, 17:45:00
Well... actually it's my own addon, er addons  :D

However it's sort of modular in design... that is to say I did everything in individual PBO files. One for the weapon one for the unit... and the unit uses other customs as well... I will note that I probably didn't do the cfgpatches delcaration properly so that might be the issue. Secondly. Since they use all the existing BIS models I pretty much made them inherit the traits of their parent class but with small modifications to the variables as I saw fit. So again that might be a problem.

I'm honestly not sure but it's kind of annoying. I've not come up to this problem before with my addons.
Title: Re:Custom addon prob: Mission says addon missing, yet it's there.
Post by: Killswitch on 03 Jul 2003, 19:29:15
Aah... my old arch enemy - the missing requiredAddons specification in the config.cpp  ;D

Bap, have a look at this:
Suma's post on requiredAddons (http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=c3e3bf03ecf7a8a3882f0aa6c1d4e007;act=ST;f=51;t=28056;hl=requiredaddons)

Basically: you have to specify, in each addon, what other addons they depend on. Actually, I think you have to specify the whole dependency chain of addons. Example:

if A requires B and B requires C, then, in A:s config.cpp, one must have

requiredAddons[] = {B, C};

Greets!