• 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.

WeirdoInTheWormstore

Private
47 Badges
May 2, 2016
19
0
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Apocalypse
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma Pre-order
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Imperator: Rome Sign Up
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Season pass
  • Age of Wonders: Planetfall Sign Up
  • Age of Wonders: Planetfall - Revelations
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Europa Universalis IV
  • Europa Universalis IV: Rights of Man
  • Warlock 2: The Exiled
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • BATTLETECH
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Third Rome
Hi guys

I'm not familiar with working graphics, but I thought I might have some fun importing Stellaris models into HOI IV.

Unfortunately it's not really working for me.

I can import textures from Stellaris just fine, but the .mesh files seem to be in a different format or something, as loading a stellaris .mesh file, causes the game to crash hard.

My question then, is if people can confirm, that importing models from Stellaris to HOI IV is a no-go?

Or if it's possible to load the Stellaris model into some utility program and export it in the HOI format (is that what the maya tool is for?)
 
It is probably because of the shader used, you have to use PdxMeshAdvanced in HOI4 and Stellaris usually use PdxMeshShip except for portraits that use PdxMeshPortrait and some effects that may use an alphablend shader.

You can change shader manually in the mesh in the .gfx file where you have the mesh by writing

Code:
meshsettings = {
            shader = "PdxMeshAdvanced"
}

So it will look like

Code:
pdxmesh = {
        name = "arthropoid_01_bomber_mesh"
        file = "gfx/models/ships/arthropoid_01/arthropoid_01_bomber.mesh"
        scale = 1.0
            meshsettings = {
            shader = "PdxMeshAdvanced"
            }
}
 
  • 1
Reactions:
Thanks a lot, that helped a lot - no more crashes, and the new units seem to work fine in terms of game-mechanics

Graphically though, I've hit another snag, as the animations in HOI are apparantly not compatible with the models from Stellaris.

Loading the unit, I get the log-error:

[22:08:09][pdxassetutil.cpp:1290]: Didn't find skeleton in mesh file
[22:08:09][pdxmeshtype.cpp:326]: Animation [fighter_default_idle_animation] is not compatible with mesh [avian_01_fighter_mesh]

The animation in question, I think is 'fighter_default_idle.anim' and I guess it makes sense that it's not compatible with a completely different model. I'f I remove the animation from the planes.gfx file, the error is gone, but of course, so is the animation and all other graphical representations of the model in-game

Code:
        pdxmesh = {
        name = "avian_01_fighter_mesh"
        file = "gfx/models/units/planes/avian_01_fighter.mesh"
        ## animation = { id = "idle" type = "fighter_default_idle_animation" }
        meshsettings = {
            shader = "PdxMeshAdvanced"
            }
    }

I'd copy the animation file from Stellaris as well, but the avian_01_fighter, corvette and destroyer so not come with animation files as far as I can tell, and I'd rather not mess around with the more complicated models like the cruisers and battleships.

My question then is this: How would I go about tweaking the HOI animation files to my stellaris model, or is that a major operation? If I can't make it work with the fighter model, I think I'll give it a try with the constructionships, as they come with animations, and a fairly simple file-structure compared to the capital ships :)

EDIT: Tried the Stellaris constructionship, which runs without any error messages in the log. But unfortunately also without animations :/
 
Last edited: