Home   Help Search Login Register  

Author Topic: "Cannot load mission" msg for weapons?  (Read 2353 times)

0 Members and 1 Guest are viewing this topic.

Offline Doolittle

  • Contributing Member
  • **
  • _this select 0
"Cannot load mission" msg for weapons?
« on: 12 Oct 2005, 16:56:53 »
Hello.  I have an addon Soldier that uses weapons from a weapon pack (UP_WW2)... the problem is...well, I dunno.  addOnsAuto doesn't list "up_ww2" in it.  If I hand code it, that still doesn't work.  I can't get rid of the "Cannot load mission, missing addons up_ww2"!  I can play the mission fine (and use the weapons)...I don't want people to see that message when they start.

How can we get OFP to load addon weapons packs if no other addon pack lists the weapons pack as a "requiredaddons", and the weapons pack has no placeable object for the map (so that it is recorded as being needed)?

Thanks for the help!  I did a search 'cause I think this was answered a million times already, but found nothing.

Doolittle

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:"Cannot load mission" msg for weapons?
« Reply #1 on: 15 Oct 2005, 13:47:07 »
It might be caused by wrong scope (not the one on the weapon :) ) values in the wepon config..

If you want the weapon to be available in SP/MP it has to have the value scope=2; (or scope=public;)..
NOTE that the erroneus scope valued weapons still work fine and errorless when previewing in the editor, but not when the mission is exported as SP/MP mission...

Also, if the weapon pack has a custom throw weapon it will most likely cause errors as it's some sort of OFP bug that you can't use custom throw class...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Doolittle

  • Contributing Member
  • **
  • _this select 0
Re:"Cannot load mission" msg for weapons?
« Reply #2 on: 17 Oct 2005, 10:07:22 »
Hmmm, interesting!

What tells OFP to include an addon as being required to run a map?  I guess if you put a BRDM on the map, then it says you need addon "BRDM", but what if you have a solder from the ARMY pbo and that soldier uses weapons from UP_WW2.  The map editor will put that it needs "ARMY" addon, but not that you need UP_WW2.  So you get the error.

*OR* if you add weapons to a SoldierWB player from UP_WW2 via the Initialization line in the map editor, it won't say you need the weapon pbo until in the game itself....giving you the above error message.  And I can't tell OFP the user "needs" UP_WW2 pbo... or rather, I don't know how to get it to do that.  I know you should have RequiredAddons in the ARMY addon.. but what if you're a map maker, not an addon guy...so I just use people's addons, I don't make them.  I have to deal with any errors however I can.

Doolittle

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:"Cannot load mission" msg for weapons?
« Reply #3 on: 17 Oct 2005, 12:34:15 »
Quote
What tells OFP to include an addon as being required to run a map?
requiredAddOns, as you say, would solve the issue most likely, but not with the throw class...

And not with the addWeapon/addMagazine situ..

And yes, it is quite annoying because you really can't do anything about it as a mission maker.. :(
Other than state very clearly in the readMe (so that people will notice it) that the mission gives this error and there's nothing you can do about it, but the mission works just fine...


I happen to have some version of this addon in question and I've gone through the config and found at least the following error:
Quote
   class UP_BARBase:Riffle
   {
      displayName = BAR;
      displayNameMagazine=BAR Magazine";
      shortNameMagazine="BAR Mag";

      scopeWeapon = public;
      scopeMagazine = public;
      model="\UP_WW2\BAR\bar.p3d";
      modelOptics="optika_m16";
                picture="\UP_WW2\PICS\bar.paa";
      optics = true;
      opticsZoomMin=0.35;
      opticsZoomMax=0.35;
                count=20;
      ammo="UP_RAmmo";
      magazines[]={"UP_BARmag"};
      reloadMagazineSound[]={\UP_WW2\SOUND\BARReload.ogg,0.0316,1};
      modes[]={"FullAuto"};


   class FullAuto

   {

   ammo="UP_RAmmo";
   multiplier=1;
   burst=1;
   dispersion=0.0015;
   displayName="BAR Auto";
   sound[]={"\UP_WW2\SOUND\BARFire.wav",3.162278,1};
   soundContinuous=0;
   reloadTime=0.17;
   ffCount=30;
   recoil="riffleBurst3";
   autoFire=1;
   aiRateOfFire=5.000000;
   aiRateOfFireDistance=200;
   useAction=0;
   useActionTitle="";
      };
};
A missing "
Dunno if that has any meaning on the issue at hand though...
This same error is in few other weapon classes (in that config) as well...
Although it might be that OFP doesn't really register the addon due to the missing quote marks...

Anyway, I fixed those few missing quotes and tried the addon in-game and did not get any such missing addon errors..
Neither in editor or in SP mission...

The addWeapon/addMagazine also worked, and added the up_ww entry in the AddOns list of the mission.sqm...
What I did was I used the initline of a soldier to add a weapon and a mag and then previewed the 'mission' before saving it...
Doing that tells OFP it needs the weapon addon...

Can't really think of anything else atm...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Doolittle

  • Contributing Member
  • **
  • _this select 0
Re:"Cannot load mission" msg for weapons?
« Reply #4 on: 18 Oct 2005, 01:56:15 »
You didn't have to go to all that work.

I just now modified a mission.sqm and put up_ww2 in there:
   addOns[]= {"blah","up_ww2"};
   addOnsAuto[]={"blah"};

This fixed it!!  But it just made it go onto the next mission addon.  :o I kept going down the list, getting a diff. error message each time I added one...."up_ww2", "hungarian_army","britishweapons"..so I just gave up and accepted the fact that the error message shows up.

Doolittle

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:"Cannot load mission" msg for weapons?
« Reply #5 on: 18 Oct 2005, 09:47:48 »
That's too weird just to be accepted :P
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:"Cannot load mission" msg for weapons?
« Reply #6 on: 20 Oct 2005, 23:08:00 »
That's a known issue guys, a workaround (besides the
manual editing of miss.sqm) is to place an object from that
addon itself onto the map which you can then deleteVehicle
at the start of the mission.

Off course if it's a weaponpack which doesn't feature pre-equip'ed
units you can't do anything but the manual editing.  ;)

This error message doesn't always depend on an addon maker's
mistake HateR_Kint

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:"Cannot load mission" msg for weapons?
« Reply #7 on: 21 Oct 2005, 00:34:00 »
I don't get the error with the UP WW2 weapons...

I have only seen that error with some beta missions in which the addon was really missing, with some FDF Mod mission which complained about missing bis BMP2 and some missions complaining about the missing addons BIS_resistance...

And of course with my own stuff I have assed up completely ::)
« Last Edit: 21 Oct 2005, 00:34:33 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:"Cannot load mission" msg for weapons?
« Reply #8 on: 21 Oct 2005, 01:36:44 »
The missing UP_WW2 weapons comes from the addon not
being in the mission itself (i mean UP_WW2), but another
addon being manually equipped by script or init-field.

Just in case Doolittle that you are talking about your own
addon soldier who you want to equip with UP_WW2 weapons,
i think even there could be a way to solve.

Inside an addon's config there's also a line with:

addonsRequired (don't get me for the right syntax now as i'm at
work and can't check it out)

usually you gonna find in there "bis_Resistance" as most
of the current addons are made for resistance.

You should find the line in class cfg patches or so

There should be included UP_WW2 and then it should work.

But i doubt that Doolittle is talking about his own addon, but
about an addon he's using in one of his missions as he's a
mish-maker  ;)

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted