OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: US-Marine on 12 Feb 2005, 21:16:39
-
I have made some new Soldiers but there are some problems
first: All have the same face
and the otherone: All have these Medicsign but noone is a medic
and the last: My medic dosn't appear in the Game
hope you know more :P
-
1. as the base for your models you probably took a ofp demo model in mlod format, downloaded from swissmod or Ktotte's homepage, am i right???
for some reasons, they don'T have a named selection that ofp needs to manage the application of different face textures. this selection is named 'osobnost' (don't ask me what it means in english/german - but i know there's that list around....)
so what you have to do is to select the parts of the head and the hands which have a face texture and name it osobnost.
the easier way might be copy/paste the head of BIS mlod sample soldier model, but you have to insert it for every LOD and eventually adjust the position of the head.
link to the sample model pack on ofp.info (http://ofp.gamezone.cz/index.php?showthis=6267) (engl. cookies.)
2. why don't you simply delete the medic patch in o2 ? if you use that demo soldier models inserting 'hiddenselections[] = {"medic"'}; into the config should help cos afaik that was the name of the patch selection.
3. no idea. any error messages? sounds like a config prob. -> post it here!
-
Thanks now it works :)
but the medic didn't appear in game , there are no errormessages but i have a medic configurated in the config
-
post your config here. that would simplify the situation a lot.
-
class CfgPatches
{
   class BW_Riflemen
   {
      units[]={
            Rifleman_G36,
            Rifleman_MP5A2,
            Rifleman_MP5,
            Rifleman_P90,
      };
      Vehicles[] = {};
      Weapons[] = {};
      RequiredVersion = 1.91;
   };
};
class CfgVehicles
{
   class All {};
   class AllVehicles: All {};
   class Land: AllVehicles {};
   class Man: Land {};
   class Soldier: Man {};
   class SoldierWB: Soldier {};
   class Rifleman_G36: SoldierWB
   {
      displayName="Rifleman";
      vehicleClass="BW Riflemen";
      model="\BW_Rifleman\Rifleman.p3d";
      armor=8;
      armorStructural=2;
      armorHead=1;
      armorBody=3.9;
      armorHands=0.9;
      armorLegs=0.30;
      hiddenSelections[]= {medic};
weapons[]={"morita_carb","Throw","Put","NVGoggles","H2KNIFE"};
      magazines[]={"morita","morita","morita","morita","morita","HandGrenade","HandGrenade","DS_KNIFEMag"};
   };
   class Rifleman_MP5A2: Rifleman_G36
   {
      displayName="Rifleman2";
      model="\BW_Rifleman\RiflemanMP5.p3d";
      hiddenSelections[]= {medic};
      weapons[]={"morita_carb","Throw","Put","NVGoggles","H2KNIFE"};
      magazines[]={"morita","morita","morita","morita","morita","HandGrenade","HandGrenade","DS_KNIFEMag"};
   };
   class Rifleman_MP5: Rifleman_G36
   {
      displayName="Rifleman3";
      model="\BW_Rifleman\RiflemanMP5.p3d";
      hiddenSelections[]= {medic};
      weapons[]={"morita_carb","Throw","Put","NVGoggles","H2KNIFE"};
      magazines[]={"morita","morita","morita","morita","morita","HandGrenade","HandGrenade","DS_KNIFEMag"};
   };
   class Rifleman_P90: Rifleman_G36
   {
      displayName="Rifleman P90 Medic";
model="\BW_Rifleman\RiflemanMedic.p3d";
      scope=public;
      hiddenSelections[]= {medic};
      weapons[]={"morita_carb","Throw","Put","NVGoggles"};
      magazines[]={"morita","morita","morita","morita","morita","HandGrenade","HandGrenade"};
   };
};
class CfgModels
{
   class Default {};
   class Man: Default {};
   class Rifleman_M4M203: Man {};
   class Rifleman_MP5A2: Man {};
   class Rifleman_MP5: Man {};
   class Rifleman_P90: Man {};
};
};
Hmm but the faces dosn't work :-\ i try to select an other face but all soldiers have the guy with the glases and beard :-\ i found these "osobnost" but if i use the BIS "osobnost" the head and hans are white (untextured) :'( ???
-
OK, there are some minor bugs in the config:
1. 'class patches BW_Riflemen' should be '... BW_Rifleman' cos the classname must be the same as the pbo-file which seems to be BW_Rifleman
2. all classnames in the cfgModels section must be the same as the actual names of the p3d-files. e.g. it must be 'class RiflemanMedic : Man {};'' instead of rifleman_p90 cos that's the classname, not the name of the p3d. see what i mean? so you should change the whole cfgmodels section.
appart from that i don'T see why the medic shouldn't appear ingame, cos the cfgmodels-section is wrong for all models. have you double checked if the model really is riflemanMedic.p3d and if it's in the same folder as the rest, etc.
the face texture of the sample pack soldier has an invalid path, that's why it's white. select the head and the hands, click on face properties, select 4 or 5 faces textured with a face texture (xicht_x.paa), click on 'filter by' and it should return you all faces with the same texture selected. now simply change the path from 'BISman' to 'Data' and voilà. if it doesn't work in o2 you prolly don't have a 'data'-directory in your o2-folder but nevertheless it should work ingame.
that way you can also make your own osobnost - selection: when all face-textured faces are selected, hit 'create selection' and name it osobnost - quite simple eeh? ;)
-
sounds easy , but i am not very good in o2 :-\
-
send the stuff to me, i'll have a look over it for you. ;)
-
what you need for? p3d file only? or textures too?
-
the models are enough-
-
well i need your email
-
ohhh, sh**t i tohught it was in my profile, sorry mate.
will send you a pm in a min.