• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Robbert12345678

Corporal
52 Badges
Dec 13, 2018
34
89
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Steel Division: Normandy 44
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: No Step Back
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Reapers Due
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Stellaris: Ancient Relics
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Call to arms event
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
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"
}
 
Last edited: