i'm trying to change some unit models but it isn't working
here is the code/script or whatever it's called (the parts that i changed)
edit: it works fine for the bosporan kingdom (it's exactly the same but with the right country tag, bpk instead of sel.) so there might be a bug with the diadochi tags
pdxmesh = {
name = "seleukid_infantry_01_mesh"
file = "athens_infantry_01.mesh"
meshsettings = {
name = "athens_infantry_01_LOD0Shape"
index = 0
texture_diffuse = "base_infantry_01_diffuse.dds"
texture_normal = "base_infantry_01_normal.dds"
texture_specular = "base_infantry_01_properties.dds"
shader = "standard"
shader_file = "gfx/FX/pdxmesh.shader"
}
meshsettings = {
name = "athens_infantry_01_LOD0Shape"
index = 1
texture_diffuse = "athens_infantry_01_diffuse.dds"
texture_normal = "athens_infantry_01_normal.dds"
texture_specular = "athens_infantry_01_properties.dds"
shader = "standard_usercolor"
shader_file = "gfx/FX/pdxmesh.shader"
}
meshsettings = {
name = "athens_infantry_01_LOD1Shape"
index = 0
texture_diffuse = "base_infantry_01_diffuse.dds"
texture_normal = "base_infantry_01_normal.dds"
texture_specular = "base_infantry_01_properties.dds"
shader = "standard"
shader_file = "gfx/FX/pdxmesh.shader"
}
meshsettings = {
name = "athens_infantry_01_LOD1Shape"
index = 1
texture_diffuse = "athens_infantry_01_diffuse.dds"
texture_normal = "athens_infantry_01_normal.dds"
texture_specular = "athens_infantry_01_properties.dds"
shader = "standard_usercolor"
shader_file = "gfx/FX/pdxmesh.shader"
}
meshsettings = {
name = "athens_infantry_01_LOD2Shape"
index = 0
texture_diffuse = "base_infantry_01_diffuse.dds"
texture_normal = "base_infantry_01_normal.dds"
texture_specular = "base_infantry_01_properties.dds"
shader = "standard"
shader_file = "gfx/FX/pdxmesh.shader"
}
meshsettings = {
name = "athens_infantry_01_LOD2Shape"
index = 1
texture_diffuse = "athens_infantry_01_diffuse.dds"
texture_normal = "athens_infantry_01_normal.dds"
texture_specular = "athens_infantry_01_properties.dds"
shader = "standard_usercolor"
shader_file = "gfx/FX/pdxmesh.shader"
}
}
# Spear unit
entity = {
name = "SEL_light_infantry"
pdxmesh = "athens_infantry_01_mesh"
attach = { name = "helmet" THE_RIG:Character1_Head = "seleukid_helmet_01_entity" }
}
# Sword unit
entity = {
name = "SEL_heavy_infantry"
pdxmesh = "athens_infantry_01_mesh"
attach = { name = "helmet" THE_RIG:Character1_Head = "seleukid_helmet_01_entity" }
}
##############
### Clones ### ----------------------------------------------------------------
##############
entity = {
name = "SEL_archers"
clone = "SEL_light_infantry"
}
entity = {
name = "SEL_camels"
clone = "SEL_light_infantry"
}
entity = {
name = "SEL_chariots"
clone = "SEL_light_infantry"
}
entity = {
name = "SEL_heavy_cavalry"
clone = "SEL_light_infantry"
}
entity = {
name = "SEL_horse_archers"
clone = "SEL_light_infantry"
}
entity = {
name = "SEL_light_cavalry"
clone = "SEL_light_infantry"
}
entity = {
name = "SEL_warelephant"
clone = "SEL_light_infantry"
}
##############
#### legion #### ----------------------------------------------------------------
### Legion ### ----------------------------------------------------------------
##############
# Do one for each unit type
### Archers ----------------------------------------------------------------
entity ={
name = "SEL_legion_archers"
clone = "SEL_light_infantry"
}
### Camels ----------------------------------------------------------------
entity ={
name = "SEL_legion_camels"
clone = "SEL_light_infantry"
}
### Chariots ----------------------------------------------------------------
entity ={
name = "SEL_legion_chariots"
clone = "SEL_light_infantry"
}
### Engineer Cohort ----------------------------------------------------------------
entity ={
name = "SEL_legion_engineer_cohort"
clone = "SEL_light_infantry"
}
### Heavy Cavalry ----------------------------------------------------------------
entity ={
name = "SEL_legion_heavy_cavalry"
clone = "SEL_light_infantry"
}
### Heavy Infantry ----------------------------------------------------------------
entity ={
name = "SEL_legion_heavy_infantry"
clone = "SEL_light_infantry"
}
### Horse Archers ----------------------------------------------------------------
entity ={
name = "SEL_legion_horse_archers"
clone = "SEL_light_infantry"
}
### Light Cavalry ----------------------------------------------------------------
entity ={
name = "SEL_legion_light_cavalry"
clone = "SEL_light_infantry"
}
### Supply Train ----------------------------------------------------------------
entity ={
name = "SEL_legion_supply_train"
clone = "SEL_light_infantry"
}
### War Elephant ----------------------------------------------------------------
entity ={
name = "SEL_legion_warelephant"
clone = "SEL_light_infantry"
}
here is the code/script or whatever it's called (the parts that i changed)
edit: it works fine for the bosporan kingdom (it's exactly the same but with the right country tag, bpk instead of sel.) so there might be a bug with the diadochi tags
pdxmesh = {
name = "seleukid_infantry_01_mesh"
file = "athens_infantry_01.mesh"
meshsettings = {
name = "athens_infantry_01_LOD0Shape"
index = 0
texture_diffuse = "base_infantry_01_diffuse.dds"
texture_normal = "base_infantry_01_normal.dds"
texture_specular = "base_infantry_01_properties.dds"
shader = "standard"
shader_file = "gfx/FX/pdxmesh.shader"
}
meshsettings = {
name = "athens_infantry_01_LOD0Shape"
index = 1
texture_diffuse = "athens_infantry_01_diffuse.dds"
texture_normal = "athens_infantry_01_normal.dds"
texture_specular = "athens_infantry_01_properties.dds"
shader = "standard_usercolor"
shader_file = "gfx/FX/pdxmesh.shader"
}
meshsettings = {
name = "athens_infantry_01_LOD1Shape"
index = 0
texture_diffuse = "base_infantry_01_diffuse.dds"
texture_normal = "base_infantry_01_normal.dds"
texture_specular = "base_infantry_01_properties.dds"
shader = "standard"
shader_file = "gfx/FX/pdxmesh.shader"
}
meshsettings = {
name = "athens_infantry_01_LOD1Shape"
index = 1
texture_diffuse = "athens_infantry_01_diffuse.dds"
texture_normal = "athens_infantry_01_normal.dds"
texture_specular = "athens_infantry_01_properties.dds"
shader = "standard_usercolor"
shader_file = "gfx/FX/pdxmesh.shader"
}
meshsettings = {
name = "athens_infantry_01_LOD2Shape"
index = 0
texture_diffuse = "base_infantry_01_diffuse.dds"
texture_normal = "base_infantry_01_normal.dds"
texture_specular = "base_infantry_01_properties.dds"
shader = "standard"
shader_file = "gfx/FX/pdxmesh.shader"
}
meshsettings = {
name = "athens_infantry_01_LOD2Shape"
index = 1
texture_diffuse = "athens_infantry_01_diffuse.dds"
texture_normal = "athens_infantry_01_normal.dds"
texture_specular = "athens_infantry_01_properties.dds"
shader = "standard_usercolor"
shader_file = "gfx/FX/pdxmesh.shader"
}
}
# Spear unit
entity = {
name = "SEL_light_infantry"
pdxmesh = "athens_infantry_01_mesh"
attach = { name = "helmet" THE_RIG:Character1_Head = "seleukid_helmet_01_entity" }
}
# Sword unit
entity = {
name = "SEL_heavy_infantry"
pdxmesh = "athens_infantry_01_mesh"
attach = { name = "helmet" THE_RIG:Character1_Head = "seleukid_helmet_01_entity" }
}
##############
### Clones ### ----------------------------------------------------------------
##############
entity = {
name = "SEL_archers"
clone = "SEL_light_infantry"
}
entity = {
name = "SEL_camels"
clone = "SEL_light_infantry"
}
entity = {
name = "SEL_chariots"
clone = "SEL_light_infantry"
}
entity = {
name = "SEL_heavy_cavalry"
clone = "SEL_light_infantry"
}
entity = {
name = "SEL_horse_archers"
clone = "SEL_light_infantry"
}
entity = {
name = "SEL_light_cavalry"
clone = "SEL_light_infantry"
}
entity = {
name = "SEL_warelephant"
clone = "SEL_light_infantry"
}
##############
#### legion #### ----------------------------------------------------------------
### Legion ### ----------------------------------------------------------------
##############
# Do one for each unit type
### Archers ----------------------------------------------------------------
entity ={
name = "SEL_legion_archers"
clone = "SEL_light_infantry"
}
### Camels ----------------------------------------------------------------
entity ={
name = "SEL_legion_camels"
clone = "SEL_light_infantry"
}
### Chariots ----------------------------------------------------------------
entity ={
name = "SEL_legion_chariots"
clone = "SEL_light_infantry"
}
### Engineer Cohort ----------------------------------------------------------------
entity ={
name = "SEL_legion_engineer_cohort"
clone = "SEL_light_infantry"
}
### Heavy Cavalry ----------------------------------------------------------------
entity ={
name = "SEL_legion_heavy_cavalry"
clone = "SEL_light_infantry"
}
### Heavy Infantry ----------------------------------------------------------------
entity ={
name = "SEL_legion_heavy_infantry"
clone = "SEL_light_infantry"
}
### Horse Archers ----------------------------------------------------------------
entity ={
name = "SEL_legion_horse_archers"
clone = "SEL_light_infantry"
}
### Light Cavalry ----------------------------------------------------------------
entity ={
name = "SEL_legion_light_cavalry"
clone = "SEL_light_infantry"
}
### Supply Train ----------------------------------------------------------------
entity ={
name = "SEL_legion_supply_train"
clone = "SEL_light_infantry"
}
### War Elephant ----------------------------------------------------------------
entity ={
name = "SEL_legion_warelephant"
clone = "SEL_light_infantry"
}
Last edited: