Jump to content
Sign in to follow this  
Unchained

Error when binarizing (Expected classname)

Recommended Posts

Greetings everyone,

I'm having a serious issue with an addon I'm developing, I'm calling vehicle classes in the config file and when I binarize (Using Mikero Eliteness) the config file, it fails mentioning that in certain line of the code, there's an "expected class name", to which I go and check if I'm not following the correct bottom-up dependency of vehicles...

Another thing is that I followed the ladder of dependencies accordingly to the config files I got them from, I've checked inside the original A3 pbo's to follow the order or everything just to make sure it calls the vehicles I want without changing any values from the game itself, I've done that in order to create my own vehicle classes referencing to BIS classes and just changing a few values I want changed, so far the Infantry part was excellent but once I started doing it on vehicles things went south, it's like if I define too much classnames that are actually calling BIS units for some reason, it will end up giving me that error, and I can't find it, I tried removing chunks of code (First the trucks code, then the Quad, and finally the MRAP part of coding, to which I got successful binarizing after removing all 3), but if I leave any of the 3 defined vehicles (Either the MRAP, or the Quad and/or Trucks) alone in the config file, it just won't work.

So here's what I've coded so far in that part:

(Inside cfgVehicles)

class Car_F;
class MRAP_01_base_F: Car_F
class MRAP_01_gmg_base_F: MRAP_01_base_F
class MRAP_01_hmg_base_F: MRAP_01_gmg_base_F

class B_MRAP_01_F: MRAP_01_base_F
class B_MRAP_01_gmg_F: MRAP_01_gmg_base_F
class B_MRAP_01_hmg_F: MRAP_01_hmg_base_F

class MRA_US_OCP_MRAP: B_MRAP_01_F
{
	scope = 2;
	displayName = "MRAP (Unarmed)";
	crew = "MRA_USA_OCP_Rifleman_Light";
	side = 1;
	faction = "MRA_US_OCP";
};
class MRA_US_OCP_MRAP_GMG: B_MRAP_01_gmg_F
{
	scope = 2;
	displayName = "MRAP (GMG)";
	crew = "MRA_USA_OCP_Rifleman_Light";
	side = 1;
	faction = "MRA_US_OCP";
};
class MRA_US_OCP_MRAP_HMG: B_MRAP_01_hmg_F
{
	scope = 2;
	displayName = "MRAP (HMG)";
	crew = "MRA_USA_OCP_Rifleman_Light";
	side = 1;
	faction = "MRA_US_OCP";
};

class Quadbike_01_base_F: Car_F
class B_Quadbike_01_F: Quadbike_01_base_F

class MRA_US_OCP_QuadBike: B_Quadbike_01_F
{
	scope = 2;
	displayName = "Quad Bike";
	crew = "MRA_USA_OCP_Rifleman";
	side = 1;
	faction = "MRA_US_OCP";
};

class Truck_F: Car_F
class Truck_01_base_F: Truck_F
class B_Truck_01_transport_F: Truck_01_base_F
class B_Truck_01_covered_F: B_Truck_01_transport_F
class B_Truck_01_mover_F: B_Truck_01_transport_F
class B_Truck_01_box_F: B_Truck_01_mover_F
class B_Truck_01_Repair_F: B_Truck_01_mover_F
class B_Truck_01_ammo_F: B_Truck_01_mover_F
class B_Truck_01_fuel_F: B_Truck_01_mover_F
class B_Truck_01_medical_F: B_Truck_01_transport_F

class MRA_US_OCP_HEMTT_Transport: B_Truck_01_transport_F
{
	scope = 2;
	displayName = "HEMTT Transport (Uncovered)";
	crew = "MRA_USA_OCP_Rifleman_Light";
	side = 1;
	faction = "MRA_US_OCP";
};
class MRA_US_OCP_HEMTT_Covered: B_Truck_01_covered_F
{
	scope = 2;
	displayName = "HEMTT Transport (Covered)";
	crew = "MRA_USA_OCP_Rifleman_Light";
	side = 1;
	faction = "MRA_US_OCP";
};
class MRA_US_OCP_HEMTT_Mover: B_Truck_01_mover_F
{
	scope = 2;
	displayName = "HEMTT Truck (Trailer)";
	crew = "MRA_USA_OCP_Rifleman_Light";
	side = 1;
	faction = "MRA_US_OCP";
};
class MRA_US_OCP_HEMTT_Box: B_Truck_01_box_F
{
	scope = 2;
	displayName = "HEMTT Truck (Container)";
	crew = "MRA_USA_OCP_Rifleman_Light";
	side = 1;
	faction = "MRA_US_OCP";
};
class MRA_US_OCP_HEMTT_Repair: B_Truck_01_Repair_F
{
	scope = 2;
	displayName = "HEMTT Truck (Repair)";
	crew = "MRA_USA_OCP_Rifleman_Light";
	side = 1;
	faction = "MRA_US_OCP";
};
class MRA_US_OCP_HEMTT_Ammo: B_Truck_01_ammo_F
{
	scope = 2;
	displayName = "HEMTT Truck (Ammo)";
	crew = "MRA_USA_OCP_Rifleman_Light";
	side = 1;
	faction = "MRA_US_OCP";
};
class MRA_US_OCP_HEMTT_Fuel: B_Truck_01_fuel_F
{
	scope = 2;
	displayName = "HEMTT Truck (Fuel)";
	crew = "MRA_USA_OCP_Rifleman_Light";
	side = 1;
	faction = "MRA_US_OCP";
};
class MRA_US_OCP_HEMTT_Medical: B_Truck_01_medical_F
{
	scope = 2;
	displayName = "HEMTT Truck (Medical)";
	crew = "MRA_USA_OCP_Rifleman_Light";
	side = 1;
	faction = "MRA_US_OCP";
};

Any ideas what could this be? I have the slight fear I may find this error when I try packing up tanks/helicopters/static/Ship or Submarine...

PS: I'm Using Notepad++ to work on this, saved the file as a .cpp file so it will check it as a C++ file, that makes me a little bit more frustrated since everything is well spaced, I'm not missing {} or [] or () or "" since Notepad++ places it for you and if you type it twice it will remove the double, saving you those kinds of problems.

Thanks in advance!

Share this post


Link to post
Share on other sites

I use Mikero's Eliteness instead of the console addonproject to binarize and pack the pbo.

How can I get the log from pboproject?

Update 06/15/2015:

I found out the error was naming too many of BIS base units, it was not necessary, moderators, please close this thread.

Edited by LT. Drake Jackson
Problem solved!

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  

×