I am trying to get a simple model into Hearts of Iron 4.
So far I tried my own model, as well as an imported original model from the game (with Joro Dox), neither did show up in the game previewer nor in the game. Not even the name shows up with the "Mesh.Names" command.
For testing purposes I copied a original .mesh file it into my mod folder and renamed it, and adapted the .gfx accordingly just to check if my paths were correct, it worked.
So Im guessing Im doing something wrong with the exporter, but I ran out of ideas (and threads to look up).
Here is the clausewitz.txt
The exporter does throw an error with my own model (incorrect normals/tangents/bitangents) but not with the imported original model. Both however show up in the Joro Dox Previewer.
So far I tried my own model, as well as an imported original model from the game (with Joro Dox), neither did show up in the game previewer nor in the game. Not even the name shows up with the "Mesh.Names" command.
For testing purposes I copied a original .mesh file it into my mod folder and renamed it, and adapted the .gfx accordingly just to check if my paths were correct, it worked.
So Im guessing Im doing something wrong with the exporter, but I ran out of ideas (and threads to look up).
Here is the clausewitz.txt
Code:
@@t@pdxasset i 2 1 0
[standard_previewer]
animation s 5 "idle" "moving" "attack" "death" "idle2"
material s 6 "PdxMeshRunemaster" "PdxMeshRunemasterColor" "PdxMeshTextureAtlas" "PdxMeshAlphaBlend" "PdxMeshAlphaAdditive" "PdxMeshWater"
path s 1 "X:/project/tools/pdx_editor/game"
target_exe s 1 "X:/project/tools/pdx_editor/game/pdx_editor_D.exe"
[hearts_of_iron]
animation s 5 "idle" "moving" "attack" "death" "idle2"
material s 3 "PdxMeshHoI4" "PdxMeshAdvancedSnow" "PdxMeshRunemaster"
path s 1 "D:/SteamLibrary/steamapps/common/Hearts of Iron IV/"
target_exe s 1 "D:/SteamLibrary/steamapps/common/Hearts of Iron IV/hoi4.exe"
[terra]
animation s 1 "planet_rotation"
material s 10 "PdxMeshShip" "PdxMeshTerra" "PdxMeshPlanet" "PdxMeshStar" "PdxMeshAtmosphere" "PdxMeshClouds" "PdxMeshFleetTypeIndicator" "PdxMeshAlphaAdditive" "PdxMeshTextureAtlas" "PdxMeshAlphaBlend"
path s 1 "X:/project/project_terra/game"
target_exe s 1 "X:/project/project_terra/game/stellaris_RD.exe"
The exporter does throw an error with my own model (incorrect normals/tangents/bitangents) but not with the imported original model. Both however show up in the Joro Dox Previewer.