Jump to content
Sign in to follow this  
PRiME

bas_repair.pbo

Recommended Posts

Just wanna know if anyone knows the issue with this addon file?

You know what im talking about, the missing addon "bas_repair" BS, I have poked at the config.cpp for hours at end to find no solution at all, this issue is related to this addon alone, no other addon has anything referencing to bas_repair at all.

Copy of config.cpp below:

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

// some basic defines

#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

#define true 1

#define false 0

// type scope

#define private 0

#define protected 1

#define public 2

class CfgPatches

{

class bas_repairh

{

units[] = {bas_repairHW,bas_repairHE,bas_repairHR};

weapons[] = {};

requiredVersion = 1.90;

};

};

class CfgVehicles

{

class All {};

class Static: All {};

class Building: Static {};

class NonStrategic : Building {};

class HeliH : NonStrategic {};

class bas_repairHW : HeliH

{

scope = public;

side = 1;

model = "Heli_H";

displayName="RepairH-W";

vehicleClass="BAS - Misc";

icon="\bas_repair\basrepairiW.paa";

nameSound="helipad";

accuracy=0.20;

typicalCargo[]={};

transportAmmo = 100000;

transportRepair = 100000;

transportFuel = 2000;

mapSize = 9.8;

cost=0;

armor=200;

class EventHandlers

{

init = "[_this select 0] exec {\bas_repair\1west.sqs}";

};

};

class bas_repairHE : bas_repairHW

{

scope = public;

side=0;

model = "Heli_H";

displayName="RepairH-E";

vehicleClass="BAS - Misc";

icon="\bas_repair\basrepairiE.paa";

nameSound="helipad";

accuracy=0.20;

typicalCargo[]={};

transportAmmo = 100000;

transportRepair = 100000;

transportFuel = 2000;

mapSize = 9.8;

cost=0;

armor=200;

class EventHandlers

{

init = "[_this select 0] exec {\bas_repair\1east.sqs}";

};

};

class bas_repairHR : bas_repairHW

{

scope = public;

side=2;

model = "Heli_H";

displayName="RepairH-R";

vehicleClass="BAS - Misc";

icon="\bas_repair\basrepairiR.paa";

nameSound="helipad";

accuracy=0.20;

typicalCargo[]={};

transportAmmo = 100000;

transportRepair = 100000;

transportFuel = 2000;

mapSize = 9.8;

cost=0;

armor=200;

class EventHandlers

{

init = "[_this select 0] exec {\bas_repair\1resi.sqs}";

};

};

class AllVehicles:All{};

class Air: AllVehicles{};

class Helicopter: Air{};

class Cobra: Helicopter {};

class bas_cobra_a: Cobra

{

accuracy=5;

vehicleClass="BAS - Vehicles";

displayName="AH-1 Cobra (A)";

};

class AH64: Helicopter {};

class bas_ah64_a: AH64

{

accuracy=5;

vehicleClass="BAS - Vehicles";

displayName="AH-64 Apache (A)";

};

class Mi24: Helicopter {};

class bas_mi24_a: Mi24

{

accuracy=5;

vehicleClass="BAS - Vehicles";

displayName="Mi24 (A)";

armor=50;

threat[]={0.6, 1, 0.4};

};

class Mi17: Helicopter {};

class bas_mi17_a: Mi17

{

accuracy=5;

vehicleClass="BAS - Vehicles";

displayName="Mi17 (A)";

};

};

};

I can only suspect it may be caused by it missing a certain class that should be defined, thats all I can guess atm. This issue only appears on dedicated servers btw, and appears to go away if addon is moved into the root addon folder but that is no good as the annoying error message still pops up.

Share this post


Link to post
Share on other sites

Putting "requiredAddons[] = {ah64};" into the cfgpatches section should fix it.

Share this post


Link to post
Share on other sites

Avon, must be blind, never did find that link.

Share this post


Link to post
Share on other sites

Stick the addon in your regular addon folder. If you got a new release of Flashpoint you might not have one therefore make a folder in your OFP directory and call it Addons. Put that addon in that fold and you will never get that error again. There are a couple of other addons that give the same problem...i.e. skidoo

Share this post


Link to post
Share on other sites

Alright alright, its all good,.

Thanks for benu for pointing me in the right direction, as you may have known I wanted the solution for this problem which benu gave so now I have fixed several addons that had this issue,. ;)

Share this post


Link to post
Share on other sites

this could be a good thing to do, to fix older defective addons as the skidoo, kegetys revolvers and a few more, maybe authors permitting we could post a few fixes to "defective" configs?

Share this post


Link to post
Share on other sites
Alright alright, its all good,.

Thanks for benu for pointing me in the right direction, as you may have known I wanted the solution for this problem which benu gave so now I have fixed several addons that had this issue,. ;)

Yeah, i fix those addons where i notice errors on our server too. And players downloading those addons with ofp watch will get the fixed versions. There have been several of those "broken" addons around. You notice them pretty quickly in mp, people using them will display warning messages when going to the briefing screen.

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  

×