Jump to content
DreamRebel

Help with assembleinfo.scope error...

Recommended Posts

Hey,

There is 1 error in my config which I can't fix. I've tried everything I could think of but still it isn't solved.

Anyone knows how to fix this error: "No entry 'config.bin/CfgVehicles/assembleInfo.scope'"? :(

I can't release my mod unless I fix this error. It's caused by a UAV Backpack. I've made a new one because the small UAV had a diffrent texture.

Config:

class CfgVehicles {

   class UAV_01_base_F;
   class B_UAV_01_backpack_F;
   class assembleInfo;

               class ASTR_UAV_01_F: UAV_01_base_F {
               _generalmacro = "ASTR_UAV_01_F";
               accuracy = 0.5;
               author = "DreamRebel";
               crew = "O_UAV_AI";
               displayname = "Tayran AR-2";
               faction = "ASTR";
               hiddenselectionstextures[] = {"ASTR\Data\ASTR_Quadcopter.paa"};
               scope = 2;
               side = 0;
               typicalcargo[] = {"O_UAV_AI"};
               class assembleInfo {
               assembleto = "";
               base = "";
               displayname = "";
               dissasembleto[] = {"ASTR_UAV_01_backpack_F"};
               primary = 1;
       };
       };

               class ASTR_UAV_01_backpack_F: B_UAV_01_backpack_F {
               _generalmacro = "ASTR_UAV_01_backpack_F";
               author = "DreamRebel";
               faction = "ASTR";
               hiddenselectionstextures[] = {"\A3\Drones_F\Weapons_F_Gamma\Ammoboxes\Bags\data\UAV_backpack_cbr_co.paa"};
               picture = "\A3\Drones_F\Weapons_F_Gamma\ammoboxes\bags\data\ui\icon_B_C_UAV_cbr_ca";
               side = 0;
               class assembleInfo: assembleInfo {
               assembleto = "ASTR_UAV_01_F";
               base = "";
               displayname = "Tayran AR-2";
       };
       };
};

I appreciate all help I can get! :)

Regards,

Jeremy

Share this post


Link to post
Share on other sites

Now dont quote me on this, im pretty sure i could be wrong but i think i have a good idea why its throwing that error;
Note how the error says "assembleInfo.scope", which means you have tried changing a value that doesnt exist or to a value that isnt supported.

try changing your code from;
 

hiddenselectionstextures[] = {"ASTR\Data\ASTR_Quadcopter.paa"};
scope = 2;
side = 0;



to remove;

 

hiddenselectionstextures[] = {"ASTR\Data\ASTR_Quadcopter.paa"};
// scope = 2; - Scope may not be supported in assembleInfo, try removing it as it is what is causing you problems :3
side = 0;

PS - i know this is a bit late, but i hope this helps others

Share this post


Link to post
Share on other sites

Its because you're referencing

class assembleInfo;

as an external class, when its a sub-class definition.

 

Try the following (not tested):

class CfgVehicles
{
	class UAV_01_base_F;
	class B_UAV_01_backpack_F
    {
		class assembleInfo;
    };

 

If that doesn't work, try:

class CfgVehicles 
{
	class UAV_01_base_F;
   	class B_UAV_01_backpack_F;

	class ASTR_UAV_01_F: UAV_01_base_F 
	{
		_generalmacro = "ASTR_UAV_01_F";
		accuracy = 0.5;
		author = "DreamRebel";
		crew = "O_UAV_AI";
		displayname = "Tayran AR-2";
		faction = "ASTR";
		hiddenselectionstextures[] = {"ASTR\Data\ASTR_Quadcopter.paa"};
		scope = 2;
		side = 0;
		typicalcargo[] = {"O_UAV_AI"};

		class assembleInfo 
		{
			assembleto = "";
			base = "";
			displayname = "";
			dissasembleto[] = {"ASTR_UAV_01_backpack_F"};
			primary = 1;
		};
	};

	class ASTR_UAV_01_backpack_F: B_UAV_01_backpack_F 
	{
		_generalmacro = "ASTR_UAV_01_backpack_F";
		author = "DreamRebel";
		faction = "ASTR";
		hiddenselectionstextures[] = {"\A3\Drones_F\Weapons_F_Gamma\Ammoboxes\Bags\data\UAV_backpack_cbr_co.paa"};
		picture = "\A3\Drones_F\Weapons_F_Gamma\ammoboxes\bags\data\ui\icon_B_C_UAV_cbr_ca";
		side = 0;
		class assembleInfo
		{
			assembleto = "ASTR_UAV_01_F";
			base = "";
			displayname = "Tayran AR-2";
		};
	};
};

EDIT: Just noticed the OP is from 2015, god damn you @AirsoftArmoury15_97 for necro'ing the thread :face_palm:

 

 

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

×