Jump to content

Sign in to follow this  
PHAL13

Error when trying to retexture a unit

Recommended Posts

Hi guys, I'm new to re-texturing and have tried to get my new re-textures to work in game, but for the life of me I can not. I get an error when trying to pack the pbo "Error in config p:\myprojects\emtclothing\config.cpp"

My config looks something like this

  Reveal hidden contents

Where am I going wrong?! Thanks in advance

PHAL

Edited by PHAL13

Share this post


Link to post
Share on other sites
  PHAL13 said:

class CfgPatches {

class {emt_uniform} { // Here's your error

units[] = {};

weapons[] = {};

requiredVersion = 0.1;

requiredAddons[] = {"A3_Characters_F_BLUFOR"};

};

};

You can check the BinPbo Log in your addon folder for detailed explanation.

Edited by mp5gosu

Share this post


Link to post
Share on other sites
  PHAL13 said:

class CfgPatches {

class {emt_uniform} {

units[] = {};

weapons[] = {};

requiredVersion = 0.1;

requiredAddons[] = {"A3_Characters_F_BLUFOR"};

};

};

to something like

  Reveal hidden contents
Edited by captainclaw

Share this post


Link to post
Share on other sites

awesome so that worked great, problem now is that once i've packed the pbo and loaded it in game, I cant get it on the character...

i've been playing around with the initialization commands, should it be looking like this?

  Reveal hidden contents

pbo log file

  Reveal hidden contents

aaaaand my guys invisible!

http://iforce.co.nz/i/4vtvnywo.lxw.jpg (262 kB)

*confused*

Edited by PHAL13

Share this post


Link to post
Share on other sites

yeah it does the same thing if I'm only using "this adduniform "emt_uniform";"

Share this post


Link to post
Share on other sites

Current config for hollowman!

  Reveal hidden contents

am getting an error concerning \A3\Characters_F\Common\Suitpacks\suitpack_blufor _diver.p3d not found

Edited by PHAL13

Share this post


Link to post
Share on other sites

*deleted

This Forum inserts spaces before underscores? o0

If you copy/pasted from this forum, make sure, you don't have any spaces in the model definitions. Best, you use http://pastebin.com/ for pasting your config.

Edited by mp5gosu

Share this post


Link to post
Share on other sites
  mp5gosu said:
*deleted

This Forum inserts spaces before underscores? o0

If you copy/pasted from this forum, make sure, you don't have any spaces in the model definitions. Best, you use http://pastebin.com/ for pasting your config.

Best to use the [NoParse]


[/NoParse] tags instead of [NoParse]

[/NoParse] tags.

Try this config.

enum {
   destructengine = 2,
   destructdefault = 6,
   destructwreck = 7,
   destructtree = 3,
   destructtent = 4,
   stabilizedinaxisx = 1,
   stabilizedinaxesxyz = 4,
   stabilizedinaxisy = 2,
   stabilizedinaxesboth = 3,
   destructno = 0,
   stabilizedinaxesnone = 0,
   destructman = 5,
   destructbuilding = 1
};

class CfgPatches 
{
class emt_uniform
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Characters_F_BLUFOR"};
};
};

class CfgVehicles
{
class B_Soldier_base_F;

class cl3_emt_unit : B_Soldier_base_F // edited your classname
{
	_generalMacro = "B_Soldier_F";
	scope = 2;
	displayName = "emt_uniform";
	nakedUniform = "U_BasicBody";
	uniformClass = "cl3_emt_uniform"; // Points to uniform class
	hiddenSelections[] = {"Camo"};
	hiddenSelectionsTextures[] = {"P:\MyProjects\emtclothing\Data\emt_uniform.paa"}; //Should be "yourPboName\data\emt_uniform_co.paa"
	// Save your paa with the _co suffix (emt_uniform_co.paa)
};

};

class cfgWeapons
{
class Uniform_Base;
class UniformItem;

class cl3_emt_uniform : Uniform_Base
{
	scope = 2;
	displayName = "emt_uniform";
	picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa";
	model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";

	class ItemInfo : UniformItem 
	{
		uniformModel = "-";
		uniformClass = "cl3_emt_unit"; //Points back to a unit using the uniform
		containerClass = "Supply20";
		mass = 80;
	};
};
};

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  

×