Home   Help Search Login Register  

Author Topic: "Unit replacing" whit Config.bin  (Read 1918 times)

0 Members and 1 Guest are viewing this topic.

Offline Flauta

  • Members
  • *
  • There is no knownledge, that is no power
    • Chek mi FLog
"Unit replacing" whit Config.bin
« on: 07 Dec 2005, 21:20:44 »
hello there... I need some of your knowledge whit the official Config.bin... My objetive is to change the Standar BIS units whit the STTDesert units.. and later change also some weapons... (the STTDesert Units comes whit the Desert Malden Island)
I cheked the Config.cpp of the West units for exaple, It has this on it
Code: [Select]
class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierWB:Soldier{};
   class SoldierWMedic: SoldierWB{};
   class SoldierWG: SoldierWB{};
   class SoldierWMG: SoldierWB{};
   class SoldierWLAW: SoldierWB{};
   class SoldierWAT: SoldierWLAW{};
   class SoldierWAA: SoldierWLAW{};
   class SoldierWMortar: SoldierWG{};
   class OfficerW: SoldierWB{};
   class SoldierWSniper: SoldierWB{};
   
     
//West Desert Soldiers
   class STTDesSoldierW:SoldierWB
   {
      scope=2;
      displayName="Desert Soldier STT";
      model="\sttdesertsoldiersw\sttsoldierwdes";
      wounds[]={"xicht_a.paa","xicht_a_zranen","xicht_b.paa","xicht_a_zranen","xicht_c.paa","xicht_a_zranen","xicht_d.paa","xicht_a_zranen","xicht_e.paa","xicht_e_zranen","xicht_f.paa",
"xicht_a_zranen","xicht_g.paa","xicht_a_zranen","xicht_h.paa","xicht_a_zranen","xicht_i.paa","xicht_a_zranen","xicht_j.paa","xicht_a_zranen","xicht_k.paa","xicht_a_zranen","xicht_l.paa",
"xicht_a_zranen","xicht_m.paa","xicht_a_zranen","xicht_n.paa","xicht_a_zranen","xicht_o.paa","xicht_o_zranen","xicht_p.paa","xicht_a_zranen","xicht_q.paa","xicht_a_zranen","xicht_r.paa",
"xicht_a_zranen","xicht_s.paa","xicht_a_zranen","xicht_t.paa","xicht_a_zranen","xicht_u.paa","xicht_a_zranen","xicht_v.paa","xicht_v_zranen","xicht_w.paa","xicht_w_zranen","xicht_x.paa",
"xicht_a_zranen","xicht_y.paa","xicht_a_zranen","xicht_z.paa","xicht_a_zranen","xicht_2a.paa","xicht_a_zranen","xicht_2b.paa","xicht_w_zranen","xicht_2c.paa","xicht_a_zranen","xicht_2d.paa",
"xicht_v_zranen","xicht_2e.paa","xicht_a_zranen","xicht_2f.paa","xicht_a_zranen","xicht_2g.paa","xicht_w_zranen","xicht_2h.paa","xicht_a_zranen","xicht_2i.paa","xicht_a_zranen",
"xicht_2j.paa","xicht_a_zranen","xicht_2k.paa","xicht_a_zranen","xicht_2l.paa","xicht_a_zranen","xicht_2m.paa","xicht_a_zranen","xicht_2n.paa","xicht_a_zranen","xicht_2o.paa","xicht_a_zranen",
"xicht_2p.paa","xicht_2p_zranen","xicht_2q.paa","xicht_a_zranen","xicht_2r.paa","xicht_e_zranen","xicht_2s.paa","xicht_a_zranen","xicht_2t.paa","xicht_a_zranen","xicht_2u.paa",
"xicht_a_zranen","xicht_2v.paa","xicht_a_zranen","xicht_2w.paa","xicht_w_zranen","xicht_2x.paa","xicht_a_zranen","xicht_2y.paa","xicht_a_zranen","xicht_2z.paa","xicht_a_zranen",
"\sttdesertsoldiersw\sttdes004mc_vojakw2.paa","\sttdesertsoldiersw\sttdes009mc_vojakw2.paa","\sttdesertsoldiersw\sttdes005mc_vojakw2.paa","\sttdesertsoldiersw\sttdes008mc_vojakw2.paa",
"\sttdesertsoldiersw\sttdes003mc_vojakw2.paa","\sttdesertsoldiersw\sttdes007mc_vojakw2.paa","\sttdesertsoldiersw\sttdesw_hrud_p","\sttdesertsoldiersw\sttdesw_hrud_p_d","\sttdesertsoldiersw\sttdesw_zadaruce_z",
"\sttdesertsoldiersw\sttdesw_zadaruce_z_d","\sttdesertsoldiersw\sttdesw_nohy_p","\sttdesertsoldiersw\sttdesw_nohy_p_d","\sttdesertsoldiersw\sttdesw_nohy_z","\sttdesertsoldiersw\sttdesw_nohy_z_d"};
   };
   class STTDesSoldierWmedic: SoldierWMedic
   {
      displayName="Desert Medic STT";
      model="\sttdesertsoldiersw\sttsoldierwdes";
      weaponSlots="1 +  16 + 2 *    4096 + 10 *          256";
      weapons[]={"M16","Throw","Put"};
      magazines[]={"M16","M16","M16","M16","HandGrenade","HandGrenade","HandGrenade","HandGrenade","HandGrenade","HandGrenade"};
      scope=2;
      wounds[]={"xicht_a.paa","xicht_a_zranen","xicht_b.paa","xicht_a_zranen","xicht_c.paa","xicht_a_zranen","xicht_d.paa","xicht_a_zranen","xicht_e.paa","xicht_e_zranen","xicht_f.paa",
"xicht_a_zranen","xicht_g.paa","xicht_a_zranen","xicht_h.paa","xicht_a_zranen","xicht_i.paa","xicht_a_zranen","xicht_j.paa","xicht_a_zranen","xicht_k.paa","xicht_a_zranen","xicht_l.paa",
"xicht_a_zranen","xicht_m.paa","xicht_a_zranen","xicht_n.paa","xicht_a_zranen","xicht_o.paa","xicht_o_zranen","xicht_p.paa","xicht_a_zranen","xicht_q.paa","xicht_a_zranen","xicht_r.paa",
"xicht_a_zranen","xicht_s.paa","xicht_a_zranen","xicht_t.paa","xicht_a_zranen","xicht_u.paa","xicht_a_zranen","xicht_v.paa","xicht_v_zranen","xicht_w.paa","xicht_w_zranen","xicht_x.paa",
"xicht_a_zranen","xicht_y.paa","xicht_a_zranen","xicht_z.paa","xicht_a_zranen","xicht_2a.paa","xicht_a_zranen","xicht_2b.paa","xicht_w_zranen","xicht_2c.paa","xicht_a_zranen","xicht_2d.paa",
"xicht_v_zranen","xicht_2e.paa","xicht_a_zranen","xicht_2f.paa","xicht_a_zranen","xicht_2g.paa","xicht_w_zranen","xicht_2h.paa","xicht_a_zranen","xicht_2i.paa","xicht_a_zranen","xicht_2j.paa",
"xicht_a_zranen","xicht_2k.paa","xicht_a_zranen","xicht_2l.paa","xicht_a_zranen","xicht_2m.paa","xicht_a_zranen","xicht_2n.paa","xicht_a_zranen","xicht_2o.paa","xicht_a_zranen","xicht_2p.paa",
"xicht_2p_zranen","xicht_2q.paa","xicht_a_zranen","xicht_2r.paa","xicht_e_zranen","xicht_2s.paa","xicht_a_zranen","xicht_2t.paa","xicht_a_zranen","xicht_2u.paa","xicht_a_zranen","xicht_2v.paa",
"xicht_a_zranen","xicht_2w.paa","xicht_w_zranen","xicht_2x.paa","xicht_a_zranen","xicht_2y.paa","xicht_a_zranen","xicht_2z.paa","xicht_a_zranen","\sttdesertsoldiersw\sttdes004mc_vojakw2.paa",
"\sttdesertsoldiersw\sttdes009mc_vojakw2.paa","\sttdesertsoldiersw\sttdes005mc_vojakw2.paa","\sttdesertsoldiersw\sttdes008mc_vojakw2.paa","\sttdesertsoldiersw\sttdes003mc_vojakw2.paa",
"\sttdesertsoldiersw\sttdes007mc_vojakw2.paa","\sttdesertsoldiersw\sttdesw_hrud_p","\sttdesertsoldiersw\sttdesw_hrud_p_d","\sttdesertsoldiersw\sttdesw_zadaruce_z",
"\sttdesertsoldiersw\sttdesw_zadaruce_z_d","\sttdesertsoldiersw\sttdesw_nohy_p","\sttdesertsoldiersw\sttdesw_nohy_p_d","\sttdesertsoldiersw\sttdesw_nohy_z","\sttdesertsoldiersw\sttdesw_nohy_z_d"};
   };

I think this is the "set Up" for the Western soldiers... now in the BIS official Config.bin (Uncompresed as Config.cpp) got this:

Code: [Select]
class SoldierWB: Soldier
   {
      model="MC vojakW2";
      hiddenSelections[]={"medic"};
      moves="CfgMovesMC";
      picture="ivojak";
      vehicleClass="Men";
      scope=2
      side=1
      accuracy=0.700000;
      displayName="$STR_DN_SOLDIER";
      weapons[]={"M16","Throw","Put"};
      magazines[]={"M16","M16","M16","M16","HandGrenade","HandGrenade","HandGrenade","HandGrenade","HandGrenade","HandGrenade"};
      cost=40000
   };
   class SoldierWG: SoldierWB
   {
      picture="igrenadier";
      vehicleClass="Men";
      scope=2
      cost=60000
      displayName="$STR_DN_GRENADIER";
      accuracy=1000
      weapons[]={"M16GrenadeLauncher","Throw","Put"};
      magazines[]={"M16","M16","M16","M16","GrenadeLauncher","GrenadeLauncher","GrenadeLauncher"};
   };
   class SoldierWMedic: SoldierWB
   {
      accuracy=1000
      picture="imedic";
      vehicleClass="Men";
      scope=2
      cost=60000
      displayName="$STR_DN_MEDIC";
      weaponSlots="1 + 4 *          256";
      attendant=1
      weapons[]={"M16","Throw","Put"};
      magazines[]={"M16","M16","M16","M16"};
      nameSound="medic";
      hiddenSelections[]={};
   };

I thouth that meregin both classes maybe it should work... like these
Code: [Select]
class SoldierWB: Soldier
   {
      model="\sttdesertsoldiersw\sttsoldierwdes";
      wounds[]={"xicht_a.paa","xicht_a_zranen","xicht_b.paa","xicht_a_zranen","xicht_c.paa","xicht_a_zranen","xicht_d.paa","xicht_a_zranen","xicht_e.paa","xicht_e_zranen","xicht_f.paa","xicht_a_zranen",
"xicht_g.paa","xicht_a_zranen","xicht_h.paa","xicht_a_zranen","xicht_i.paa","xicht_a_zranen","xicht_j.paa","xicht_a_zranen","xicht_k.paa","xicht_a_zranen","xicht_l.paa","xicht_a_zranen",
"xicht_m.paa","xicht_a_zranen","xicht_n.paa","xicht_a_zranen","xicht_o.paa","xicht_o_zranen","xicht_p.paa","xicht_a_zranen","xicht_q.paa","xicht_a_zranen","xicht_r.paa","xicht_a_zranen","xicht_s.paa",
"xicht_a_zranen","xicht_t.paa","xicht_a_zranen","xicht_u.paa","xicht_a_zranen","xicht_v.paa","xicht_v_zranen","xicht_w.paa","xicht_w_zranen","xicht_x.paa","xicht_a_zranen","xicht_y.paa",
"xicht_a_zranen","xicht_z.paa","xicht_a_zranen","xicht_2a.paa","xicht_a_zranen","xicht_2b.paa","xicht_w_zranen","xicht_2c.paa","xicht_a_zranen","xicht_2d.paa","xicht_v_zranen","xicht_2e.paa",
"xicht_a_zranen","xicht_2f.paa","xicht_a_zranen","xicht_2g.paa","xicht_w_zranen","xicht_2h.paa","xicht_a_zranen","xicht_2i.paa","xicht_a_zranen","xicht_2j.paa","xicht_a_zranen","xicht_2k.paa",
"xicht_a_zranen","xicht_2l.paa","xicht_a_zranen","xicht_2m.paa","xicht_a_zranen","xicht_2n.paa","xicht_a_zranen","xicht_2o.paa","xicht_a_zranen","xicht_2p.paa","xicht_2p_zranen","xicht_2q.paa",
"xicht_a_zranen","xicht_2r.paa","xicht_e_zranen","xicht_2s.paa","xicht_a_zranen","xicht_2t.paa","xicht_a_zranen","xicht_2u.paa","xicht_a_zranen","xicht_2v.paa","xicht_a_zranen","xicht_2w.paa",
"xicht_w_zranen","xicht_2x.paa","xicht_a_zranen","xicht_2y.paa","xicht_a_zranen","xicht_2z.paa","xicht_a_zranen","\sttdesertsoldiersw\sttdes004mc_vojakw2.paa","\sttdesertsoldiersw\sttdes009mc_vojakw2.paa",
"\sttdesertsoldiersw\sttdes005mc_vojakw2.paa","\sttdesertsoldiersw\sttdes008mc_vojakw2.paa","\sttdesertsoldiersw\sttdes003mc_vojakw2.paa","\sttdesertsoldiersw\sttdes007mc_vojakw2.paa",
"\sttdesertsoldiersw\sttdesw_hrud_p","\sttdesertsoldiersw\sttdesw_hrud_p_d","\sttdesertsoldiersw\sttdesw_zadaruce_z","\sttdesertsoldiersw\sttdesw_zadaruce_z_d","\sttdesertsoldiersw\sttdesw_nohy_p",
"\sttdesertsoldiersw\sttdesw_nohy_p_d","\sttdesertsoldiersw\sttdesw_nohy_z","\sttdesertsoldiersw\sttdesw_nohy_z_d"};
      hiddenSelections[]={"medic"};
      moves="CfgMovesMC";
      picture="ivojak";
      vehicleClass="Men";
      scope=2
      side=1
      accuracy=0.700000;
      displayName="$STR_DN_SOLDIER";
      weapons[]={"M16","Throw","Put"};
      magazines[]={"M16","M16","M16","M16","HandGrenade","HandGrenade","HandGrenade","HandGrenade","HandGrenade","HandGrenade"};
      cost=40000
   };
   class SoldierWG: SoldierWB
   {
      picture="igrenadier";
      vehicleClass="Men";
      scope=2
      cost=60000
      displayName="$STR_DN_GRENADIER";
      accuracy=1000
      weapons[]={"M16GrenadeLauncher","Throw","Put"};
      magazines[]={"M16","M16","M16","M16","GrenadeLauncher","GrenadeLauncher","GrenadeLauncher"};
   };
   class SoldierWMedic: SoldierWB
   {
      accuracy=1000
      model="\sttdesertsoldiersw\sttsoldierwdes";
      picture="imedic";
      vehicleClass="Men";
      scope=2
      cost=60000
      displayName="$STR_DN_MEDIC";
      weaponSlots="1 + 4 *          256";
      attendant=1
      weapons[]={"M16","Throw","Put"};
      magazines[]={"M16","M16","M16","M16"};
      nameSound="medic";
      hiddenSelections[]={};
      wounds[]={"xicht_a.paa","xicht_a_zranen","xicht_b.paa","xicht_a_zranen","xicht_c.paa","xicht_a_zranen","xicht_d.paa","xicht_a_zranen","xicht_e.paa","xicht_e_zranen","xicht_f.paa","xicht_a_zranen",
"xicht_g.paa","xicht_a_zranen","xicht_h.paa","xicht_a_zranen","xicht_i.paa","xicht_a_zranen","xicht_j.paa","xicht_a_zranen","xicht_k.paa","xicht_a_zranen","xicht_l.paa","xicht_a_zranen",
"xicht_m.paa","xicht_a_zranen","xicht_n.paa","xicht_a_zranen","xicht_o.paa","xicht_o_zranen","xicht_p.paa","xicht_a_zranen","xicht_q.paa","xicht_a_zranen","xicht_r.paa","xicht_a_zranen","xicht_s.paa",
"xicht_a_zranen","xicht_t.paa","xicht_a_zranen","xicht_u.paa","xicht_a_zranen","xicht_v.paa","xicht_v_zranen","xicht_w.paa","xicht_w_zranen","xicht_x.paa","xicht_a_zranen",
"xicht_y.paa","xicht_a_zranen","xicht_z.paa","xicht_a_zranen","xicht_2a.paa","xicht_a_zranen","xicht_2b.paa","xicht_w_zranen","xicht_2c.paa","xicht_a_zranen","xicht_2d.paa","xicht_v_zranen","xicht_2e.paa",
"xicht_a_zranen","xicht_2f.paa","xicht_a_zranen","xicht_2g.paa","xicht_w_zranen","xicht_2h.paa","xicht_a_zranen","xicht_2i.paa","xicht_a_zranen","xicht_2j.paa","xicht_a_zranen",
"xicht_2k.paa","xicht_a_zranen","xicht_2l.paa","xicht_a_zranen","xicht_2m.paa","xicht_a_zranen","xicht_2n.paa","xicht_a_zranen","xicht_2o.paa","xicht_a_zranen","xicht_2p.paa","xicht_2p_zranen",
"xicht_2q.paa","xicht_a_zranen","xicht_2r.paa","xicht_e_zranen","xicht_2s.paa","xicht_a_zranen","xicht_2t.paa","xicht_a_zranen","xicht_2u.paa","xicht_a_zranen","xicht_2v.paa","xicht_a_zranen",
"xicht_2w.paa","xicht_w_zranen","xicht_2x.paa","xicht_a_zranen","xicht_2y.paa","xicht_a_zranen","xicht_2z.paa","xicht_a_zranen","\sttdesertsoldiersw\sttdes004mc_vojakw2.paa",
"\sttdesertsoldiersw\sttdes009mc_vojakw2.paa","\sttdesertsoldiersw\sttdes005mc_vojakw2.paa","\sttdesertsoldiersw\sttdes008mc_vojakw2.paa","\sttdesertsoldiersw\sttdes003mc_vojakw2.paa",
"\sttdesertsoldiersw\sttdes007mc_vojakw2.paa","\sttdesertsoldiersw\sttdesw_hrud_p","\sttdesertsoldiersw\sttdesw_hrud_p_d","\sttdesertsoldiersw\sttdesw_zadaruce_z","\sttdesertsoldiersw\sttdesw_zadaruce_z_d",
"\sttdesertsoldiersw\sttdesw_nohy_p","\sttdesertsoldiersw\sttdesw_nohy_p_d","\sttdesertsoldiersw\sttdesw_nohy_z","\sttdesertsoldiersw\sttdesw_nohy_z_d"};
   };
But it dinn't Work... :-\  What Should I do?!?!?!?!

*Note that every coded script, is Justa PART of the entire Config.cpp


*reformatted for easier reading--Planck*
« Last Edit: 08 Dec 2005, 02:34:15 by Planck »

Offline Mikero

  • Former Staff
  • ****
  • ook?
    • Linux Step by Step
Re:"Unit replacing" whit Config.bin
« Reply #1 on: 08 Dec 2005, 01:05:45 »
as near as I can tell you're trying to REPLACE the official config.bin is that right?

in which case, what you did wont work because you are making references to a non-existent

\sttdesertsoldiersw.pbo

secondly, you are defying the purpose of Oops. program in attempting to re-invent a wheel, eg fix something (soldierWB) that aint broken.

the point bejind this style of class structure is to build on objects known to work, rather than break them.

Just say no to bugz

Offline Flauta

  • Members
  • *
  • There is no knownledge, that is no power
    • Chek mi FLog
Re:"Unit replacing" whit Config.bin
« Reply #2 on: 12 Dec 2005, 16:52:43 »
Yes, what im triing to do is remplace the official Config.bin... changing the Default BIS unit models whit the STT Desert models...
I just know the basics of Scripting... really no idea what's wrong.. and I wonder if I put the desertmalden.pbo (thius has the units models) would work.. relly no idea..


I still waitng for your help ;) ::)

Offline hamis

  • Members
  • *
  • I'm a llama!
Re:"Unit replacing" whit Config.bin
« Reply #3 on: 14 Jan 2006, 10:01:42 »
You should take a look on some unit replacment mod config's(FFUR etc)!