Jump to content
Sign in to follow this  
blacksidras

How to change wound texture path?

Recommended Posts

By using Hex editor I changed the regular texture path in .p3d file but I couldn't find wound textures. Itried changing the path in config "class Man : Land" section. However, that didn't work. What should I do?

Share this post


Link to post
Share on other sites

You do it in config of your unit.

class mycoolunit: SoldierGB
{
	wounds[]={"pathtoregulartexture1.paa","pathtowoundedtexture1.paa","pathtoregulartexture2.paa","pathtowoundedtexture2.paa"};
};

However you need to add paths to all vanilla face textures, otherwise they won't work as expected.

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"};

Now this will be a lot of code, so best method is to create a base class for all your units that will contain wound definitions for all textures you're going to do. Otherwise you would need to repeat all that for every single unit.

Share this post


Link to post
Share on other sites

I already did that.
 
What I am trying to do is replace standart BIS models with the ones from ww4 (which I transfered to a different .pbo).
 
Config looks like this:
 

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","\merged\00007mc_vojakw2.paa","\merged\00009mc_vojakw2.paa","\merged\00008mc_vojake2.paa","\merged\00010mc_vojake2.paa","00004mc_vojakw2.paa","00009mc_vojakw2.paa","00005mc_vojakw2.paa","00008mc_vojakw2.paa","00003mc_vojakw2.paa","00007mc_vojakw2.paa","00004mc_vojake2.paa","00007mc_vojake2.paa","00005mc_vojake2.paa","00008mc_vojake2.paa","00004mc_tankistaw2.paa","00007mc_tankistaw2.paa","00002mc_tankistaw2.paa","00006mc_tankistaw2.paa","00000mc_tankistae2.paa","00008mc_tankistae2.paa","00003mc_tankistae2.paa","00007mc_tankistae2.paa","00002mc_saboteur.paa","00007mc_saboteur.paa","00000mc_saboteur.paa","00006mc_saboteur.paa","00003mc_SPECNAS2.paa","00011mc_SPECNAS2.paa","00005mc_SPECNAS2.paa","00010mc_SPECNAS2.paa","00000mc_vojakg2.paa","00009mc_vojakg2.paa","00003mc_vojakg2.paa","00008mc_vojakg2.paa","00003mc_vojakg3.paa","00009mc_vojakg3.paa","00004mc_vojakg3.paa","00008mc_vojakg3.paa","00005mc_vojakg3.paa","00007mc_vojakg3.paa","00002mc_pilote2.paa","00007mc_pilote2.paa","00004mc_pilote2.paa","00006mc_pilote2.paa","00003mc_Pilotw2.paa","00007mc_Pilotw2.paa","00002mc_Pilotw2.paa","00006mc_Pilotw2.paa","00002mc_SNIPERe2.paa","00009mc_SNIPERe2.paa","00004mc_SNIPERe2.paa","00008mc_SNIPERe2.paa","w_helma_front","w_helma_front_D","w_helma_side2","w_helma_side2_D","w_helma_vnitrek","w_helma_vnitrek_D","w_ramena","w_ramena_D","w_hrud_p","w_hrud_p_D","w_zadaruce_z","w_zadaruce_z_D","w_vojak_ruka_bok_l","w_vojak_ruka_bok_l_D","w_vojak_ruka_bok_p","w_vojak_ruka_bok_p_D","w_vojak_nohy_bok_l","w_vojak_nohy_bok_l_D","w_vojak_nohy_bok_p","w_vojak_nohy_bok_p_D","w_nohy_p","w_nohy_p_D","w_nohy_z","w_nohy_z_D","e_helma_front","e_helma_front_D","e_hrud_p","e_hrud_p_D","e_zada_z","e_zada_z_d","e_ruka_bok_l","e_ruka_bok_l_D","e_ruka_bok_p","e_ruka_bok_p_D","e_nohy_bok_l","e_nohy_bok_l_D","e_nohy_bok_p","e_nohy_bok_p_D","e_nohy_p","e_nohy_p_D","e_nohy_z","e_nohy_z_D","e_pilot_helma_z","e_pilot_helma_z_d","e_pilot_nohy_p","e_pilot_nohy_p_d","e_pilot_nohy_z","e_pilot_nohy_z_d","e_pilot_ramena","e_pilot_ramena_d","e_pilot_nohybok_l","e_pilot_nohybok_l_d","e_pilot_nohybok_p","e_pilot_nohybok_p_d","e_pilot_rucebok_l","e_pilot_rucebok_l_d","e_pilot_rucebok_p","e_pilot_rucebok_p_d","e_pilot_zada_z","e_pilot_zada_z_d","e_tankhelma_side512","e_tankhelma_side512_d","zaloha_hrud","zaloha_hrud_d","e_tank_zada_z","e_tank_zada_z_d","e_tank_nohy_p","e_tank_nohy_p_D","e_tank_nohy_z","e_tank_nohy_z_D","e_tank_ruka_p","e_tank_ruka_p_d","e_tank_ruka_l","e_tank_ruka_l_d","e_tank_nohybok_l","e_tank_nohybok_l_d","e_tank_nohybok_r","e_tank_nohybok_r_d","e_tankhelma_back512","e_tankhelma_back512_d","g_zada_z","g_zada_z_D","g_hrud_p","g_hrud_p_d","g_nohy_p","g_nohy_p_D","g_nohy_z","g_nohy_z_D","g_noha_bok_l","g_noha_bok_l_d","g_noha_bok_p","g_noha_bok_p_d","g_ruka_bok_p","g_ruka_bok_p_d","g_ruka_bok_l","g_ruka_bok_l_d","g_ramena","g_ramena_D","g_cepice_side","g_cepice_side_d","g_cepice_up","g_cepice_up_d","g2_hrud_p","g2_hrud_p_d","g2_zada_z","g2_zada_z_d","g2_nohy_z","g2_nohy_z_d","g2_nohy_p","g2_nohy_p_d","g2_nohy_bok_p","g2_nohy_bok_p_d","g2_nohy_bok_l","g2_nohy_bok_l_d","g2_ramena","g2_ramena_D","g2_ruka_bok_p","g2_ruka_bok_p_d","g2_ruka_bok_l","g2_ruka_bok_l_d","w_saboteur_hrud_p","w_saboteur_hrud_p_D","w_saboteur_zada_z","w_saboteur_zada_z_D","w_saboteur_nohy_z","w_saboteur_nohy_z_D","w_saboteur_nohy_p","w_saboteur_nohy_p_D","w_saboteur_ruka_p","w_saboteur_ruka_p_d","w_saboteur_ruka_l","w_saboteur_ruka_l_d","w_saboteur_ramena_z","w_saboteur_ramena_z_D","w_saboteur_kukla_s","w_saboteur_kukla_s_d","w_saboteur_kukla_f","w_saboteur_kukla_f_d","w_sniper_rukabok_l","w_sniper_rukabok_l_d","w_sniper_rukabok_p","w_sniper_rukabok_p_d","w_sniper_zada_z","w_sniper_zada_z_d","w_sniper_hrud_p","w_sniper_hrud_p_d","w_sniper_nohy_z","w_sniper_nohy_z_d","w_sniper_nohy_p","w_sniper_nohy_p_d","w_sniper_ramena","w_sniper_ramena_d","w_sniper_sitka.paa","w_sniper_sitka_d.paa","w_tank_hrud_p","w_tank_hrud_p_D","w_tank_zada_z","w_tank_zada_z_D","w_tank_nohy_p","w_tank_nohy_p_D","w_tank_nohy_z","w_tank_nohy_z_D","w_tank_nohybok_l","w_tank_nohybok_l_d","w_tank_nohybok_p","w_tank_nohybok_p_d","w_tank_rucebok_p","w_tank_rucebok_p_d","w_tank_rucebok_l","w_tank_rucebok_l_d","w_tank_helma_side","w_tank_helma_side_d","w_tank_helma_front_p","w_tank_helma_front_p_d","w_tank_ramena","w_tank_ramena_d","w_pilot_hrud_p","w_pilot_hrud_p_D","w_pilot_zada_z","w_pilot_zada_z_D","w_pilot_nohy_p","w_pilot_nohy_p_D","w_pilot_nohy_z","w_pilot_nohy_z_D","w_pilot_rucebok_l","w_pilot_rucebok_l_d","w_pilot_rucebok_p","w_pilot_rucebok_p_D","w_pilot_nohybok_l","w_pilot_nohybok_l_d","w_pilot_nohybok_p","w_pilot_nohybok_p_d","w_pilot_ramena","w_pilot_ramena_d","w_pilot_helma","w_pilot_helma_d","e_spec_hrud_p","e_spec_hrud_p_d","e_spec_ruka_bok_p","e_spec_ruka_bok_p_d","e_spec_ruka_bok_l","e_spec_ruka_bok_l_d","e_spec_ramena","e_spec_ramena_d","e_spec_zada_z","e_spec_zada_p_z","e_spec_hrud_p","e_spec_hrud_p_z","e_spec_satek_back","e_spec_satek_back_d","e_spec_satek_side","e_spec_satek_side_d","jirka_hrud_p","jirka_hrud_p_D","jirka_zada_z","jirka_zada_p_D","jirka_nohy_p","jirka_nohy_p_D","jirka_nohy_z","jirka_nohy_z_D","jirka_rukabok_p","jirka_rukabok_p_d","jirka_nohybok_l","jirka_nohybok_l_d","ang_bluza3","ang_bluza3_d","ang_face_f10","ang_face_f10_d","ang_sako_b","ang_sako_b_d","ang_sako_f","ang_sako_f_d","karel_hrud_p","karel_hrud_p_d","karel_rukabok","karel_rukabok_d","karel_zada","karel_zada_d","petr_hrud_p","petr_hrud_p_d","petr_zada_z","petr_zada_z_d","petr_nohy_zad","petr_nohy_zad_d","petr_nohy_pr","petr_nohy_pr_d",
"\WW3_INF\wbdu.pac","\WW3_INF\wbdu_b.pac", 
"\WW3_INF\wesn.pac","\WW3_INF\wesn_b.pac", 
"\WW3_INF\boca.paa","\WW3_INF\boca_b.paa", 
"\WW3_INF\wemer1.pac","\WW3_INF\wemer1_b.pac",
"\WW3_INF\wemer2.paa","\WW3_INF\wemer2_b.paa", 
"\WW3_INF\emer1.pac","\WW3_INF\emer1_b.pac", 
"\WW3_INF\emer2.paa","\WW3_INF\emer2_b.paa", 
"\WW3_INF\kmcm.pac","\WW3_INF\kmcm_b.pac", 
"\WW3_INF\reca.pac","\WW3_INF\reca_b.pac", 
"\WW3_INF\flca.pac","\WW3_INF\flca_b.pac", 
"\WW3_INF\reeq.pac","\WW3_INF\reeq_b.pac", 
"\WW3_INF\dvdv.paa","\WW3_INF\dvdv_b.paa", 
"\WW3_INF\dfrusvdv.paa","\WW3_INF\dfrusvdv_b.paa", 
"\WW3_INF\demer2.pac","\WW3_INF\demer2_b.pac", 
"\WW3_INF\dfvdveq2.paa","\WW3_INF\dfvdveq2_b.paa", 
"\WW3_INF\arca.pac","\WW3_INF\arca_b.pac", 
"\WW3_INF\wbsn.pac","\WW3_INF\wbsn_b.pac", 
"\WW3_INF\acuca.pac","\WW3_INF\acuca_b.pac", 
"\WW3_INF\acueq.pac","\WW3_INF\acueq_b.pac", 
"\WW3_INF\dsen.pac","\WW3_INF\dsen_b.pac", 
"\WW3_INF\seeq.paa","\WW3_INF\seeq_b.paa", 
"\WW3_INF\wbsn.pac","\WW3_INF\wbsn_b.pac", 
"\WW3_INF\arcreeq.paa","\WW3_INF\arcreeq_b.paa", 
"\WW3_INF\nomexgreen.paa","\WW3_INF\nomexgreen_b.paa", 
"\WW3_INF\wbsn.pac","\WW3_INF\wbsn_b.pac", 
"\WW3_INF\marmer1.pac","\WW3_INF\marmer1_b.pac", 
"\WW3_INF\acusn.pac","\WW3_INF\acusn_b.pac", 
"\WW3_INF\acureceq.paa","\WW3_INF\acureceq_b.paa"};

Share this post


Link to post
Share on other sites

I did some tests and realized that something is wrong with .p3d but I don't know what. Everything looks fine, except for the wounds.

 

Yes, .p3d are in ODOL format.

Share this post


Link to post
Share on other sites

I did some tests and realized that something is wrong with .p3d but I don't know what. Everything looks fine, except for the wounds.

 

Yes, .p3d are in ODOL format.

The wounds are probably based on a model from ww3. You may need to also replace the BIS model with the ww3 model.

 

With some model replacements I've been doing i replaced the unit models and the wound textures

 

class SoldierENOG:SoldierEB

        {

        model="\icp_kzm\icp_kzm2";

        hiddenSelections[]={"med","lopata"};

        scope=1;

        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","\icp_kzm\t1\leg_l.paa","\icp_kzm\t1\leg_l_d.paa","\icp_kzm\t1\leg_r.paa","\icp_kzm\t1\leg_r_d.paa","\icp_kzm\t1\arm_l.paa","\icp_kzm\t1\arm_l_d.paa","\icp_kzm\t1\arm_r.paa","\icp_kzm\t1\arm_r_d.paa","\icp_kzm\t1\chest.paa","\icp_kzm\t1\chest_d.paa","\icp_kzm\t1\back.paa","\icp_kzm\t1\back_d.paa"};

Share this post


Link to post
Share on other sites

In my experience not. I'm using XVI32, maybe try with that one? (From Addon Request thread I understand that you're using HexEdit - should be really the same but who knows?) Never had any problems with hex-edited models, but then I've never done it to infantry...

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  

×