Jump to content
Sign in to follow this  
Shim13

Problem with addon config

Recommended Posts

Hi, I have just recently started to dabble in addons and I have run into a snag. I have made a new infantry model based off the BI example model. The skeleton and and such are the same, so all I had to do is reference the game soldier (at least that's my reasoning).

But right now my main issue is getting the thing to show up in the editor. It's nowhere in the menus for units. I believe that this could be a problem with my config. I would really appreciate any help on the matter.

-please disregard the blank entries. I plan to input values later, but right now I'm more concerned with getting the model in game for test.

class CfgPatches {
class SW_Trooper {
	units[] = {"sw_inf_storm"};
	weapons[] = {};
	requiredVersion = 1.0;
	requiredAddons[] = {"CACharacters"};
};
};

class CfgFactionClasses {
class SW {
	displayName = SW;
	priority = 1;
	side = TWest;
};
};

class CfgVehicleClasses {
class SW_Trooper {
	displayName = "Trooper";
};
};

class CfgVehicles {
class Man;	// External class reference

class CAManBase : Man {
	class TalkTopics;	// External class reference

	class HitPoints {
		class HitHead;	// External class reference
		class HitBody;	// External class reference
	};
};

class SoldierWB : CAManBase {
	class TalkTopics : TalkTopics {};
};

class SW_Trooper_Base: SoldierWB {
	side = Twest;
	indentityTypes = ;
	faceType = ;
	model = "\shim_sw\test.p3d";
	portrate = ;
	picture = ;
	icon = ;
	scope = private;
	faction = SW;
	vehicleClass = "SW_Trooper";
	cost = 80000 ;
	camouflage = ;
	accuracy = ;
	genericNames = ;

	class HitPoints : HitPoints {
		class HitHead : HitHead {
			armor = 0.85;
		};

		class HitBody : HitBody {
			armor = 1;
			passThrough = 0.8;
		};
	};

	class TalkTopics : TalkTopics {
		core_en = "Core_Full";
	};
	languages[] = {"EN"};

	class Wounds {
		tex[] = {};
		mat[] = {};
	};
};

class sw_inf_storm : SW_Trooper_Base {
	vehicleClass = "SW_Trooper";
	displayName = "T-142";
	scope = public;
	side = TWest;
	model = "\shim_sw\test.p3d";
	picture = ; 
	Icon = ;
	weapons[] = {};
	magazines[] = {};
};
};

Share this post


Link to post
Share on other sites

I found the problem. I was using BinPBO and it wasn't packing it right. I don't know why. CPBO works good though.

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  

×