OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gadolinite on 08 May 2004, 19:32:05
-
:hmm:How come I get the error message (see the jaypeg file for it's screenshot) when I add the hunting rifle to the gear pool with description.ext. How can I fix this problem?
Thanks
-
Is this a bug in the game or do I have to download the thing the error message refers to?
-
Greets,
What version of OFP are you using? Do you have Red Hammer or Resistance?
-Supr. Cmdr. PsyWarrior
-Psychic Productions
-
;) I have both Red Hammer and Resistance installed with the 1.96 patch installed.
-
Aaagg...
Yes, that would have been too easy... ::)
I really don't know where to go from here, other than to say 'Patch it up to the latest version' (if you haven't already).
All OFPEC Denziens: Could this be related to the "Missing addons: BIS_Resistance" error?
-PsyWarrior
-PSYPROD
-
Um.....
I think it's something to do with O.pbo....
You haven't used cutpbo on it or anything...?
I'd suggest a reinstall (Intsall to a differnt dir, and copy your addons/user/missions/mpmission dir over)
Or just uninstinall, and reinstall to the same dir (The installer won't remove any new files you added)
I had the same error when my comp went screwy, and wouldn't load big pbos (Like O.pbo etc)
Not sure, a reinstall will help seriously
- Ben
-
nah, a reinstall don't help. I get the same error when trying to use the hunting rifle. I am patched up to 1.96.
-
Ah...that oldie. Nope, its not a bug (well, ok...) but perhaps one of the many irritating "features" of how OFP loads missions and addons. No need to suffer through reinstalls. Help is near ;D
You get that error because the hunting rifle is defined in the Res\O_WP.pbo addon under the BIS_WeaponPack class and your mission isn't using anything from that addon while your description.ext lists it as a selectable weapon.
The solution is to open the mission.sqm and add "BIS_WeaponPack" to either (or both, can't remember atm) the addons[] and addonsAuto[] parts. An example of how the top of a mission.sqm could look:
version=11;
class Mission
{
addOns[]=
{
"bis_resistance",
"BIS_WeaponPack",
"ah64"
};
addOnsAuto[]=
{
"bis_resistance",
};
...
...
...rest of the mission sqm follows here
As you can see, the addons[] part has "BIS_WeaponPack" listed. That will sort out the error message.
To have that done automatically, place a Hunter in the mission somewhere and preview it in SP editor mode (i.e not MP) and save it.
In short: the error comes from the mission lacking the "BIS_WeaponPack" entry in the mission.sqm and sometimes one has to add that manually. Open the mission.sqm with notepad and add it.
And yes, in a way, its related to the error "cannot load mission, missing addon BIS_Resistance" that pops up sometimes. Do a search in here or in the official forums for "addon dependencies" and/or "requiredAddons" to (perhaps) learn more about the problems.
Good luck!
-
Oh, of course... I'm an idiot! ::)
An alternative solution (without editing the SQM) would be simply to place a unit with a hunting rifle somewhere on the map and place "deleteVehicle this" in his init field. That should add BIS_Weaponpack to your sqm automatically.
Shoulda got this one :P *shoots self*
-Psy|W