How to create new heraldic ?

正在查看此主题的用户

Alphα

Section Moderator
Hello guys,
We are actualy on a new mod development and we meet some problems to add new heraldic. Have you got any tutorial in order to help us ? We found tuto about this in the mod dev section but this one can only be applied on native module.
What we did up to now :
- Create a new item : module_items
插入代码块:
["mail_long_surcoat_new_heraldic", "mail_long_surcoat_new_heraldic", [("mail_long_surcoat_new_heraldic",0)], itp_type_body_armor|itp_covers_legs, 0,
 2330, weight(18)|body_armor(41)|leg_armor(6)|difficulty(11), imodbits_armor, init_heraldic_item("tableau_mail_long_surcoat_new_heraldic")],

- Create a new mesh : module_meshes
插入代码块:
("tableau_mail_long_surcoat_new_heraldic", 0, "tableau_mail_long_surcoat_new_heraldic",  0, 0, 0, 0, 0, 0, 1, 1, 1),

- Create a new tableau mateiral : module_tableau_material
插入代码块:
("mail_long_surcoat_new_heraldic", 0, "sample_mail_long_surcoat_heraldic_new", 512, 512, 0, 0, 0, 0,
  tableau_armor_banner("mesh_tableau_mail_long_surcoat_new_heraldic", banner_xyz=(-26,120,50), banner_scale=70)),

- Add the new brf, texture and edit module.ini
- Any error loaded in the build_module

Name of the mesh : mail_long_surcoat_new_heraldic
material : tableau_mail_long_surcoat_heraldic_new
texture : mail_long_surcoat_heraldic_new.dds

Tableau's name : tableau_mesh_mail_long_surcoat_new_heraldic
material : tableau_mail_long_surcoat_heraldic_new
texture : mail_long_surcoat_heraldic_new.dds

We have this useless material called "sample_mail_long_surcoat_heraldic_new", Is it necessary to keep/use it or not ? Such a question that we can't resolve.

Thanks,
Regards,

Λℓphα
 
AlphA-FR 说:
We have this useless material called "sample_mail_long_surcoat_heraldic_new", Is it necessary to keep/use it or not ? Such a question that we can't resolve.
The tableau mesh is for the flat plane that is applied over top of the background color and banner to show the item details, and the material has only the diffuse texture and a very basic shader (in PW they all use "simple_shader_no_mip"). The "sample" material has the normal shader for the armor mesh if it wasn't heraldic, with the normal and specular textures, complex shader, and other values and flags; all the added PW heraldic armor is based on Native meshes, so instead of adding a new "sample" material the tableaus just use the material of the non-heraldic original mesh.

For example, the native "heraldic_armor_a" has no non-heraldic version, so it has a sample material as well:
插入代码块:
("heraldic_armor_a", 0, "sample_heraldic_armor_a", 512, 512, 0, 0, 0, 0, tableau_armor_banner("mesh_tableau_mesh_heraldic_armor_a", banner_xyz=(-26,120,50), banner_scale=70)),
But the PW "heraldic_padded_cloth_b" just uses the Native "padded_cloth_b" material for the sample:
插入代码块:
("heraldic_padded_cloth_b", 0, "padded_cloth_b", 1024, 1024, 0, 0, 0, 0, tableau_armor_banner("mesh_tableau_mesh_heraldic_padded_cloth_b", banner_xyz=(-63,120,10), banner_scale=60)),
So if adding a totally new mesh, you should have both a basic "tableau" material and a complex "sample" one.
 
后退
顶部 底部