Home   Help Search Login Register  

Advertisement

Author Topic: Configs for re-skined units  (Read 6276 times)

0 Members and 1 Guest are viewing this topic.

Offline modEmMaik

  • Members
  • *
Re: Configs for re-skined units
« Reply #15 on: 02 May 2009, 12:10:08 »
I am not an expert to characters, but it seems that those units get animated via .rtm's only (the model.cfg includes not animations, as far as I have analyzed this).

So you may check the animations, using a rtm-file (e.g. ca/wheeled/data/anim/xxx.rtm) an load this into O2 (Animations window) for all LODs (right click into the animations window pos up a menu).

plus: Have you checked the model.cfg for a correct bone structure and the assignment to the .p3d's name.

e.g.:
Code: [Select]
class CfgModels
{
class Default;
...
class ArmaMan : Default
{
sections[] =
{
    "osobnost","Head_Injury","Body_Injury","l_leg_injury","l_arm_injury","r_arm_injury","r_leg_injury",
    "clan"
};
  skeletonName = "OFP2_ManSkeleton";
};

class SL_medic: ArmaMan {};

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Configs for re-skined units
« Reply #16 on: 03 May 2009, 01:31:52 »
I don't have a model.cfg. I assume this is important.

Some research tells me that the classname has to be the same name as the model (sl_medic) as you have there. So will play around and see if I achieve anything from it.

Thanks for the reply.

Edit: OK, here's error message I got. Not sure on the syntax used in config's i'm afraid, so not sure what's wrong.
Code: [Select]
class CfgModels
{
class All{};
class AllVehicles: All{};
class Land: AllVehicles{};
class Man: Land{};
class CAManBase: Man{};
class Civilian: CAManBase{}; // extend class
{
sections[] =
{
    "osobnost","Head_Injury","Body_Injury","l_leg_injury","l_arm_injury","r_arm_injury","r_leg_injury", "clan"
};
  skeletonName = "OFP2_ManSkeleton";
};

class SL_medic: Civilian {};
};
« Last Edit: 03 May 2009, 18:01:59 by JasonO »

Offline modEmMaik

  • Members
  • *
Re: Configs for re-skined units
« Reply #17 on: 03 May 2009, 22:19:53 »
Too many brackets  :)

Code: [Select]
class Civilian: CAManBase{}; // extend class
{
...
correct (I hope...)
Code: [Select]
class Civilian: CAManBase
{
...

But I think that this alternative should work, too:
Code: [Select]
class Civilian;
class SL_medic: Civilian {};

But the model.cfg should include class CfgSkeletons and class CfgModels. class CfgModels is config.cpp.

I just located an old model.cfg for a soldier, but I am not 100% sure if this works: Pastebin model.cfg BISoldier
The bones should be the same, just add
Code: [Select]
class SL_medic: ArmaMan{};
to link it to your SL_medic.p3d instead of the BISoldier
« Last Edit: 03 May 2009, 22:27:50 by modEmMaik »