Jump to content
Sign in to follow this  
eagledude4

What's wrong with my config?

Recommended Posts

Every time I load a mission with my addon, I get "cannot open object bc_helepad\bc_helepad.p3d". Note: My .Pbo only has one bc_helepad folder inside. The bc_helepad folder inside the .pbo file contain: $PBOPREFIX$, bc_helepad, model.cfg and config.cpp.

/*
Generated by `Laza`(c)Flea 2007
mailto: flea_jump`at`mail.ru
*/

enum {
};

class CfgPatches 
{

class BC_Buildings
{
	units[] = {"bc_helepad"};
	weapons[] = { };
	requiredAddons[] = { };
	requiredVersion = 1;
};
};

class CfgVehicleClasses 
{

class BC_Buildings 
{
	displayName = "Bay City Buildings";
};
};

class CfgVehicles 
{

class NonStrategic ;

class bc_helepadBASE : NonStrategic
{
	scope = 0;
	vehicleClass = "BC_Buildings";
	side = 3;
	armor = 3000;
	cost = 600;
	accuracy = 1000;
	destrType = 1;
	mapSize = 5;
};

class Land_bc_helepad : bc_helepadBASE
{
	scope = 2;
	displayName = "Hele Pad";
	model = "\bc_helepad\bc_helepad.p3d";
};
};

My addon is not animated or textured (in the testing stages), so I'm trying to use the bare minimum classes. The model isn't the issue, because I tried swapping the models as well.

Also, what armor value do I use to make my object indestructible?

---------- Post added at 15:16 ---------- Previous post was at 14:31 ----------

I threw this config.cfg file in. and the error still persists.

class CfgSkeletons {

   class Default {
	isDiscrete = 1;
	skeletonInherit = "";
	skeletonBones[] = {};
};
;


class CfgModels {

   class rotation;
class Default;
       sectionsInherit="";
       sections[]={};
       skeleton="";

       class Animations {};
};
};

Edited by eagledude4

Share this post


Link to post
Share on other sites

whats in $PBOPREFIX$?

what tool do you use to pack it to pbo?

Share this post


Link to post
Share on other sites
whats in $PBOPREFIX$?

what tool do you use to pack it to pbo?

bc_helepad is in the prefix, and i use Eliteness to pack the pbo.

From looking at my config.cpp and model.cfg, does everything look okay?

Edited by eagledude4

Share this post


Link to post
Share on other sites

well the model.cfg has some issues, but that should not cause that error.

can you upload your full pbo to let us analyze it?

Share this post


Link to post
Share on other sites
well the model.cfg has some issues, but that should not cause that error.

can you upload your full pbo to let us analyze it?

I decided to use BinPbo to binarize my pbo files, but I am unsure how to use the application. Can I get a quick tutorial on how to binarize the addon properly? When I pack the .pbo using BinPbo, I use the folder with config.ccp and bc_helepad.p3d inside as my addon source directory. I also have Binarize checked. When I do that however, It places a copy of my source directory inside itself...

EDIT: After a long while of experimentation, I managed to get a new error in regards to a missing texture (that doesn't exist in my sketchup model).

So I guess this is no longer a scripting issue but a modelling issue.

Anyway, here's the file: http://www.mediafire.com/?cd1q8abrt83jbu0

Edited by eagledude4

Share this post


Link to post
Share on other sites

Also, in another addon, I'm not getting any errors in the editor, but when I load in, the vehicle isn't there.

EDIT: I changed the name of the class, and now it crashes when I try and load it.

class CfgVehicleClasses {
class BCPD_Vehicles_Air {
	displayName = "BCPD Air Vehicles";
};
};

class CfgFactionClasses {
class BCPD {
	displayName = "BCPD";
	priority = 100;
	side = TWest;
};
};

class CfgVehicles {
class Helicopter;	// External class reference

class BCPD_Heli_Base : Helicopter {
	class NewTurret;	// External class reference
	irScanRangeMin = 500;
	irScanRangeMax = 8000;
	class ViewPilot;	// External class reference
	class AnimationSources;	// External class reference
	class Sounds;	// External class reference
	class Engine;	// External class reference
	class RotorLowOut;	// External class reference
	class RotorHighOut;	// External class reference
	class EngineIn;	// External class reference
	class RotorLowIn;	// External class reference
	class RotorHighIn;	// External class reference
};

       class BCPD_Heli : BCPD_Heli_Base {
	vehicleClass = "BCPD_Vehicles_Air";
	model = "\bc_pdheli\Models\Bell206";
	displayName = "Bell 206 III PD";
	icon = "\bc_pdheli\BelljetICN.paa";
	scope = public;
	side = TWest;
	faction = "BCPD";
	extCameraPosition[] = {0, 2.5, -20};
	armor = 30;
	cost = 10000000;
	maxSpeed = 320;	// max speed on level road, km/h
	crew = "USMC_Soldier_Pilot";
	mainRotorSpeed = 1;
	backRotorSpeed = -1.8;
	driverAction = "AH6_Pilot";
	cargoIsCoDriver[] = {1};
	cargoAction[] = {"AH6_Pilot", "UH60_Cargo02", "UH60_Cargo02", "UH60_Cargo02", "UH60_Cargo02"};
	transportSoldier = 3;
	typicalCargo[] = {"SoldierG", "SoldierG", "SoldierGAT", "SoldierGAT"};
	weapons[] = {};
	magazines[] = {};
	transportMaxWeapons = 1000;
	transportMaxMagazines = 5000;
	hasGunner = true;
	damageResistance = 0.00593;

Edited by eagledude4

Share this post


Link to post
Share on other sites

If you use binpbo, you need either a working p-drive or set the prefix in binpbo yourself (bc_helepad).

The $PboPrefix$/PboPrefix.txt is only read by community tools.

Share this post


Link to post
Share on other sites
If you use binpbo, you need either a working p-drive or set the prefix in binpbo yourself (bc_helepad).

The $PboPrefix$/PboPrefix.txt is only read by community tools.

I disagree. I just got an addon working ingame without using the p-drive.

Share this post


Link to post
Share on other sites

But your not using the BI provided BinPBO tool right, so his point is still valid.

And Yes, it is possible to get an addon working without the tool or P drive .... but

Theres a very high probability by not using BinPBO and instead using one of the other community tools, there still remains a bunch of problems with your addon.

Share this post


Link to post
Share on other sites
Gnat;2217484']But your not using the BI provided BinPBO tool right' date=' so his point is still valid.

And Yes, it is possible to get an addon working without the tool or P drive .... but

Theres a very high probability by not using BinPBO and instead using one of the other community tools, there still remains a bunch of problems with your addon.[/quote']

I am using BInPbo, though.

Share this post


Link to post
Share on other sites

?!

Well, I stand corrected.

But thats like trying to run Windows7 on an iPad .... you know something going to fail badly eventually ....

Share this post


Link to post
Share on other sites

eagledude4 did you notice the "or" in the sentence?

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  

×